forked from FooSoft/yomichan
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * wip * fix v3 * wip * fix tests * fix maxitems * hide deinflection definitions * fix anki template * undo unnecessary change * delete console.log * refactor * add set false to handlebars * lint * fix tests * fix comments * fix * use Map in areArraysEqualIgnoreOrder * move inflection source icons to css * lint * improve naming * fix tests * add test * typescript * use for of * wip * comments * anki template upgrade * update descriptions
- Loading branch information
1 parent
48f1d01
commit 2b87c91
Showing
29 changed files
with
1,861 additions
and
342 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
52 changes: 52 additions & 0 deletions
52
ext/data/templates/anki-field-templates-upgrade-v24.handlebars
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{{#*inline "phonetic-transcriptions"}} | ||
{{~#if (op ">" definition.phoneticTranscriptions.length 0)~}} | ||
<ul> | ||
{{~#each definition.phoneticTranscriptions~}} | ||
{{~#each phoneticTranscriptions~}} | ||
<li> | ||
{{~set "any" false~}} | ||
{{~#each tags~}} | ||
{{~#if (get "any")}}, {{else}}<i>({{/if~}} | ||
{{name}} | ||
{{~set "any" true~}} | ||
{{~/each~}} | ||
{{~#if (get "any")}})</i> {{/if~}} | ||
{{ipa~}} | ||
</li> | ||
{{~/each~}} | ||
{{~/each~}} | ||
</ul> | ||
{{~/if~}} | ||
{{/inline}} | ||
|
||
{{<<<<<<<}} | ||
{{#*inline "conjugation"}} | ||
{{~#if (op ">" definition.inflectionRuleChainCandidates.length 0)~}} | ||
{{~set "multiple" false~}} | ||
{{~#if (op ">" definition.inflectionRuleChainCandidates.length 1)~}} | ||
{{~set "multiple" true~}} | ||
{{~/if~}} | ||
{{~#if (get "multiple")~}}<ul>{{/if~}} | ||
{{~#each definition.inflectionRuleChainCandidates~}} | ||
{{~#if (op ">" inflectionRules.length 0)~}} | ||
{{~#if (get "multiple")~}}<li>{{/if~}} | ||
{{~#each inflectionRules~}} | ||
{{~#if (op ">" @index 0)}} « {{/if~}} | ||
{{.}} | ||
{{~/each~}} | ||
{{~#if (get "multiple")~}}</li>{{/if~}} | ||
{{~/if~}} | ||
{{~/each~}} | ||
{{~#if (get "multiple")~}}</ul>{{/if~}} | ||
{{~/if~}} | ||
{{/inline}} | ||
{{=======}} | ||
{{#*inline "conjugation"}} | ||
{{~#if definition.reasons~}} | ||
{{~#each definition.reasons~}} | ||
{{~#if (op ">" @index 0)}} « {{/if~}} | ||
{{.}} | ||
{{~/each~}} | ||
{{~/if~}} | ||
{{/inline}} | ||
{{>>>>>>>>}} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.