FooSoft / yomichan-anki

Plugin for sentence/vocab mining Japanese books in Anki.
https://foosoft.net/projects/yomichan-anki
Other
58 stars 12 forks source link

adding support for tab-separated translations #8

Closed dayjaby closed 9 years ago

dayjaby commented 9 years ago

With this small update, yomichan scans the entire line for a tab character. If it finds one, it treats the rest of the line as translation.

E.g. having the line 彼は洞察力のある人だ。\t"He is a man of vision." 彼は洞察力のある人だ。 becomes the definition's sentence "He is a man of vision." becomes the definition's translation.

The proper field for the translation can be set in the preferences with {translation}. I made this update mainly to be able to import sentence lists from tatoeba.com more easily, because they export it with the same pattern like the example above.

FooSoft commented 9 years ago

Thanks for the pull request. Before I accept it, please make the following two changes to your code:

dayjaby commented 9 years ago

Thanks for having a look at it! I fixed the mentioned points.

FooSoft commented 9 years ago

Merged, thanks for the codes ^^