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.
- Loading branch information
1 parent
ff67a5b
commit 6325c29
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
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