Skip to content

Bopomofo (Zhuyin) support #1

Description

@heinzelotto

Thanks for the great deck! I prefer bopomofo as a transliteration to pinyin, so I programmatically added the corresponding zhuyin to the cards. If you want, I can create a PR that adds that column zhuyin to ccc.tsv.

For card fronts I prefer just the hanzi (mandarin->english) or the translation (english->mandarin), respectively, with all remaining info on the back. So the resulting cards that I currently use are

mandarin->english front:
<span lang="zh-tw" id="ddzw-hanzi">{{Hanzi}}</span>

back:

{{FrontSide}}

<hr id=answer>

<span lang="en"><span id="ddzw-zhuyin">{{Zhuyin}}</span><span id="ddzw-pinyin">{{Pinyin}}</span>{{Audio}}<br><br>{{English}}</span><br><br>
{{#Part of speech}}
<span lang="en">({{Part of speech}})</span>
{{/Part of speech}}
<br><br>
<span lang="en"><small>{{Lesson}}</small></span>

<script>
[...]
</script>

english->mandarin front:

{{English}}
<br><br>
{{#Part of speech}}
<span lang="en">({{Part of speech}})</span>
{{/Part of speech}}

back:

{{FrontSide}}

<hr id=answer>
{{Audio}}
<span lang="zh-tw" id="ddzw-hanzi">{{Hanzi}}</span>
<br>
<span lang="en" id="ddzw-zhuyin">{{Zhuyin}}</span>
<span lang="en" id="ddzw-pinyin">{{Pinyin}}</span>
<br><br>
<span lang="en"><small>{{Lesson}}</small></span>

<script>
[...]
</script>

with some styling to display: none; the pinyin. For now, I could just create the PR for the zhuyin and add it to the existing card template, without the restructuring of the card.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions