rime-aca / dictionaries

Rime詞庫
https://bintray.com/rime-aca/dictionaries/luna_pinyin.dict/
550 stars 46 forks source link

fix YAML grammar problem #17

Closed frothywater closed 4 years ago

frothywater commented 4 years ago

translator/dictionary - A key doesn't need quote signs. Unless the dictionary just doesn't work properly.

lotem commented 4 years ago

Quoted strings as map keys is perfectly allowed by YAML grammar, so this is rather a matter of taste than a problem.

My personal style preference (not a recommendation) is not to quote the key in the first case, but to add quotes whenever the range of the string key may appear unclear, even not strictly required by grammar.

frothywater commented 4 years ago

Oh, it's strange. Because the original yaml doesn't work for me (using fcitx-rime on Deepin 15.11). And I'm not so familiar with yaml, thought that it should be somehow different from json's quoted key notation. Then I just remove the two quote signs then it worked! Anyhow, thanks for your reply!