Japanese Novel Ruby

by k-quels
5
4
3
2
1
Score: 51/100

Description

The Japanese Novel Ruby plugin displays and inserts ruby, or furigana, using a syntax common on Japanese novel sites such as Aozora Bunko and Shosetsuka ni Naro. It renders ruby while you edit, can show or hide ruby preview in source mode, and from version 1.2.0 can enable ruby only for notes with the enable_ruby: true property. You can also change the ruby marks for other formats, for example replacing 《》 with 【】. Its commands cover dialog based insertion, direct insertion in the editor, emphasis dots, ruby removal, hiding ruby until hover, and toggling source mode preview. The interface is available in English and several Chinese variants as well as Japanese. It does not support markdown ruby format, and half width | breaks ruby inside tables.

Reviews

No reviews yet.

Stats

16
stars
5,803
downloads
5
forks
71
days
59
days
59
days
4
total PRs
0
open PRs
2
closed PRs
2
merged PRs
7
total issues
0
open issues
7
closed issues
42
commits

Latest Version

2 months ago

Changelog

(EN)

Features

  • Support for Double-Bracket Emphasis Dots:
    • Added an option to use double delimiters (《《...》》 or custom brackets like 【【...】】) for emphasis dots (Bouten).
    • Updated "Insert emphasis dot" and "Remove ruby" commands to support double delimiter notation.

Improvements

  • Enhanced Real-Time Re-rendering:
    • Improved Live Preview updates so setting changes and frontmatter property (enable_ruby) toggles are instantly reflected across all views, including tables, without reopening the note.

Bug Fixes

  • Improved Ruby Parsing & Priority Handling:
    • Fixed an issue where nested brackets inside ruby (e.g. |漢字《《かんじ》》) were not parsed correctly.
  • Browser Engine Freeze Fix:
    • Fixed an issue that could trigger an upstream browser engine freeze when selecting text containing ruby in certain environments (#11).

(JP)

新機能

  • 二重括弧による傍点記法のサポート
    • 《《》》やカスタムルビ記号(【【】】など)で囲んだ文字に傍点を表示するオプションを追加しました。
    • 「傍点を挿入」「ルビを削除」コマンドが二重括弧傍点記法に対応しました。

改善

  • リアルタイム再描画の強化
    • 設定変更やノートのプロパティ(enable_ruby)切り替え時に、表の中身も含めてノートを開き直すことなく即座にライブプレビューへ反映されるよう改善しました。

バグ修正

  • ルビの解釈処理と優先度の改善
    • ルビ自体に括弧を含む記法(|漢字《《かんじ》》 など)が正しくパースされない問題を修正しました。
  • フリーズ問題への対策
    • 一部の環境でルビを含むテキストの選択時にブラウザエンジン側のフリーズバグを誘発する問題に対応しました (#11)

Full Changelog: https://github.com/k-quels/japanese-novel-ruby/compare/1.6.2...1.7.0

README file from

Github

Japanese Novel Ruby Plugin for Obsidian

English | 日本語

Obsidian plugin for display & insert ruby(Furigana) ​​marks commonly used in Japanese novels.

The ruby syntax of this plugin is a format widely used by Japanese novel web sites, such as 「青空文庫」「小説家になろう」 and others.

Format example:

Input Text Rendered Ruby
長い|文章《ぶんしょう》 長い文章ぶんしょう
長い文章《ぶんしょう》 長い文章ぶんしょう
|傍《・》|点《・》 傍・点・

What you can do with this plugin

  • Edit documents while previewing ruby
    • Enable / disable ruby preview in source mode via plugin settings.
    • Ruby can be enabled for specific notes only. (Turn on the option and set the property "enable_ruby: true") (from ver. 1.2.0)
    • You can change the ruby marks for non-Japanese novel use. e.g. 《》 → 【】 (from ver. 1.2.0)
    • Optionally supports double delimiters (《《...》》 or custom brackets) for emphasis dots (Bouten). (from ver. 1.7.0)
  • The user interface is available in English / Japanese / Simplified Chinese / Traditional Chinese.
  • Commands:
    • novel-ruby-insert : Show a dialog to insert ruby. Set selected text as body.
    • novel-ruby-insert-direct : Insert ruby marks directly in the editor without opening a dialog.
    • novel-ruby-insert-dot : Insert emphasis dots in selected text.
    • novel-ruby-remove : Remove all ruby marks from selected text.
    • novel-ruby-toggle-ruby-hidden : Toggle 'Hide ruby unless hover' setting.
    • novel-ruby-toggle-ruby-hidden-always : Toggle 'Hide ruby when not editing' setting.
    • novel-ruby-toggle-source-mode-render : Toggle 'Enable ruby preview in source mode' setting.

Limitations

  • Using the half-width pipe | as a ruby start delimiter inside tables will break the display.
    • If you want to use ruby inside tables, please make sure to use the full-width pipe |.

See Also

This plugin doesn't support markdown ruby format.

If you want to use it, consider to use obsidian-markdown-furigana plugin.

Acknowledgments

Thanks to @steven-kraft. Part of the Ruby parsing code was inspired by obsidian-markdown-furigana plugin.

Thanks to @phibr0. The localization code is based on the obsidian-commander plugin.

Special thanks to @Moyf and @MinZe25 for their PRs and suggestions regarding the new features in ver. 1.2.0 and Simplified Chinese localization support!

Special thanks to @chungchungdev for the PR regarding Traditional Chinese localization support!

Support

If you like this plugin, please consider supporting my work. Thank you!

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.