Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.74 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.74 KB

MacDicConversion

日本語

Convert macOS dictonary data to handy html.

How To

Basic

If you don't know what EBStudio is ...

  1. copy Body.data from somewhare to unzip/
  2. run convert.bat
    unzip/out/ contains bunch of html files. But it may need to be processed.
  3. cut unzip/out/ to convert/*/.
  4. copy DefaultStyle.css and Images/ (if exist) to convert/*/
  5. run MacDic2html.exe.
  6. You get out.html.

New dictionary

If you couldn't find matching folder in convert/ in Basic

  1. make a directory and name it dictionary/ (or whatever).
  2. copy MacDic2html.exe and unzip/out/ to dictionary/ from any of convert/*/.
  3. make DictionaryStyle.css in dictionary/.
  4. edit DictionaryStyle.css.

it will typically be

span.hg{headWordGroup:true;}
span.hw{key:headword;}
span.hg span.hv{key:headword;}

It depends on html structure to convert, so check some files in /out/

  1. go to #4 of Basic

EBStudio

If you use EBStudio ...

  1. copy Body.data from somewhare to unzip/
  2. run convert.bat
  3. cut unzip/out/ to convert/*/.
  4. copy DefaultStyle.css and Images/ (if exist) to convert/*/
  5. run convert.bat.
  6. you may need extra work. read readme.txt(Japanese) if exist.
  7. open EBStudio and convert!

Tools

Tools used

Caution

If you fork and operate, be very careful not to publish actual dictionary file by accident.