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
- Host: GitHub
- URL: https://github.com/puutaro/txtpdfviewer
- Owner: puutaro
- License: mit
- Created: 2023-12-04T16:08:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-13T02:47:37.000Z (8 months ago)
- Last Synced: 2025-02-12T18:47:01.981Z (3 months ago)
- Topics: android, browser, browser-addon, cmdclick, commandclick, fannel, javascript, pdf-viewer, pdfviewer
- Language: JavaScript
- Homepage: https://github.com/puutaro/CommandClick
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |