From 8abb5a4e4b001ac8a05003b04428185de37270b6 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 26 Feb 2021 23:24:37 -0500 Subject: [PATCH] Update info about japanese-util.js --- .gitignore | 2 +- README.md | 2 +- main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 360bf9d..7147a90 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ node_modules output* *.tsv *.zip -/japanese.js +/japanese-util.js diff --git a/README.md b/README.md index 412f7b0..2ad8f57 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The generated dictionary file does not contain part-of-speech information, as Yo ### Prerequisites This script uses a component from [Yomichan](https://github.com/FooSoft/yomichan)'s implementation, -specifically the `JapaneseUtil` class from [japanese.js](https://github.com/FooSoft/yomichan/blob/master/ext/mixed/js/japanese.js). +specifically the `JapaneseUtil` class from [japanese-util.js](https://github.com/FooSoft/yomichan/blob/master/ext/js/language/japanese-util.js). This file must be manually copied into the same directory as main.js in order for the script to work. diff --git a/main.js b/main.js index f9ec6df..437e5ff 100644 --- a/main.js +++ b/main.js @@ -6,7 +6,7 @@ function evalFile(fileName, returnValue) { return (new Function(`${japaneseSource};return ${returnValue};`))(); } -const JapaneseUtil = evalFile('./japanese.js', 'JapaneseUtil'); +const JapaneseUtil = evalFile('./japanese-util.js', 'JapaneseUtil'); const jp = new JapaneseUtil(null); function convertReadingToHiragana(reading, expression) {