7.5.1 • Published 3 years ago

@birchill/hikibiki-data v7.5.1

Weekly downloads
393
License
-
Repository
github
Last release
3 years ago

Usage

NOTE: There are TWO versions of the database:

  • JpdictDatabase which does not allow searching for words by their glosses (e.g. searching for "eat" to find 食べる) or searching for words that contain particular a particular kanji.

    i.e. getWordsWithGloss and getWordsWithKanji will always return an empty result when using this database.

  • JpdictFullTextDatabase which does allow searching for words on gloss or kanji.

Currently you need to decide once when you create the database which version you need. There is no facility to switch between the two.

The reason is that the indices for searching for glosses / kanji are expensive to create and take up disk space, and some applications (e.g. Rikaichamp) simply don't need them.

Furthermore, hopefully the project is structured such that if you only use JpdictDatabase then after tree-shaking your final bundle should not include all the tokenization / stop word code for generating and querying the gloss indices.

Building

yarn build

Running tests

yarn test

Testing a specific browser:

yarn test --browsers FirefoxNightly

In test watch mode:

npx karma start --browsers FirefoxNightly

The version of karma-firefox-launcher used here should work under WSL but for Chrome you'll want to use something like:

CHROME_BIN=/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe npx karma start --browsers Chrome

That will complain about not being able to write to the temp directory but otherwise should be fine.

Publishing

yarn release
git push --follow-tags origin main
yarn publish
7.5.1

3 years ago

7.5.0

3 years ago

7.3.1

3 years ago

7.3.0

3 years ago

7.2.3

3 years ago

7.4.0

3 years ago

7.2.2

3 years ago

7.2.1

3 years ago

7.1.3

3 years ago

7.1.2

3 years ago

7.1.1

3 years ago

7.1.0

3 years ago

7.2.0

3 years ago

7.0.6

3 years ago

7.0.5

3 years ago

7.0.4

3 years ago

7.0.3

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

7.0.0

4 years ago

6.8.2

4 years ago

6.8.1

4 years ago

6.8.0

4 years ago

6.6.0

4 years ago

6.7.0

4 years ago

6.5.2

4 years ago

6.5.1

4 years ago

6.5.0

4 years ago

6.4.1

4 years ago

6.4.0

4 years ago

6.3.2

4 years ago

6.3.3

4 years ago

6.3.0

4 years ago

6.3.1

4 years ago

6.2.3

4 years ago

6.2.2

4 years ago

6.2.1

4 years ago

6.2.0

4 years ago

6.1.0

4 years ago

6.0.0

4 years ago

5.3.3

4 years ago

5.3.2

4 years ago

5.3.1

4 years ago

5.3.0

4 years ago

5.2.0

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.4

4 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago