Skip to content

Instantly share code, notes, and snippets.

@wpyoga
Created August 15, 2026 15:07
Show Gist options
  • Select an option

  • Save wpyoga/fd14a6e85b04c4751c5e29b7a85fbd12 to your computer and use it in GitHub Desktop.

Select an option

Save wpyoga/fd14a6e85b04c4751c5e29b7a85fbd12 to your computer and use it in GitHub Desktop.
Custom full width punctuation for Rime
# Save this file as ~/.config/ibus/rime/luna_pinyin_simp.custom.yaml
# Execute `ibus restart`, then switch window focus (Alt-Tab) to refresh ibus state
# Configure half-width mode (半角) and full width punctuation (。,)
# The following overrides specific punctuation keys for full-width characters
patch:
reverse_lookup: {} # to override "`"
recognizer: {} # to override "`"
punctuator:
half_shape:
# Number row
"~": { commit: "~" }
"`": { commit: "`" }
"!": { commit: "!" }
"$": { commit: "¥" }
"^": { commit: "……" }
"(": { commit: "(" }
")": { commit: ")" }
"_": { commit: "——" }
# Symbols near Enter key
"{": { commit: "『" }
"}": { commit: "』" }
"[": { commit: "【" }
"]": { commit: "】" }
"\\": { commit: "、" }
":": { commit: ":" }
";": { commit: ";" }
"\"": { pair: ["“", "”"] }
"'": { pair: ["‘", "’"] }
"<": { commit: "《" }
">": { commit: "》" }
",": { commit: "," }
".": { commit: "。" }
"?": { commit: "?" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment