Compare commits

...

2 commits

Author SHA1 Message Date
James Feng Cao
cd9dfe966d add dictionaries with local indexes and remote content 2022-09-27 17:36:44 +08:00
James Feng Cao
91ee053229 add dictionaries with local indexes and remote content 2022-09-27 17:33:31 +08:00
15 changed files with 269 additions and 53 deletions

View file

@ -236,6 +236,24 @@ These javascript files are in the following format:
The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description> The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description>
</item> </item>
<item>
<title>Tools</title>
<link>/en/tools/</link>
<pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
<guid>/en/tools/</guid>
<description>This page is for uweb browser.
install tdict_local (search with local indexes and remote content) Click to install the following local indexes with corresponding search engines (for test only).
install the indexes for &amp;quot;American heritage dictionary (en-en&amp;amp;zh with AHD/D.J./K.K. pronunciation)&amp;quot;
Install AHD to home screen
Indexes for &amp;quot;研究社新編英和活用大辞典(English usage: en-en&amp;amp;ja)&amp;quot;
Install &amp;quot;English usage (en-en&amp;amp;ja)&amp;quot;
Indexes for SOED6
install SOED
The following dictionaries work better with markdown processor.
Install markdown processor</description>
</item>
<item> <item>
<title>Custom file handling</title> <title>Custom file handling</title>
<link>/en/filecap/</link> <link>/en/filecap/</link>

View file

@ -174,6 +174,12 @@
</a> </a>
</li> </li>
<li class="post">
<a href="tools/index.html">
<span>Tools</span>
</a>
</li>
<li class="post"> <li class="post">
<a href="filecap/index.html"> <a href="filecap/index.html">
<span>Custom file handling</span> <span>Custom file handling</span>

View file

@ -349,6 +349,24 @@ These javascript files are in the following format:
The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description> The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description>
</item> </item>
<item>
<title>Tools</title>
<link>/en/tools/</link>
<pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
<guid>/en/tools/</guid>
<description>This page is for uweb browser.
install tdict_local (search with local indexes and remote content) Click to install the following local indexes with corresponding search engines (for test only).
install the indexes for &amp;quot;American heritage dictionary (en-en&amp;amp;zh with AHD/D.J./K.K. pronunciation)&amp;quot;
Install AHD to home screen
Indexes for &amp;quot;研究社新編英和活用大辞典(English usage: en-en&amp;amp;ja)&amp;quot;
Install &amp;quot;English usage (en-en&amp;amp;ja)&amp;quot;
Indexes for SOED6
install SOED
The following dictionaries work better with markdown processor.
Install markdown processor</description>
</item>
<item> <item>
<title>Custom file handling</title> <title>Custom file handling</title>
<link>/en/filecap/</link> <link>/en/filecap/</link>

View file

@ -370,6 +370,45 @@
hreflang="en" hreflang="en"
href="/en/longclick/" href="/en/longclick/"
/> />
</url><url>
<loc>/en/tags/tdict/</loc>
<lastmod>2020-09-06T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/tdict/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/tdict/"
/>
</url><url>
<loc>/en/tags/tools/</loc>
<lastmod>2020-09-06T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/tools/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/tools/"
/>
</url><url>
<loc>/en/tools/</loc>
<lastmod>2020-09-06T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tools/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tools/"
/>
</url><url> </url><url>
<loc>/en/tags/curl/</loc> <loc>/en/tags/curl/</loc>
<lastmod>2020-08-24T00:00:00+00:00</lastmod> <lastmod>2020-08-24T00:00:00+00:00</lastmod>

View file

@ -21,7 +21,11 @@
<li><a href="ssh">ssh</a> 1</li> <li><a href="ssh">ssh</a> 1</li>
<li><a href="termux">termux</a> 2</li> <li><a href="tdict">tdict</a> 1</li>
<li><a href="termux">termux</a> 3</li>
<li><a href="tools">tools</a> 1</li>
<li><a href="Windows">Windows</a> 1</li> <li><a href="Windows">Windows</a> 1</li>

View file

@ -78,6 +78,24 @@
<description></description> <description></description>
</item> </item>
<item>
<title>tdict</title>
<link>/en/tags/tdict/</link>
<pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
<guid>/en/tags/tdict/</guid>
<description></description>
</item>
<item>
<title>tools</title>
<link>/en/tags/tools/</link>
<pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
<guid>/en/tags/tools/</guid>
<description></description>
</item>
<item> <item>
<title>curl</title> <title>curl</title>
<link>/en/tags/curl/</link> <link>/en/tags/curl/</link>

View file

@ -12,32 +12,16 @@
<pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate> <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
<guid>/en/tools/</guid> <guid>/en/tools/</guid>
<description>Install tdict (local search with remote content) With tdict, <description>This page is for uweb browser.
安装双解字典索引 install tdict_local (search with local indexes and remote content) Click to install the following local indexes with corresponding search engines (for test only).
安装双解字典至主屏 install the indexes for &amp;quot;American heritage dictionary (en-en&amp;amp;zh with AHD/D.J./K.K. pronunciation)&amp;quot;
英语活用大词典索引 Install AHD to home screen
安装英语活用至主屏 Indexes for &amp;quot;研究社新編英和活用大辞典(English usage: en-en&amp;amp;ja)&amp;quot;
汉语大词典索引 Install &amp;quot;English usage (en-en&amp;amp;ja)&amp;quot;
安装汉语词典至主屏 Indexes for SOED6
soed6索引 install SOED
安装soed至主屏 The following dictionaries work better with markdown processor.
以下字典最好安装markdown处理器。 Install markdown processor</description>
安装markdown处理器
Merriam Webster International Unabridged 索引
安装mwi至主屏
ode3索引
安装ode至主屏
oed索引
安装oed至主屏
大英百科索引
安装be至主屏
Merriam Webster Unabridged
安装mwu至主屏
以下工具需先安装uweb定制Termux应用并启动一次完成初始化。
安装tdict词典工具 安装完tdict词典工具以后对dict目录下的汉语大字典文件如&amp;quot;dictXXX.xz&amp;quot;可在主屏.search文件配置如下字典查询
汉语大字典:c:zd xz %s dictXXX
字典文件目录可通过修改termux下“~/share”符号链接来改动。也可使用其它压缩方式如zst此时配置变为&amp;quot;zd zst %s dictXXX&amp;quot;相应的字典文件名为dictXXX.zst。用户需提供zsttool工具解压文本。
插件页面也提供了词典方案,但如果手动配置会比较麻烦。</description>
</item> </item>
</channel> </channel>

View file

@ -49,6 +49,12 @@
</a> </a>
</li> </li>
<li class="post">
<a href="../../tools">
<span>Tools</span>
</a>
</li>
<li class="post"> <li class="post">
<a href="../../filecap"> <a href="../../filecap">
<span>Custom file handling</span> <span>Custom file handling</span>

View file

@ -24,6 +24,24 @@ It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
&amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description> &amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description>
</item> </item>
<item>
<title>Tools</title>
<link>/en/tools/</link>
<pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
<guid>/en/tools/</guid>
<description>This page is for uweb browser.
install tdict_local (search with local indexes and remote content) Click to install the following local indexes with corresponding search engines (for test only).
install the indexes for &amp;quot;American heritage dictionary (en-en&amp;amp;zh with AHD/D.J./K.K. pronunciation)&amp;quot;
Install AHD to home screen
Indexes for &amp;quot;研究社新編英和活用大辞典(English usage: en-en&amp;amp;ja)&amp;quot;
Install &amp;quot;English usage (en-en&amp;amp;ja)&amp;quot;
Indexes for SOED6
install SOED
The following dictionaries work better with markdown processor.
Install markdown processor</description>
</item>
<item> <item>
<title>Custom file handling</title> <title>Custom file handling</title>
<link>/en/filecap/</link> <link>/en/filecap/</link>

View file

@ -12,32 +12,16 @@
<pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate> <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
<guid>/en/tools/</guid> <guid>/en/tools/</guid>
<description>Install tdict (local search with remote content) With tdict, <description>This page is for uweb browser.
安装双解字典索引 install tdict_local (search with local indexes and remote content) Click to install the following local indexes with corresponding search engines (for test only).
安装双解字典至主屏 install the indexes for &amp;quot;American heritage dictionary (en-en&amp;amp;zh with AHD/D.J./K.K. pronunciation)&amp;quot;
英语活用大词典索引 Install AHD to home screen
安装英语活用至主屏 Indexes for &amp;quot;研究社新編英和活用大辞典(English usage: en-en&amp;amp;ja)&amp;quot;
汉语大词典索引 Install &amp;quot;English usage (en-en&amp;amp;ja)&amp;quot;
安装汉语词典至主屏 Indexes for SOED6
soed6索引 install SOED
安装soed至主屏 The following dictionaries work better with markdown processor.
以下字典最好安装markdown处理器。 Install markdown processor</description>
安装markdown处理器
Merriam Webster International Unabridged 索引
安装mwi至主屏
ode3索引
安装ode至主屏
oed索引
安装oed至主屏
大英百科索引
安装be至主屏
Merriam Webster Unabridged
安装mwu至主屏
以下工具需先安装uweb定制Termux应用并启动一次完成初始化。
安装tdict词典工具 安装完tdict词典工具以后对dict目录下的汉语大字典文件如&amp;quot;dictXXX.xz&amp;quot;可在主屏.search文件配置如下字典查询
汉语大字典:c:zd xz %s dictXXX
字典文件目录可通过修改termux下“~/share”符号链接来改动。也可使用其它压缩方式如zst此时配置变为&amp;quot;zd zst %s dictXXX&amp;quot;相应的字典文件名为dictXXX.zst。用户需提供zsttool工具解压文本。
插件页面也提供了词典方案,但如果手动配置会比较麻烦。</description>
</item> </item>
</channel> </channel>

79
en/tools/index.html Normal file
View file

@ -0,0 +1,79 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/uwebzh/style.css" type="text/css" />
<title>Tools</title>
<script type="text/javascript">
function findLang(){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
return i;
}
return 0;
}
function nav2(page){
let i = findLang();
location.href = location.href.substring(0,i+1)+page;
}
function nav2Lang(lang){
let i = findLang();
let href = location.href;
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
}
</script>
</head>
<body>
<header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
<nav>
</nav>
</header>
<br />
<div class="container">
<h1 class="title">Tools
<br>
<span class="subtitle"></span>
</h1>
<ul class="tags">
<li><a href="../tags/termux">termux</a> </li>
<li><a href="../tags/tools">tools</a> </li>
<li><a href="../tags/tdict">tdict</a> </li>
</ul>
<p>This page is for <a href="../index.html">uweb browser</a>.</p>
<h4 id="a-hrefi0bhttpsfastlyjsdelivrnetghtorappinfouwebjsbintdict_loctargzinstall-tdict_local-search-with-local-indexes-and-remote-contenta"><a href="i:0bhttps://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/tdict_loc.tar.gz">install tdict_local (search with local indexes and remote content)</a></h4>
<p>Click to install the following local indexes with corresponding search engines (for test only).<br>
<a href="i:0hahd.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/ahd.tidx">install the indexes for &quot;American heritage dictionary (en-en&amp;zh with AHD/D.J./K.K. pronunciation)&quot;</a><br>
<a href="i:00AHD:d:text/html:tdict_loc ahd \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/HxY9QT5cdp63ZPK/download?path=%2F&files=ahd.dict\':">Install AHD to home screen</a></p>
<p><a href="i:0henja.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/enja.tidx">Indexes for &quot;研究社新編英和活用大辞典(English usage: en-en&amp;ja)&quot;</a><br>
<a href="i:00enja:d:text/html:tdict_loc enja \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=enja.dict\':">Install &quot;English usage (en-en&amp;ja)&quot;</a></p>
<p><a href="i:0hsoed.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/soed.tidx">Indexes for SOED6</a><br>
<a href="i:00soed:d:text/html:tdict_loc soed \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=soed.dict\':">install SOED</a></p>
<p>The following dictionaries work better with markdown processor.<br>
<a href="i:0hmd.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/txt/mdme.html">Install markdown processor</a><br>
<a href="i:0hmwi.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/mwi.tidx">Indexes for &quot;Merriam Webster International Unabridged&quot;</a><br>
<a href="i:00mwi:d:text/html:tdict_loc mwi \'%s\'|loc2html text/html.md.html \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=mwi.dict\':">Install MWI</a></p>
<p><a href="i:0hode3.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/ode3.tidx">Indexes for ODE3</a><br>
<a href="i:00ode:d:text/html:tdict_loc ode3 \'%s\'|loc2html text/html.md.html \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=ode3.dict\':">Install ODE3</a></p>
<p><a href="i:0hoed.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/oed.tidx">Indexes for OED</a><br>
<a href="i:00oed:d:text/html:tdict_loc oed \'%s\'|loc2html text/html.md.html https://1drv.ws/u/s!Am0GiFVIDNbZi0IhtTMjeR6rdmd5:">Install OED</a></p>
<p><a href="i:0hbe10.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/be10.tidx">Indexes for &quot;Encyclopedia Britannica&quot;</a><br>
<a href="i:00be10:d:text/html:tdict_loc be10 \'%s\'|loc2html text/html.md.html https://1drv.ws/u/s!Am0GiFVIDNbZi0WfGAwo1S-kq1Lv:">Install &quot;Encyclopedia Britannica&quot;</a></p>
</div>
</body>
</html>

View file

@ -393,12 +393,42 @@
</url><url> </url><url>
<loc>/zh/tags/tdict/</loc> <loc>/zh/tags/tdict/</loc>
<lastmod>2020-09-06T00:00:00+00:00</lastmod> <lastmod>2020-09-06T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/tdict/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/tdict/"
/>
</url><url> </url><url>
<loc>/zh/tags/tools/</loc> <loc>/zh/tags/tools/</loc>
<lastmod>2020-09-06T00:00:00+00:00</lastmod> <lastmod>2020-09-06T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/tools/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/tools/"
/>
</url><url> </url><url>
<loc>/zh/tools/</loc> <loc>/zh/tools/</loc>
<lastmod>2020-09-06T00:00:00+00:00</lastmod> <lastmod>2020-09-06T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tools/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tools/"
/>
</url><url> </url><url>
<loc>/zh/tags/curl/</loc> <loc>/zh/tags/curl/</loc>
<lastmod>2020-08-24T00:00:00+00:00</lastmod> <lastmod>2020-08-24T00:00:00+00:00</lastmod>

View file

@ -30,6 +30,10 @@
<header class='header'> <header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
<nav> <nav>
</nav> </nav>
</header> </header>

View file

@ -30,6 +30,10 @@
<header class='header'> <header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
<nav> <nav>
</nav> </nav>
</header> </header>

View file

@ -30,6 +30,10 @@
<header class='header'> <header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
<nav> <nav>
</nav> </nav>
</header> </header>