Skip to content

Instantly share code, notes, and snippets.

@lotem
Last active August 29, 2015 14:17
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 lotem/cdb561af4937818cf1ae to your computer and use it in GitHub Desktop.
Save lotem/cdb561af4937818cf1ae to your computer and use it in GitHub Desktop.
Proposal of Rime config subtree loading
# Rime schema: luna_pinyin
# _import: future.schema.yaml
---
# no more need to create the patched file
_patch: 'luna_pinyin.custom.yaml:patch'
_import: luna_pinyin.prototype.yaml # replace the root node
---
# this patch is uninteresting, just for comparison to _import
_patch:
translator/dictionary: luna_pinyin.extra
_import: # this seems flawed. child nodes aren't there while processing the root node
punctuator: 'default.yaml:punctuator'
recognizer: 'default.yaml:recognizer'
reverse_lookup/dictionary: translator/dictionary
---
punctuator:
_import: 'default.yaml:punctuator' # (1)
half_shape:
_import: 'symbols.yaml:punctuator/half_shape'
'/': 'Overwritten'
---
punctuator:
import_preset: default # same as (1)
@lotem
Copy link
Author

lotem commented Mar 23, 2015

終極複用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment