Home

Awesome

About

This repository contains the source code of a script which is used to generate a pitch accent dictionary for use with Yomichan. It uses the data provided by the kanjium repository, specifically the file accents.txt.

Usage

A node script is used to generate the dictionary data:

node main.js path/to/accents.txt ./output

The data can then be added to a .zip archive using any software. The example below uses the 7z command line executable to generate the archive:

7z a -tzip -mx=9 -mm=Deflate -mtc=off -mcu=on kanjium_pitch_accents.zip ./output/*.json