uweb/en/html5/index.html
2022-08-07 09:20:50 +08:00

6.2 KiB
Raw Blame History

<html> <head> </head> Home Tags 简体中文

Html5 applications

Html5 applications

Click to install the following html5 apps:
Huge markdown file viewer
Huge markdeep file viewer (markdown, latex, diagram,graphviz etc.)
plyr video player
dplayer video player
pdf viewer
epub reader (authorllili)
djvu viewer

The corresponding menu can be installed with url services.

Features

The following mentioned subfolders locate in the configuration folder.

  • All html5 applications locating in a subfolder whose name begins with "app" (such as "appPDF") are allowed to read local files. Use url "https://local/sdcard/..." for a local file.
  • All files under the subfolder "app" can be automatically choosed as file objects by any web page.

Click to configure default.filecap to open local files, and to open remote files with the option "custom file handling":
use pdf.js,djvu.js,epub.js, huge markdown viewer for local files

url examples are as follows:

  • file:///data/data/info.torinfo.uweb/files/app/pdfviewer.html?file=[path].pdf#page=[xxx]
  • file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=...xx.pdf#page=[xxx]
  • file:///data/data/info.torinfo.uweb/files/app/txtview.html?url=[url]#page=[xxx]
  • file:///data/data/info.torinfo.uweb/files/app/txtview.html?url=[url]#offset=[xxxx]&[length]
  • file:///data/data/info.torinfo.uweb/files/app/markdeep.html?url=[url]#page=[xxx]
  • file:///data/data/info.torinfo.uweb/files/app/markdeep.html?url=[url]#offset=[xxxx]&[length]

Ex. "#offset=10000&500" will retrieve 500 bytes from offset 10000. Click the right arrow button to next page in all above file viewers.

Configure html5 app subfolder "app" (optional)

By default, the subfolder "app" is created by clicking to install any of above html5 applications.

To make file management easier, users can symbolic link the subfolder "app" to any other locations as long as it is readable.

One way to configure "app" subfolder is as follows:

  • Click to copy the command to the address bar
  • Press the home screen button of uweb browser bottom toolbar, so the home screen appears.
  • If you want "app" to be locations other than "/sdcard/Download/app", modify as you like.
  • Press "enter" on the address bar to execute the command.

mdict dictionary lookup search engine:

i:5ihttps://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word=

The dictionary files (mdx, mdd) must locate in the "app" subfolder under the configuration folder. In above example, the files "xxx.mdx" and "xxx.mdd" locate in the folder ".../app/mdict".

Clip to paste commands to the address bar, the commands scan mdx/mdd files under app/mdict and add search engines to home screen.

After pasting the command to the address bar, press home screen button, then press "enter" on the address bar to execute the command.

</html>