Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions tupa.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
schema:
schema_id: tupa
name: 切韻拼音
version: "2022.05.21"
version: "2024.11.21"
author:
- Ayaka Mikazuki <ayaka@mail.shn.hk>
description: |-
Expand Down Expand Up @@ -60,13 +60,15 @@ speller:
delimiter: " '"
algebra:
- "xform/'//"
- derive/[qh]$// # 聲調
- abbrev/^([a-z]).+$/$1/
- abbrev/^([^aeiouyw]+).+$/$1/
- abbrev/[qh]$// # 聲調
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ayaka14732 這裏是故意用 abbrev 的嗎

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不記得有什麼分別了

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abbrev 的優先順位比 derive

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

derive 平上去聲的候選詞會排在一起,果然不太好
abbrev 的話上去聲會排到最後,感覺又太後

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我先 revert


translator:
dictionary: tupa
spelling_hints: 8
spelling_hints: 2147483647
always_show_comments: true
enable_completion: true
comment_format:
- "xform/$/\u200b/" # 永遠顯示拼音

Expand All @@ -90,7 +92,8 @@ jyut6ping3:

tupa_reverse_lookup:
tags: [ luna_pinyin, jyut6ping3 ]
overwrite_comment: false
overwrite_comment: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這個也是故意的嗎

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這個也不記得了,會 overwrite 什麼 comment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

應該是粵拼/普拼的 comment,但我試着好像沒有分別

enable_completion: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其實我也不太清楚有甚麼影響,好像還是不能如郵件要求那樣自動完成

dictionary: tupa_unspaced
comment_format:
- xform/=/ /
Expand Down
4 changes: 1 addition & 3 deletions tupa_unspaced.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

schema:
schema_id: tupa_unspaced
name: 無空格切韻拼音
version: "0.1"

engine:
Expand All @@ -20,10 +19,9 @@ speller:
alphabet: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- xform/[=]//
- xform/=//

translator:
dictionary: tupa_unspaced
spelling_hints: 20
comment_format:
- xform/=/ /