mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
feat(assets): bundle runtime assets and vendor dependencies
This commit is contained in:
30
vendor/yomitan/data/templates/anki-field-templates-upgrade-v10.handlebars
vendored
Normal file
30
vendor/yomitan/data/templates/anki-field-templates-upgrade-v10.handlebars
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{{#*inline "part-of-speech-pretty"}}
|
||||
{{~#if (op "===" . "v1")~}}Ichidan verb
|
||||
{{~else if (op "===" . "v5")~}}Godan verb
|
||||
{{~else if (op "===" . "vk")~}}Kuru verb
|
||||
{{~else if (op "===" . "vs")~}}Suru verb
|
||||
{{~else if (op "===" . "vz")~}}Zuru verb
|
||||
{{~else if (op "===" . "adj-i")~}}I-adjective
|
||||
{{~else if (op "===" . "n")~}}Noun
|
||||
{{~else~}}{{.}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "part-of-speech"}}
|
||||
{{~#scope~}}
|
||||
{{~#if (op "!==" definition.type "kanji")~}}
|
||||
{{~#set "first" true}}{{/set~}}
|
||||
{{~#each definition.expressions~}}
|
||||
{{~#each wordClasses~}}
|
||||
{{~#unless (get (concat "used_" .))~}}
|
||||
{{~> part-of-speech-pretty . ~}}
|
||||
{{~#unless (get "first")}}, {{/unless~}}
|
||||
{{~#set (concat "used_" .) true~}}{{~/set~}}
|
||||
{{~#set "first" false~}}{{~/set~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
{{~#if (get "first")~}}Unknown{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
3
vendor/yomitan/data/templates/anki-field-templates-upgrade-v12.handlebars
vendored
Normal file
3
vendor/yomitan/data/templates/anki-field-templates-upgrade-v12.handlebars
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{{#*inline "search-query"}}
|
||||
{{~#multiLine}}{{context.fullQuery}}{{/multiLine~}}
|
||||
{{/inline}}
|
||||
148
vendor/yomitan/data/templates/anki-field-templates-upgrade-v13.handlebars
vendored
Normal file
148
vendor/yomitan/data/templates/anki-field-templates-upgrade-v13.handlebars
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
{{#*inline "selection-text"}}
|
||||
{{~#if (hasMedia "selectionText")}}{{#getMedia "selectionText"}}{{/getMedia}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "sentence-furigana"}}
|
||||
{{~#if definition.cloze~}}
|
||||
{{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}}
|
||||
{{#getMedia "textFurigana" definition.cloze.sentence escape=false}}{{/getMedia}}
|
||||
{{~else~}}
|
||||
{{definition.cloze.sentence}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#each glossary}}{{#multiLine}}{{.}}{{/multiLine}}{{/each}}
|
||||
{{=======}}
|
||||
{{#each glossary}}{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}{{/each}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#each glossary}}{{#multiLine}}{{.}}{{/multiLine}}{{#unless @last}} | {{/unless}}{{/each}}
|
||||
{{=======}}
|
||||
{{#each glossary}}{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}{{#unless @last}} | {{/unless}}{{/each}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#each glossary}}<li>{{#multiLine}}{{.}}{{/multiLine}}</li>{{/each}}
|
||||
{{=======}}
|
||||
{{#each glossary}}<li>{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}</li>{{/each}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#if definition.audioFileName~}}
|
||||
[sound:{{definition.audioFileName}}]
|
||||
{{~/if~}}
|
||||
{{=======}}
|
||||
{{~#if (hasMedia "audio")~}}
|
||||
[sound:{{#getMedia "audio"}}{{/getMedia}}]
|
||||
{{~/if~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
<img src="{{definition.screenshotFileName}}" />
|
||||
{{=======}}
|
||||
{{~#if (hasMedia "screenshot")~}}
|
||||
<img src="{{#getMedia "screenshot"}}{{/getMedia}}" />
|
||||
{{~/if~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#if definition.clipboardImageFileName~}}
|
||||
<img src="{{definition.clipboardImageFileName}}" />
|
||||
{{~/if~}}
|
||||
{{=======}}
|
||||
{{~#if (hasMedia "clipboardImage")~}}
|
||||
<img src="{{#getMedia "clipboardImage"}}{{/getMedia}}" />
|
||||
{{~/if~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#if definition.clipboardText~}}{{definition.clipboardText}}{{~/if~}}
|
||||
{{=======}}
|
||||
{{~#if (hasMedia "clipboardText")}}{{#getMedia "clipboardText"}}{{/getMedia}}{{/if~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "pitch-accent-item-downstep-notation"}}
|
||||
{{~#scope~}}
|
||||
<span>
|
||||
{{~#set "style1a"~}}display:inline-block;position:relative;{{~/set~}}
|
||||
{{~#set "style1b"~}}padding-right:0.1em;margin-right:0.1em;{{~/set~}}
|
||||
{{~#set "style2a"~}}display:block;user-select:none;pointer-events:none;position:absolute;top:0.1em;left:0;right:0;height:0;border-top:0.1em solid;{{~/set~}}
|
||||
{{~#set "style2b"~}}right:-0.1em;height:0.4em;border-right:0.1em solid;{{~/set~}}
|
||||
{{~#each (getKanaMorae reading)~}}
|
||||
{{~#set "style1"}}{{#get "style1a"}}{{/get}}{{/set~}}
|
||||
{{~#set "style2"}}{{/set~}}
|
||||
{{~#if (isMoraPitchHigh @index ../position)}}
|
||||
{{~#set "style2"}}{{#get "style2a"}}{{/get}}{{/set~}}
|
||||
{{~#if (op "!" (isMoraPitchHigh (op "+" @index 1) ../position))~}}
|
||||
{{~#set "style1" (op "+" (get "style1") (get "style1b"))}}{{/set~}}
|
||||
{{~#set "style2" (op "+" (get "style2") (get "style2b"))}}{{/set~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
<span style="{{#get "style1"}}{{/get}}">{{{.}}}<span style="{{#get "style2"}}{{/get}}"></span></span>
|
||||
{{~/each~}}
|
||||
</span>
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item-graph-position-x"}}{{#op "+" 25 (op "*" index 50)}}{{/op}}{{/inline}}
|
||||
{{#*inline "pitch-accent-item-graph-position-y"}}{{#op "+" 25 (op "?:" (isMoraPitchHigh index position) 0 50)}}{{/op}}{{/inline}}
|
||||
{{#*inline "pitch-accent-item-graph-position"}}{{> pitch-accent-item-graph-position-x index=index position=position}} {{> pitch-accent-item-graph-position-y index=index position=position}}{{/inline}}
|
||||
{{#*inline "pitch-accent-item-graph"}}
|
||||
{{~#scope~}}
|
||||
{{~#set "morae" (getKanaMorae reading)}}{{/set~}}
|
||||
{{~#set "morae-count" (property (get "morae") "length")}}{{/set~}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {{#op "+" 50 (op "*" 50 (get "morae-count"))}}{{/op}} 100" style="display:inline-block;height:2em;">
|
||||
<defs>
|
||||
<g id="term-pitch-accent-graph-dot"><circle cx="0" cy="0" r="15" style="fill:#000;stroke:#000;stroke-width:5;" /></g>
|
||||
<g id="term-pitch-accent-graph-dot-downstep"><circle cx="0" cy="0" r="15" style="fill:none;stroke:#000;stroke-width:5;" /><circle cx="0" cy="0" r="5" style="fill:none;stroke:#000;stroke-width:5;" /></g>
|
||||
<g id="term-pitch-accent-graph-triangle"><path d="M0 13 L15 -13 L-15 -13 Z" style="fill:none;stroke:#000;stroke-width:5;" /></g>
|
||||
</defs>
|
||||
<path style="fill:none;stroke:#000;stroke-width:5;" d="
|
||||
{{~#set "cmd" "M"}}{{/set~}}
|
||||
{{~#each (get "morae")~}}
|
||||
{{~#get "cmd"}}{{/get~}}
|
||||
{{~> pitch-accent-item-graph-position index=@index position=../position~}}
|
||||
{{~#set "cmd" "L"}}{{/set~}}
|
||||
{{~/each~}}
|
||||
"></path>
|
||||
<path style="fill:none;stroke:#000;stroke-width:5;stroke-dasharray:5 5;" d="M{{> pitch-accent-item-graph-position index=(op "-" (get "morae-count") 1) position=position}} L{{> pitch-accent-item-graph-position index=(get "morae-count") position=position}}"></path>
|
||||
{{#each (get "morae")}}
|
||||
<use href="{{#if (op "&&" (isMoraPitchHigh @index ../position) (op "!" (isMoraPitchHigh (op "+" @index 1) ../position)))}}#term-pitch-accent-graph-dot-downstep{{else}}#term-pitch-accent-graph-dot{{/if}}" x="{{> pitch-accent-item-graph-position-x index=@index position=../position}}" y="{{> pitch-accent-item-graph-position-y index=@index position=../position}}"></use>
|
||||
{{/each}}
|
||||
<use href="#term-pitch-accent-graph-triangle" x="{{> pitch-accent-item-graph-position-x index=(get "morae-count") position=position}}" y="{{> pitch-accent-item-graph-position-y index=(get "morae-count") position=position}}"></use>
|
||||
</svg>
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item-position"~}}
|
||||
<span>[{{position}}]</span>
|
||||
{{~/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item"}}
|
||||
{{~#if (op "==" format "downstep-notation")~}}
|
||||
{{~> pitch-accent-item-downstep-notation~}}
|
||||
{{~else if (op "==" format "graph")~}}
|
||||
{{~> pitch-accent-item-graph~}}
|
||||
{{~else if (op "==" format "position")~}}
|
||||
{{~> pitch-accent-item-position~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "pitch-accent-item"}}
|
||||
{{~#pronunciation format=format reading=reading downstepPosition=position nasalPositions=nasalPositions devoicePositions=devoicePositions~}}{{~/pronunciation~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "pitch-accents"}}
|
||||
{{~> pitch-accent-list format='downstep-notation'~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "pitch-accents"}}
|
||||
{{~> pitch-accent-list format='text'~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
109
vendor/yomitan/data/templates/anki-field-templates-upgrade-v2.handlebars
vendored
Normal file
109
vendor/yomitan/data/templates/anki-field-templates-upgrade-v2.handlebars
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
{{! Pitch Accents }}
|
||||
{{#*inline "pitch-accent-item-downstep-notation"}}
|
||||
{{~#scope~}}
|
||||
<span>
|
||||
{{~#set "style1a"~}}display:inline-block;position:relative;{{~/set~}}
|
||||
{{~#set "style1b"~}}padding-right:0.1em;margin-right:0.1em;{{~/set~}}
|
||||
{{~#set "style2a"~}}display:block;user-select:none;pointer-events:none;position:absolute;top:0.1em;left:0;right:0;height:0;border-top:0.1em solid;{{~/set~}}
|
||||
{{~#set "style2b"~}}right:-0.1em;height:0.4em;border-right:0.1em solid;{{~/set~}}
|
||||
{{~#each (getKanaMorae reading)~}}
|
||||
{{~#set "style1"}}{{#get "style1a"}}{{/get}}{{/set~}}
|
||||
{{~#set "style2"}}{{/set~}}
|
||||
{{~#if (isMoraPitchHigh @index ../position)}}
|
||||
{{~#set "style2"}}{{#get "style2a"}}{{/get}}{{/set~}}
|
||||
{{~#if (op "!" (isMoraPitchHigh (op "+" @index 1) ../position))~}}
|
||||
{{~#set "style1" (op "+" (get "style1") (get "style1b"))}}{{/set~}}
|
||||
{{~#set "style2" (op "+" (get "style2") (get "style2b"))}}{{/set~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
<span style="{{#get "style1"}}{{/get}}">{{{.}}}<span style="{{#get "style2"}}{{/get}}"></span></span>
|
||||
{{~/each~}}
|
||||
</span>
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item-graph-position-x"}}{{#op "+" 25 (op "*" index 50)}}{{/op}}{{/inline}}
|
||||
{{#*inline "pitch-accent-item-graph-position-y"}}{{#op "+" 25 (op "?:" (isMoraPitchHigh index position) 0 50)}}{{/op}}{{/inline}}
|
||||
{{#*inline "pitch-accent-item-graph-position"}}{{> pitch-accent-item-graph-position-x index=index position=position}} {{> pitch-accent-item-graph-position-y index=index position=position}}{{/inline}}
|
||||
{{#*inline "pitch-accent-item-graph"}}
|
||||
{{~#scope~}}
|
||||
{{~#set "morae" (getKanaMorae reading)}}{{/set~}}
|
||||
{{~#set "morae-count" (property (get "morae") "length")}}{{/set~}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {{#op "+" 50 (op "*" 50 (get "morae-count"))}}{{/op}} 100" style="display:inline-block;height:2em;">
|
||||
<defs>
|
||||
<g id="term-pitch-accent-graph-dot"><circle cx="0" cy="0" r="15" style="fill:#000;stroke:#000;stroke-width:5;" /></g>
|
||||
<g id="term-pitch-accent-graph-dot-downstep"><circle cx="0" cy="0" r="15" style="fill:none;stroke:#000;stroke-width:5;" /><circle cx="0" cy="0" r="5" style="fill:none;stroke:#000;stroke-width:5;" /></g>
|
||||
<g id="term-pitch-accent-graph-triangle"><path d="M0 13 L15 -13 L-15 -13 Z" style="fill:none;stroke:#000;stroke-width:5;" /></g>
|
||||
</defs>
|
||||
<path style="fill:none;stroke:#000;stroke-width:5;" d="
|
||||
{{~#set "cmd" "M"}}{{/set~}}
|
||||
{{~#each (get "morae")~}}
|
||||
{{~#get "cmd"}}{{/get~}}
|
||||
{{~> pitch-accent-item-graph-position index=@index position=../position~}}
|
||||
{{~#set "cmd" "L"}}{{/set~}}
|
||||
{{~/each~}}
|
||||
"></path>
|
||||
<path style="fill:none;stroke:#000;stroke-width:5;stroke-dasharray:5 5;" d="M{{> pitch-accent-item-graph-position index=(op "-" (get "morae-count") 1) position=position}} L{{> pitch-accent-item-graph-position index=(get "morae-count") position=position}}"></path>
|
||||
{{#each (get "morae")}}
|
||||
<use href="{{#if (op "&&" (isMoraPitchHigh @index ../position) (op "!" (isMoraPitchHigh (op "+" @index 1) ../position)))}}#term-pitch-accent-graph-dot-downstep{{else}}#term-pitch-accent-graph-dot{{/if}}" x="{{> pitch-accent-item-graph-position-x index=@index position=../position}}" y="{{> pitch-accent-item-graph-position-y index=@index position=../position}}"></use>
|
||||
{{/each}}
|
||||
<use href="#term-pitch-accent-graph-triangle" x="{{> pitch-accent-item-graph-position-x index=(get "morae-count") position=position}}" y="{{> pitch-accent-item-graph-position-y index=(get "morae-count") position=position}}"></use>
|
||||
</svg>
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item-position"~}}
|
||||
<span>[{{position}}]</span>
|
||||
{{~/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item"}}
|
||||
{{~#if (op "==" format "downstep-notation")~}}
|
||||
{{~> pitch-accent-item-downstep-notation~}}
|
||||
{{~else if (op "==" format "graph")~}}
|
||||
{{~> pitch-accent-item-graph~}}
|
||||
{{~else if (op "==" format "position")~}}
|
||||
{{~> pitch-accent-item-position~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item-disambiguation"}}
|
||||
{{~#scope~}}
|
||||
{{~#set "exclusive" (spread exclusiveExpressions exclusiveReadings)}}{{/set~}}
|
||||
{{~#if (op ">" (property (get "exclusive") "length") 0)~}}
|
||||
{{~#set "separator" ""~}}{{/set~}}
|
||||
<em>({{#each (get "exclusive")~}}
|
||||
{{~#get "separator"}}{{/get~}}{{{.}}}
|
||||
{{~/each}} only) </em>
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-list"}}
|
||||
{{~#if (op ">" pitchCount 0)~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}<ol>{{~/if~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}<li>{{~/if~}}
|
||||
{{~> pitch-accent-item-disambiguation~}}
|
||||
{{~> pitch-accent-item format=../../format~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}</li>{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}</ol>{{~/if~}}
|
||||
{{~else~}}
|
||||
No pitch accent data
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accents"}}
|
||||
{{~> pitch-accent-list format='downstep-notation'~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-graphs"}}
|
||||
{{~> pitch-accent-list format='graph'~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-positions"}}
|
||||
{{~> pitch-accent-list format='position'~}}
|
||||
{{/inline}}
|
||||
{{! End Pitch Accents }}
|
||||
161
vendor/yomitan/data/templates/anki-field-templates-upgrade-v21.handlebars
vendored
Normal file
161
vendor/yomitan/data/templates/anki-field-templates-upgrade-v21.handlebars
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
{{<<<<<<<}}
|
||||
{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}
|
||||
{{=======}}
|
||||
{{formatGlossary ../dictionary .}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#furigana}}{{{.}}}{{/furigana~}}
|
||||
{{=======}}
|
||||
{{~furigana .~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#furigana}}{{{definition}}}{{/furigana}}
|
||||
{{=======}}
|
||||
{{furigana definition}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#furigana expression reading~}}{{~/furigana~}}
|
||||
{{=======}}
|
||||
{{~furigana expression reading~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#furigana expression reading}}{{/furigana~}}
|
||||
{{=======}}
|
||||
{{~furigana expression reading~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#furiganaPlain}}{{{.}}}{{/furiganaPlain~}}
|
||||
{{=======}}
|
||||
{{~furiganaPlain .~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#furiganaPlain}}{{{definition}}}{{/furiganaPlain}}
|
||||
{{=======}}
|
||||
{{furiganaPlain definition}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#furiganaPlain expression reading~}}{{~/furiganaPlain~}}
|
||||
{{=======}}
|
||||
{{~furiganaPlain expression reading~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#furiganaPlain expression reading}}{{/furiganaPlain~}}
|
||||
{{=======}}
|
||||
{{~furiganaPlain expression reading~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#getMedia "audio"}}{{/getMedia}}
|
||||
{{=======}}
|
||||
{{getMedia "audio"}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#getMedia "screenshot"}}{{/getMedia}}
|
||||
{{=======}}
|
||||
{{getMedia "screenshot"}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#getMedia "clipboardImage"}}{{/getMedia}}
|
||||
{{=======}}
|
||||
{{getMedia "clipboardImage"}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#getMedia "clipboardText"}}{{/getMedia}}
|
||||
{{=======}}
|
||||
{{getMedia "clipboardText"}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#getMedia "selectionText"}}{{/getMedia}}
|
||||
{{=======}}
|
||||
{{getMedia "selectionText"}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#getMedia "textFurigana" definition.cloze.sentence escape=false}}{{/getMedia}}
|
||||
{{=======}}
|
||||
{{getMedia "textFurigana" definition.cloze.sentence escape=false}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#pronunciation format=format reading=reading downstepPosition=position nasalPositions=nasalPositions devoicePositions=devoicePositions~}}{{~/pronunciation~}}
|
||||
{{=======}}
|
||||
{{~pronunciation format=format reading=reading downstepPosition=position nasalPositions=nasalPositions devoicePositions=devoicePositions~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "any" false}}{{/set~}}
|
||||
{{=======}}
|
||||
{{~set "any" false~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "any" true}}{{/set~}}
|
||||
{{=======}}
|
||||
{{~set "any" true~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "previousDictionary" dictionary~}}{{~/set~}}
|
||||
{{=======}}
|
||||
{{~set "previousDictionary" dictionary~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "exclusive" (spread exclusiveExpressions exclusiveReadings)}}{{/set~}}
|
||||
{{=======}}
|
||||
{{~set "exclusive" (spread exclusiveExpressions exclusiveReadings)~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "separator" ""~}}{{/set~}}
|
||||
{{=======}}
|
||||
{{~set "separator" ""~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#get "separator"}}{{/get~}}
|
||||
{{=======}}
|
||||
{{~get "separator"~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "found" false}}{{/set~}}
|
||||
{{=======}}
|
||||
{{~set "found" false~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "found" true}}{{/set~}}
|
||||
{{=======}}
|
||||
{{~set "found" true~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "first" true}}{{/set~}}
|
||||
{{=======}}
|
||||
{{~set "first" true~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set "first" false~}}{{~/set~}}
|
||||
{{=======}}
|
||||
{{~set "first" false~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#set (concat "used_" .) true~}}{{~/set~}}
|
||||
{{=======}}
|
||||
{{~set (concat "used_" .) true~}}
|
||||
{{>>>>>>>}}
|
||||
92
vendor/yomitan/data/templates/anki-field-templates-upgrade-v24.handlebars
vendored
Normal file
92
vendor/yomitan/data/templates/anki-field-templates-upgrade-v24.handlebars
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
{{#*inline "cloze-body-kana"}}
|
||||
{{~#if definition.cloze}}{{definition.cloze.bodyKana}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*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 definition.reasons~}}
|
||||
{{~#each definition.reasons~}}
|
||||
{{~#if (op ">" @index 0)}} « {{/if~}}
|
||||
{{.}}
|
||||
{{~/each~}}
|
||||
{{~/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 "frequency-harmonic-rank"}}
|
||||
{{~#if (op "===" definition.frequencyHarmonic -1) ~}}
|
||||
9999999
|
||||
{{~else ~}}
|
||||
{{definition.frequencyHarmonic}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequency-harmonic-occurrence"}}
|
||||
{{~#if (op "===" definition.frequencyHarmonic -1) ~}}
|
||||
0
|
||||
{{~else ~}}
|
||||
{{definition.frequencyHarmonic}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequency-average-rank"}}
|
||||
{{~#if (op "===" definition.frequencyAverage -1) ~}}
|
||||
9999999
|
||||
{{~else ~}}
|
||||
{{definition.frequencyAverage}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequency-average-occurrence"}}
|
||||
{{~#if (op "===" definition.frequencyAverage -1) ~}}
|
||||
0
|
||||
{{~else ~}}
|
||||
{{definition.frequencyAverage}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~#*inline "pitch-accent-categories"~}}
|
||||
{{~#each (pitchCategories @root)~}}{{~.~}}{{~#unless @last~}},{{~/unless~}}{{~/each~}}
|
||||
{{~/inline~}}
|
||||
21
vendor/yomitan/data/templates/anki-field-templates-upgrade-v27.handlebars
vendored
Normal file
21
vendor/yomitan/data/templates/anki-field-templates-upgrade-v27.handlebars
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "sentence-furigana"}}
|
||||
{{~#if definition.cloze~}}
|
||||
{{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}}
|
||||
{{getMedia "textFurigana" definition.cloze.sentence escape=false}}
|
||||
{{~else~}}
|
||||
{{definition.cloze.sentence}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "sentence-furigana"}}
|
||||
{{~#if definition.cloze~}}
|
||||
{{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}}
|
||||
{{{getMedia "textFurigana" definition.cloze.sentence escape=false}}}
|
||||
{{~else~}}
|
||||
{{{definition.cloze.sentence}}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v28.handlebars
vendored
Normal file
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v28.handlebars
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "url"}}
|
||||
<a href="{{definition.url}}">{{definition.url}}</a>
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{~#*inline "url"~}}
|
||||
<a href="{{definition.url}}">{{definition.url}}</a>
|
||||
{{~/inline~}}
|
||||
{{>>>>>>>}}
|
||||
13
vendor/yomitan/data/templates/anki-field-templates-upgrade-v29.handlebars
vendored
Normal file
13
vendor/yomitan/data/templates/anki-field-templates-upgrade-v29.handlebars
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "pitch-accent-graphs"}}
|
||||
{{~> pitch-accent-list format='graph'~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "pitch-accent-graphs"}}
|
||||
{{~> pitch-accent-list format='graph'~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-graphs-jj"}}
|
||||
{{~> pitch-accent-list format='graph-jj'~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
69
vendor/yomitan/data/templates/anki-field-templates-upgrade-v33.handlebars
vendored
Normal file
69
vendor/yomitan/data/templates/anki-field-templates-upgrade-v33.handlebars
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "sentence"}}
|
||||
{{~#if definition.cloze}}{{definition.cloze.sentence}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "sentence"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.sentence}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "cloze-prefix"}}
|
||||
{{~#if definition.cloze}}{{definition.cloze.prefix}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "cloze-prefix"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.prefix}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "cloze-body"}}
|
||||
{{~#if definition.cloze}}{{definition.cloze.body}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "cloze-body"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.body}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "cloze-body-kana"}}
|
||||
{{~#if definition.cloze}}{{definition.cloze.bodyKana}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "cloze-body-kana"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.bodyKana}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "cloze-suffix"}}
|
||||
{{~#if definition.cloze}}{{definition.cloze.suffix}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "cloze-suffix"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.suffix}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "clipboard-text"}}
|
||||
{{~#if (hasMedia "clipboardText")}}{{getMedia "clipboardText"}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "clipboard-text"}}
|
||||
{{~#if (hasMedia "clipboardText")}}{{{getMedia "clipboardText"}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "selection-text"}}
|
||||
{{~#if (hasMedia "selectionText")}}{{getMedia "selectionText"}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "selection-text"}}
|
||||
{{~#if (hasMedia "selectionText")}}{{{getMedia "selectionText"}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
59
vendor/yomitan/data/templates/anki-field-templates-upgrade-v34.handlebars
vendored
Normal file
59
vendor/yomitan/data/templates/anki-field-templates-upgrade-v34.handlebars
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
{{<<<<<<<}}
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
<ol>{{~#each definition.definitions~}}<li>{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}</li>{{~/each~}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.definitions~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{=======}}
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~/unless~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
<ol>
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li>
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
</li>
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{>>>>>>>}}
|
||||
33
vendor/yomitan/data/templates/anki-field-templates-upgrade-v35.handlebars
vendored
Normal file
33
vendor/yomitan/data/templates/anki-field-templates-upgrade-v35.handlebars
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "glossary-brief"}}
|
||||
{{~> glossary brief=true ~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "glossary-brief"}}
|
||||
{{~> glossary brief=true ~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~#*inline "glossary-first"~}}
|
||||
<div style="text-align: left;">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
{{~#with definition.definitions.[0]~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/with~}}
|
||||
{{~else~}}
|
||||
{{~#with definition.definitions.[0]~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/with~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
|
||||
{{#*inline "glossary-first-no-dictionary"}}
|
||||
{{~> glossary-first noDictionaryTag=true ~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "glossary-first-brief"}}
|
||||
{{~> glossary-first brief=true ~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
3
vendor/yomitan/data/templates/anki-field-templates-upgrade-v36.handlebars
vendored
Normal file
3
vendor/yomitan/data/templates/anki-field-templates-upgrade-v36.handlebars
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{{#*inline "onyomi-hiragana"}}
|
||||
{{~#each definition.onyomi}}{{hiragana .}}{{#unless @last}}, {{/unless}}{{/each~}}
|
||||
{{/inline}}
|
||||
33
vendor/yomitan/data/templates/anki-field-templates-upgrade-v37.handlebars
vendored
Normal file
33
vendor/yomitan/data/templates/anki-field-templates-upgrade-v37.handlebars
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "pitch-accent-list"}}
|
||||
{{~#if (op ">" pitchCount 0)~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}<ol>{{~/if~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}<li>{{~/if~}}
|
||||
{{~> pitch-accent-item-disambiguation~}}
|
||||
{{~> pitch-accent-item format=../../format~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}</li>{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}</ol>{{~/if~}}
|
||||
{{~else~}}
|
||||
No pitch accent data
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "pitch-accent-list"}}
|
||||
{{~#if (op ">" pitchCount 0)~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}<ol>{{~/if~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}<li>{{~/if~}}
|
||||
{{~> pitch-accent-item-disambiguation~}}
|
||||
{{~> pitch-accent-item format=../../format~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}</li>{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}</ol>{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
43
vendor/yomitan/data/templates/anki-field-templates-upgrade-v38.handlebars
vendored
Normal file
43
vendor/yomitan/data/templates/anki-field-templates-upgrade-v38.handlebars
vendored
Normal file
@@ -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}}
|
||||
{{>>>>>>>}}
|
||||
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v4.handlebars
vendored
Normal file
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v4.handlebars
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{{#*inline "clipboard-image"}}
|
||||
{{~#if definition.clipboardImageFileName~}}
|
||||
<img src="{{definition.clipboardImageFileName}}" />
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "clipboard-text"}}
|
||||
{{~#if definition.clipboardText~}}{{definition.clipboardText}}{{~/if~}}
|
||||
{{/inline}}
|
||||
129
vendor/yomitan/data/templates/anki-field-templates-upgrade-v41.handlebars
vendored
Normal file
129
vendor/yomitan/data/templates/anki-field-templates-upgrade-v41.handlebars
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
{{<<<<<<<}}
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~/unless~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
<ol>
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li>
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
</li>
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{=======}}
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;" class="yomitan-glossary">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~#if definition.glossaryScopedStyles~}}
|
||||
<style>{{{definition.glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
<ol>
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li data-dictionary="{{dictionary}}">
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
</li>
|
||||
{{~#if dictScopedStyles~}}
|
||||
<style>{{{dictScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~#if glossaryScopedStyles~}}
|
||||
<style>{{{glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{~#*inline "glossary-first"~}}
|
||||
<div style="text-align: left;">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
{{~#with definition.definitions.[0]~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/with~}}
|
||||
{{~else~}}
|
||||
{{~#with definition.definitions.[0]~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/with~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{=======}}
|
||||
{{~#*inline "glossary-first"~}}
|
||||
<div style="text-align: left;" class="yomitan-glossary">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~#if definition.glossaryScopedStyles~}}
|
||||
<style>{{{definition.glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
{{~#with definition.definitions.[0]~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~#if glossaryScopedStyles~}}
|
||||
<style>{{{glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/with~}}
|
||||
{{~else~}}
|
||||
{{~#with definition.definitions.[0]~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~#if glossaryScopedStyles~}}
|
||||
<style>{{{glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/with~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{>>>>>>>}}
|
||||
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v45.handlebars
vendored
Normal file
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v45.handlebars
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "selection-text"}}
|
||||
{{~#if (hasMedia "selectionText")}}{{{getMedia "selectionText"}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "popup-selection-text"}}
|
||||
{{~#if (hasMedia "popupSelectionText")}}{{{getMedia "popupSelectionText"}}}{{/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
115
vendor/yomitan/data/templates/anki-field-templates-upgrade-v49.handlebars
vendored
Normal file
115
vendor/yomitan/data/templates/anki-field-templates-upgrade-v49.handlebars
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "glossary-single"}}
|
||||
{{~#unless brief~}}
|
||||
{{~#scope~}}
|
||||
{{~set "any" false~}}
|
||||
{{~#each definitionTags~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{name}}
|
||||
{{~set "any" true~}}
|
||||
{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~#unless noDictionaryTag~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!==" dictionary (get "previousDictionary")))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{dictionary}}
|
||||
{{~set "any" true~}}
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (get "any")}})</i> {{/if~}}
|
||||
{{~/scope~}}
|
||||
{{~#if only~}}({{#each only}}{{.}}{{#unless @last}}, {{/unless}}{{/each}} only) {{/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (op "<=" glossary.length 1)~}}
|
||||
{{#each glossary}}{{formatGlossary ../dictionary .}}{{/each}}
|
||||
{{~else if @root.compactGlossaries~}}
|
||||
{{#each glossary}}{{formatGlossary ../dictionary .}}{{#unless @last}} | {{/unless}}{{/each}}
|
||||
{{~else~}}
|
||||
<ul>{{#each glossary}}<li>{{formatGlossary ../dictionary .}}</li>{{/each}}</ul>
|
||||
{{~/if~}}
|
||||
{{~set "previousDictionary" dictionary~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "glossary-single"}}
|
||||
{{~#unless brief~}}
|
||||
{{~#scope~}}
|
||||
{{~set "any" false~}}
|
||||
{{~#each definitionTags~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{name}}
|
||||
{{~set "any" true~}}
|
||||
{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~#unless noDictionaryTag~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!==" dictionary (get "previousDictionary")))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{dictionaryAlias}}
|
||||
{{~set "any" true~}}
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (get "any")}})</i> {{/if~}}
|
||||
{{~/scope~}}
|
||||
{{~#if only~}}({{#each only}}{{.}}{{#unless @last}}, {{/unless}}{{/each}} only) {{/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (op "<=" glossary.length 1)~}}
|
||||
{{#each glossary}}{{formatGlossary ../dictionary .}}{{/each}}
|
||||
{{~else if @root.compactGlossaries~}}
|
||||
{{#each glossary}}{{formatGlossary ../dictionary .}}{{#unless @last}} | {{/unless}}{{/each}}
|
||||
{{~else~}}
|
||||
<ul>{{#each glossary}}<li>{{formatGlossary ../dictionary .}}</li>{{/each}}</ul>
|
||||
{{~/if~}}
|
||||
{{~set "previousDictionary" dictionary~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "dictionary"}}
|
||||
{{~definition.dictionary~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "dictionary"}}
|
||||
{{~definition.dictionary~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "dictionary-alias"}}
|
||||
{{~definition.dictionaryAlias~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "frequencies"}}
|
||||
{{~#if (op ">" definition.frequencies.length 0)~}}
|
||||
<ul style="text-align: left;">
|
||||
{{~#each definition.frequencies~}}
|
||||
<li>
|
||||
{{~#if (op "!==" ../definition.type "kanji")~}}
|
||||
{{~#if (op "||" (op ">" ../uniqueExpressions.length 1) (op ">" ../uniqueReadings.length 1))~}}(
|
||||
{{~furigana expression reading~}}
|
||||
) {{/if~}}
|
||||
{{~/if~}}
|
||||
{{~dictionary}}: {{frequency~}}
|
||||
</li>
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "frequencies"}}
|
||||
{{~#if (op ">" definition.frequencies.length 0)~}}
|
||||
<ul style="text-align: left;">
|
||||
{{~#each definition.frequencies~}}
|
||||
<li>
|
||||
{{~#if (op "!==" ../definition.type "kanji")~}}
|
||||
{{~#if (op "||" (op ">" ../uniqueExpressions.length 1) (op ">" ../uniqueReadings.length 1))~}}(
|
||||
{{~furigana expression reading~}}
|
||||
) {{/if~}}
|
||||
{{~/if~}}
|
||||
{{~dictionaryAlias}}: {{frequency~}}
|
||||
</li>
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
25
vendor/yomitan/data/templates/anki-field-templates-upgrade-v6.handlebars
vendored
Normal file
25
vendor/yomitan/data/templates/anki-field-templates-upgrade-v6.handlebars
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{{#*inline "conjugation"}}
|
||||
{{~#if definition.reasons~}}
|
||||
{{~#each definition.reasons~}}
|
||||
{{~#if (op ">" @index 0)}} « {{/if~}}
|
||||
{{.}}
|
||||
{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequencies"}}
|
||||
{{~#if (op ">" definition.frequencies.length 0)~}}
|
||||
<ul style="text-align: left;">
|
||||
{{~#each definition.frequencies~}}
|
||||
<li>
|
||||
{{~#if (op "!==" ../definition.type "kanji")~}}
|
||||
{{~#if (op "||" (op ">" ../uniqueExpressions.length 1) (op ">" ../uniqueReadings.length 1))~}}(
|
||||
{{~#furigana expression reading~}}{{~/furigana~}}
|
||||
) {{/if~}}
|
||||
{{~/if~}}
|
||||
{{~dictionary}}: {{frequency~}}
|
||||
</li>
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v61.handlebars
vendored
Normal file
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v61.handlebars
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{{#*inline "sentence-furigana-plain"}}
|
||||
{{~#if definition.cloze~}}
|
||||
{{~#if (hasMedia "textFuriganaPlain" definition.cloze.sentence)~}}
|
||||
{{{getMedia "textFuriganaPlain" definition.cloze.sentence escape=false}}}
|
||||
{{~else~}}
|
||||
{{{definition.cloze.sentence}}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
43
vendor/yomitan/data/templates/anki-field-templates-upgrade-v63.handlebars
vendored
Normal file
43
vendor/yomitan/data/templates/anki-field-templates-upgrade-v63.handlebars
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*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 "phonetic-transcriptions"}}
|
||||
{{~#if (op ">" definition.phoneticTranscriptions.length 0)~}}
|
||||
<ul>
|
||||
{{~#each definition.phoneticTranscriptions~}}
|
||||
{{~#each phoneticTranscriptions~}}
|
||||
<li class="pronunciation" data-pronunciation-type="phonetic-transcription">
|
||||
{{~set "any" false~}}
|
||||
{{~#each tags~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
<span class="tag" data-details="{{name}}">{{name}}</span>
|
||||
{{~set "any" true~}}
|
||||
{{~/each~}}
|
||||
{{~#if (get "any")}})</i> {{/if~}}
|
||||
{{ipa~}}
|
||||
</li>
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
69
vendor/yomitan/data/templates/anki-field-templates-upgrade-v64.handlebars
vendored
Normal file
69
vendor/yomitan/data/templates/anki-field-templates-upgrade-v64.handlebars
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "expression"}}
|
||||
{{~#if merge~}}
|
||||
{{~#if modeTermKana~}}
|
||||
{{~#each definition.reading~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~else~}}
|
||||
{{~#each definition.expression~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{~#each definition.expression~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~else~}}
|
||||
{{~#if modeTermKana~}}
|
||||
{{~#if definition.reading~}}
|
||||
{{definition.reading}}
|
||||
{{~else~}}
|
||||
{{definition.expression}}
|
||||
{{~/if~}}
|
||||
{{~else~}}
|
||||
{{definition.expression}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "expression"}}
|
||||
{{~#if merge~}}
|
||||
{{~#each definition.expression~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{definition.expression}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "reading"}}
|
||||
{{~#unless modeTermKana~}}
|
||||
{{~#if merge~}}
|
||||
{{~#each definition.reading~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{~definition.reading~}}
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "reading"}}
|
||||
{{~#if merge~}}
|
||||
{{~#each definition.reading~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{~definition.reading~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
16
vendor/yomitan/data/templates/anki-field-templates-upgrade-v66.handlebars
vendored
Normal file
16
vendor/yomitan/data/templates/anki-field-templates-upgrade-v66.handlebars
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{{~#*inline "glossary-plain"~}}
|
||||
{{~#scope~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~#unless ../noDictionaryTag~}}
|
||||
({{dictionaryAlias}})<br>
|
||||
{{~/unless~}}
|
||||
{{#each glossary}}{{{formatGlossaryPlain ../dictionary .}}}{{#unless @last}}<br>{{/unless}}{{/each}}{{#unless @last}}<br>{{/unless}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/scope~}}
|
||||
{{~/inline~}}
|
||||
|
||||
{{#*inline "glossary-plain-no-dictionary"~}}
|
||||
{{~> glossary-plain noDictionaryTag=true ~}}
|
||||
{{/inline}}
|
||||
47
vendor/yomitan/data/templates/anki-field-templates-upgrade-v67.handlebars
vendored
Normal file
47
vendor/yomitan/data/templates/anki-field-templates-upgrade-v67.handlebars
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "frequencies"}}
|
||||
{{~#if (op ">" definition.frequencies.length 0)~}}
|
||||
<ul style="text-align: left;">
|
||||
{{~#each definition.frequencies~}}
|
||||
<li>
|
||||
{{~#if (op "!==" ../definition.type "kanji")~}}
|
||||
{{~#if (op "||" (op ">" ../uniqueExpressions.length 1) (op ">" ../uniqueReadings.length 1))~}}(
|
||||
{{~furigana expression reading~}}
|
||||
) {{/if~}}
|
||||
{{~/if~}}
|
||||
{{~dictionaryAlias}}: {{frequency~}}
|
||||
</li>
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "frequencies"}}
|
||||
{{~#if (op ">" definition.frequencies.length 0)~}}
|
||||
<ul style="text-align: left;">
|
||||
{{~#each definition.frequencies~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li>
|
||||
{{~#if (op "!==" ../definition.type "kanji")~}}
|
||||
{{~#if (op "||" (op ">" ../uniqueExpressions.length 1) (op ">" ../uniqueReadings.length 1))~}}(
|
||||
{{~furigana expression reading~}}
|
||||
) {{/if~}}
|
||||
{{~/if~}}
|
||||
{{~dictionaryAlias}}: {{frequency~}}
|
||||
</li>
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{#*inline "single-frequency-number"}}
|
||||
{{~#if (op ">" definition.frequencyNumbers.length 0)~}}
|
||||
{{~#each definition.frequencyNumbers~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{frequency~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{/if}}
|
||||
{{/inline}}
|
||||
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v68.handlebars
vendored
Normal file
9
vendor/yomitan/data/templates/anki-field-templates-upgrade-v68.handlebars
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "pitch-accent-item"}}
|
||||
{{~pronunciation format=format reading=reading downstepPosition=position nasalPositions=nasalPositions devoicePositions=devoicePositions~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "pitch-accent-item"}}
|
||||
{{~pronunciation format=format reading=reading pitchPositions=positions nasalPositions=nasalPositions devoicePositions=devoicePositions~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
80
vendor/yomitan/data/templates/anki-field-templates-upgrade-v71.handlebars
vendored
Normal file
80
vendor/yomitan/data/templates/anki-field-templates-upgrade-v71.handlebars
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{{<<<<<<<}}
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;" class="yomitan-glossary">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~#if definition.glossaryScopedStyles~}}
|
||||
<style>{{{definition.glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
<ol>
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li data-dictionary="{{dictionary}}">
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
</li>
|
||||
{{~#if dictScopedStyles~}}
|
||||
<style>{{{dictScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~#if glossaryScopedStyles~}}
|
||||
<style>{{{glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{=======}}
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;" class="yomitan-glossary">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~#if definition.glossaryScopedStyles~}}
|
||||
<style>{{{definition.glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
<ol>
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li data-dictionary="{{dictionary}}">
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
</li>
|
||||
{{~#if dictScopedStyles~}}
|
||||
<style>{{{dictScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ol>
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
{{>>>>>>>}}
|
||||
36
vendor/yomitan/data/templates/anki-field-templates-upgrade-v74.handlebars
vendored
Normal file
36
vendor/yomitan/data/templates/anki-field-templates-upgrade-v74.handlebars
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{{<<<<<<<}}
|
||||
{{~#*inline "glossary-plain"~}}
|
||||
{{~#scope~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~#unless ../noDictionaryTag~}}
|
||||
({{dictionaryAlias}})<br>
|
||||
{{~/unless~}}
|
||||
{{#each glossary}}{{{formatGlossaryPlain ../dictionary .}}}{{#unless @last}}<br>{{/unless}}{{/each}}{{#unless @last}}<br>{{/unless}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/scope~}}
|
||||
{{~/inline~}}
|
||||
{{=======}}
|
||||
{{~#*inline "glossary-plain"~}}
|
||||
{{~#scope~}}
|
||||
{{~#if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~#unless ../noDictionaryTag~}}
|
||||
({{dictionaryAlias}})<br>
|
||||
{{~/unless~}}
|
||||
{{#each glossary}}{{{formatGlossaryPlain ../dictionary .}}}{{#unless @last}}<br>{{/unless}}{{/each}}{{#unless @last}}<br>{{/unless}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~#unless noDictionaryTag~}}
|
||||
({{definition.dictionaryAlias}})<br>
|
||||
{{~/unless~}}
|
||||
{{#each definition.glossary}}{{{formatGlossaryPlain ../definition.dictionary .}}}{{/each}}
|
||||
{{~/unless~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{~/inline~}}
|
||||
{{>>>>>>>}}
|
||||
131
vendor/yomitan/data/templates/anki-field-templates-upgrade-v8.handlebars
vendored
Normal file
131
vendor/yomitan/data/templates/anki-field-templates-upgrade-v8.handlebars
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
{{#*inline "stroke-count"}}
|
||||
{{~#scope~}}
|
||||
{{~#set "found" false}}{{/set~}}
|
||||
{{~#each definition.stats.misc~}}
|
||||
{{~#if (op "===" name "strokes")~}}
|
||||
{{~#set "found" true}}{{/set~}}
|
||||
Stroke count: {{value}}
|
||||
{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~#if (op "!" (get "found"))~}}
|
||||
Stroke count: Unknown
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "glossary-single"}}
|
||||
{{~#unless brief~}}
|
||||
{{~#scope~}}
|
||||
{{~#set "any" false}}{{/set~}}
|
||||
{{~#if definitionTags~}}{{#each definitionTags~}}
|
||||
{{~#if (op "||" (op "!" ../data.compactTags) (op "!" redundant))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{name}}
|
||||
{{~#set "any" true}}{{/set~}}
|
||||
{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~#if (get "any")}})</i> {{/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{~#if only~}}({{#each only}}{{{.}}}{{#unless @last}}, {{/unless}}{{/each}} only) {{/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if glossary.[1]~}}
|
||||
{{~#if compactGlossaries~}}
|
||||
{{#each glossary}}{{#multiLine}}{{.}}{{/multiLine}}{{#unless @last}} | {{/unless}}{{/each}}
|
||||
{{~else~}}
|
||||
<ul>{{#each glossary}}<li>{{#multiLine}}{{.}}{{/multiLine}}</li>{{/each}}</ul>
|
||||
{{~/if~}}
|
||||
{{~else~}}
|
||||
{{~#multiLine}}{{glossary.[0]}}{{/multiLine~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{#*inline "glossary-single"}}
|
||||
{{~#unless brief~}}
|
||||
{{~#scope~}}
|
||||
{{~#set "any" false}}{{/set~}}
|
||||
{{~#each definitionTags~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{name}}
|
||||
{{~#set "any" true}}{{/set~}}
|
||||
{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~#unless noDictionaryTag~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!==" dictionary (get "previousDictionary")))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{dictionary}}
|
||||
{{~#set "any" true}}{{/set~}}
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (get "any")}})</i> {{/if~}}
|
||||
{{~/scope~}}
|
||||
{{~#if only~}}({{#each only}}{{.}}{{#unless @last}}, {{/unless}}{{/each}} only) {{/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (op "<=" glossary.length 1)~}}
|
||||
{{#each glossary}}{{#multiLine}}{{.}}{{/multiLine}}{{/each}}
|
||||
{{~else if @root.compactGlossaries~}}
|
||||
{{#each glossary}}{{#multiLine}}{{.}}{{/multiLine}}{{#unless @last}} | {{/unless}}{{/each}}
|
||||
{{~else~}}
|
||||
<ul>{{#each glossary}}<li>{{#multiLine}}{{.}}{{/multiLine}}</li>{{/each}}</ul>
|
||||
{{~/if~}}
|
||||
{{~#set "previousDictionary" dictionary~}}{{~/set~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
|
||||
{{<<<<<<<}}
|
||||
{{#*inline "glossary"}}
|
||||
<div style="text-align: left;">
|
||||
{{~#if modeKanji~}}
|
||||
{{~#if definition.glossary.[1]~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{definition.glossary.[0]}}
|
||||
{{~/if~}}
|
||||
{{~else~}}
|
||||
{{~#if group~}}
|
||||
{{~#if definition.definitions.[1]~}}
|
||||
<ol>{{#each definition.definitions}}<li>{{> glossary-single brief=../brief compactGlossaries=../compactGlossaries data=../.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~> glossary-single definition.definitions.[0] brief=brief compactGlossaries=compactGlossaries data=.~}}
|
||||
{{~/if~}}
|
||||
{{~else if merge~}}
|
||||
{{~#if definition.definitions.[1]~}}
|
||||
<ol>{{#each definition.definitions}}<li>{{> glossary-single brief=../brief compactGlossaries=../compactGlossaries data=../.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~> glossary-single definition.definitions.[0] brief=brief compactGlossaries=compactGlossaries data=.~}}
|
||||
{{~/if~}}
|
||||
{{~else~}}
|
||||
{{~> glossary-single definition brief=brief compactGlossaries=compactGlossaries data=.~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
</div>
|
||||
{{/inline}}
|
||||
{{=======}}
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
<ol>{{~#each definition.definitions~}}<li>{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}</li>{{~/each~}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.definitions~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
|
||||
{{#*inline "glossary-no-dictionary"}}
|
||||
{{~> glossary noDictionaryTag=true ~}}
|
||||
{{/inline}}
|
||||
{{>>>>>>>}}
|
||||
490
vendor/yomitan/data/templates/default-anki-field-templates.handlebars
vendored
Normal file
490
vendor/yomitan/data/templates/default-anki-field-templates.handlebars
vendored
Normal file
@@ -0,0 +1,490 @@
|
||||
{{#*inline "glossary-single"}}
|
||||
{{~#unless brief~}}
|
||||
{{~#scope~}}
|
||||
{{~set "any" false~}}
|
||||
{{~#each definitionTags~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{name}}
|
||||
{{~set "any" true~}}
|
||||
{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~#unless noDictionaryTag~}}
|
||||
{{~#if (op "||" (op "!" @root.compactTags) (op "!==" dictionary (get "previousDictionary")))~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
{{dictionaryAlias}}
|
||||
{{~set "any" true~}}
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (get "any")}})</i> {{/if~}}
|
||||
{{~/scope~}}
|
||||
{{~#if only~}}({{#each only}}{{.}}{{#unless @last}}, {{/unless}}{{/each}} only) {{/if~}}
|
||||
{{~/unless~}}
|
||||
{{~#if (op "<=" glossary.length 1)~}}
|
||||
{{#each glossary}}{{formatGlossary ../dictionary .}}{{/each}}
|
||||
{{~else if @root.compactGlossaries~}}
|
||||
{{#each glossary}}{{formatGlossary ../dictionary .}}{{#unless @last}} | {{/unless}}{{/each}}
|
||||
{{~else~}}
|
||||
<ul>{{#each glossary}}<li>{{formatGlossary ../dictionary .}}</li>{{/each}}</ul>
|
||||
{{~/if~}}
|
||||
{{~set "previousDictionary" dictionary~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "audio"}}
|
||||
{{~#if (hasMedia "audio")~}}
|
||||
[sound:{{getMedia "audio"}}]
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "character"}}
|
||||
{{~definition.character~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "dictionary"}}
|
||||
{{~definition.dictionary~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "dictionary-alias"}}
|
||||
{{~definition.dictionaryAlias~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "expression"}}
|
||||
{{~#if merge~}}
|
||||
{{~#each definition.expression~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{definition.expression}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "furigana"}}
|
||||
{{~#if merge~}}
|
||||
{{~#each definition.expressions~}}
|
||||
<span class="expression-{{termFrequency}}">{{~furigana .~}}</span>
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{furigana definition}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "furigana-plain"}}
|
||||
{{~#if merge~}}
|
||||
{{~#each definition.expressions~}}
|
||||
<span class="expression-{{termFrequency}}">{{~furiganaPlain .~}}</span>
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{furiganaPlain definition}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~#*inline "glossary"~}}
|
||||
<div style="text-align: left;" class="yomitan-glossary">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~#if definition.glossaryScopedStyles~}}
|
||||
<style>{{{definition.glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
<ol>
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li data-dictionary="{{dictionary}}">
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
</li>
|
||||
{{~#if dictScopedStyles~}}
|
||||
<style>{{{dictScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ol>
|
||||
{{~else if (op "===" definition.type "kanji")~}}
|
||||
{{~#if (op ">" definition.glossary.length 1)~}}
|
||||
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
||||
{{~else~}}
|
||||
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
|
||||
{{#*inline "glossary-no-dictionary"}}
|
||||
{{~> glossary noDictionaryTag=true ~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "glossary-brief"}}
|
||||
{{~> glossary brief=true ~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~#*inline "glossary-plain"~}}
|
||||
{{~#scope~}}
|
||||
{{~#if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#each definition.definitions~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{~#unless ../noDictionaryTag~}}
|
||||
({{dictionaryAlias}})<br>
|
||||
{{~/unless~}}
|
||||
{{#each glossary}}{{{formatGlossaryPlain ../dictionary .}}}{{#unless @last}}<br>{{/unless}}{{/each}}{{#unless @last}}<br>{{/unless}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
|
||||
{{~#unless noDictionaryTag~}}
|
||||
({{definition.dictionaryAlias}})<br>
|
||||
{{~/unless~}}
|
||||
{{#each definition.glossary}}{{{formatGlossaryPlain ../definition.dictionary .}}}{{/each}}
|
||||
{{~/unless~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{~/inline~}}
|
||||
|
||||
{{#*inline "glossary-plain-no-dictionary"~}}
|
||||
{{~> glossary-plain noDictionaryTag=true ~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~#*inline "glossary-first"~}}
|
||||
<div style="text-align: left;" class="yomitan-glossary">
|
||||
{{~#scope~}}
|
||||
{{~#if (op "===" definition.type "term")~}}
|
||||
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
||||
{{~#if definition.glossaryScopedStyles~}}
|
||||
<style>{{{definition.glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
||||
{{~#if (op ">" definition.definitions.length 1)~}}
|
||||
{{~#with definition.definitions.[0]~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~#if glossaryScopedStyles~}}
|
||||
<style>{{{glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/with~}}
|
||||
{{~else~}}
|
||||
{{~#with definition.definitions.[0]~}}
|
||||
{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}
|
||||
{{~#if glossaryScopedStyles~}}
|
||||
<style>{{{glossaryScopedStyles}}}</style>
|
||||
{{~/if~}}
|
||||
{{~/with~}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
</div>
|
||||
{{~/inline~}}
|
||||
|
||||
{{#*inline "glossary-first-no-dictionary"}}
|
||||
{{~> glossary-first noDictionaryTag=true ~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "glossary-first-brief"}}
|
||||
{{~> glossary-first brief=true ~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "kunyomi"}}
|
||||
{{~#each definition.kunyomi}}{{.}}{{#unless @last}}, {{/unless}}{{/each~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "onyomi"}}
|
||||
{{~#each definition.onyomi}}{{.}}{{#unless @last}}, {{/unless}}{{/each~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "onyomi-hiragana"}}
|
||||
{{~#each definition.onyomi}}{{hiragana .}}{{#unless @last}}, {{/unless}}{{/each~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "reading"}}
|
||||
{{~#if merge~}}
|
||||
{{~#each definition.reading~}}
|
||||
{{{.}}}
|
||||
{{~#unless @last}}、{{/unless~}}
|
||||
{{~/each~}}
|
||||
{{~else~}}
|
||||
{{~definition.reading~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "sentence"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.sentence}}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "cloze-prefix"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.prefix}}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "cloze-body"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.body}}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "cloze-body-kana"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.bodyKana}}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "cloze-suffix"}}
|
||||
{{~#if definition.cloze}}{{{definition.cloze.suffix}}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "tags"}}
|
||||
{{~#mergeTags definition group merge}}{{this}}{{/mergeTags~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~#*inline "url"~}}
|
||||
<a href="{{definition.url}}">{{definition.url}}</a>
|
||||
{{~/inline~}}
|
||||
|
||||
{{#*inline "screenshot"}}
|
||||
{{~#if (hasMedia "screenshot")~}}
|
||||
<img src="{{getMedia "screenshot"}}" />
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "document-title"}}
|
||||
{{~context.document.title~}}
|
||||
{{/inline}}
|
||||
|
||||
{{! Pitch Accents }}
|
||||
{{#*inline "pitch-accent-item"}}
|
||||
{{~pronunciation format=format reading=reading pitchPositions=positions nasalPositions=nasalPositions devoicePositions=devoicePositions~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-item-disambiguation"}}
|
||||
{{~#scope~}}
|
||||
{{~set "exclusive" (spread exclusiveExpressions exclusiveReadings)~}}
|
||||
{{~#if (op ">" (property (get "exclusive") "length") 0)~}}
|
||||
{{~set "separator" ""~}}
|
||||
<em>({{#each (get "exclusive")~}}
|
||||
{{~get "separator"~}}{{{.}}}
|
||||
{{~/each}} only) </em>
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-list"}}
|
||||
{{~#if (op ">" pitchCount 0)~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}<ol>{{~/if~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#each pitches~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}<li>{{~/if~}}
|
||||
{{~> pitch-accent-item-disambiguation~}}
|
||||
{{~> pitch-accent-item format=../../format~}}
|
||||
{{~#if (op ">" ../../pitchCount 1)~}}</li>{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
{{~#if (op ">" pitchCount 1)~}}</ol>{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accents"}}
|
||||
{{~> pitch-accent-list format='text'~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-graphs"}}
|
||||
{{~> pitch-accent-list format='graph'~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-graphs-jj"}}
|
||||
{{~> pitch-accent-list format='graph-jj'~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "pitch-accent-positions"}}
|
||||
{{~> pitch-accent-list format='position'~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~#*inline "pitch-accent-categories"~}}
|
||||
{{~#each (pitchCategories @root)~}}{{~.~}}{{~#unless @last~}},{{~/unless~}}{{~/each~}}
|
||||
{{~/inline~}}
|
||||
{{! End Pitch Accents }}
|
||||
|
||||
{{#*inline "phonetic-transcriptions"}}
|
||||
{{~#if (op ">" definition.phoneticTranscriptions.length 0)~}}
|
||||
<ul>
|
||||
{{~#each definition.phoneticTranscriptions~}}
|
||||
{{~#each phoneticTranscriptions~}}
|
||||
<li class="pronunciation" data-pronunciation-type="phonetic-transcription">
|
||||
{{~set "any" false~}}
|
||||
{{~#each tags~}}
|
||||
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
||||
<span class="tag" data-details="{{name}}">{{name}}</span>
|
||||
{{~set "any" true~}}
|
||||
{{~/each~}}
|
||||
{{~#if (get "any")}})</i> {{/if~}}
|
||||
{{ipa~}}
|
||||
</li>
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "clipboard-image"}}
|
||||
{{~#if (hasMedia "clipboardImage")~}}
|
||||
<img src="{{getMedia "clipboardImage"}}" />
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "clipboard-text"}}
|
||||
{{~#if (hasMedia "clipboardText")}}{{{getMedia "clipboardText"}}}{{/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}}
|
||||
|
||||
{{#*inline "frequencies"}}
|
||||
{{~#if (op ">" definition.frequencies.length 0)~}}
|
||||
<ul style="text-align: left;">
|
||||
{{~#each definition.frequencies~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
<li>
|
||||
{{~#if (op "!==" ../definition.type "kanji")~}}
|
||||
{{~#if (op "||" (op ">" ../uniqueExpressions.length 1) (op ">" ../uniqueReadings.length 1))~}}(
|
||||
{{~furigana expression reading~}}
|
||||
) {{/if~}}
|
||||
{{~/if~}}
|
||||
{{~dictionaryAlias}}: {{frequency~}}
|
||||
</li>
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
</ul>
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "single-frequency-number"}}
|
||||
{{~#if (op ">" definition.frequencyNumbers.length 0)~}}
|
||||
{{~#each definition.frequencyNumbers~}}
|
||||
{{~#unless (op "&&" ../selectedDictionary (op "!=" ../selectedDictionary dictionary))~}}
|
||||
{{frequency~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{/if}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequency-harmonic-rank"}}
|
||||
{{~#if (op "===" definition.frequencyHarmonic -1) ~}}
|
||||
9999999
|
||||
{{~else ~}}
|
||||
{{definition.frequencyHarmonic}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequency-harmonic-occurrence"}}
|
||||
{{~#if (op "===" definition.frequencyHarmonic -1) ~}}
|
||||
0
|
||||
{{~else ~}}
|
||||
{{definition.frequencyHarmonic}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequency-average-rank"}}
|
||||
{{~#if (op "===" definition.frequencyAverage -1) ~}}
|
||||
9999999
|
||||
{{~else ~}}
|
||||
{{definition.frequencyAverage}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "frequency-average-occurrence"}}
|
||||
{{~#if (op "===" definition.frequencyAverage -1) ~}}
|
||||
0
|
||||
{{~else ~}}
|
||||
{{definition.frequencyAverage}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "stroke-count"}}
|
||||
{{~#scope~}}
|
||||
{{~set "found" false~}}
|
||||
{{~#each definition.stats.misc~}}
|
||||
{{~#if (op "===" name "strokes")~}}
|
||||
{{~set "found" true~}}
|
||||
Stroke count: {{value}}
|
||||
{{~/if~}}
|
||||
{{~/each~}}
|
||||
{{~#if (op "!" (get "found"))~}}
|
||||
Stroke count: Unknown
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "part-of-speech-pretty"}}
|
||||
{{~#if (op "===" . "v1")~}}Ichidan verb
|
||||
{{~else if (op "===" . "v5")~}}Godan verb
|
||||
{{~else if (op "===" . "vk")~}}Kuru verb
|
||||
{{~else if (op "===" . "vs")~}}Suru verb
|
||||
{{~else if (op "===" . "vz")~}}Zuru verb
|
||||
{{~else if (op "===" . "adj-i")~}}I-adjective
|
||||
{{~else if (op "===" . "n")~}}Noun
|
||||
{{~else~}}{{.}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "part-of-speech"}}
|
||||
{{~#scope~}}
|
||||
{{~#if (op "!==" definition.type "kanji")~}}
|
||||
{{~set "first" true~}}
|
||||
{{~#each definition.expressions~}}
|
||||
{{~#each wordClasses~}}
|
||||
{{~#unless (get (concat "used_" .))~}}
|
||||
{{~> part-of-speech-pretty . ~}}
|
||||
{{~#unless (get "first")}}, {{/unless~}}
|
||||
{{~set (concat "used_" .) true~}}
|
||||
{{~set "first" false~}}
|
||||
{{~/unless~}}
|
||||
{{~/each~}}
|
||||
{{~/each~}}
|
||||
{{~#if (get "first")~}}Unknown{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{~/scope~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "search-query"}}
|
||||
{{~#multiLine}}{{context.fullQuery}}{{/multiLine~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "popup-selection-text"}}
|
||||
{{~#if (hasMedia "popupSelectionText")}}{{{getMedia "popupSelectionText"}}}{{/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "sentence-furigana"}}
|
||||
{{~#if definition.cloze~}}
|
||||
{{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}}
|
||||
{{{getMedia "textFurigana" definition.cloze.sentence escape=false}}}
|
||||
{{~else~}}
|
||||
{{{definition.cloze.sentence}}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{#*inline "sentence-furigana-plain"}}
|
||||
{{~#if definition.cloze~}}
|
||||
{{~#if (hasMedia "textFuriganaPlain" definition.cloze.sentence)~}}
|
||||
{{{getMedia "textFuriganaPlain" definition.cloze.sentence escape=false}}}
|
||||
{{~else~}}
|
||||
{{{definition.cloze.sentence}}}
|
||||
{{~/if~}}
|
||||
{{~/if~}}
|
||||
{{/inline}}
|
||||
|
||||
{{~> (lookup . "marker") ~}}
|
||||
Reference in New Issue
Block a user