西夏文在线输入法 Tangut IME Online
Tangut IME Online
A lightweight web app input tool for Tangut text using dictionaries from 古今文字集成. Features include input, editing, copying, importing, exporting, and reverse lookup (for XHZD only), which will be provided after a dict.yaml file is loaded.
网页端西夏文输入,作为古今文字集成所提供跨平台输入法的辅助。载入输入法字典文件后,可提供输入、编辑、复制导出、导入、反查(反查功能目前仅限夏汉字典)。
Load the Dictionary 载入字典
可从古今文字集成下载如下基于RIME跨平臺輸入方案,择一将其中后缀为dict.yaml的文件载入到浏览器的本地储存之中。网页初始没有任何字典,需要手动加载。
- You can download the input dictionaries from 古今文字集成. After extracting the ZIP files, locate the yaml files. This tool supports 跨平臺版 | Cross-platform Edition of the following:
- 夏漢字典序號和四角號碼輸入法
- 索號和四角號碼輸入法
- 西夏文部件輸入法
- Load and re-load any of the "dict.yaml" files via the upload button, which is necessary since this tool initially doesn't have any built-in dictionaries. Once loaded, the dictionary is saved in your browser's local storage and will persist across sessions unless you delete it.
Input & Edit 编辑和输入
界面分为四个区域:输入区、候选区、虚拟键盘、工具栏。
The interface is divided into four parts: the input area, the candidate area, the virtual numpad, and the toolbar.
输入区中,通过在输入框键入对应的码字以匹配候选字。候选字过多时,可通过点击Prev/Next按钮或键入PageUp/PageDown 翻页。单击已经择定的西夏文字的左侧或右侧,可以将输入框移动到该文字的左侧或右侧。文本亦存储在浏览器本地,下次打开仍可使用。
In the input area, type a code in the green input box to view candidates. Candidate pages can be navigated by clicking the Prev/Next buttons or pressing PageUp/PageDown. The input box can be moved before (or after) a character by double-clicking its left (or right) side. Tangut characters (or components) that take the current typed code as their prefix are listed in the candidate area. The text will also be kept in the local storage of your browser.
使用退格 Backspace 键或虚拟的退格按钮以删除码字的最后一位。若码字为空且输入框前方有已经择定的文字,再次退格则会删除此文字。
Use the Backspace key or the virtual backspace button to delete the last digit/character of the code. If the input box is empty, an additional backspace will then delete the previous Tangut character if there is one.
键入候选文字所对应的字母或数字,抑或点击该文字,皆能选定完成输入。
You may confirm a character by either pressing its associated key or simply clicking it.
键入回车 Enter 时,若有候选选项,则择定首个候选字符;若无候选选项,则将输入框的内容确认存入(无论其是否为西夏文字);若输入框为空,则进行换行(换行亦能被回车键删除)。
When you press Enter, one of the following will happen:
- If there are candidates, the first character will be selected.
- If there are no candidcates, the content in the input box will be confirmed, regardless of whether it's Tangut or not; if the input box is empty, a line break will be added to the location.
Reverse lookup 英文释义反查
目前仅当使用“夏漢字典序號和四角號碼輸入法”(tangut_xhzd.dict.yaml)时,能够提供英文释义反查功能,出现提示和图标后,键入F2或单击图标以切换模式。夏漢字典序號与英文释义对表来自https://www.babelstone.co.uk/Tangut/XHZD_2008_Definitions.txt。
反查功能使用 Fuse.js 实现,可以模糊搜索。
When you are using tangut_xhzd.dict.yaml, the XHZD index, you can enter the reverse lookup mode by pressing F2 or clicking the dictionary button. English definitions come from https://www.babelstone.co.uk/Tangut/XHZD_2008_Definitions.txt. This reverse lookup feature supports fuzzy search, implemented with Fuse.js.
Copy & Paste 复制和导入 
点击工具栏下方的复制按钮,输入框中所有择定的文字将会被复制到剪贴板。在手机端其它区域,这些文字可能无法渲染,但可以发送到装载有西夏文字体的设备。也可以通过提供导入功能的弹窗,将文字复制粘贴,载入到输入区。
Click the copy button to copy all confirmed characters in the input area. The text may not render correctly on other mobile apps, but they are still Unicode characters and viewable once sent to any PC with Tangut fonts installed.
A pop-up is provided for pasting and formatting the Tangut text.
---
本工具支持切换日间/夜间模式。
This tool supports both dark and light themes, and automatically adapts to your system preferences. Manual switching is also available.
本工具附带Noto Serif Tangut,另外使用Google Fonts的在线链接与(在本地已安装的)Tangut N4694作为备用字体,理论上不需要自行安装西夏文字体。
This tool includes the Noto Serif Tangut font, and additionally uses Noto Serif Tangut's online link and Tangut N4694 (if locally installed) as fallback options. Generally, you do not need to install any Tangut fonts on your devices.
作者在开发过程中使用了ChatGPT与Gemini辅助编程。
The (vibe) coding is assisted by ChatGPT and Gemini.
一切上载、导出、复制粘贴行为发生在浏览器本地,除 itch.io 网站必需之措施,本工具不会索求、或上传任何数据。
All data, including uploaded dictionaries, pasted text, and copied content, stays completely on your device. Nothing is sent to any server, except for essential itch.io site functions (like cookies).
License: CC0 1.0 Universal 知识共享-CC0 1.0 通用公共领域贡献
Published | 21 hours ago |
Status | In development |
Category | Tool |
Platforms | HTML5 |
Author | Raycosine |
Tags | Historical, input-method, language, tangut |
Asset license | Creative Commons Zero v1.0 Universal |
Average session | A few minutes |
Languages | English, Chinese |
Inputs | Keyboard, Mouse, Touchscreen |
Accessibility | High-contrast |