Skip to content

[7.4.9] Japanese pitch accent, compact meaning box, bundled dictionary assets

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Aug 06:58
· 4 commits to main since this release

What's New in Miteiru 7.4.9

Changes since v7.4.4.

Features

  • Japanese pitch accent indicator — The meaning box shows an OJAD-style pitch contour for Japanese headwords: a line over per-mora dots with the reading below, plus a hollow particle dot that disambiguates heiban (平板) from odaka (尾高). Pattern pills (平板 / 頭高 / 中高 / 尾高) show the accent number, and words with multiple accepted accents are switchable. Data comes from Kanjium (CC BY-SA 4.0), covering ~10,300 word/reading pairs (nouns and compounds; verb/adjective conjugation accents not included yet).
  • Compact meaning box — "My Notes" and the inflection table are now collapsible accordions (notes open automatically when a saved note exists), the inflection table moved to the bottom, and "Quick actions" is a single row with the shortcut hints inside the buttons.

Fixes

  • Installers now bundle the language assets (dictionaries, tokenizers, kanji SVGs). The v7.4.6 builds were missing them, so dictionary lookup and tokenization were broken in those installers.
  • Japanese language asset pack — The published japanese-assets.zip was missing the grammar catalog (jp_grammar.json), so a fresh asset download silently broke grammar study. The pack has been rebuilt with the grammar and pitch accent data included.
  • Fixed a React key warning in the meaning box header and invalid <rt>-inside-<rt> HTML nesting in subtitle ruby rendering.

Developer notes

  • Added scripts/buildPitchAccentData.js (npm run script:build-pitch-accent) which extracts accent positions from the Kanjium SQLite database into renderer/public/language-assets/japanese/pitch/accents.json; the Japanese asset manifest now lists it.
  • Added renderer/utils/pitchAccent.ts (mora splitting, accent classification, lookup with kana normalization) with unit tests.
  • Added load success/failure unit tests for subtitle parsing (SRT/ASS/LRC/HUF) and the miteiru:// video protocol (range parsing, 200/206/416 responses). Suite: 244 tests.
  • Added a GitHub Actions release workflow (.github/workflows/release.yml), triggered manually: gh workflow run release.yml -f tag=vX.Y.Z builds Windows NSIS + portable, macOS pkg, and Linux deb/AppImage (22.04 and 24.04) artifacts and attaches them to the GitHub release. Asset downloads retry with backoff and authenticate with the workflow token.

Full Changelog: v7.4.4...v7.4.9