1
Go to file
Alex Yatskov a400059e33 Revert "Merge branch 'dev'"
This reverts commit f349d19117, reversing
changes made to 7bb72f8bbc.
2017-06-26 20:37:15 -07:00
bin update bundled version of zero-epwing 2017-04-30 13:14:38 -07:00
zero-epwing@ea42fab71b update bundled version of zero-epwing 2017-04-30 13:14:38 -07:00
.gitignore re-implement interactive mode as a simple batch file wrapper 2017-01-02 15:14:09 -08:00
.gitmodules adding interactive mode for command line newbs 2017-01-01 12:53:39 -08:00
build_mingw.sh updating scripts 2017-04-11 20:45:10 -07:00
common.go Revert "Merge branch 'dev'" 2017-06-26 20:37:15 -07:00
daijirin.go don't bother tagging daijirin entries 2016-12-27 18:38:06 -08:00
daijisen.go more work on daijisen compat 2017-01-29 14:27:52 -08:00
edict.go fix sense tags for jmdict 2017-02-19 14:38:10 -08:00
enamdict.go auto detect dictionary format 2016-12-28 17:45:33 -08:00
epwing.go wip 2017-04-14 09:28:50 -07:00
gui.go wip 2017-04-14 09:28:50 -07:00
kanjidic.go Revert "Merge branch 'dev'" 2017-06-26 20:37:15 -07:00
kotowaza.go add epwing support for kotowaza 2017-03-21 02:08:12 -04:00
main.go more work on ui 2017-04-09 18:15:19 -07:00
meikyou.go Fix a 2 symbol in the meikyou extractor font table. 2017-03-30 17:25:32 -04:00
README.md Updating README.md 2017-05-20 18:42:00 -07:00
wadai.go updating authors 2017-03-21 20:44:02 -07:00

Yomichan Import

Yomichan Import allows users of the Yomichan extension to import custom dictionary files. It currently supports the following formats:

Yomichan Import is being expanded to support other EPWING dictionaries based on user demand. This is a mostly non-technical (although laborious) process that requires writing regular expressions and creating font tables; volunteer contributions are welcome.

Installation

Builds of Yomichan Import are currently available for Linux, Mac OS X, and Windows. The required version of Zero-EPWING is included for processing EPWING dictionaries.

Using the Graphical Interface

In most cases, it is sufficient to run the application without command line arguments and use the graphical interface. Follow the steps below to import your dictionary into Yomichan:

  1. Launch the yomichan-import executable.
  2. Specify the path to the dictionary you wish to convert (path to CATALOGS file for EPWING dictionaries).
  3. Specify a network port to use (the default port 9876 should be fine for most configurations).
  4. Specify the dictionary format from the provided options.
  5. Press the button labeled Import dictionary... and wait for processing to complete.
  6. Once you the message starting dictionary server on port 9876..., the dictionary data is ready to be imported.
  7. In Yomichan, open the options page and select the Local dictionary item in the dictionary importer drop-down menu.
  8. When http://localhost:9876/index.json is displayed in the address text-box, press the Import button to begin import.
  9. Wait for the import progress to complete (a progress bar is displayed during dictionary processing).
  10. Close Yomichan Import once the import process has finished.

Import window

Using the Command Line

Yomichan Import can be used as a command line application. When executed with the --help argument, usage instructions will be displayed (except on Windows).

Usage: yomichan-import [options] input-path [output-dir]
https://foosoft.net/projects/yomichan-import/

Parameters:
  -format string
    	dictionary format [edict|enamdict|kanjidic|epwing]
  -port int
    	port to serve dictionary JSON on (default 9876)
  -pretty
    	output prettified dictionary JSON
  -serve
    	serve dictionary JSON for extension
  -stride int
    	dictionary bank stride (default 10000)
  -title string
    	dictionary title

In most cases it is sufficient to simply provide the path to the dictionary resource you wish to process, without explicitly specifying a format. Yomichan Import will attempt to automatically determine the format of the dictionary based on the contents of the path:

Format Resource
edict file named JMDict_e.xml
enamdict file named JMNedict.xml
kanjidic file named kanjidic2.xml
epwing directory with file named CATALOGS

For example, if you wanted to process an EPWING dictionary titled Daijirin, you could do so with the following command (shown on Linux):

$ ./yomichan-import dict/Kokugo/Daijirin/

Yomichan Import will now begin the conversion process, which can take a couple of minutes to complete. Once you see the message starting dictionary server on port 9876... output to your console, you can use Yomichan to import the processed dictionary data using the same steps as described in the Using the Graphical Interface section.

License

MIT