Rime latex
Rime Latex Math Input Method | Typing LaTeX symbols everywhere.
Press `\` key then input latex symbol's name: `\lambda` will automatically become `λ`. The project is written primarily in Python, distributed under the GNU General Public License v3.0 license, first published in 2020. Key topics include: latex, rime, rime-schema.
RIME_LaTeX
Typing LaTeX math symbols in RIME.
Press \ key then input latex symbol's name: \lambda will automatically become λ.
Use as standalone input method
Copy the latex.dict.yaml and latex.schema.yaml to rime's config folder.
Add those lines to default.custom.yaml
patch:
schema_list:
- schema: latex
Use with other schemas
For instance, to use with 朙月拼音(简化字), in luna_pinyin.custom.yaml (luna_pinyin_simp.custom.yaml)
yamlpatch: # type '\' will pull in English punctuation, so need to switch to Chinese punctuation switches/+: - name: ascii_punct # states: [ ¥, $ ] reset: 0 # make '\' go into the candidate box speller/alphabet: zyxwvutsrqponmlkjihgfedcba\\ # or customize punctuator to make '\' go into the candidate box like below(please uncomment yourself) # punctuator/half_shape: # "\\": ["\\"] # punctuator/full_shape: # "\\": ["、", "\"] engine/+: translators/+: - table_translator@latex_input # meaning of the regex: ^ (start of line), \\(the starting \), .+(any char 1 or more time), $(end) # first '\\' is recognized as a symbol(half_shape or full_shape). double '\\' make it to be recognized as a pattern # translator's prefix will consume one '\\'. so user only type once '\' key, only recognize uppercase and lowercase letters, so you can use the number keys to select words. "recognizer/patterns/latex_input": "^\\\\[a-zA-Z^_]+$" schema/dependencies/+: - latex latex_input: tag: latex_input dictionary: latex prefix: "\\" enable_sentence: false enable_completion: true # enable autocomplete enable_user_dict: true # enable word frequency, use with user_dict user_dict: custom_latex_user # generate a file name custom_latex_user.txt db_class: tabledb tips: "[LaTeX]"
Note: due to the complexity of mixing rime schemas, you may need extra efforts to mix RIME_LaTeX with arbitrary other schema.
rime schema's reference: https://github.com/LEOYoon-Tsaw/Rime_collections/blob/master/Rime_description.md
RIME_LaTeX's extension to tex symbols
superscript/subscript
\^1 \_1 -> X₁¹
\^a \_b -> Xᵃᵦ
Degree
° \degree
MISC
→ \to
⇒ \To
⇛ \TO
Credits
The latex math symbols table sources:
https://github.com/hubutui/fcitx-table-unicode-latex
https://github.com/moebiuscurve/ibus-table-others/blob/master/tables/latex.txt
HELP WANTED
- Check if all Unicode math symbols are included.
- Fuzzy match how??
Contributors
Showing top 5 contributors by commit count.
