Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AlephAlpha
Last active March 6, 2016 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlephAlpha/d1252b2f0d596ee65c4b to your computer and use it in GitHub Desktop.
Save AlephAlpha/d1252b2f0d596ee65c4b to your computer and use it in GitHub Desktop.
Rime 西里尔拼音输入方案
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: palladius
name: "西里尔拼音"
version: "0.0"
author:
- AlephAlpha <alephalpha911@gmail.com>
description: |
通过西里尔转写(Систима Палладия)输入中文
采用标准的 ЙЦУКЕН 键盘
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
reset: 1
states: [ 漢字, 汉字 ]
engine:
processors:
- ascii_composer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- r10n_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: '`qwertyuiop[]asdfghjkl;''zxcvbnm,.'
delimiter: " "
algebra:
- erase/^xx$/
- xform/^([zcs])i/$1I/
- xform/^([jqxy])u/$1v/
- xform/^j/cz/
- xform/^q/c/
- xform/^x/s/
- xform/^zh/CZ/
- xform/^ch/C/
- xform/^sh/S/
- xform/^r/Z/
- xform/^z/cz/
- xform/^you$/iu/
- xform/^yv/v/
- xform/^yi?/i/
- xform/^wu$/u/
- xform/ong$/ung/
- xform/uo$/o/
- xform/v$/iui/
- xform/v/iu/
- xform/([aeou])i$/$1y/
- xform/n$/nY/
- xform/ng$/n/
- xform/ia/A/
- xform/ie/E/
- xform/io/O/
- xform/iu/U/
- derive/uy$/uey/
- derive/huy/hoy/
- derive/([bpmf])en/$1In/
- derive/^e$/I/
- derive/([CSZ])i/$1I/
- abbrev/^([A-Za-z]).+$/$1/
- abbrev/^(cz|CZ).+$/$1/
- abbrev/^(.+)Y$/$1/
- 'xlit|abwgdEOZziyklmnoprstufhcCSXHIYeUA|f,dult`;pbqrkvyjghcnea[wxio]sm''.z|'
translator:
dictionary: luna_pinyin
prism: palladius
preedit_format:
- 'xlit|`qwertyuiop[]asdfghjkl;''zxcvbnm,.|ёйцукенгшщзхъфывапролджэячсмитьбю|'
punctuator:
full_shape:
' ' : { commit: ' ' }
'/' : { commit: 。 }
'?' : { commit: , }
'\' : [ 、, \, ` ]
'|' : [ /, ÷, |, '§', '¦' ]
'!' : { commit: ! }
'@' : { pair: [ '“', '”' ] }
'#' : [ #, ⌘ ]
'$' : { commit: ; }
'%' : [ %, '°', '℃', & ]
'^' : { commit: : }
'&' : { commit: ? }
'*' : [ *, ·, ・, ×, ※, ❂, @, ☯, ¥, '$', '€', '£', '¥', '¢', '¤' ]
'(' : [ (, 「, 【, 〔, [, 『, 〖, {, 《, 〈, «, ‹, ‘ ]
')' : [ ), 」, 】, 〕, ], 』, 〗, }, 》, 〉, », ›, ’ ]
'-' : [ -, ~ ]
'_' : [ ——, …… ]
'+' : +
'=' : =
half_shape:
'/' : { commit: 。 }
'?' : { commit: , }
'\' : [ 、, '\', '`' ]
'|' : [ 、, '/', ÷, '|', '§', '¦' ]
'!' : { commit: ! }
'@' : { pair: [ '“', '”' ] }
'#' : [ '#', №, ⌘ ]
'$' : { commit: ; }
'%' : [ '%', '°', '℃', '&' ]
'^' : { commit: : }
'&' : { commit: ? }
'*' : [ '*', ·, ・, ×, ※, ❂, '@', ☯, ¥, '$', '€', '£', '¥', '¢', '¤' ]
'(' : [ (, 「, 【, 〔, [, 『, 〖, {, 《, 〈, «, ‹, ‘ ]
')' : [ ), 」, 】, 〕, ], 』, 〗, }, 》, 〉, », ›, ’ ]
'-' : [ '-', '~' ]
'_' : [ ——, …… ]
'+' : '+'
'=' : '='
key_binder:
import_preset: default
bindings:
- { when: has_menu, accept: comma, send: comma }
- { when: has_menu, accept: period, send: period }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment