From a79d00b323f8e166ce83616717d5c38583bcff72 Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Sat, 15 Oct 2022 08:47:23 +0800 Subject: [PATCH] add command bookmarks --- en/_posts/index.xml | 10 +- en/acmd/index.html | 4 +- en/bookmark/index.html | 14 ++- en/html5/index.html | 2 +- en/index.xml | 10 +- en/searchurl/mdict/mdictt.html~ | 205 ++++++++++++++++++++++++++++++++ index.html | 11 +- zh/_posts/index.xml | 2 +- zh/html5/index.html | 2 +- zh/index.xml | 2 +- 10 files changed, 225 insertions(+), 37 deletions(-) create mode 100644 en/searchurl/mdict/mdictt.html~ diff --git a/en/_posts/index.xml b/en/_posts/index.xml index fe83d3d..b2467e8 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -117,14 +117,8 @@ Enable selection /en/bookmark/ Wait for url from other devices -Templates Click following links to install bookmark templates, bookmarks saved to the template have corresponding features enabled. -"novel.html": auto reader's mode -Termux The following bookmarks need termux. Clicking to run is only allowed from local pages. -GNU bc (basic calculator) -bc with all extensions -Science Physics Feynman lectures -Chemistry chemspider -molecule SMILES +Commands Clicking to run is only allowed from local pages for bookmarks in this section. Users need to either save the bookmarks to local or long press the link => "open in new tab" to execute. +To save the bookmarks to local, users firstly need to install "bookmark" menu by clicking corresponding link in the url services page, then long press the bookmark link => "open in new tab" => "Commands" => "bookmark" to save the bookmark. diff --git a/en/acmd/index.html b/en/acmd/index.html index 6a3e99d..d4a5e2a 100644 --- a/en/acmd/index.html +++ b/en/acmd/index.html @@ -53,9 +53,7 @@ output;plot %25s'%0A">GNUPlot plot (2D function), needs uweb adapted termux & output;splot %25s'%0A">GNUPlot plot (3D function), needs uweb adapted termux & gnuplot

Shell command mode

Click the following links to make commands appear in address bar, then press "enter" to execute:
-symbolic link "app" folder to be under the "Download" folder

-

symbolic link configuration folder to "/sdcard/Download/uweb"

-

Make uweb configuration folder accessible by file managers with termux installed
+Make uweb configuration folder accessible by file managers with termux installed
(File manager list at end of the page)

diff --git a/en/bookmark/index.html b/en/bookmark/index.html index 6fe2e23..c5cf360 100644 --- a/en/bookmark/index.html +++ b/en/bookmark/index.html @@ -48,13 +48,19 @@

Wait for url from other devices

+

Commands

+

Clicking to run is only allowed from local pages for bookmarks in this section. Users need to either save the bookmarks to local or long press the link => "open in new tab" to execute.

+

To save the bookmarks to local, users firstly need to install "bookmark" menu by clicking corresponding link in the url services page, then long press the bookmark link => "open in new tab" => "Commands" => "bookmark" to save the bookmark.

+

symbolic link configuration folder to "/sdcard/Download/uweb"

+

Make uweb configuration folder accessible by file managers with termux installed
+(File manager list at end of the page)

+

Termux

+

The following bookmarks need termux.
+GNU bc (basic calculator)
+bc with all extensions

Templates

Click following links to install bookmark templates, bookmarks saved to the template have corresponding features enabled.
"novel.html": auto reader's mode

-

Termux

-

The following bookmarks need termux. Clicking to run is only allowed from local pages.
-GNU bc (basic calculator)
-bc with all extensions

Science

Physics

Feynman lectures

diff --git a/en/html5/index.html b/en/html5/index.html index 0115bbe..71c66df 100644 --- a/en/html5/index.html +++ b/en/html5/index.html @@ -90,7 +90,7 @@ Click to install the following html5 apps:

mdict dictionary lookup search engines:

Note: the following two mdict.html files are different.
-i:5ifile:///....../xxx.mdx,xxx.mdd?app=https://uwebzh.netlify.app/en/searchurl/mdict/mdict.html#word=%s

+i:5ifile:///....../xxx.mdx,xxx.mdd?app=https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/mdict/mdict.html#word=%s

in which "/.../xxx.mdx,xxx.mdd" is the full path for the mdict dictionary files.

i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,mdict/xxx.mdd#word=%s

In the above mdict search engine string, 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".

diff --git a/en/index.xml b/en/index.xml index 4701cb4..4211cd2 100644 --- a/en/index.xml +++ b/en/index.xml @@ -232,14 +232,8 @@ Remote javascript is defined in default.rjs. Click the following link to install /en/bookmark/ Wait for url from other devices -Templates Click following links to install bookmark templates, bookmarks saved to the template have corresponding features enabled. -"novel.html": auto reader's mode -Termux The following bookmarks need termux. Clicking to run is only allowed from local pages. -GNU bc (basic calculator) -bc with all extensions -Science Physics Feynman lectures -Chemistry chemspider -molecule SMILES +Commands Clicking to run is only allowed from local pages for bookmarks in this section. Users need to either save the bookmarks to local or long press the link => "open in new tab" to execute. +To save the bookmarks to local, users firstly need to install "bookmark" menu by clicking corresponding link in the url services page, then long press the bookmark link => "open in new tab" => "Commands" => "bookmark" to save the bookmark.
diff --git a/en/searchurl/mdict/mdictt.html~ b/en/searchurl/mdict/mdictt.html~ new file mode 100644 index 0000000..78f631f --- /dev/null +++ b/en/searchurl/mdict/mdictt.html~ @@ -0,0 +1,205 @@ + + + + + mdict + + + + + + + + + + + + + + + Choose a dictionary file (*.mdx + optional *.mdd): +

+ + +

+
+ + + + diff --git a/index.html b/index.html index 33185bf..db7d507 100644 --- a/index.html +++ b/index.html @@ -1,10 +1 @@ - - - - en/ - - - - - - + diff --git a/zh/_posts/index.xml b/zh/_posts/index.xml index d6f8ebd..fcb0683 100644 --- a/zh/_posts/index.xml +++ b/zh/_posts/index.xml @@ -14,7 +14,7 @@ /zh/html5/ mdict字典搜索引擎: 长按底部右箭头弹出系统菜单=>添加搜索引擎=>第三行输入搜索引擎串。对于需要批量添加的用户,显示主屏时,可长按底部时钟按钮,点击编辑器,然后添加保存,清后台重启生效。mdict搜索引擎串有以下两类(推荐第一类)。 -i:5ifile:///.../xxx.mdx,xxx.mdd?app=https://uwebzh.netlify.app/en/searchurl/mdict/mdict.html#word=%s +i:5ifile:///.../xxx.mdx,xxx.mdd?app=https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/mdict/mdict.html#word=%s 其中"/.../xxx.mdx,xxx.mdd"为词典文件全路径。 i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,mdict/xxx.mdd#word=%s 对于这类搜索引擎,字典文件必须位于配置目录应用子目录"app"下。上述字典搜索引擎例子中文件"xxx.mdx"及"xxx.mdd"位于".../app/mdict"下。为方便文件操作,用户可符号链接"app"至任意公共目录。 diff --git a/zh/html5/index.html b/zh/html5/index.html index 96830f7..bbd9df2 100644 --- a/zh/html5/index.html +++ b/zh/html5/index.html @@ -49,7 +49,7 @@

mdict字典搜索引擎:
长按底部右箭头弹出系统菜单=>添加搜索引擎=>第三行输入搜索引擎串。对于需要批量添加的用户,显示主屏时,可长按底部时钟按钮,点击编辑器,然后添加保存,清后台重启生效。mdict搜索引擎串有以下两类(推荐第一类)。

-

i:5ifile:///.../xxx.mdx,xxx.mdd?app=https://uwebzh.netlify.app/en/searchurl/mdict/mdict.html#word=%s

+

i:5ifile:///.../xxx.mdx,xxx.mdd?app=https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/mdict/mdict.html#word=%s

其中"/.../xxx.mdx,xxx.mdd"为词典文件全路径。

i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,mdict/xxx.mdd#word=%s

对于这类搜索引擎,字典文件必须位于配置目录应用子目录"app"下。上述字典搜索引擎例子中文件"xxx.mdx"及"xxx.mdd"位于".../app/mdict"下。为方便文件操作,用户可符号链接"app"至任意公共目录

diff --git a/zh/index.xml b/zh/index.xml index 3101876..a458b57 100644 --- a/zh/index.xml +++ b/zh/index.xml @@ -89,7 +89,7 @@ novip:https://www.novipnoad.com/s=
/zh/html5/ mdict字典搜索引擎: 长按底部右箭头弹出系统菜单=>添加搜索引擎=>第三行输入搜索引擎串。对于需要批量添加的用户,显示主屏时,可长按底部时钟按钮,点击编辑器,然后添加保存,清后台重启生效。mdict搜索引擎串有以下两类(推荐第一类)。 -i:5ifile:///.../xxx.mdx,xxx.mdd?app=https://uwebzh.netlify.app/en/searchurl/mdict/mdict.html#word=%s +i:5ifile:///.../xxx.mdx,xxx.mdd?app=https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/mdict/mdict.html#word=%s 其中"/.../xxx.mdx,xxx.mdd"为词典文件全路径。 i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,mdict/xxx.mdd#word=%s 对于这类搜索引擎,字典文件必须位于配置目录应用子目录"app"下。上述字典搜索引擎例子中文件"xxx.mdx"及"xxx.mdd"位于".../app/mdict"下。为方便文件操作,用户可符号链接"app"至任意公共目录。