update search engines
[uweb.git] / zh / html5 / index.html
blob3b2582f9d553cff37185df3189a5a0df8a35fe66
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 <link rel="stylesheet" href="../style.css#" type="text/css" />
8 <title>html5应用</title>
9 <script type="text/javascript">
10 function findLang(){
11 let href = location.href;
12 for(let i=href.length-1;i>0;i--){
13 if('/'==href.charAt(i) && '/'==href.charAt(i-3))
14 return i;
16 return 0;
18 function nav2(page){
19 let i = findLang();
20 location.href = location.href.substring(0,i+1)+page;
22 function nav2Lang(lang){
23 let i = findLang();
24 let href = location.href;
25 location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
27 </script>
28 </head>
29 <body>
30 <header class='header'>
31 <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>
34 <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
37 <nav>
38 </nav>
39 </header>
40 <br />
42 <div class="container">
43 <h1 class="title">html5应用
44 <br>
45 <span class="subtitle"></span>
46 </h1>
47 <ul class="tags">
49 </ul>
50 <p>mdict字典搜索引擎:<br>
51 <a href="../../en/bookmark/index.html#">书签页面</a>可字典扫描并自动添加。<br>
52 长按底部右箭头弹出系统菜单=&gt;添加搜索引擎=&gt;第三行输入搜索引擎串。对于需要批量添加的用户,显示主屏时,可长按底部时钟按钮,点击编辑器,然后添加保存,清后台重启生效。mdict搜索引擎串有以下两类(推荐第一类)。</p>
53 <p>i:5ifile:///.../xxx.mdx,xxx.mdd?app=https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/mdict/mdict.html#word=%s</p>
54 <p>其中&quot;/.../xxx.mdx,xxx.mdd&quot;为词典文件全路径。</p>
55 <p>i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,mdict/xxx.mdd#word=%s</p>
56 <p>对于这类搜索引擎,字典文件必须位于配置目录应用子目录&quot;app&quot;下。上述字典搜索引擎例子中文件&quot;xxx.mdx&quot;&quot;xxx.mdd&quot;位于&quot;.../app/mdict&quot;下。为方便文件操作,用户可<a href="../../en/bookmark/index.html#">符号链接&quot;app&quot;至任意公共目录</a></p>
57 <p><a target="_self" href="i:0happ/txtview.html:../searchurl/txt/txtview.html">点击安装超大文件阅读器(支持txt, html, markdown)</a><br>
58 <a target="_self" href="i:0happ/markdeep.html:../searchurl/txt/markdeep.html">点击安装超大文件阅读器(markdeep版, latex, diagram,graphviz等)</a><br>
59 <a target="_self" href="i:0happ/plyr.html:../searchurl/txt/plyr.cfg">点击安装plyr视频播放器</a><br>
60 <a target="_self" href="i:0happ/dplayer.html:../searchurl/txt/dplayer.html">点击安装dplayer视频播放器</a><br>
61 <a target="_self" href="i:0happ/pdfviewer.html:../searchurl/txt/pdfviewer.html">点击安装pdf阅读器</a><br>
62 <a target="_self" href="i:0happ/epub.html:../searchurl/txt/epub.html">点击安装epub阅读器(作者:llili)</a><br>
63 <a target="_self" href="i:0happ/djvu.html:../searchurl/txt/djvu.html">点击安装djvu阅读器</a><br>
64 相应的菜单安装可见<a href="../urls/index.html#">浏览器特色服务</a></p>
65 <p>超微配置目录下的子目录名如果以&quot;app&quot;开始(譬如&quot;appPDF&quot;),则这些&quot;app&quot;开头目录树下放置的html5应用将可获得功能增强。</p>
66 <p><a href="../filecap/index.html#">配置default.filecap</a>并打开选项“文件预处理”,清后台重启浏览器后超微可直接阅读应用对应格式文件。<br>
67 <a target="_self" href="i:0gdefault.filecap:../searchurl/txt/filecap.cfg">点击配置pdf.js,djvu.js,epub.js,超大文件阅读器</a></p>
68 <p>超大文件阅读器txtview.html url如下:<br>
69 file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=[url]#page=[xxx]<br>
70 file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=[url]#offset=[xxxx]&amp;[length]<br>
71 file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=[url]#page=[xxx]<br>
72 file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=[url]#offset=[xxxx]&amp;[length]<br>
73 譬如&quot;#offset=10000&amp;500&quot;会访问超大文件偏移量10000处长度为500的内容。<br>
74 所有阅读器均支持箭头按钮(短按前进按钮或长按后退按钮)自动翻页。</p>
75 <p>比较有用的是mozilla的pdf.js,可用来显示在线或本地pdf文件。url如下:<br>
76 file:///data/user/0/info.torapp.uweb/files/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx]<br>
77 则浏览器直接跳转到pdf文件指定页。与主屏多引擎搜索及少量脚本结合使用,可对任何pdf文件进行字典检索。</p>
78 <p>下面是一些类似的应用:<br>
79 djvu.js应用的访问url如下:<br>
80 file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx]</p>
81 <p>epub.js<br>
82 sampotts/plyr : video, YouTube and Vimeo player<br>
83 videojs/video.js<br>
84 bilibili/flv.js<br>
85 MoePlayer/DPlayer<br>
86 Streamedian/html5_rtsp_player<br>
87 MoePlayer/APlayer : music player</p>
89 </div>
90 <p>Last Modified: 2 April 2024<br>
91 add js function in README<br>
92 <pre></pre>
93 </p>
95 <script id='jsgiscus'
96 src='https://giscus.app/client.js'
97 data-repo="torappinfo/uweb"
98 data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
99 data-category="Announcements"
100 data-category-id="DIC_kwDOEgNLGc4CQjsh"
101 data-mapping="title"
102 data-strict="0"
103 data-reactions-enabled="1"
104 data-emit-metadata="0"
105 data-input-position="top"
106 data-theme="light"
107 data-lang="en"
108 data-loading="lazy"
109 crossorigin="anonymous" async>
110 </script>
112 <footer class="site-footer">
113 <div class="container">
114 &copy; 2018-2024 Richard H. Cao
115 </div>
116 </footer>
117 <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
120 </body>
121 </html>