forked from FooSoft/yomichan
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display inflection rule descriptions (#1000)
* load descriptions in deinflector * description functions in deinflectors * show descriptions in title * use toaster * use names without internal * css lint * reformat transform descriptors * fix merge errors * done? * rename method
- Loading branch information
1 parent
d2fce50
commit 7955fc8
Showing
26 changed files
with
1,188 additions
and
801 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
43 changes: 43 additions & 0 deletions
43
ext/data/templates/anki-field-templates-upgrade-v38.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,43 @@ | ||
{{<<<<<<<}} | ||
{{#*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 (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~}} | ||
{{name}} | ||
{{~/each~}} | ||
{{~#if (get "multiple")~}}</li>{{/if~}} | ||
{{~/if~}} | ||
{{~/each~}} | ||
{{~#if (get "multiple")~}}</ul>{{/if~}} | ||
{{~/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
Oops, something went wrong.