Place serve.js
in a directory.
Open a terminal there and do npm install kuroshiro kuroshiro-analyzer-kuromoji
.
Run serve.js
as a Node.js background service (i.e. using nssm
).
Place kuroshiro.js
in ~/pentadactyl/plugins (tested on Windows only).
Use command :kuroshiro
to place furigana over all Japanese text on page.
Update: Now also available as a UserScript for greasemonkey!