2020-02-28 01:33:13 +00:00
|
|
|
{{#*inline "glossary-single"}}
|
|
|
|
{{~#unless brief~}}
|
2020-11-13 01:34:11 +00:00
|
|
|
{{~#scope~}}
|
|
|
|
{{~#set "any" false}}{{/set~}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~#each definitionTags~}}
|
|
|
|
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
|
2020-11-13 01:34:11 +00:00
|
|
|
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
|
|
|
{{name}}
|
|
|
|
{{~#set "any" true}}{{/set~}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{~/each~}}
|
2021-01-29 02:33:30 +00:00
|
|
|
{{~#unless noDictionaryTag~}}
|
|
|
|
{{~#if (op "||" (op "!" @root.compactTags) (op "!==" dictionary (get "previousDictionary")))~}}
|
|
|
|
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
|
|
|
|
{{dictionary}}
|
|
|
|
{{~#set "any" true}}{{/set~}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{~/unless~}}
|
2020-11-13 01:34:11 +00:00
|
|
|
{{~#if (get "any")}})</i> {{/if~}}
|
|
|
|
{{~/scope~}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~#if only~}}({{#each only}}{{.}}{{#unless @last}}, {{/unless}}{{/each}} only) {{/if~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
{{~/unless~}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~#if (op "<=" glossary.length 1)~}}
|
2021-07-03 02:46:38 +00:00
|
|
|
{{#each glossary}}{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}{{/each}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~else if @root.compactGlossaries~}}
|
2021-07-03 02:46:38 +00:00
|
|
|
{{#each glossary}}{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}{{#unless @last}} | {{/unless}}{{/each}}
|
2020-02-28 01:33:13 +00:00
|
|
|
{{~else~}}
|
2021-07-03 02:46:38 +00:00
|
|
|
<ul>{{#each glossary}}<li>{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}</li>{{/each}}</ul>
|
2020-02-28 01:33:13 +00:00
|
|
|
{{~/if~}}
|
2021-01-29 02:33:30 +00:00
|
|
|
{{~#set "previousDictionary" dictionary~}}{{~/set~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
{{/inline}}
|
|
|
|
|
2020-05-09 16:29:41 +00:00
|
|
|
{{#*inline "audio"}}
|
2021-07-06 23:43:53 +00:00
|
|
|
{{~#if (hasMedia "audio")~}}
|
2021-07-10 00:14:05 +00:00
|
|
|
[sound:{{#getMedia "audio"}}{{/getMedia}}]
|
2020-05-09 16:29:41 +00:00
|
|
|
{{~/if~}}
|
|
|
|
{{/inline}}
|
2020-02-28 01:33:13 +00:00
|
|
|
|
|
|
|
{{#*inline "character"}}
|
|
|
|
{{~definition.character~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "dictionary"}}
|
|
|
|
{{~definition.dictionary~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*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 "furigana"}}
|
|
|
|
{{~#if merge~}}
|
|
|
|
{{~#each definition.expressions~}}
|
|
|
|
<span class="expression-{{termFrequency}}">{{~#furigana}}{{{.}}}{{/furigana~}}</span>
|
|
|
|
{{~#unless @last}}、{{/unless~}}
|
|
|
|
{{~/each~}}
|
|
|
|
{{~else~}}
|
|
|
|
{{#furigana}}{{{definition}}}{{/furigana}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "furigana-plain"}}
|
|
|
|
{{~#if merge~}}
|
|
|
|
{{~#each definition.expressions~}}
|
|
|
|
<span class="expression-{{termFrequency}}">{{~#furiganaPlain}}{{{.}}}{{/furiganaPlain~}}</span>
|
|
|
|
{{~#unless @last}}、{{/unless~}}
|
|
|
|
{{~/each~}}
|
|
|
|
{{~else~}}
|
|
|
|
{{#furiganaPlain}}{{{definition}}}{{/furiganaPlain}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~#*inline "glossary"~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
<div style="text-align: left;">
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~#scope~}}
|
|
|
|
{{~#if (op "===" definition.type "term")~}}
|
2021-01-29 02:33:30 +00:00
|
|
|
{{~> glossary-single definition brief=brief noDictionaryTag=noDictionaryTag ~}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~else if (op "||" (op "===" definition.type "termGrouped") (op "===" definition.type "termMerged"))~}}
|
|
|
|
{{~#if (op ">" definition.definitions.length 1)~}}
|
2021-01-29 02:33:30 +00:00
|
|
|
<ol>{{~#each definition.definitions~}}<li>{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}</li>{{~/each~}}</ol>
|
2020-02-28 01:33:13 +00:00
|
|
|
{{~else~}}
|
2021-01-29 02:33:30 +00:00
|
|
|
{{~#each definition.definitions~}}{{~> glossary-single . brief=../brief noDictionaryTag=../noDictionaryTag ~}}{{~/each~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
{{~/if~}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~else if (op "===" definition.type "kanji")~}}
|
|
|
|
{{~#if (op ">" definition.glossary.length 1)~}}
|
|
|
|
<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
|
2020-02-28 01:33:13 +00:00
|
|
|
{{~else~}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~#each definition.glossary~}}{{.}}{{~/each~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
{{~/if~}}
|
|
|
|
{{~/if~}}
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~/scope~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
</div>
|
2021-01-29 02:17:10 +00:00
|
|
|
{{~/inline~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
|
2021-01-29 02:33:30 +00:00
|
|
|
{{#*inline "glossary-no-dictionary"}}
|
2021-01-29 02:38:13 +00:00
|
|
|
{{~> glossary noDictionaryTag=true ~}}
|
2021-01-29 02:33:30 +00:00
|
|
|
{{/inline}}
|
|
|
|
|
2020-02-28 01:33:13 +00:00
|
|
|
{{#*inline "glossary-brief"}}
|
|
|
|
{{~> glossary brief=true ~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "kunyomi"}}
|
|
|
|
{{~#each definition.kunyomi}}{{.}}{{#unless @last}}, {{/unless}}{{/each~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "onyomi"}}
|
|
|
|
{{~#each definition.onyomi}}{{.}}{{#unless @last}}, {{/unless}}{{/each~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "reading"}}
|
|
|
|
{{~#unless modeTermKana~}}
|
|
|
|
{{~#if merge~}}
|
|
|
|
{{~#each definition.reading~}}
|
|
|
|
{{{.}}}
|
|
|
|
{{~#unless @last}}、{{/unless~}}
|
|
|
|
{{~/each~}}
|
|
|
|
{{~else~}}
|
|
|
|
{{~definition.reading~}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{~/unless~}}
|
|
|
|
{{/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-suffix"}}
|
|
|
|
{{~#if definition.cloze}}{{definition.cloze.suffix}}{{/if~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "tags"}}
|
2020-05-23 00:03:34 +00:00
|
|
|
{{~#mergeTags definition group merge}}{{this}}{{/mergeTags~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "url"}}
|
|
|
|
<a href="{{definition.url}}">{{definition.url}}</a>
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "screenshot"}}
|
2021-07-06 23:43:53 +00:00
|
|
|
{{~#if (hasMedia "screenshot")~}}
|
2021-07-10 00:14:05 +00:00
|
|
|
<img src="{{#getMedia "screenshot"}}{{/getMedia}}" />
|
2021-07-06 23:43:53 +00:00
|
|
|
{{~/if~}}
|
2020-02-28 01:33:13 +00:00
|
|
|
{{/inline}}
|
|
|
|
|
2020-03-15 21:32:31 +00:00
|
|
|
{{#*inline "document-title"}}
|
|
|
|
{{~context.document.title~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
2020-08-01 20:23:33 +00:00
|
|
|
{{! Pitch Accents }}
|
|
|
|
{{#*inline "pitch-accent-item"}}
|
2021-07-18 20:01:42 +00:00
|
|
|
{{~#pronunciation format=format reading=reading downstepPosition=position nasalPositions=nasalPositions devoicePositions=devoicePositions~}}{{~/pronunciation~}}
|
2020-08-01 20:23:33 +00:00
|
|
|
{{/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"}}
|
2021-07-18 20:01:42 +00:00
|
|
|
{{~> pitch-accent-list format='text'~}}
|
2020-08-01 20:23:33 +00:00
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "pitch-accent-graphs"}}
|
|
|
|
{{~> pitch-accent-list format='graph'~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "pitch-accent-positions"}}
|
|
|
|
{{~> pitch-accent-list format='position'~}}
|
|
|
|
{{/inline}}
|
|
|
|
{{! End Pitch Accents }}
|
|
|
|
|
2020-09-08 15:01:08 +00:00
|
|
|
{{#*inline "clipboard-image"}}
|
2021-07-06 23:43:53 +00:00
|
|
|
{{~#if (hasMedia "clipboardImage")~}}
|
2021-07-10 00:14:05 +00:00
|
|
|
<img src="{{#getMedia "clipboardImage"}}{{/getMedia}}" />
|
2020-09-08 15:01:08 +00:00
|
|
|
{{~/if~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
2020-09-26 17:45:48 +00:00
|
|
|
{{#*inline "clipboard-text"}}
|
2021-07-10 00:14:05 +00:00
|
|
|
{{~#if (hasMedia "clipboardText")}}{{#getMedia "clipboardText"}}{{/getMedia}}{{/if~}}
|
2020-09-26 17:45:48 +00:00
|
|
|
{{/inline}}
|
|
|
|
|
2020-11-05 01:39:23 +00:00
|
|
|
{{#*inline "conjugation"}}
|
|
|
|
{{~#if definition.reasons~}}
|
|
|
|
{{~#each definition.reasons~}}
|
|
|
|
{{~#if (op ">" @index 0)}} « {{/if~}}
|
|
|
|
{{.}}
|
|
|
|
{{~/each~}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
2020-11-28 19:30:50 +00:00
|
|
|
{{#*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}}
|
|
|
|
|
2021-01-16 20:29:42 +00:00
|
|
|
{{#*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}}
|
|
|
|
|
2021-03-26 23:50:54 +00:00
|
|
|
{{#*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}}
|
|
|
|
|
2021-05-18 00:18:37 +00:00
|
|
|
{{#*inline "search-query"}}
|
|
|
|
{{~#multiLine}}{{context.fullQuery}}{{/multiLine~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
2021-07-08 00:00:30 +00:00
|
|
|
{{#*inline "selection-text"}}
|
2021-07-10 00:14:05 +00:00
|
|
|
{{~#if (hasMedia "selectionText")}}{{#getMedia "selectionText"}}{{/getMedia}}{{/if~}}
|
2021-07-08 00:00:30 +00:00
|
|
|
{{/inline}}
|
|
|
|
|
2021-07-09 21:48:27 +00:00
|
|
|
{{#*inline "sentence-furigana"}}
|
|
|
|
{{~#if definition.cloze~}}
|
|
|
|
{{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}}
|
2021-07-10 00:14:05 +00:00
|
|
|
{{#getMedia "textFurigana" definition.cloze.sentence escape=false}}{{/getMedia}}
|
2021-07-09 21:48:27 +00:00
|
|
|
{{~else~}}
|
|
|
|
{{definition.cloze.sentence}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{~/if~}}
|
|
|
|
{{/inline}}
|
|
|
|
|
2020-05-23 00:03:34 +00:00
|
|
|
{{~> (lookup . "marker") ~}}
|