Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am submitting
Description: My basic attempt for automatic Mandarin annotations (pīnyīn & zhuyin) with word segmentation.
It's inspired by Typst packages
easy-pinyinandauto-pinyin, and it's a Mandarin version of my Typst packageauto-canto.Motivations: in short, to provide a Typst package with a more sensible usage.
rust-mandozhuyinfunction ineasy-pinyindoes not represent Zhuyin (a.k.a. Bopomofo), which is a phonetic system invented a century ago, and still commonly used in Taiwan.easy-pinyinis thetone_numstyle in the Rust cratepinyin, which is used by the WASM plugin ofauto-pinyin. Thetone_num_endstyle is more commonly used by pīnyīn learners on the Web, because thetonestyle (with diacritics indicating the Mandarin tone contours), which is more common in teaching materials, is more difficult to input and handle in computing.ℹ️ My WASM file size is 6.4MB. As documented in the README in the
dict/folder of my Rust crate, this comes from a big Jieba dictionarydict.txt.big(for proper tokenization of both Simplified & Traditional Chinese text) and CC-CEDICT (for generating a pin1yin1 dictionary).I've tried my best to reduce the WASM plugin size, following the method for
auto-canto(zstd compression for dictionary file), followed bywasm-opt.I have read and followed the submission guidelines and, in particular, I
typst.tomlfile with all required keysREADME.mdwith documentation for my packageLICENSEfile or linked one in myREADME.mdexcluded PDFs or README images, if any, but not the LICENSE