mirror of
https://github.com/torappinfo/uweb.git
synced 2026-03-14 14:45:45 +01:00
uweb1086: alias support for common phrases for input method
This commit is contained in:
parent
778dec7cdc
commit
357512f654
8 changed files with 134 additions and 26 deletions
File diff suppressed because one or more lines are too long
|
|
@ -71,7 +71,7 @@
|
|||
"<a href="file:///data/data/info.torapp.uweb/files/default.link">default.link</a>":<a href="../links/index.html#">links</a><br>
|
||||
"<a href="file:///data/data/info.torapp.uweb/files/default.rjs">default.rjs</a>":<a href="../rjs/index.html#">Remote javascript</a><br>
|
||||
"<a href="file:///data/data/info.torapp.uweb/files/default.select">default.select</a>":<a href="../textprocess/index.html#">menus for selected text</a><br>
|
||||
"<a href="file:///data/data/info.torapp.uweb/files/default.input">default.input</a>": common phrases for user inputs<br>
|
||||
"<a href="file:///data/data/info.torapp.uweb/files/default.input">default.input</a>": common phrases for user inputs. If the phrase begins with "@xxxx@", then "xxxx" part is the alias for the rest part of the string. Alias could be used for non-printable phrase.<br>
|
||||
"<a href="file:///data/data/info.torapp.uweb/files/default.gesture">default.gesture</a>": to define <a href="../gesture/index.html#">gestures on the top part of the content window</a>. The file format is same as <a href="../links/index.html">default.link</a>,<br>
|
||||
"<a href="file:///data/data/info.torapp.uweb/files/default.gesture2">default.gesture2</a>": gestures on the right side similar to default.gesture.<br>
|
||||
"<a href="file:///data/data/info.torapp.uweb/files/default.button">default.button</a>": to re-define button pressing functionalities. The file format is same as <a href="../links/index.html#">default.link</a>, each line represents action from the last button to the first.<br>
|
||||
|
|
@ -103,8 +103,8 @@
|
|||
<p>"<a href="file:///data/data/info.torapp.uweb/files/shortcut/">shortcut/</a>": dynamical shortcut, if not exist, then default to "bookmark".</p>
|
||||
|
||||
</div>
|
||||
<p>Last Modified: 30 April 2024<br>
|
||||
urlInc() prefers .search to .html<br>
|
||||
<p>Last Modified: 13 December 2024<br>
|
||||
Common phrases for input method<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,12 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="post">
|
||||
<a href="input/index.html#">
|
||||
<span>Common phrases for input method</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="globalcss/index.html#">
|
||||
<span>CSS styles</span>
|
||||
|
|
|
|||
11
en/index.xml
11
en/index.xml
File diff suppressed because one or more lines are too long
85
en/input/index.html
Normal file
85
en/input/index.html
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/en/input/" />
|
||||
|
||||
<link rel="stylesheet" href="../style.css#" type="text/css" />
|
||||
<title>Common phrases for input method</title>
|
||||
<script>
|
||||
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>
|
||||
|
||||
<nav>
|
||||
</nav>
|
||||
</header>
|
||||
<br />
|
||||
|
||||
<div class="container">
|
||||
<h1 class="title">Common phrases for input method
|
||||
<br>
|
||||
<span class="subtitle"></span>
|
||||
</h1>
|
||||
<ul class="tags">
|
||||
|
||||
</ul>
|
||||
<p>Click the following links to install menus popped by long pressing the share button (with arrow-out-of-square as icon) on the bottom toolbar:<br>
|
||||
<a href="i:0gdefault.input::@Newline@%0A">New line</a><br>
|
||||
<a href="i:0gdefault.input::@CTRL-Z@%1A%0A">CTRL-Z</a><br>
|
||||
<a href="i:0gdefault.input::@CTRL-Y@%19%0A">CTRL-Y</a></p>
|
||||
<p>Long pressing the share button in <a href="../index.html#">uweb browser</a> will popup menus defined in file "default.input", each line of which defines common phrase for user inputs. If the phrase begins with "@xxxx@", then "xxxx" part is the alias for the rest part of the string. Alias could be used for non-printable phrases.</p>
|
||||
|
||||
</div>
|
||||
<p>Last Modified: 14 December 2024<br>
|
||||
Common phrases for input method<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
<script id='jsgiscus'
|
||||
src='https://giscus.app/client.js'
|
||||
data-repo="torappinfo/uweb"
|
||||
data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
|
||||
data-category="Announcements"
|
||||
data-category-id="DIC_kwDOEgNLGc4CQjsh"
|
||||
data-mapping="title"
|
||||
data-strict="0"
|
||||
data-reactions-enabled="1"
|
||||
data-emit-metadata="0"
|
||||
data-input-position="top"
|
||||
data-theme="light"
|
||||
data-lang="en"
|
||||
data-loading="lazy"
|
||||
crossorigin="anonymous" async>
|
||||
</script>
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
© 2018-2024 Richard H. Cao
|
||||
</div>
|
||||
</footer>
|
||||
<!-- 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/>. -->
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -2,6 +2,35 @@
|
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/_posts/</loc>
|
||||
<lastmod>2024-12-14T11:29:52+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/zh/_posts/"
|
||||
/>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/en/_posts/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/input/</loc>
|
||||
<lastmod>2024-12-14T11:29:52+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/</loc>
|
||||
<lastmod>2024-12-14T11:29:52+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/zh/"
|
||||
/>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/en/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/search/</loc>
|
||||
<lastmod>2024-12-12T11:16:27+08:00</lastmod>
|
||||
<xhtml:link
|
||||
|
|
@ -27,32 +56,6 @@
|
|||
hreflang="en"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/en/topposts/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/</loc>
|
||||
<lastmod>2024-12-13T10:23:46+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/zh/"
|
||||
/>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/en/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/_posts/</loc>
|
||||
<lastmod>2024-12-12T10:20:09+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/zh/_posts/"
|
||||
/>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
href="https://jamesfengcao.gitlab.io/uweb/en/_posts/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/globalcss/</loc>
|
||||
<lastmod>2024-10-13T16:43:18+08:00</lastmod>
|
||||
|
|
@ -313,7 +316,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/filenames/</loc>
|
||||
<lastmod>2024-04-30T20:45:24+08:00</lastmod>
|
||||
<lastmod>2024-12-13T21:51:51+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script>var verCode = %1%;</script>
|
||||
<script>
|
||||
(function(){
|
||||
let latestV = 1085;
|
||||
let latestV = 1086;
|
||||
try {
|
||||
if(verCode>=latestV) {
|
||||
var ls = navigator.languages;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<sitemap>
|
||||
<loc>https://jamesfengcao.gitlab.io/uweb/en/sitemap.xml</loc>
|
||||
|
||||
<lastmod>2024-12-13T10:23:46+08:00</lastmod>
|
||||
<lastmod>2024-12-14T11:29:52+08:00</lastmod>
|
||||
|
||||
</sitemap>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue