An open API service indexing awesome lists of open source software.

https://github.com/puutaro/txtpdfviewer

Text pdf viewer with tts in CommandClick
https://github.com/puutaro/txtpdfviewer

android browser browser-addon cmdclick commandclick fannel javascript pdf-viewer pdfviewer

Last synced: about 1 month ago
JSON representation

Text pdf viewer with tts in CommandClick

Awesome Lists containing this project

README

        



# txtPdfViewer.js
----------------

Text pdf viewer with tts @puutaro

Table of Contents
-------


* [Installation](#installation)
* [Support long press menu table](#support-long-press-menu-table)
* [Toolbar buttons](#toolbar-buttons)
* [Play Button](#play-button)
* [Edit Button](#edit-button)
* [Cmd Variables](#cmd-variables)
* [txtPdfPath](#txtpdfpath)
* [TTS_PLAY](#tts_play)
* [toLang](#tolang)
* [Pitch](#pitch)
* [Speed](#speed)
* [onTrack](#ontrack)
* [menuTtsSwitch](#menuttsswitch)
* [Setting variables](#setting-variables)
* [terminalFontZoom](#terminalfontzoom)
* [terminalFontColor](#terminalfontcolor)
* [execPlayBtnLongPress](#execplaybtnlongpress)
* [execEditBtnLongPress](#execeditbtnlongpress)
* [homeFannelsPath](#homefannelspath)

## Support long press menu
---------

| type | enable |
| ----- | ----- |
| src anchor | o |
| src image anchor | o |
| image | x |

## Installation
--------------

1. Install [ComamndClick](https://github.com/puutaro/CommandClick#app-installation) to your android
2. Install this fannel by [install repo](https://github.com/puutaro/CommandClick/blob/master/USAGE.md#install-fannel) or QR code

## Toolbar buttons

### Play Button

1. Set `txtPdfPath`
2. Click

- long press -> page search

### Edit Button

- long press -> web search

## Cmd Variables
--------

### txtPdfPath
Pdf file path

### TTS_PLAY
text to speech play

### toLang
Text to speech lang

| code | lang |
| ------ | ------ |
| - | default language |
| `en` | english |
| `zh` | chinese |
| `es` | spanish |
| `ko` | korean |
| `ja` | japanese |

### Pitch
Text to speech pitch

| pitch | description |
| ------ | --------- |
| 50 | normal |
| 50 Up | pitch up |
| 50 down | pitch down |

### Speed
Text to speech speed

| speed | description |
| ------ | --------- |
| 50 | normal |
| 50 Up | speed up |
| 50 down | speed down |

### onTrack

| switch | description |
| ------ | --------- |
| `ON` | Memory past number and step |
| `OFF` | No memory past number and step |

### menuTtsSwitch

| switch | description |
| ------- | ------- |
| `ON` | Play text to speech in long press menu |
| `OFF` | Text or pdf viewer in long press menu |

## Setting variables
---------

### terminalFontZoom
Adjust terminal font size (percentage)

### terminalFontColor
Adjust terminal font color

### execPlayBtnLongPress
Execute when play button long press

| type or name | description |
| ------- | ------- |
| `WEB_SEARCH` | Apear web search bar |
| `PAGE_SEARCH` | Apear page search bar |
| js file path | Execute js file |

### execEditBtnLongPress
Execute when edit button long press

| type or name | description |
| ------- | ------- |
| `WEB_SEARCH` | Apear web search bar |
| `PAGE_SEARCH` | Apear page search bar |
| js file path | Execute js file |

### homeFannelsPath
Specified fannel put always bottom in app history

| Button type | usage |
| --------- | --------- |
| DSL button | Drag and sort home fannels List |
| ADD button | Add fannel to home fannels list |