Kanji Zoom

approvedunreviewed

by kikyung

Enlarge small kanji in Japanese study notes with a full-screen zoom viewer, furigana and hover lookups.

โ†“ 33 downloadsUpdated 5d agoMIT

Kanji Zoom

Kanji too small to read? Kanji Zoom opens your Japanese study notes full-screen at up to 72px, so every stroke is clear โ€” with furigana and kanji hover lookups on top.

Buy Me a Coffee

https://github.com/user-attachments/assets/3414fe81-4e29-4cd0-81a4-2287321b60ea

Note with the Kanji Zoom button next to the reading/edit toggle
1. Click ๐Ÿ” next to the reading/edit toggle
Zoom viewer with large text and furigana
2. Read big with furigana above every kanji
Kanji popup with readings, meanings and words from the note
3. Hover a kanji for readings, meanings and your note's words

Features

  • Zoom viewer โ€” opens the current note (or one section) full-screen. Font size 18โ€“72px, line height and furigana toggle are remembered.
  • Furigana โ€” inline readings like ๅ‚ๅŠ (ใ•ใ‚“ใ‹) or ๅ‚ๅŠ ๏ผˆใ•ใ‚“ใ‹๏ผ‰ are rendered as ruby text above the kanji.
  • Kanji popup โ€” hover (or tap on mobile) any kanji to see:
    • On / Kun readings, meanings, stroke count, grade, old JLPT level (KANJIDIC2, ~3,000 kanji, works offline)
    • Meanings in English, French, Spanish or Portuguese โ€” follows Obsidian's language or pick one in settings (falls back to English when a kanji has no translation)
    • Optional Korean (hanja) reading โ€” on by default when Obsidian is in Korean
    • Words in this note that contain the kanji โ€” pulled from your vocabulary tables, grammar headings and inline readings
  • Korean and English UI (follows Obsidian's language).

How to open

  • ๐Ÿ” icon in the note's header bar (top right)
  • ๐Ÿ” ribbon icon
  • Command palette: Kanji Zoom: Open current note (assign a hotkey if you like)
  • Reading view: ๐Ÿ” button next to h1โ€“h3 headings opens just that section

In the viewer: + / -, Cmd/Ctrl + = / -, or Cmd/Ctrl + mouse wheel (trackpad pinch too) change the font size; Esc closes. The viewer's toolbar works as a title bar, so you can still drag the window.

Note format tips

Vocabulary tables are detected by header names:

ColumnRecognised headers
Word๋‹จ์–ด, ่ชž, word, kanji (otherwise the first column)
Reading์ฝ๊ธฐ, ่ชญใฟ, reading
Part of speechํ’ˆ์‚ฌ, ๅ“่ฉž, pos
Meaning๋œป, ์˜๋ฏธ, ๆ„ๅ‘ณ, meaning, translation

Grammar headings like ## ๋ฌธ๋ฒ•: ๏ฝžใ‚’ๅ•(ใจ)ใ‚ใš โ€” ~์„ ๋”ฐ์ง€์ง€ ์•Š๊ณ  are picked up as word โ€” meaning.

See samples/ for an example note.

Installation

From Community plugins

Settings โ†’ Community plugins โ†’ Browse โ†’ search Kanji Zoom. (after approval)

Manual

  1. Download main.js, manifest.json, styles.css from the latest release.
  2. Put them in <your vault>/.obsidian/plugins/kanji-zoom/.
  3. Reload Obsidian and enable Kanji Zoom in Settings โ†’ Community plugins.

That's it โ€” the kanji dictionary is built into main.js. Nothing else to download, and it works offline.

Development

Only for working on the plugin itself โ€” users don't need any of this.

No Node.js required.

python3 tools/check.py          # build + Obsidian compatibility checks + tests (run before every commit)
python3 tools/build.py          # build only: src/main.js + data/kanji.json โ†’ main.js
python3 tools/test.py           # tests only (Node.js, or macOS JavaScriptCore if Node isn't installed)

Edit src/main.js, never main.js (it is generated). tools/check.py catches common Obsidian review rejections: manifest rules, innerHTML, default hotkeys, Node-only require on a mobile-enabled plugin, network calls, regex lookbehind (older iOS), and unfinished manifest values in --release mode. CI runs it on every push.

Regenerate data/kanji.json from the KANJIDIC2 source (maintainers only, e.g. for a new KANJIDIC2 release; the result is committed and embedded at build time):

curl -LO http://www.edrdg.org/kanjidic/kanjidic2.xml.gz
python3 tools/build_kanji.py kanjidic2.xml.gz data/kanji.json

Release: bump version in manifest.json, add it to versions.json, then push a tag with the same version (e.g. 0.1.1). GitHub Actions builds main.js and creates a draft release.

Support

If this plugin helps your study, you can buy me a coffee โ˜•.

License

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.