Skip to content

Commit

Permalink
Update info about japanese-util.js
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread committed Feb 27, 2021
1 parent a496bd6 commit 8abb5a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ node_modules
output*
*.tsv
*.zip
/japanese.js
/japanese-util.js
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8abb5a4

Please sign in to comment.