Skip to content

Instantly share code, notes, and snippets.

@amorphobia
Last active January 18, 2024 05:15
Show Gist options
  • Save amorphobia/72a2100b2e9631a2b2c81d754c8e9629 to your computer and use it in GitHub Desktop.
Save amorphobia/72a2100b2e9631a2b2c81d754c8e9629 to your computer and use it in GitHub Desktop.
smyh.base.schema.yaml
# Rime schema settings
# encoding: utf-8
schema:
schema_id: smyh.base
name: 吉旦餅·基礎碼表
description: |
可以打字。
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- table_translator
- reverse_lookup_translator
filters:
- uniquifier
- reverse_lookup_filter@lookup
speller:
alphabet: "qwertyuiopasdfghjklzxcvbnm`"
initials: "qwertyuiopasdfghjklzxcvbnm`"
algebra:
- xform/^([a-z]+)\d$/$1/
- derive/^[a-z]([a-z]+)$/`$1/
- derive/^([a-z`])[a-z]([a-z])$/$1`$2/
- derive/^([a-z`]+)[a-z]$/$1`/
translator:
dictionary: smyh.base
enable_user_dict: false
punctuator:
import_preset: symbols
reverse_lookup:
dictionary: jiandao
prefix: "z"
suffix: "'"
tips: "〔键道〕"
comment_format:
- xform/^/〔/
- xform/$/〕/
- xform/ /, /
lookup:
dictionary: smyh.base
tags: [ lookup ]
comment_format:
- xform/ /, /
- xform/^/〔/
- xform/$/〕/
recognizer:
patterns:
lookup: "[a-z`]*`+[a-z`]*"
reverse_lookup: "^z[a-z]*'?$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment