Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
導入碼表示例
# luna_pinyin.custom.yaml
# 修改字典名爲 luna_pinyin.kunki
# 其對應的用戶詞典名取句點之前部分即 luna_pinyin
patch:
translator/dictionary: luna_pinyin.kunki
# Rime dictionary
# encoding: utf-8
---
name: luna_pinyin.kunki
version: "2013.04.23"
sort: by_weight
use_preset_vocabulary: true
# 從 luna_pinyin.dict.yaml 導入包含單字的碼表
import_tables:
- luna_pinyin
...
# table begins
# 自定義的詞條
瑾昀 jin yun 100
瑾昀 kun ki 100
自動註音的詞
又一個詞
再一個詞
@meoow

This comment has been minimized.

Copy link

@meoow meoow commented Aug 7, 2018

请问三个点是字面的三个点还是表示省略?

@yf-9186

This comment has been minimized.

Copy link

@yf-9186 yf-9186 commented Apr 13, 2020

请问三个点是字面的三个点还是表示省略?

同问

@lotem

This comment has been minimized.

Copy link
Owner Author

@lotem lotem commented Apr 13, 2020

---
...

此處 ---... 分別是YAML文檔的開始和結束標記。
在YAML語法裏這些標記不是必須的,但 *.dict.yaml 要求寫出,因爲後面的碼表部分不再是YAML格式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.