mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 06:22:44 -08:00
feat(assets): bundle runtime assets and vendor dependencies
This commit is contained in:
43
vendor/yomitan/data/anki-compact-gloss-style.js
vendored
Normal file
43
vendor/yomitan/data/anki-compact-gloss-style.js
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2025 Yomitan Authors
|
||||
* Copyright (C) 2019-2022 Yomichan Authors
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
const ANKI_COMPACT_GLOSS_STYLES = `
|
||||
ul[data-sc-content="glossary"] > li:not(:first-child)::before {
|
||||
white-space: pre-wrap;
|
||||
content: ' | ';
|
||||
display: inline;
|
||||
color: #777777;
|
||||
}
|
||||
|
||||
ul[data-sc-content="glossary"] > li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
ul[data-sc-content="glossary"] {
|
||||
display: inline;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getAnkiCompactGlossStyles() {
|
||||
return ANKI_COMPACT_GLOSS_STYLES.trim();
|
||||
}
|
||||
BIN
vendor/yomitan/data/audio/fallback-bloop.mp3
vendored
Normal file
BIN
vendor/yomitan/data/audio/fallback-bloop.mp3
vendored
Normal file
Binary file not shown.
BIN
vendor/yomitan/data/audio/fallback-click.mp3
vendored
Normal file
BIN
vendor/yomitan/data/audio/fallback-click.mp3
vendored
Normal file
Binary file not shown.
BIN
vendor/yomitan/data/fonts/kanji-stroke-orders.ttf
vendored
Normal file
BIN
vendor/yomitan/data/fonts/kanji-stroke-orders.ttf
vendored
Normal file
Binary file not shown.
166
vendor/yomitan/data/pronunciation-style.json
vendored
Normal file
166
vendor/yomitan/data/pronunciation-style.json
vendored
Normal file
@@ -0,0 +1,166 @@
|
||||
[
|
||||
{
|
||||
"selectors": [".pronunciation-downstep-notation"],
|
||||
"styles": [
|
||||
["display", "inline"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-text"],
|
||||
"styles": [
|
||||
["display", "inline"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-mora"],
|
||||
"styles": [
|
||||
["display", "inline-block"],
|
||||
["position", "relative"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-mora-line"],
|
||||
"styles": [
|
||||
["border-color", "currentColor"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-mora[data-pitch=high]>.pronunciation-mora-line"],
|
||||
"styles": [
|
||||
["display", "block"],
|
||||
["user-select", "none"],
|
||||
["pointer-events", "none"],
|
||||
["position", "absolute"],
|
||||
["top", "0.1em"],
|
||||
["left", "0"],
|
||||
["right", "0"],
|
||||
["height", "0"],
|
||||
["border-top-width", "0.1em"],
|
||||
["border-top-style", "solid"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-mora[data-pitch=high][data-pitch-next=low]>.pronunciation-mora-line"],
|
||||
"styles": [
|
||||
["right", "-0.1em"],
|
||||
["height", "0.4em"],
|
||||
["border-right-width", "0.1em"],
|
||||
["border-right-style", "solid"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-mora[data-pitch=high][data-pitch-next=low]"],
|
||||
"styles": [
|
||||
["padding-right", "0.1em"],
|
||||
["margin-right", "0.1em"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-devoice-indicator"],
|
||||
"styles": [
|
||||
["display", "block"],
|
||||
["position", "absolute"],
|
||||
["left", "50%"],
|
||||
["top", "50%"],
|
||||
["width", "1.125em"],
|
||||
["height", "1.125em"],
|
||||
["border-radius", "50%"],
|
||||
["box-sizing", "border-box"],
|
||||
["z-index", "1"],
|
||||
["transform", "translate(-50%, -50%)"],
|
||||
["border", "1.5px dotted #c83c28"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-nasal-indicator"],
|
||||
"styles": [
|
||||
["display", "block"],
|
||||
["position", "absolute"],
|
||||
["right", "-0.125em"],
|
||||
["top", "0.125em"],
|
||||
["width", "0.375em"],
|
||||
["height", "0.375em"],
|
||||
["border-radius", "50%"],
|
||||
["box-sizing", "border-box"],
|
||||
["z-index", "1"],
|
||||
["border", "1.5px solid #c83c28"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-nasal-diacritic"],
|
||||
"styles": [
|
||||
["position", "absolute"],
|
||||
["width", "0"],
|
||||
["height", "0"],
|
||||
["opacity", "0"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-character"],
|
||||
"styles": [
|
||||
["display", "inline"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-character-group"],
|
||||
"styles": [
|
||||
["display", "inline-block"],
|
||||
["position", "relative"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-graph"],
|
||||
"styles": [
|
||||
["display", "inline-block"],
|
||||
["vertical-align", "middle"],
|
||||
["height", "1.5em"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".pronunciation-graph-line",
|
||||
".pronunciation-graph-line-tail"
|
||||
],
|
||||
"styles": [
|
||||
["fill", "none"],
|
||||
["stroke-width", "5"],
|
||||
["stroke", "currentColor"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-graph-line-tail"],
|
||||
"styles": [
|
||||
["stroke-dasharray", "5 5"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-graph-dot"],
|
||||
"styles": [
|
||||
["stroke-width", "5"],
|
||||
["fill", "currentColor"],
|
||||
["stroke", "currentColor"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-graph-dot-downstep1"],
|
||||
"styles": [
|
||||
["fill", "none"],
|
||||
["stroke-width", "5"],
|
||||
["stroke", "currentColor"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-graph-dot-downstep2"],
|
||||
"styles": [
|
||||
["fill", "currentColor"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".pronunciation-graph-triangle"],
|
||||
"styles": [
|
||||
["fill", "none"],
|
||||
["stroke-width", "5"],
|
||||
["stroke", "currentColor"]
|
||||
]
|
||||
}
|
||||
]
|
||||
901
vendor/yomitan/data/recommended-dictionaries.json
vendored
Normal file
901
vendor/yomitan/data/recommended-dictionaries.json
vendored
Normal file
@@ -0,0 +1,901 @@
|
||||
{
|
||||
"afb": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-afb-en",
|
||||
"description": "Gulf Arabic to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-afb-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"aii": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [
|
||||
{
|
||||
"name": "kty-aii-en-ipa",
|
||||
"description": "Assyrian Neo-Aramaic IPA dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-aii-en-ipa.zip"
|
||||
}
|
||||
],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-aii-en",
|
||||
"description": "Assyrian Neo-Aramaic to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-aii-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ang": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-ang-en",
|
||||
"description": "Old English to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ang-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ar": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [
|
||||
{
|
||||
"name": "kty-ar-en-ipa",
|
||||
"description": "Arabic IPA dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ar-en-ipa.zip"
|
||||
}
|
||||
],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-ar-en",
|
||||
"description": "Arabic to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ar-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"arz": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [
|
||||
{
|
||||
"name": "kty-ar-en-ipa",
|
||||
"description": "Arabic IPA dictionary created from Wiktionary data.",
|
||||
"homepage": "https://github.com/yomidevs/kaikki-to-yomitan/blob/master/downloads.md",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ar-en-ipa.zip"
|
||||
}
|
||||
],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-ar-en",
|
||||
"description": "Arabic to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://github.com/yomidevs/kaikki-to-yomitan/blob/master/downloads.md",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ar-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"cs": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-cs-en",
|
||||
"description": "Czech to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-cs-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"de": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-de-en",
|
||||
"description": "German to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-de-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"el": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-el-en",
|
||||
"description": "Greek to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-el-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"en": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-en-en",
|
||||
"description": "English to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-en-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"enm": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-enm-en",
|
||||
"description": "Middle English to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-enm-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"eo": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-eo-en",
|
||||
"description": "Esperanto to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-eo-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"es": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-es-en",
|
||||
"description": "Spanish to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-es-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"fa": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-fa-en",
|
||||
"description": "Persian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-fa-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"fi": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-fi-en",
|
||||
"description": "Finnish to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-fi-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"fr": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-fr-en",
|
||||
"description": "French to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-fr-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"grc": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-grc-en",
|
||||
"description": "Ancient Greek to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-grc-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"haw": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "pukui-elbert-1986",
|
||||
"description": "English to Hawaiian Dictionary from Pukui-Elbert in 1986",
|
||||
"homepage": "https://github.com/bee-san/awesome-hawaiian-language",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-hawaiian-language/releases/download/0.0.1/Pukui-Elbert-1986-Deduped-Yomitan.zip"
|
||||
},
|
||||
{
|
||||
"name": "combined-dictionary",
|
||||
"description": "English to Hawaiian Dictionary from Stephen (Kepano) Trussel",
|
||||
"homepage": "https://github.com/bee-san/awesome-hawaiian-language",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-hawaiian-language/releases/download/0.0.1/Combined-Hawaiian-Dictionary-2020-Mitch-Cleaned.zip"
|
||||
},
|
||||
{
|
||||
"name": "hawaiian-place-names-2002",
|
||||
"description": "Hawaiian Place Names, published 2002",
|
||||
"homepage": "https://github.com/bee-san/awesome-hawaiian-language",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-hawaiian-language/releases/download/0.0.1/Hawaii-place-names-2002-yomitan.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"he": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-he-en",
|
||||
"description": "Hebrew to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-he-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hi": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-hi-en",
|
||||
"description": "Hindi to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-hi-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hu": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-hu-en",
|
||||
"description": "Hungarian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-hu-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-id-en",
|
||||
"description": "Indonesian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-id-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"it": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-it-en",
|
||||
"description": "Italian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-it-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ja": {
|
||||
"frequency": [
|
||||
{
|
||||
"name": "BCCWJ",
|
||||
"description": "Based on the Balanced Corpus of Contemporary Written Japanese covering books, magazines, newspapers, blogs, forums, textbooks, and legal documents among others.",
|
||||
"homepage": "https://github.com/Kuuuube/yomitan-dictionaries?tab=readme-ov-file#bccwj-suw-luw-combined",
|
||||
"downloadUrl": "https://github.com/Kuuuube/yomitan-dictionaries/releases/download/yomitan-permalink/BCCWJ_SUW_LUW_combined.zip"
|
||||
},
|
||||
{
|
||||
"name": "JPDB",
|
||||
"description": "A frequency dictionary based on the corpus from the online Japanese dictionary and SRS system at https://jpdb.io.",
|
||||
"homepage": "https://github.com/Kuuuube/yomitan-dictionaries?tab=readme-ov-file#jpdb-v22-frequency",
|
||||
"downloadUrl": "https://github.com/Kuuuube/yomitan-dictionaries/releases/download/yomitan-permalink/JPDB_v2.2_Frequency_Kana.zip"
|
||||
},
|
||||
{
|
||||
"name": "Jiten",
|
||||
"description": "A frequency dictionary based on the corpus from the media stats database at https://jiten.moe",
|
||||
"homepage": "https://jiten.moe/other",
|
||||
"downloadUrl": "https://api.jiten.moe/api/frequency-list/download?downloadType=yomitan"
|
||||
}
|
||||
],
|
||||
"grammar": [],
|
||||
"kanji": [
|
||||
{
|
||||
"name": "KANJIDIC",
|
||||
"description": "An English dictionary with readings, meanings, stroke order diagrams, frequency, grade level, JLPT level and frequency of kanji characters.",
|
||||
"homepage": "https://github.com/yomidevs/jmdict-yomitan?tab=readme-ov-file#kanjidic-for-yomitan",
|
||||
"downloadUrl": "https://github.com/yomidevs/jmdict-yomitan/releases/latest/download/KANJIDIC_english.zip"
|
||||
}
|
||||
],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "Jitendex",
|
||||
"description": "A free and openly licensed Japanese-to-English dictionary with example sentences, usage notes, etymology notes, cross references, antonyms, definition notes.",
|
||||
"homepage": "https://jitendex.org",
|
||||
"downloadUrl": "https://github.com/stephenmk/stephenmk.github.io/releases/latest/download/jitendex-yomitan.zip"
|
||||
},
|
||||
{
|
||||
"name": "JMnedict",
|
||||
"description": "A dictionary of Japanese proper names maintained by the Electronic Dictionary Research and Development Group.",
|
||||
"homepage": "https://github.com/yomidevs/jmdict-yomitan?tab=readme-ov-file#jmnedict-for-yomitan",
|
||||
"downloadUrl": "https://github.com/yomidevs/jmdict-yomitan/releases/latest/download/JMnedict.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"km": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-km-en",
|
||||
"description": "Khmer to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-km-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"kn": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-kn-en",
|
||||
"description": "Kannada to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-kn-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ko": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-ko-en",
|
||||
"description": "Korean to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ko-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"la": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-la-en",
|
||||
"description": "Latin to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-la-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lv": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-lv-en",
|
||||
"description": "Latvian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-lv-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mn": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-mn-en",
|
||||
"description": "Mongolian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-mn-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mt": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [
|
||||
{
|
||||
"name": "kty-mt-en-ipa",
|
||||
"description": "Maltese IPA dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-mt-en-ipa.zip"
|
||||
}
|
||||
],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-mt-en",
|
||||
"description": "Maltese to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-mt-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nl": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-nl-en",
|
||||
"description": "Dutch to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-nl-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"no": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-nb-en",
|
||||
"description": "Norwegian Bokmål to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-nb-en.zip"
|
||||
},
|
||||
{
|
||||
"name": "kty-nn-en",
|
||||
"description": "Norwegian Nynorsk to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-nn-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pl": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-pl-en",
|
||||
"description": "Polish to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-pl-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pt": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-pt-en",
|
||||
"description": "Portuguese to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-pt-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ro": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-ro-en",
|
||||
"description": "Romanian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ro-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ru": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-ru-en",
|
||||
"description": "Russian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-ru-en.zip"
|
||||
},
|
||||
{
|
||||
"name": "opr-ru-en",
|
||||
"description": "OpenRussian is a user-contributed, libre Russian dictionary including the accents, examples, audio, related words and synonyms.",
|
||||
"homepage": "https://github.com/ImenaOphelia/openrussian-to-yomitan",
|
||||
"downloadUrl": "https://github.com/ImenaOphelia/openrussian-to-yomitan/releases/latest/download/opr-ru-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"scn": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-scn-en",
|
||||
"description": "Sicillian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-scn-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sga": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-sga-en",
|
||||
"description": "Old Irish to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-sga-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sh": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-sh-en",
|
||||
"description": "Serbo-Croatian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-sh-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sq": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-sq-en",
|
||||
"description": "Albanian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-sq-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sv": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-sv-en",
|
||||
"description": "Swedish to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-sv-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"th": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-th-en",
|
||||
"description": "Thai to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-th-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tl": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-tl-en",
|
||||
"description": "Tagalog to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-tl-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tok": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "toki-pona-to-chinese",
|
||||
"description": "Toki Pona to Chinese dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-chinese.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-czech",
|
||||
"description": "Toki Pona to Czech dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-czech.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-dutch",
|
||||
"description": "Toki Pona to Dutch dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-dutch.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-english",
|
||||
"description": "Toki Pona to English dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-english.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-esperanto",
|
||||
"description": "Toki Pona to Esperanto dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-esperanto.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-french",
|
||||
"description": "Toki Pona to French dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-french.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-german",
|
||||
"description": "Toki Pona to German dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-german.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-indonesian",
|
||||
"description": "Toki Pona to Indonesian dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-indonesian.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-italian",
|
||||
"description": "Toki Pona to Italian dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-italian.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-polish",
|
||||
"description": "Toki Pona to Polish dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-polish.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-portuguese",
|
||||
"description": "Toki Pona to Portuguese dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-portuguese.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-russian",
|
||||
"description": "Toki Pona to Russian dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-russian.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-slovak",
|
||||
"description": "Toki Pona to Slovak dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-slovak.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-spanish",
|
||||
"description": "Toki Pona to Spanish dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-spanish.zip"
|
||||
},
|
||||
{
|
||||
"name": "toki-pona-to-turkish",
|
||||
"description": "Toki Pona to Turkish dictionary",
|
||||
"homepage": "https://github.com/bee-san/awesome-toki-pona",
|
||||
"downloadUrl": "https://github.com/bee-san/awesome-toki-pona/releases/download/0.0.3/toki-pona-to-turkish.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tr": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-tr-en",
|
||||
"description": "Turkish to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-tr-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"uk": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-uk-en",
|
||||
"description": "Ukranian to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-uk-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"vi": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "kty-vi-en",
|
||||
"description": "Vietnamese to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-vi-en.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"yue": {
|
||||
"frequency": [
|
||||
{
|
||||
"name": "Words.hk Frequency",
|
||||
"description": "Frequency list of Cantonese terms and honzi provided by words.hk.",
|
||||
"homepage": "https://github.com/MarvNC/wordshk-yomitan",
|
||||
"downloadUrl": "https://github.com/MarvNC/wordshk-yomitan/releases/download/2024-09-17/YUE.Freq.Words.hk.Frequency.zip"
|
||||
}
|
||||
],
|
||||
"grammar": [],
|
||||
"kanji": [
|
||||
{
|
||||
"name": "Words.hk 粵典 漢字",
|
||||
"description": "A free and open Cantonese dictionary with definitions and example sentences in Cantonese and English.",
|
||||
"homepage": "https://github.com/MarvNC/wordshk-yomitan",
|
||||
"downloadUrl": "https://github.com/MarvNC/wordshk-yomitan/releases/download/2025-07-09/Words.hk.Honzi.2025-07-08.zip"
|
||||
}
|
||||
],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "Words.hk 粵典",
|
||||
"description": "A free and open Cantonese dictionary with definitions and example sentences in Cantonese and English.",
|
||||
"homepage": "https://github.com/MarvNC/wordshk-yomitan",
|
||||
"downloadUrl": "https://github.com/MarvNC/wordshk-yomitan/releases/download/2025-07-09/Words.hk.2025-07-08.zip"
|
||||
},
|
||||
{
|
||||
"name": "CC-Canto",
|
||||
"description": "CC-Canto is an open source Cantonese dictionary project created by Pleco, intended to be used alongside the CC-CEDICT dictionary. It provides Cantonese specific words and definitions.",
|
||||
"homepage": "https://github.com/MarvNC/cc-cedict-yomitan",
|
||||
"downloadUrl": "https://github.com/MarvNC/cc-cedict-yomitan/releases/latest/download/CC-Canto.zip"
|
||||
},
|
||||
{
|
||||
"name": "CC-CEDICT Canto",
|
||||
"description": "CC-CEDICT is a continuation of the CEDICT project with the aim to provide a complete downloadable Chinese to English dictionary with pronunciation in pinyin for the Chinese characters. This version includes Cantonese readings provided by Pleco.",
|
||||
"homepage": "https://github.com/MarvNC/cc-cedict-yomitan",
|
||||
"downloadUrl": "https://github.com/MarvNC/cc-cedict-yomitan/releases/latest/download/CC-CEDICT.Canto.zip"
|
||||
},
|
||||
{
|
||||
"name": "Cantodict",
|
||||
"description": "CantoDict was a Cantonese-English dictionary created and maintained by Adam Sheik and public contributors.",
|
||||
"homepage": "https://github.com/MarvNC/yomitan-dictionaries?tab=readme-ov-file#cantodict",
|
||||
"downloadUrl": "https://github.com/MarvNC/yomichan-dictionaries/raw/master/dl/%5BCantonese%5D%20Cantodict.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
"zh": {
|
||||
"frequency": [],
|
||||
"grammar": [],
|
||||
"kanji": [
|
||||
{
|
||||
"name": "CC-CEDICT",
|
||||
"description": "A free and open Chinese-English dictionary provided by the CC-CEDICT project.",
|
||||
"homepage": "https://github.com/MarvNC/cc-cedict-yomitan",
|
||||
"downloadUrl": "https://github.com/MarvNC/cc-cedict-yomitan/releases/latest/download/CC-CEDICT.Hanzi.zip"
|
||||
}
|
||||
],
|
||||
"pronunciation": [],
|
||||
"terms": [
|
||||
{
|
||||
"name": "CC-CEDICT",
|
||||
"description": "A free and open Chinese-English dictionary provided by the CC-CEDICT project.",
|
||||
"homepage": "https://github.com/MarvNC/cc-cedict-yomitan",
|
||||
"downloadUrl": "https://github.com/MarvNC/cc-cedict-yomitan/releases/latest/download/CC-CEDICT.zip"
|
||||
},
|
||||
{
|
||||
"name": "kty-zh-en",
|
||||
"description": "Chinese to English dictionary created from Wiktionary data.",
|
||||
"homepage": "https://yomidevs.github.io/kaikki-to-yomitan/",
|
||||
"downloadUrl": "https://pub-c3d38cca4dc2403b88934c56748f5144.r2.dev/releases/latest/kty-zh-en.zip"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
862
vendor/yomitan/data/recommended-settings.json
vendored
Normal file
862
vendor/yomitan/data/recommended-settings.json
vendored
Normal file
@@ -0,0 +1,862 @@
|
||||
{
|
||||
"ar": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
}
|
||||
],
|
||||
"arz": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
}
|
||||
],
|
||||
"cs": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"da": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"de": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"el": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.length",
|
||||
"value": 24
|
||||
},
|
||||
"description": "Increase the default scanning length from 16 to 24 characters."
|
||||
}
|
||||
],
|
||||
"en": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "sentenceParsing.terminationCharacters",
|
||||
"value": [
|
||||
{
|
||||
"enabled": true,
|
||||
"character1": "\"",
|
||||
"character2": "\"",
|
||||
"includeCharacterAtStart": false,
|
||||
"includeCharacterAtEnd": false
|
||||
},
|
||||
{
|
||||
"enabled": false,
|
||||
"character1": "'",
|
||||
"character2": "'",
|
||||
"includeCharacterAtStart": false,
|
||||
"includeCharacterAtEnd": false
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"character1": ".",
|
||||
"character2": null,
|
||||
"includeCharacterAtStart": false,
|
||||
"includeCharacterAtEnd": true
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"character1": "!",
|
||||
"character2": null,
|
||||
"includeCharacterAtStart": false,
|
||||
"includeCharacterAtEnd": true
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"character1": "?",
|
||||
"character2": null,
|
||||
"includeCharacterAtStart": false,
|
||||
"includeCharacterAtEnd": true
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"character1": "…",
|
||||
"character2": null,
|
||||
"includeCharacterAtStart": false,
|
||||
"includeCharacterAtEnd": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": "Disable apostrophes as a sentence terminator."
|
||||
}
|
||||
],
|
||||
"eo": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"es": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"fi": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"fr": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.textReplacements.groups",
|
||||
"value": [
|
||||
[
|
||||
{
|
||||
"pattern": "l('|’)",
|
||||
"ignoreCase": true,
|
||||
"replacement": ""
|
||||
},
|
||||
{
|
||||
"pattern": "j('|’)",
|
||||
"ignoreCase": true,
|
||||
"replacement": ""
|
||||
},
|
||||
{
|
||||
"pattern": "d('|’)",
|
||||
"ignoreCase": true,
|
||||
"replacement": ""
|
||||
},
|
||||
{
|
||||
"pattern": "s('|’)",
|
||||
"ignoreCase": true,
|
||||
"replacement": ""
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"description": "Separating the l', j', d', s' from the word."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"he": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"hi": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"hu": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"id": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"it": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"ja": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "character"
|
||||
},
|
||||
"description": "Scan text one character at a time."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "letter"
|
||||
},
|
||||
"description": "Lookup words by letter in the dictionary."
|
||||
}
|
||||
],
|
||||
"ko": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"kn": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"la": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"lv": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"mn": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"nl": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"no": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"pl": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"pt": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"ro": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"ru": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"sga": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"sh": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"sq": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"sv": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"tr": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"uk": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "parsing.enableScanningParser",
|
||||
"value": false
|
||||
},
|
||||
"description": "Turn off Yomitan's internal parser for languages with spaces."
|
||||
}
|
||||
],
|
||||
"vi": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Scan text one word at a time (as opposed to one character)."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "word"
|
||||
},
|
||||
"description": "Lookup whole words in the dictionary."
|
||||
}
|
||||
],
|
||||
"yue": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "character"
|
||||
},
|
||||
"description": "Scan text one character at a time."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "letter"
|
||||
},
|
||||
"description": "Lookup words by letter in the dictionary."
|
||||
}
|
||||
],
|
||||
"zh": [
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "scanning.scanResolution",
|
||||
"value": "character"
|
||||
},
|
||||
"description": "Scan text one character at a time."
|
||||
},
|
||||
{
|
||||
"modification": {
|
||||
"action": "set",
|
||||
"path": "translation.searchResolution",
|
||||
"value": "letter"
|
||||
},
|
||||
"description": "Lookup words by letter in the dictionary."
|
||||
}
|
||||
]
|
||||
}
|
||||
34
vendor/yomitan/data/schemas/custom-audio-list-schema.json
vendored
Normal file
34
vendor/yomitan/data/schemas/custom-audio-list-schema.json
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"$id": "customAudioList",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type",
|
||||
"audioSources"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "audioSourceList"
|
||||
},
|
||||
"audioSources": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"url"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
125
vendor/yomitan/data/schemas/dictionary-index-schema.json
vendored
Normal file
125
vendor/yomitan/data/schemas/dictionary-index-schema.json
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"$id": "dictionaryIndex",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"definitions": {
|
||||
"isoLanguageCode": {
|
||||
"type": "string",
|
||||
"description": "ISO language code (ISO 639-1 where possible, ISO 639-3 otherwise).",
|
||||
"pattern": "^[a-z]{2,3}$"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"description": "Index file containing information about the data contained in the dictionary.",
|
||||
"required": [
|
||||
"title",
|
||||
"revision"
|
||||
],
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "Title of the dictionary."
|
||||
},
|
||||
"revision": {
|
||||
"type": "string",
|
||||
"description": "Revision of the dictionary. This value is displayed, and used to check for dictionary updates."
|
||||
},
|
||||
"minimumYomitanVersion": {
|
||||
"type": "string",
|
||||
"description": "Minimum version of Yomitan that is compatible with this dictionary."
|
||||
},
|
||||
"sequenced": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Whether or not this dictionary contains sequencing information for related terms."
|
||||
},
|
||||
"format": {
|
||||
"type": "integer",
|
||||
"description": "Format of data found in the JSON data files.",
|
||||
"enum": [1, 2, 3]
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"description": "Alias for format.",
|
||||
"enum": [1, 2, 3]
|
||||
},
|
||||
"author": {
|
||||
"type": "string",
|
||||
"description": "Creator of the dictionary."
|
||||
},
|
||||
"isUpdatable": {
|
||||
"type": "boolean",
|
||||
"const": true,
|
||||
"description": "Whether this dictionary contains links to its latest version."
|
||||
},
|
||||
"indexUrl": {
|
||||
"type": "string",
|
||||
"description": "URL for the index file of the latest revision of the dictionary, used to check for updates."
|
||||
},
|
||||
"downloadUrl": {
|
||||
"type": "string",
|
||||
"description": "URL for the download of the latest revision of the dictionary."
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "URL for the source of the dictionary, displayed in the dictionary details."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Description of the dictionary data."
|
||||
},
|
||||
"attribution": {
|
||||
"type": "string",
|
||||
"description": "Attribution information for the dictionary data."
|
||||
},
|
||||
"sourceLanguage": {
|
||||
"$ref": "#/definitions/isoLanguageCode",
|
||||
"description": "Language of the terms in the dictionary."
|
||||
},
|
||||
"targetLanguage": {
|
||||
"$ref": "#/definitions/isoLanguageCode",
|
||||
"description": "Main language of the definitions in the dictionary."
|
||||
},
|
||||
"frequencyMode": {
|
||||
"type": "string",
|
||||
"enum": ["occurrence-based", "rank-based"]
|
||||
},
|
||||
"tagMeta": {
|
||||
"type": "object",
|
||||
"description": "Tag information for terms and kanji. This object is obsolete and individual tag files should be used instead.",
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"description": "Information about a single tag. The object key is the name of the tag.",
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": "string",
|
||||
"description": "Category for the tag."
|
||||
},
|
||||
"order": {
|
||||
"type": "number",
|
||||
"description": "Sorting order for the tag."
|
||||
},
|
||||
"notes": {
|
||||
"type": "string",
|
||||
"description": "Notes for the tag."
|
||||
},
|
||||
"score": {
|
||||
"type": "number",
|
||||
"description": "Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"anyOf": [
|
||||
{
|
||||
"required": ["format"]
|
||||
},
|
||||
{
|
||||
"required": ["version"]
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"isUpdatable": ["indexUrl", "downloadUrl"]
|
||||
}
|
||||
}
|
||||
35
vendor/yomitan/data/schemas/dictionary-kanji-bank-v1-schema.json
vendored
Normal file
35
vendor/yomitan/data/schemas/dictionary-kanji-bank-v1-schema.json
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"$id": "dictionaryKanjiBankV1",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "array",
|
||||
"description": "Data file containing kanji information.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Information about a single kanji character.",
|
||||
"minItems": 4,
|
||||
"maxItems": 4,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Kanji character.",
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated onyomi readings for the kanji character. An empty string is treated as no readings."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated kunyomi readings for the kanji character. An empty string is treated as no readings."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated tags for the kanji character. An empty string is treated as no tags."
|
||||
}
|
||||
],
|
||||
"additionalItems": {
|
||||
"type": "string",
|
||||
"description": "A meaning for the kanji character."
|
||||
}
|
||||
}
|
||||
}
|
||||
47
vendor/yomitan/data/schemas/dictionary-kanji-bank-v3-schema.json
vendored
Normal file
47
vendor/yomitan/data/schemas/dictionary-kanji-bank-v3-schema.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"$id": "dictionaryKanjiBankV3",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "array",
|
||||
"description": "Data file containing kanji information.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Information about a single kanji character.",
|
||||
"minItems": 6,
|
||||
"maxItems": 6,
|
||||
"additionalItems": false,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Kanji character.",
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated onyomi readings for the kanji character. An empty string is treated as no readings."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated kunyomi readings for the kanji character. An empty string is treated as no readings."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated tags for the kanji character. An empty string is treated as no tags."
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"description": "Array of meanings for the kanji character.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "A meaning for the kanji character."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Various stats for the kanji character.",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
52
vendor/yomitan/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
vendored
Normal file
52
vendor/yomitan/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"$id": "dictionaryKanjiMetaBankV3",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"definitions": {
|
||||
"frequency": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": ["string", "number"]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"value"
|
||||
],
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "number"
|
||||
},
|
||||
"displayValue": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "array",
|
||||
"description": "Custom metadata for kanji characters.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Metadata about a single kanji character.",
|
||||
"minItems": 3,
|
||||
"maxItems": 3,
|
||||
"additionalItems": false,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"const": "freq",
|
||||
"description": "Type of data. \"freq\" corresponds to frequency information."
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/frequency",
|
||||
"description": "Data for the character."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
35
vendor/yomitan/data/schemas/dictionary-tag-bank-v3-schema.json
vendored
Normal file
35
vendor/yomitan/data/schemas/dictionary-tag-bank-v3-schema.json
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"$id": "dictionaryTagBankV3",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "array",
|
||||
"description": "Data file containing tag information for terms and kanji.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Information about a single tag.",
|
||||
"minItems": 5,
|
||||
"maxItems": 5,
|
||||
"additionalItems": false,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Tag name."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Category for the tag."
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"description": "Sorting order for the tag."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Notes for the tag."
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"description": "Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
38
vendor/yomitan/data/schemas/dictionary-term-bank-v1-schema.json
vendored
Normal file
38
vendor/yomitan/data/schemas/dictionary-term-bank-v1-schema.json
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"$id": "dictionaryTermBankV1",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "array",
|
||||
"description": "Data file containing term information.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Information about a single term.",
|
||||
"minItems": 5,
|
||||
"maxItems": 5,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "The text for the term."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Reading of the term, or an empty string if the reading is the same as the term."
|
||||
},
|
||||
{
|
||||
"type": ["string", "null"],
|
||||
"description": "String of space-separated tags for the definition. An empty string is treated as no tags."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated rule identifiers for the definition which is used to validate delinflection. Valid rule identifiers are: v1: ichidan verb; v5: godan verb; vs: suru verb; vz: zuru verb; vk: kuru verb; adj-i: i-adjective. An empty string corresponds to words which aren't inflected, such as nouns."
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"description": "Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."
|
||||
}
|
||||
],
|
||||
"additionalItems": {
|
||||
"type": "string",
|
||||
"description": "Single definition for the term."
|
||||
}
|
||||
}
|
||||
}
|
||||
593
vendor/yomitan/data/schemas/dictionary-term-bank-v3-schema.json
vendored
Normal file
593
vendor/yomitan/data/schemas/dictionary-term-bank-v3-schema.json
vendored
Normal file
@@ -0,0 +1,593 @@
|
||||
{
|
||||
"$id": "dictionaryTermBankV3",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"definitions": {
|
||||
"structuredContent": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Represents a text node."
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/structuredContent",
|
||||
"description": "An array of child content."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Empty tags.",
|
||||
"required": [
|
||||
"tag"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"const": "br"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/structuredContentData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Generic container tags.",
|
||||
"required": [
|
||||
"tag"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"enum": ["ruby", "rt", "rp", "table", "thead", "tbody", "tfoot", "tr"]
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/structuredContent"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/structuredContentData"
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"description": "Defines the language of an element in the format defined by RFC 5646."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Table tags.",
|
||||
"required": [
|
||||
"tag"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"enum": ["td", "th"]
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/structuredContent"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/structuredContentData"
|
||||
},
|
||||
"colSpan": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"rowSpan": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"style": {
|
||||
"$ref": "#/definitions/structuredContentStyle"
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"description": "Defines the language of an element in the format defined by RFC 5646."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Container tags supporting configurable styles.",
|
||||
"required": [
|
||||
"tag"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"enum": ["span", "div", "ol", "ul", "li", "details", "summary"]
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/structuredContent"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/structuredContentData"
|
||||
},
|
||||
"style": {
|
||||
"$ref": "#/definitions/structuredContentStyle"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "Hover text for the element."
|
||||
},
|
||||
"open": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the details element is open by default."
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"description": "Defines the language of an element in the format defined by RFC 5646."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Image tag.",
|
||||
"required": [
|
||||
"tag",
|
||||
"path"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"const": "img"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/structuredContentData"
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Path to the image file in the archive."
|
||||
},
|
||||
"width": {
|
||||
"type": "number",
|
||||
"description": "Preferred width of the image.",
|
||||
"minimum": 0
|
||||
},
|
||||
"height": {
|
||||
"type": "number",
|
||||
"description": "Preferred height of the image.",
|
||||
"minimum": 0
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "Hover text for the image."
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Alt text for the image."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Description of the image."
|
||||
},
|
||||
"pixelated": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the image should appear pixelated at sizes larger than the image's native resolution.",
|
||||
"default": false
|
||||
},
|
||||
"imageRendering": {
|
||||
"type": "string",
|
||||
"description": "Controls how the image is rendered. The value of this field supersedes the pixelated field.",
|
||||
"enum": ["auto", "pixelated", "crisp-edges"],
|
||||
"default": "auto"
|
||||
},
|
||||
"appearance": {
|
||||
"type": "string",
|
||||
"description": "Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.",
|
||||
"enum": ["auto", "monochrome"],
|
||||
"default": "auto"
|
||||
},
|
||||
"background": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not a background color is displayed behind the image.",
|
||||
"default": true
|
||||
},
|
||||
"collapsed": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the image is collapsed by default.",
|
||||
"default": false
|
||||
},
|
||||
"collapsible": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the image can be collapsed.",
|
||||
"default": false
|
||||
},
|
||||
"verticalAlign": {
|
||||
"type": "string",
|
||||
"description": "The vertical alignment of the image.",
|
||||
"enum": ["baseline", "sub", "super", "text-top", "text-bottom", "middle", "top", "bottom"]
|
||||
},
|
||||
"border": {
|
||||
"type": "string",
|
||||
"description": "Shorthand for border width, style, and color."
|
||||
},
|
||||
"borderRadius": {
|
||||
"type": "string",
|
||||
"description": "Roundness of the corners of the image's outer border edge."
|
||||
},
|
||||
"sizeUnits": {
|
||||
"type": "string",
|
||||
"description": "The units for the width and height.",
|
||||
"enum": ["px", "em"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Link tag.",
|
||||
"required": [
|
||||
"tag",
|
||||
"href"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"const": "a"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/structuredContent"
|
||||
},
|
||||
"href": {
|
||||
"type": "string",
|
||||
"description": "The URL for the link. URLs starting with a ? are treated as internal links to other dictionary content.",
|
||||
"pattern": "^(?:https?:|\\?)[\\w\\W]*"
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"description": "Defines the language of an element in the format defined by RFC 5646."
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"structuredContentData": {
|
||||
"type": "object",
|
||||
"description": "Generic data attributes that should be added to the element.",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"structuredContentStyle": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"fontStyle": {
|
||||
"type": "string",
|
||||
"enum": ["normal", "italic"],
|
||||
"default": "normal"
|
||||
},
|
||||
"fontWeight": {
|
||||
"type": "string",
|
||||
"enum": ["normal", "bold"],
|
||||
"default": "normal"
|
||||
},
|
||||
"fontSize": {
|
||||
"type": "string",
|
||||
"default": "medium"
|
||||
},
|
||||
"color": {
|
||||
"type": "string"
|
||||
},
|
||||
"background": {
|
||||
"type": "string"
|
||||
},
|
||||
"backgroundColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"textDecorationLine": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["none", "underline", "overline", "line-through"],
|
||||
"default": "none"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["underline", "overline", "line-through"],
|
||||
"default": "none"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"textDecorationStyle": {
|
||||
"type": "string",
|
||||
"enum": ["solid", "double", "dotted", "dashed", "wavy"],
|
||||
"default": "solid"
|
||||
},
|
||||
"textDecorationColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"borderColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"borderStyle": {
|
||||
"type": "string"
|
||||
},
|
||||
"borderRadius": {
|
||||
"type": "string"
|
||||
},
|
||||
"borderWidth": {
|
||||
"type": "string"
|
||||
},
|
||||
"clipPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"verticalAlign": {
|
||||
"type": "string",
|
||||
"enum": ["baseline", "sub", "super", "text-top", "text-bottom", "middle", "top", "bottom"],
|
||||
"default": "baseline"
|
||||
},
|
||||
"textAlign": {
|
||||
"type": "string",
|
||||
"enum": ["start", "end", "left", "right", "center", "justify", "justify-all", "match-parent"],
|
||||
"default": "start"
|
||||
},
|
||||
"textEmphasis": {
|
||||
"type": "string"
|
||||
},
|
||||
"textShadow": {
|
||||
"type": "string"
|
||||
},
|
||||
"margin": {
|
||||
"type": "string"
|
||||
},
|
||||
"marginTop": {
|
||||
"type": ["number", "string"],
|
||||
"default": 0
|
||||
},
|
||||
"marginLeft": {
|
||||
"type": ["number", "string"],
|
||||
"default": 0
|
||||
},
|
||||
"marginRight": {
|
||||
"type": ["number", "string"],
|
||||
"default": 0
|
||||
},
|
||||
"marginBottom": {
|
||||
"type": ["number", "string"],
|
||||
"default": 0
|
||||
},
|
||||
"padding": {
|
||||
"type": "string"
|
||||
},
|
||||
"paddingTop": {
|
||||
"type": "string"
|
||||
},
|
||||
"paddingLeft": {
|
||||
"type": "string"
|
||||
},
|
||||
"paddingRight": {
|
||||
"type": "string"
|
||||
},
|
||||
"paddingBottom": {
|
||||
"type": "string"
|
||||
},
|
||||
"wordBreak": {
|
||||
"type": "string",
|
||||
"enum": ["normal", "break-all", "keep-all"],
|
||||
"default": "normal"
|
||||
},
|
||||
"whiteSpace": {
|
||||
"type": "string",
|
||||
"default": "normal"
|
||||
},
|
||||
"cursor": {
|
||||
"type": "string",
|
||||
"default": "auto"
|
||||
},
|
||||
"listStyleType": {
|
||||
"type": "string",
|
||||
"default": "disc"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "array",
|
||||
"description": "Data file containing term information.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Information about a single term.",
|
||||
"minItems": 8,
|
||||
"maxItems": 8,
|
||||
"additionalItems": false,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "The text for the term."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Reading of the term, or an empty string if the reading is the same as the term."
|
||||
},
|
||||
{
|
||||
"type": ["string", "null"],
|
||||
"description": "String of space-separated tags for the definition. An empty string is treated as no tags."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated rule identifiers for the definition which is used to validate deinflection. An empty string should be used for words which aren't inflected."
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"description": "Score used to determine popularity. Negative values are more rare and positive values are more frequent. This score is also used to sort search results."
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"description": "Array of definitions for the term.",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Single definition for the term."
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Single detailed definition for the term.",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of the data for this definition.",
|
||||
"enum": ["text", "image", "structured-content"]
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"required": [
|
||||
"type",
|
||||
"text"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "text"
|
||||
},
|
||||
"text": {
|
||||
"type": "string",
|
||||
"description": "Single definition for the term."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"type",
|
||||
"content"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "structured-content"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/structuredContent",
|
||||
"description": "Single definition for the term using a structured content object."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"type",
|
||||
"path"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "image"
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Path to the image file in the archive."
|
||||
},
|
||||
"width": {
|
||||
"type": "integer",
|
||||
"description": "Preferred width of the image.",
|
||||
"minimum": 1
|
||||
},
|
||||
"height": {
|
||||
"type": "integer",
|
||||
"description": "Preferred height of the image.",
|
||||
"minimum": 1
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "Hover text for the image."
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Alt text for the image."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Description of the image."
|
||||
},
|
||||
"pixelated": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the image should appear pixelated at sizes larger than the image's native resolution.",
|
||||
"default": false
|
||||
},
|
||||
"imageRendering": {
|
||||
"type": "string",
|
||||
"description": "Controls how the image is rendered. The value of this field supersedes the pixelated field.",
|
||||
"enum": ["auto", "pixelated", "crisp-edges"],
|
||||
"default": "auto"
|
||||
},
|
||||
"appearance": {
|
||||
"type": "string",
|
||||
"description": "Controls the appearance of the image. The \"monochrome\" value will mask the opaque parts of the image using the current text color.",
|
||||
"enum": ["auto", "monochrome"],
|
||||
"default": "auto"
|
||||
},
|
||||
"background": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not a background color is displayed behind the image.",
|
||||
"default": true
|
||||
},
|
||||
"collapsed": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the image is collapsed by default.",
|
||||
"default": false
|
||||
},
|
||||
"collapsible": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the image can be collapsed.",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"description": "Deinflection of the term to an uninflected term.",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "The uninflected term."
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"description": "A chain of inflection rules that produced the inflected term",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "A single inflection rule."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Sequence number for the term. Terms with the same sequence number can be shown together when the \"resultOutputMode\" option is set to \"merge\"."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "String of space-separated tags for the term. An empty string is treated as no tags."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
227
vendor/yomitan/data/schemas/dictionary-term-meta-bank-v3-schema.json
vendored
Normal file
227
vendor/yomitan/data/schemas/dictionary-term-meta-bank-v3-schema.json
vendored
Normal file
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"$id": "dictionaryTermMetaBankV3",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"definitions": {
|
||||
"frequency": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": ["string", "number"]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"value"
|
||||
],
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "number"
|
||||
},
|
||||
"displayValue": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "array",
|
||||
"description": "Custom metadata for terms.",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "Metadata about a single term.",
|
||||
"minItems": 3,
|
||||
"maxItems": 3,
|
||||
"additionalItems": false,
|
||||
"items": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "The text for the term."
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["freq", "pitch", "ipa"],
|
||||
"description": "Type of data. \"freq\" corresponds to frequency information; \"pitch\" corresponds to pitch information. \"ipa\" corresponds to IPA transcription."
|
||||
},
|
||||
{
|
||||
"description": "Data for the term."
|
||||
}
|
||||
],
|
||||
"oneOf": [
|
||||
{
|
||||
"minItems": 3,
|
||||
"maxItems": 3,
|
||||
"items": [
|
||||
{},
|
||||
{"const": "freq"},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/frequency",
|
||||
"description": "Frequency information for the term."
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"reading",
|
||||
"frequency"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"reading": {
|
||||
"type": "string",
|
||||
"description": "Reading for the term."
|
||||
},
|
||||
"frequency": {
|
||||
"$ref": "#/definitions/frequency",
|
||||
"description": "Frequency information for the term."
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minItems": 3,
|
||||
"maxItems": 3,
|
||||
"items": [
|
||||
{},
|
||||
{"const": "pitch"},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Pitch accent information for the term.",
|
||||
"required": [
|
||||
"reading",
|
||||
"pitches"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"reading": {
|
||||
"type": "string",
|
||||
"description": "Reading for the term."
|
||||
},
|
||||
"pitches": {
|
||||
"type": "array",
|
||||
"description": "List of different pitch accent information for the term and reading combination.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"position"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"position": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Mora position of the pitch accent downstep. A value of 0 indicates that the word does not have a downstep (heiban).",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Pitch level of each mora with H representing high and L representing low. For example: HHLL for a 4 mora word.",
|
||||
"pattern": "^[HL]+$"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nasal": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Position of a mora with nasal sound.",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"description": "Positions of morae with nasal sound.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"devoice": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Position of a mora with devoiced sound.",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"description": "Positions of morae with devoiced sound.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"description": "List of tags for this pitch accent.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "Tag for this pitch accent. This typically corresponds to a certain type of part of speech."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minItems": 3,
|
||||
"maxItems": 3,
|
||||
"items": [
|
||||
{},
|
||||
{"const": "ipa"},
|
||||
{
|
||||
"type": ["object"],
|
||||
"description": "IPA transcription information for the term.",
|
||||
"required": [
|
||||
"reading",
|
||||
"transcriptions"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"reading": {
|
||||
"type": "string",
|
||||
"description": "Reading for the term."
|
||||
},
|
||||
"transcriptions": {
|
||||
"type": "array",
|
||||
"description": "List of different IPA transcription information for the term and reading combination.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"ipa"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"ipa": {
|
||||
"type": "string",
|
||||
"description": "IPA transcription for the term."
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"description": "List of tags for this IPA transcription.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "Tag for this IPA transcription."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1413
vendor/yomitan/data/schemas/options-schema.json
vendored
Normal file
1413
vendor/yomitan/data/schemas/options-schema.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
78
vendor/yomitan/data/schemas/recommended-dictionaries-schema.json
vendored
Normal file
78
vendor/yomitan/data/schemas/recommended-dictionaries-schema.json
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"$id": "recommendedDictionaries",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "Contains data for recommended dictionaries on welcome page.",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^.{2,}$": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"terms": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Dictionary"
|
||||
}
|
||||
},
|
||||
"kanji": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Dictionary"
|
||||
}
|
||||
},
|
||||
"frequency": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Dictionary"
|
||||
}
|
||||
},
|
||||
"grammar": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Dictionary"
|
||||
}
|
||||
},
|
||||
"pronunciation": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Dictionary"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"terms",
|
||||
"kanji",
|
||||
"frequency",
|
||||
"grammar"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"Dictionary": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name",
|
||||
"downloadUrl",
|
||||
"description"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 2
|
||||
},
|
||||
"downloadUrl": {
|
||||
"type": "string",
|
||||
"minLength": 2
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"minLength": 2
|
||||
},
|
||||
"homepage": {
|
||||
"type": "string",
|
||||
"minLength": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
180
vendor/yomitan/data/schemas/recommended-settings-schema.json
vendored
Normal file
180
vendor/yomitan/data/schemas/recommended-settings-schema.json
vendored
Normal file
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"$id": "recommendedSettings",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "Contains data for recommended default options overrides by language.",
|
||||
"type": "object",
|
||||
"$defs": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"minLength": 2
|
||||
},
|
||||
"value": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"minLength": 2
|
||||
}
|
||||
},
|
||||
"patternProperties": {
|
||||
"^.{2,}$": {
|
||||
"title": "Language",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Modification",
|
||||
"type": "object",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"title": "ModificationSet",
|
||||
"properties": {
|
||||
"modification": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"const": "set"
|
||||
},
|
||||
"path": {
|
||||
"$ref": "#/$defs/path"
|
||||
},
|
||||
"value": {
|
||||
"$ref": "#/$defs/value"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"$ref": "#/$defs/description"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"title": "ModificationDelete",
|
||||
"properties": {
|
||||
"modification": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"const": "delete"
|
||||
},
|
||||
"path": {
|
||||
"$ref": "#/$defs/path"
|
||||
},
|
||||
"value": {
|
||||
"$ref": "#/$defs/value"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"$ref": "#/$defs/description"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"title": "ModificationSwap",
|
||||
"properties": {
|
||||
"modification": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"const": "swap"
|
||||
},
|
||||
"path1": {
|
||||
"$ref": "#/$defs/path"
|
||||
},
|
||||
"path2": {
|
||||
"$ref": "#/$defs/path"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"$ref": "#/$defs/description"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"title": "ModificationSplice",
|
||||
"properties": {
|
||||
"modification": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"const": "splice"
|
||||
},
|
||||
"path": {
|
||||
"$ref": "#/$defs/path"
|
||||
},
|
||||
"start": {
|
||||
"type": "number"
|
||||
},
|
||||
"deleteCount": {
|
||||
"type": "number"
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/value"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"$ref": "#/$defs/description"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"title": "ModificationPush",
|
||||
"properties": {
|
||||
"modification": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"const": "push"
|
||||
},
|
||||
"path": {
|
||||
"$ref": "#/$defs/path"
|
||||
},
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/value"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"$ref": "#/$defs/description"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
340
vendor/yomitan/data/structured-content-style.json
vendored
Normal file
340
vendor/yomitan/data/structured-content-style.json
vendored
Normal file
@@ -0,0 +1,340 @@
|
||||
[
|
||||
{
|
||||
"selectors": [".gloss-image-container"],
|
||||
"styles": [
|
||||
["display", "inline-block"],
|
||||
["white-space", "nowrap"],
|
||||
["max-width", "100%"],
|
||||
["max-height", "100vh"],
|
||||
["position", "relative"],
|
||||
["vertical-align", "top"],
|
||||
["line-height", "0"],
|
||||
["overflow", "hidden"],
|
||||
["font-size", "1px"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link"],
|
||||
"styles": [
|
||||
["cursor", "inherit"],
|
||||
["display", "inline-block"],
|
||||
["position", "relative"],
|
||||
["line-height", "1"],
|
||||
["max-width", "100%"],
|
||||
["color", "inherit"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-container-overlay"],
|
||||
"styles": [
|
||||
["position", "absolute"],
|
||||
["left", "0"],
|
||||
["top", "0"],
|
||||
["width", "100%"],
|
||||
["height", "100%"],
|
||||
["font-size", "calc(1em * var(--font-size-no-units))"],
|
||||
["line-height", "var(--line-height)"],
|
||||
["display", "table"],
|
||||
["table-layout", "fixed"],
|
||||
["white-space", "normal"],
|
||||
["color", "var(--text-color-light3)"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-has-image=true][data-image-load-state=load-error] .gloss-image-container-overlay::after"],
|
||||
"styles": [
|
||||
["content", "'Image failed to load'"],
|
||||
["display", "table-cell"],
|
||||
["width", "100%"],
|
||||
["height", "100%"],
|
||||
["vertical-align", "middle"],
|
||||
["text-align", "center"],
|
||||
["padding", "0.25em"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-background"],
|
||||
"styles": [
|
||||
["--image", "none"],
|
||||
["position", "absolute"],
|
||||
["left", "0"],
|
||||
["top", "0"],
|
||||
["width", "100%"],
|
||||
["height", "100%"],
|
||||
["-webkit-mask-repeat", "no-repeat"],
|
||||
["-webkit-mask-position", "center center"],
|
||||
["-webkit-mask-mode", "alpha"],
|
||||
["-webkit-mask-size", "contain"],
|
||||
["-webkit-mask-image", "var(--image)"],
|
||||
["mask-repeat", "no-repeat"],
|
||||
["mask-position", "center center"],
|
||||
["mask-mode", "alpha"],
|
||||
["mask-size", "contain"],
|
||||
["mask-image", "var(--image)"],
|
||||
["background-color", "currentColor"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image"],
|
||||
"styles": [
|
||||
["display", "inline-block"],
|
||||
["vertical-align", "top"],
|
||||
["object-fit", "contain"],
|
||||
["border", "none"],
|
||||
["outline", "none"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-has-aspect-ratio=true] .gloss-image"],
|
||||
"styles": [
|
||||
["position", "absolute"],
|
||||
["left", "0"],
|
||||
["top", "0"],
|
||||
["width", "100%"],
|
||||
["height", "100%"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-image-link[data-image-rendering=pixelated] .gloss-image",
|
||||
".gloss-image-link[data-image-rendering=pixelated] .gloss-image-background"
|
||||
],
|
||||
"styles": [
|
||||
["image-rendering", "auto"],
|
||||
["image-rendering", "-moz-crisp-edges"],
|
||||
["image-rendering", "-webkit-optimize-contrast"],
|
||||
["image-rendering", "pixelated"],
|
||||
["image-rendering", "crisp-edges"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-image-link[data-image-rendering=crisp-edges] .gloss-image",
|
||||
".gloss-image-link[data-image-rendering=crisp-edges] .gloss-image-background"
|
||||
],
|
||||
"styles": [
|
||||
["image-rendering", "auto"],
|
||||
["image-rendering", "-moz-crisp-edges"],
|
||||
["image-rendering", "-webkit-optimize-contrast"],
|
||||
["image-rendering", "crisp-edges"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
":root[data-browser=firefox] .gloss-image-link[data-image-rendering=crisp-edges] .gloss-image",
|
||||
":root[data-browser=firefox] .gloss-image-link[data-image-rendering=crisp-edges] .gloss-image-background",
|
||||
":root[data-browser=firefox-mobile] .gloss-image-link[data-image-rendering=crisp-edges] .gloss-image",
|
||||
":root[data-browser=firefox-mobile] .gloss-image-link[data-image-rendering=crisp-edges] .gloss-image-background"
|
||||
],
|
||||
"styles": [
|
||||
["image-rendering", "auto"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-has-aspect-ratio=true] .gloss-image-sizer"],
|
||||
"styles": [
|
||||
["display", "inline-block"],
|
||||
["width", "0"],
|
||||
["vertical-align", "top"],
|
||||
["font-size", "0"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link-text"],
|
||||
"styles": [
|
||||
["display", "none"],
|
||||
["line-height", "var(--line-height)"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link-text::before"],
|
||||
"styles": [
|
||||
["content", "'['"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link-text::after"],
|
||||
"styles": [
|
||||
["content", "']'"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-description"],
|
||||
"styles": [
|
||||
["display", "block"],
|
||||
["white-space", "pre-line"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-appearance=monochrome] .gloss-image"],
|
||||
"styles": [
|
||||
["--shadow-settings", "0 0 0.01px var(--text-color)"],
|
||||
["filter", "grayscale(1) opacity(0.5) drop-shadow(var(--shadow-settings)) drop-shadow(var(--shadow-settings)) saturate(1000%) brightness(1000%)"],
|
||||
["opacity", "0"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-size-units=em] .gloss-image-container"],
|
||||
"styles": [
|
||||
["font-size", "1em"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=baseline]"],
|
||||
"styles": [
|
||||
["vertical-align", "baseline"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=sub]"],
|
||||
"styles": [
|
||||
["vertical-align", "sub"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=super]"],
|
||||
"styles": [
|
||||
["vertical-align", "super"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=text-top]"],
|
||||
"styles": [
|
||||
["vertical-align", "top"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=text-bottom]"],
|
||||
"styles": [
|
||||
["vertical-align", "bottom"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=middle]"],
|
||||
"styles": [
|
||||
["vertical-align", "middle"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=top]"],
|
||||
"styles": [
|
||||
["vertical-align", "top"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link[data-vertical-align=bottom]"],
|
||||
"styles": [
|
||||
["vertical-align", "bottom"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-image-link[data-collapsed=true]",
|
||||
":root[data-glossary-layout-mode^=compact] .gloss-image-link[data-collapsible=true]"
|
||||
],
|
||||
"styles": [
|
||||
["vertical-align", "baseline"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-image-link[data-collapsed=true] .gloss-image-container",
|
||||
":root[data-glossary-layout-mode^=compact] .gloss-image-link[data-collapsible=true] .gloss-image-container"
|
||||
],
|
||||
"styles": [
|
||||
["display", "none"],
|
||||
["position", "absolute"],
|
||||
["left", "0"],
|
||||
["top", "100%"],
|
||||
["z-index", "1"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsed=true] .gloss-image-container",
|
||||
":root[data-glossary-layout-mode^=compact] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsible=true] .gloss-image-container",
|
||||
":root[data-glossary-layout-mode^=compact] .definition-item:nth-last-of-type(1) .gloss-image-link[data-collapsible=true] .gloss-image-container"
|
||||
],
|
||||
"styles": [
|
||||
["bottom", "100%"],
|
||||
["top", "auto"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-image-link[data-collapsed=true]:hover .gloss-image-container",
|
||||
".gloss-image-link[data-collapsed=true]:focus .gloss-image-container",
|
||||
":root[data-glossary-layout-mode^=compact] .gloss-image-link[data-collapsible=true]:hover .gloss-image-container",
|
||||
":root[data-glossary-layout-mode^=compact] .gloss-image-link[data-collapsible=true]:focus .gloss-image-container"
|
||||
],
|
||||
"styles": [
|
||||
["display", "block"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-image-link[data-collapsed=true] .gloss-image-link-text",
|
||||
":root[data-glossary-layout-mode^=compact] .gloss-image-link[data-collapsible=true] .gloss-image-link-text"
|
||||
],
|
||||
"styles": [
|
||||
["display", "inline"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-image-link[data-collapsed=true]~.gloss-image-description",
|
||||
":root[data-glossary-layout-mode^=compact] .gloss-image-description"
|
||||
],
|
||||
"styles": [
|
||||
["display", "inline"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-link-external-icon"],
|
||||
"styles": [
|
||||
["display", "none"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-sc-table-container"],
|
||||
"styles": [
|
||||
["display", "block"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-sc-table"],
|
||||
"styles": [
|
||||
["table-layout", "auto"],
|
||||
["border-collapse", "collapse"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-sc-thead",
|
||||
".gloss-sc-tfoot",
|
||||
".gloss-sc-th"
|
||||
],
|
||||
"styles": [
|
||||
["font-weight", "bold"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [
|
||||
".gloss-sc-th",
|
||||
".gloss-sc-td"
|
||||
],
|
||||
"styles": [
|
||||
["border-style", "solid"],
|
||||
["padding", "0.25em"],
|
||||
["vertical-align", "top"],
|
||||
["border-width", "1px"],
|
||||
["border-color", "currentColor"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"selectors": [".gloss-image-link:not([data-appearance=monochrome]) .gloss-image-background"],
|
||||
"styles": [
|
||||
["display", "none"]
|
||||
]
|
||||
}
|
||||
]
|
||||
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