Skip to content

Symbols Input & Configuration

Oh-my-rime includes a rich set of symbol input features. Through the symbols.yaml configuration file, users can use the / leader key to quickly input various special symbols, including math symbols, arrows, stars, currencies, Greek letters, and more.

Basic Usage

In Chinese input mode, type / followed by the corresponding abbreviation code to bring up the symbol candidate list. For example:

InputCategoryExample Symbols
/fhSymbols/Computer©, ®, ☎, ☯, ♻
/dnComputer Keys⌘, ⌥, ⇧, ⌫, ⏏
/xqChess♔, ♕, ♖, ♗, ♘, ♙
/pkPoker♠, ♡, ♢, ♣, ♤, ♥
/bqEmoticons☻, ☺, ☹
/tqWeather☀, ☁, ⛅, ☂, ☔
/yyMusic𝄞, ♩, ♪, ♫, ♬
/jtArrows←, →, ↑, ↓, ↔, ⇐, ⇒
/sxMath±, ÷, ×, √, ∞, ∑
/xhStars★, ☆, ✡, ❋, ✿
/jhGeometry■, □, ▲, △, ●, ○
/fkBlocks▀, ▁, ▂, ░, ▒, ▓

Numbers & Numbering Symbols

Oh-my-rime supports quick input of various number variants:

InputCategoryExamples
/0 ~ /10Number Variants〇/零/⓪, 一/壹/①/❶
/szqCircled Numbers⓪, ①, ②, ③ ... ㊿
/szhParenthesized Numbers⑴, ⑵, ⑶ ... ⒇
/szdNumbers with Period⒈, ⒉, ⒊ ... ⒛
/zmqCircled Lettersⓐ, Ⓐ, ⓑ, Ⓑ ...
/zmhParenthesized Letters⒜, ⒝, ⒞ ... ⒵
/fsFractions½, ⅓, ¼, ⅕ ...
/lmRoman Numerals (lower)ⅰ, ⅱ, ⅲ ... ⅿ
/lmdRoman Numerals (upper)Ⅰ, Ⅱ, Ⅲ ... Ⅿ

Cultural Symbols

InputCategoryExamples
/bgBagua Trigrams☰, ☱, ☲, ☳, ☴, ☵, ☶, ☷
/tgHeavenly Stems甲, 乙, 丙, 丁 ... 癸
/dzEarthly Branches子, 丑, 寅, 卯 ... 亥
/gzStems and Branches甲子, 乙丑 ... 癸亥
/jqSolar Terms立春, 雨水, 惊蛰 ... 大寒
/xzZodiac Signs♈, ♉, ♊ ... ♓
/xzmZodiac Names白羊座, 金牛座 ... 双鱼座

Language & Script Symbols

InputCategoryExamples
/xlGreek (lower)α, β, γ, δ ... ω
/xldGreek (upper)Α, Β, Γ, Δ ... Ω
/eyRussian (lower)а, б, в, г ... я
/eydRussian (upper)А, Б, В, Г ... Я
/pyPinyin Tonesā, á, ǎ, à, ō, ó ...
/zyZhuyinㄅ, ㄆ, ㄇ, ㄈ ...
/jmJapanese Hiraganaあ, い, う, え, お ...
/pjmJapanese Katakanaア, イ, ウ, エ, オ ...
/hwKoreanㄱ, ㄴ, ㄷ, ㄹ ...

Latin Extended Characters

Type /a through /z or /A through /Z to input various variants of the corresponding letter (with diacritics, accents, etc.), for example:

  • /a: ā, á, ǎ, à, â, ä, å, ã ...
  • /e: ē, é, ě, è, ê, ë, ẽ ...
  • /u: ū, ú, ǔ, ù, û, ü, ǖ, ǘ, ǚ, ǜ ...

Ligatures are also supported:

  • /ae: æ, ǣ, ǽ
  • /oe: œ
  • /fi: fi, /fl: fl

Other Useful Symbols

InputCategoryExamples
/sbSuperscript⁰, ¹, ², ³, ᵃ, ᵇ ...
/xbSubscript₀, ₁, ₂, ₃, ₐ, ₑ ...
/dwUnitsÅ, ℃, ‰, ㎏, ㎡, ㎝ ...
/hbCurrency¥, $, €, £, ₩, ₹ ...
/bdPunctuation―, ‼, ¿, 々, 〃, 〆 ...
/jgCJK Structure⿰, ⿱, ⿲, ⿳ ...
/ppRadicals亻, 冫, 氵, 扌, 忄 ...
/kxKangxi Radicals一, 丨, 丶, 丿, 乙 ...
/bhStrokes㇀, ㇁, ㇂ ...

Half-width Punctuation Configuration

Oh-my-rime defines half-width punctuation mappings in symbols.yaml. In the schema file, it is referenced as follows:

yaml
punctuator:
  import_preset: symbols
  half_shape:
    "#": "#"
    "*": "*"
    '.' : { commit:  }
    "`": "`"
    "~": "~"
    "@": "@"
    "=": "="
    "/": ["/", "÷"]
    '\': "、"
    "'": {pair: ["「", "」"]}
    "[": ["【", "["]
    "]": ["】", "]"]

Where import_preset: symbols loads the configuration from symbols.yaml first, then the half_shape in the schema file overrides specific mappings.

Custom Symbols

If you want to add your own symbol mappings, you can override them through a custom file. Taking Mint Pinyin as an example, create rime_mint.custom.yaml:

yaml
patch:
  # Add custom symbols
  "punctuator/symbols//email": [📧, , 📨, 📩]
  "punctuator/symbols//phone": [📱, , 📞, 📲]

Now typing /email or /phone will bring up the corresponding symbol candidates.

To modify existing half-width punctuation mappings, e.g., changing \ to output /:

yaml
patch:
  "punctuator/half_shape/\\": "/"

Note

Symbol input requires the punct rule in recognizer. Oh-my-rime has this configured by default:

yaml
recognizer:
  patterns:
    punct: "^/([0-9]0?|[a-zA-Z]+)$"

This means only / followed by numbers (0-90) or letters will trigger symbol input mode.

Complete Symbol Reference

Click to expand the full symbol code list
CodeCategoryCodeCategory
/fhSymbols/Computer/dnComputer Keys
/xqChess/mjMahjong
/szDice/pkPoker
/bqEmoticons/tqWeather
/yyMusic/lxGender
/bgBagua/bgmBagua Names
/lssg64 Hexagrams/lssgm64 Hexagram Names
/txjTaixuanjing/ttCelestial Bodies
/xzZodiac/xzmZodiac Names
/seg12 Houses/xhStars
/fkBlocks/jhGeometry
/jtArrows/sxMath
/szqCircled Numbers/szhParenthesized Numbers
/szdDotted Numbers/zmqCircled Letters
/zmhParenthesized Letters/fsFractions
/0~/10Number Variants/szmSuzhou Numerals
/lmRoman (lower)/lmdRoman (upper)
/a~/zLatin (lower)/A~/ZLatin (upper)
/sbSuperscript/xbSubscript
/xlGreek (lower)/xldGreek (upper)
/eyRussian (lower)/eydRussian (upper)
/yfMonths/rqDates
/yrDays of Week/sjTime
/tgHeavenly Stems/dzEarthly Branches
/gzStems & Branches/jqSolar Terms
/dwUnits/hbCurrency
/jgCJK Structure/ppRadicals
/kxKangxi Radicals/bhStrokes
/bdPunctuation/bdzVertical Punctuation
/pyPinyin/zyZhuyin
/sdTone Marks/hzqCircled CJK
/hzhParenthesized CJK/jmHiragana
/pjmKatakana/jmqCircled Kana
/jmbjHalf-width Kana/hwKorean
/hwqCircled Korean/hwhParenthesized Korean