From ac37de825e588d3a806b44cfa336f89e3c10cb3e Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Fri, 1 Dec 2023 16:09:30 +0800 Subject: [PATCH] rename pccopy to textprocess --- en/_posts/index.xml | 40 ++++----- en/bookmark/index.html | 7 +- en/changelog/index.html | 2 +- en/filenames/index.html | 6 +- en/index.html | 12 +-- en/index.xml | 40 ++++----- en/sitemap.xml | 152 +++++++++++++++++------------------ en/sitemap/index.html | 6 +- en/tags/clipboard/index.html | 4 +- en/tags/clipboard/index.xml | 14 ++-- en/tags/index.xml | 70 ++++++++-------- en/tags/pc/index.html | 4 +- en/tags/pc/index.xml | 14 ++-- en/tags/ssh/index.html | 4 +- en/tags/ssh/index.xml | 14 ++-- en/tags/termux/index.html | 12 +-- en/tags/termux/index.xml | 33 ++++---- en/tags/windows/index.html | 4 +- en/tags/windows/index.xml | 14 ++-- en/textprocess/index.html | 128 +++++++++++++++++++++++++++++ en/tips/index.html | 9 ++- sitemap.xml | 4 +- zh/_posts/index.xml | 4 +- zh/cmd/index.html | 6 +- zh/filemanager/index.html | 6 +- zh/filenames/index.html | 6 +- zh/index.html | 2 +- zh/index.xml | 4 +- zh/sitemap.xml | 28 +++---- zh/sitemap/index.html | 6 +- zh/tags/pc/index.html | 2 +- zh/tags/pc/index.xml | 4 +- zh/tags/ssh/index.html | 2 +- zh/tags/ssh/index.xml | 4 +- zh/tags/termux/index.html | 2 +- zh/tags/termux/index.xml | 4 +- zh/tags/windows/index.html | 2 +- zh/tags/windows/index.xml | 4 +- zh/tags/剪贴板/index.html | 2 +- zh/tags/剪贴板/index.xml | 4 +- zh/textprocess/index.html | 129 +++++++++++++++++++++++++++++ 41 files changed, 531 insertions(+), 283 deletions(-) create mode 100644 en/textprocess/index.html create mode 100644 zh/textprocess/index.html diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 98e2c7d..1c16844 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -92,20 +92,21 @@ andi freegpt teach-anything magickpen Wait for url from other devices berify: reverse image search for video Tips File handling and styling with home.css "home.css" (in current folder, parent folder or the "bookmark" folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs "<style>" tag for CSS. Install markdeep styling for markdown files -Bookmarks with secrets (POST instead of GET) The search engine (". +Bookmarks with secrets (POST instead of GET) The internal link "i:a1[url]? Tips /en/tips/ Mon, 16 Jan 2023 00:00:00 +0000 /en/tips/ - To show web pages in desktop mode: + Text processing for clipboard data: +On home screen, pressing the sharing button of the bottom toolbar popups the text processing menu for clipboard data. +To show web pages in desktop mode: PC button + option "wide viewport" + global js "force page resizable". Playing audio when screen off Option "Floating video" + video fullscreen playing -Use POST-type search engine as bookmark to auto login Multiple home screens and Next/Prev page: -home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .search), home3. +home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), . Address bar command line @@ -191,22 +192,6 @@ Check all checkboxes Uncheck all checkboxes Toggle all checkboxes in forms Enable selection - - - Text selection - /en/pccopy/ - Sat, 23 Apr 2022 00:00:00 +0000 - /en/pccopy/ - Click the following links to install menus for long pressing the button "link": -Copy selected text with html format to clipboard -Search with home screen -google Translate -bing translate -deepL -The file "default.select" defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: -[Name]:[mimetype]:[command line] -[mimetype] specifies input/output for [command line]. -It formats as "[input mimetype]/[output mimetype]". CSS styles @@ -305,5 +290,20 @@ The "[file extension]" part can have at most two-segment of ex Swipe left/right near the toolbar to switch window; fling left/right to switch to the last/first window. Swiping on the top part of content window (near the top address bar by default) triggers corresponding link in the file "default. + + Text selection/processing + /en/textprocess/ + Mon, 01 Jan 0001 00:00:00 +0000 + /en/textprocess/ + Click the following links to install menus for long pressing the button "link": +Copy selected text with html format to clipboard +Search with home screen +google Translate +bing translate +deepL +The file "default.select" defines text processing menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +[Name]:[mimetype]:[command line] +[mimetype] specifies input/output for [command line]. + diff --git a/en/bookmark/index.html b/en/bookmark/index.html index eeec539..afa417c 100644 --- a/en/bookmark/index.html +++ b/en/bookmark/index.html @@ -60,8 +60,7 @@

"home.css" (in current folder, parent folder or the "bookmark" folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs "<style>" tag for CSS.

Install markdeep styling for markdown files

Bookmarks with secrets (POST instead of GET)

-

The search engine (".search") file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace "xxx" with real user and password):
-box cloud:POST:type=webdav&url=https://dav.box.com/dav&username=xxx&password=xxx:https://demo.filestash.app/login

+

The internal link "i:a1[url]?[post data]" sends http "POST" request to server.

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.

@@ -86,8 +85,8 @@ box cloud:POST:type=webdav&url=https://dav.box.com/dav&username=xxx& SMILES2structure

-

Last Modified: 26 June 2023
-add toolbar autohide
+

Last Modified: 1 December 2023
+rename pccopy.md to textprocess.md


 

+ + +
+ + + + + + + +
+
+ +
+

Text selection/processing +
+ +

+ +

Click the following links to install menus for long pressing the button "link":
+Copy selected text with html format to clipboard

+

Search with home screen

+

google Translate

+

bing translate

+

deepL

+

The file "default.select" defines text processing menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
+[Name]:[mimetype]:[command line]

+

[mimetype] specifies input/output for [command line].
+It formats as "[input mimetype]/[output mimetype]".
+[input mimetype] can be the following:

+ +

[output mimetype] is same as the one defined in "Commands".

+ +

checked.js: Evaluate checked.js and return value as standard input for the command line. For any file url ending with "/", optionally append "?[prefix][[postfix]]". For example, "file:///sdcard/?.png" lists all .png files under the folder "/sdcard". Select files and process them with checked.js(such as "copy to PC" as the later example).

+

default.select sample file:
+copy2addressbar:/uweb:printf i:15;cat
+copy2PCClipboard::ssh [user:password]@192.168.2.102 "DISPLAY=:0 xsel -i"
+richtext2PCClipboard:html:ssh [user:password]@192.168.2.102 "DISPLAY=:0 xsel -i"
+copyFiles:checked.js:while read fname;do scp $fname [user:password]@192.168.2.102:Downloads/.; done

+

Here we assume that the user PC has IP address as "192.168.2.102".
+To use ssh or scp, users need to install uweb compatible Termux provided on the uweb apk download page, and install openssl under termux (apt install openssl).
+PCs need command "xsel" available to operate on copy/paste.

+ +
+

Last Modified: 1 December 2023
+rename pccopy.md to textprocess.md
+


+

+ + + + + diff --git a/en/tips/index.html b/en/tips/index.html index d31eda0..a5f5e4e 100644 --- a/en/tips/index.html +++ b/en/tips/index.html @@ -46,11 +46,12 @@ -

To show web pages in desktop mode:
+

Text processing for clipboard data:
+On home screen, pressing the sharing button of the bottom toolbar popups the text processing menu for clipboard data.

+

To show web pages in desktop mode:
PC button + option "wide viewport" + global js "force page resizable".

Playing audio when screen off
Option "Floating video" + video fullscreen playing

-

Use POST-type search engine as bookmark to auto login

Multiple home screens and Next/Prev page:
home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .search), home3.mht(or .html or .search) ... with long pressing the left arrow.

Click download button on the bottom toolbar to save remote webpage, the resulted offline file can be used as one of the home screens.

@@ -58,8 +59,8 @@ home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... With bookmark, configuration folders can be symbolic linked to other public folders or managed by 3rd party file managers via termux.

-

Last Modified: 2 April 2023
-sync newbinggogo
+

Last Modified: 1 December 2023
+rename pccopy.md to textprocess.md


 

+ + +
+ + + + + + + +
+
+ +
+

操作选中(富)文本/元素 +
+ +

+ +

点击以下链接可安装长按“链接”按钮菜单:
+bing翻译
+papago翻译

+

iciba
+百度翻译
+有道翻译
+搜狗翻译

+

彩云小译
+deepL

+

点击安装"保存文本"等

+

重启浏览器,长按“链接”按钮,将弹出菜单。若用户当前窗口并无选中文本,则选取整个页面作相应操作,否则以选中文本为准。

+

配置文件"default.select"定义了超微浏览器对选中(富)文本/元素进行的操作。没有任何选中元素则以整个网页为操作对象。每行格式如下:
+[菜单名]:[mimetype]:[命令行]

+

选中(富)文本作为命令行的标准输入,而标准输出根据mimetype进行相应处理。
+mimetype用来表示命令的输入输出类型。格式为"[输入mimetype]/[输出mimetype]","[输入mimetype]"可为"html"或空(txt格式)或为以超微配置目录为基准的相对路径.js文件名; 输出可为标准的mimetype或超微特殊扩充。如:
+html/text/html: 选中富文本为html格式, 输出mimetype为text/html。
+/uweb: 选中文本为txt格式, 输出mimetype为特殊扩充uweb,超微将把输出作为链接来处理。
+/uwebA: 超微将把输出作为"单一"链接来处理。
+/termux: 命令运行结果将作为termux下命令运行。
+checked.js: 运行配置目录下checked.js,其返回值作为命令行标准输入。对任何目录型(以“/”结尾)文件url,后面可附"?[文件前缀][[文件后缀]]"。譬如"file:///sdcard/?.png"会列举出"/sdcard"目录下所有.png文件。此时选择选定文件,则可利用checked.js复制文件至PC。(参看下面具体配置)

+

配置default.select如下:
+复制文本到地址栏:/uweb:printf i:15;cat
+复制至PC剪贴板::ssh [user:password]@192.168.2.102 "DISPLAY=:0 xsel -i"
+复制富文本至PC剪贴板:html:ssh [user:password]@192.168.2.102 "DISPLAY=:0 xsel -i"
+复制文件至PC:checked.js:while read fname;do scp $fname [user:password]@192.168.2.102:Downloads/.; done

+

如使用剪贴板功能手机需安装uweb定制Termux,并在termux下安装openssl。
+此处假定远程PC的IP地址为192.168.2.102,PC已经开通了ssh服务。建议用户配置ssh服务为免密码登录,此时用户无需将密码写入文件default.select。用户PC上安装有xsel剪贴板工具。使用其它工具请酌情修改。

+

采用以上配置,笔记将储存在应用内部目录下文件note.txt或note.html中(富文本)。命名笔记储存文件则由用户在地址栏输入框内指定。

+

手机其它应用中的文本可选中后分享给超微浏览器,再由超微浏览器作笔记或进一步分享给PC。如果其它应用无法分享选中文本,这种情况可以先复制文本至剪贴板。长按链接按钮选择适当功能即可复制至PC剪贴板。

+

Windows PC

+

对Windows PC而言,vista及以后自带clip.exe,此时配置如下:
+复制文本至PC剪贴板::ssh [user:password]@192.168.2.102 clip.exe

+

其它推荐工具(读取PC剪贴板):
+pclip

+ +
+

Last Modified: 17 April 2023
+rename pccopy.md to textprocess.md
+


+

+ + + + +