uweb/en/input/index.html
James Feng Cao 1902b60b61 README: reword
2025-10-13 09:55:34 +08:00

96 lines
4 KiB
HTML

<!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 as 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 as input method
<br>
<span class="subtitle"></span>
</h1>
<ul class="tags">
</ul>
<h4 id="defaultinput">default.input</h4>
<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::@AddrBar%0A">Address Bar</a><br>
<a href="i:0gdefault.input::@^J@%0A">New line</a><br>
<a href="i:0gdefault.input::@^Z@%1A%0A">CTRL-Z</a><br>
<a href="i:0gdefault.input::@^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 &quot;default.input&quot;, each line of which defines common phrase for user inputs. If the phrase begins with &quot;@xxxx@&quot;, then &quot;xxxx&quot; part is the alias for the rest part of the string. Alias could be used for non-printable phrases.</p>
<h4 id="address-bar-autocompletion-as-input-method-when-starting-with-space">Address bar autocompletion as input method when starting with space</h4>
<p>&quot;default.autoc&quot; or other .autoc files when <a href="../tips/index.html#">choosen</a> are loaded for address bar autocompletion. If the address bar text starts with space, the selected text is treated as user input for focused element in the visible tab.</p>
<p>Here are a few links for AI prompts, you could put them in the file &quot;default.autoc&quot; or other .autoc files:</p>
<ul>
<li><a href="https://word.studio/prompts/">word.studio</a></li>
</ul>
<h4 id="long-text-can-be-kept-as-txt-file">Long text can be kept as txt file</h4>
<p>Click the following links to install menus displayed by long pressing the bookmark button (with star as icon) <a href="../links/index.html#">details</a>:<br>
<a href="i:0gdefault.link::Input::cinput%0A">Select utf8 text file as keyboard input</a></p>
</div>
<p>Last Modified: 12 October 2025<br>
update README<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">
&copy; 2018-2025 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>