Userscript for utilizing kuroshiro features on-demand on any webpage you wish.
Features:
- Add auto-generated kanji readings to (Japanese) text entered in a textbox
- Annotate all kanji on the page with auto-generated furigana/ruby
Install the userscript with Greasemonkey or Tampermonkey (tested with recent versions of Firefox and Chrome). By default the script is enabled on all webpages, it is recommended to limit this to the websites you want to use it on.
When enabled, wakariyasui registers the following hotkeys:
Hotkey | Meaning | Function | Shift (without/with) |
---|---|---|---|
Ctrl + Alt + W | Wakariyasui | Initialize dictionaries (optional). | |
Ctrl + Alt + A | Annotate | Add furigana to all kanji on page. | |
Ctrl + Alt + O | Okurigana | Add readings in parenthesis after kanji in text input. | hiragana/katakana |
Ctrl + Alt + K | Kana | Convert kanji in text input to kana. | hiragana/katakana |
Ctrl + Alt + S | Spaced kana | Convert kanji in text input to kana and add spaces between words. | hiragana/katakana |
Ctrl + Alt + R | Rōmaji | Convert kanji in text input to rōmaji. | replace/add |
Before these functions can be used following a page load, the dictionaries have to be initialized. This can take a few moments and slow down page scripts temporarily, because it is a computation heavy operation. Dictionaries are initialized when Ctrl + Alt + W is pressed (manual trigger) or when one of the other hotkeys is used (automatic trigger).
Ctrl + Alt + A (page furigana):
Ctrl + Alt + O (input okurigana) before/after: