Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Add a tone number Pinyin field #56

Open
@PandaScience

Description

@PandaScience

Is your feature request related to a problem? Please describe.
I just started out learning Mandarin last week and immediately found Anki and your really great chinese-support addon. Thanks for maintaining! I also bought the Hanping Pro dictionary app on Android which I think has some really nice sound database. However, as far as I can see you can only combine Anki+Hanping using sth. like

<a href='android-app://com.embermitre.hanping.app.pro#Intent;action=com.hanpingchinese.cmn.intent.action.PLAY;S.p={{text:Pinyin}};S.s={{text:Simplified}};S.t={{text:Traditional}};S.LANG=cmn;S._SOURCE=anki;end'>

in cards, where S.p seems to be the important part for it to work. Unfortunately, it only takes pinyin in numbered form.

Describe the solution you'd like
Could you please add to config.json another field, e.g. NumPinyin, that will be filled with the corresponding numbered pinyin instead of the one with converted tone markings? That would also be helpful for cards with {{type:NumPinyin}} when learning with "simple" keyboards.

I would do it myself and provide a pull request, but because of lack of documentation it's somehow hard to go through your code.

Describe alternatives you've considered
Writing a JavaScript converter in each card's code.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions