Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2012 09:03
Show Gist options
  • Save anonymous/2326698 to your computer and use it in GitHub Desktop.
Save anonymous/2326698 to your computer and use it in GitHub Desktop.
The schema of japanese input plan for rime
# Rime schema settings
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: japanese
name: "日本語"
author:
- lawsherman <lawsherman@gmail.com>
version: "0.1"
description: |
日文輸入法
碼表源自 Ubuntu論壇
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- fluency_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- echo_translator
- punct_translator
- r10n_translator
- reverse_lookup_translator
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
algebra:
- xform/tsu$/tu/
- derive/sh([aiueo])$/s$1/
- derive/j([aiueo])$/jy$1/
- derive/ch([aiueo])$/ty$1/
- derive/cy([aiueo])$/ty$1/
- derive/th([aiueo])$/ty$1/
translator:
dictionary: japanese
punctuator:
full_shape:
" " : { commit: " " }
"," : { commit: 、 }
"." : { commit: 。 }
"<" : [ < , "<", 〈, «, ‹ ]
">" : [ ">" , ">" , 〉, », › ]
"/" : [ /, "/", ÷ ]
"?" : { commit: ? }
";" : { commit: ; }
":" : :
"'" : { pair: [ "‘", "’" ] }
"\"" : { pair: [ "“", "”" ] }
"\\" : [ "¥", \ \, "\\" ]
"|" : [ "|" , "|", "∥", "¦" ]
"`" : [ "`" , "`" ]
"~" : [ ~, "~", " ̄"]
"!" : {commit: ! }
"@" : [ @, "@", ☯ ]
"#" : [ #, "#", ⌘ ]
"%" : [ %, "%", "°", "℃" ]
"$" : [ $ , "$", "€", "£", "¥", "¢", "¤" ]
"^" : { ^ , "^" }
"&" : [ &, "&" ]
"*" : [ *, "*", ・, ×, ※, ❂, · ]
"(" : [ ( ,"(" ]
")" : [ ) , ")"]
"-" : { commit: ー}
"_" : [ _ , "_" ]
"+" : [ +, "+" ]
"=" : [ =, "=" ]
"[" : [ 「, 【, 〔, [ ]
"]" : [ 」, 】, 〕, ] ]
"{" : [ 『, 〖, { ]
"}" : [ 』, 〗, } ]
half_shape:
"," : { commit: , }
"." : { commit: . }
"<" : [ 《, 〈, «, ‹ ]
">" : [ 》, 〉, », › ]
"/" : [ "/", /, ÷ ]
"?" : { commit: ? }
";" : { commit: ; }
":" : :
"'" : { pair: [ "‘", "’" ] }
"\"" : { pair: [ "“", "”" ] }
"\\" : [ 、, "\\", \ ]
"|" : [ ・, "|", |, "§", "¦" ]
"`" : "`"
"~" : "~"
"~" : [ "~", 〜, ~, 〰 ]
"!" : { commit: ! }
"@" : [ "@", @, ☯ ]
"#" : [ "#", #, ⌘ ]
"%" : [ "%", %, "°", "℃" ]
"$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ]
"^" : { commit: …… }
"&" : [ "&", & ]
"*" : [ "*", *, ・, ×, ※, ❂, · ]
"(" : (
")" : )
"-" : [ "-", - ]
"_" : ——
"+" : [ "+", + ]
"=" : [ "=", = ]
"[" : [ 「, 【, 〔, [ ]
"]" : [ 」, 】, 〕, ] ]
"{" : [ 『, 〖, { ]
"}" : [ 』, 〗, } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment