aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-02-04 08:08:44 +0100
committerGitHub <noreply@github.com>2024-02-04 07:08:44 +0000
commite4c6608103be5b031a0ba3ce1c70982114480360 (patch)
tree04f1d638de9cccb6460a17cb6f8dfda7e5b98d61 /ext/js/display
parent7d38d64c478c8c62c8cff12f3c1ee72729a7b80d (diff)
move files (#630)
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/display-generator.js2
-rw-r--r--ext/js/display/query-parser.js8
-rw-r--r--ext/js/display/sandbox/pronunciation-generator.js2
-rw-r--r--ext/js/display/sandbox/structured-content-generator.js2
4 files changed, 7 insertions, 7 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js
index fdfe3d4a..621ea833 100644
--- a/ext/js/display/display-generator.js
+++ b/ext/js/display/display-generator.js
@@ -20,7 +20,7 @@ import {ExtensionError} from '../core/extension-error.js';
import {isObject} from '../core/utilities.js';
import {getDisambiguations, getGroupedPronunciations, getTermFrequency, groupKanjiFrequencies, groupTermFrequencies, groupTermTags, isNonNounVerbOrAdjective} from '../dictionary/dictionary-data-util.js';
import {HtmlTemplateCollection} from '../dom/html-template-collection.js';
-import {distributeFurigana, getKanaMorae, getPitchCategory, isCodePointKanji, isStringPartiallyJapanese} from '../language/japanese.js';
+import {distributeFurigana, getKanaMorae, getPitchCategory, isCodePointKanji, isStringPartiallyJapanese} from '../language/ja/japanese.js';
import {createPronunciationDownstepPosition, createPronunciationGraph, createPronunciationText} from './sandbox/pronunciation-generator.js';
import {StructuredContentGenerator} from './sandbox/structured-content-generator.js';
diff --git a/ext/js/display/query-parser.js b/ext/js/display/query-parser.js
index 6ec803a0..c864617b 100644
--- a/ext/js/display/query-parser.js
+++ b/ext/js/display/query-parser.js
@@ -19,7 +19,7 @@
import {EventDispatcher} from '../core/event-dispatcher.js';
import {log} from '../core/logger.js';
import {querySelectorNotNull} from '../dom/query-selector.js';
-import {convertHiraganaToKatakana, convertKatakanaToHiragana, isStringEntirelyKana} from '../language/japanese.js';
+import {convertHiraganaToKatakana, convertKatakanaToHiragana, isStringEntirelyKana} from '../language/ja/japanese.js';
import {TextScanner} from '../language/text-scanner.js';
/**
@@ -67,9 +67,9 @@ export class QueryParser extends EventDispatcher {
searchOnClick: true,
textSourceGenerator
});
- /** @type {?(import('../language/japanese-wanakana.js'))} */
+ /** @type {?(import('../language/ja/japanese-wanakana.js'))} */
this._japaneseWanakanaModule = null;
- /** @type {?Promise<import('../language/japanese-wanakana.js')>} */
+ /** @type {?Promise<import('../language/ja/japanese-wanakana.js')>} */
this._japaneseWanakanaModuleImport = null;
}
@@ -409,7 +409,7 @@ export class QueryParser extends EventDispatcher {
/** */
_loadJapaneseWanakanaModule() {
if (this._japaneseWanakanaModuleImport !== null) { return; }
- this._japaneseWanakanaModuleImport = import('../language/japanese-wanakana.js');
+ this._japaneseWanakanaModuleImport = import('../language/ja/japanese-wanakana.js');
this._japaneseWanakanaModuleImport.then((value) => { this._japaneseWanakanaModule = value; });
}
}
diff --git a/ext/js/display/sandbox/pronunciation-generator.js b/ext/js/display/sandbox/pronunciation-generator.js
index 373ec830..f28520be 100644
--- a/ext/js/display/sandbox/pronunciation-generator.js
+++ b/ext/js/display/sandbox/pronunciation-generator.js
@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import {getKanaDiacriticInfo, isMoraPitchHigh} from '../../language/japanese.js';
+import {getKanaDiacriticInfo, isMoraPitchHigh} from '../../language/ja/japanese.js';
/**
* @param {string[]} morae
diff --git a/ext/js/display/sandbox/structured-content-generator.js b/ext/js/display/sandbox/structured-content-generator.js
index ff05cc02..a04feaf2 100644
--- a/ext/js/display/sandbox/structured-content-generator.js
+++ b/ext/js/display/sandbox/structured-content-generator.js
@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import {isStringPartiallyJapanese} from '../../language/japanese.js';
+import {isStringPartiallyJapanese} from '../../language/ja/japanese.js';
export class StructuredContentGenerator {
/**