Japanese Novel Ruby

by quels <@k-quels>
5
4
3
2
1
Score: 57/100

Description

The Japanese Novel Ruby plugin enhances the readability of Japanese texts in Obsidian by enabling the display and insertion of ruby (Furigana) annotations commonly used in Japanese novels. It allows users to preview ruby annotations in real-time while editing documents and toggle preview settings. The plugin supports both English and Japanese interfaces, making it accessible to a wider audience. Users can insert ruby annotations, add emphasis dots, or remove existing ruby marks with built-in commands. It utilizes a widely accepted ruby syntax format used in popular Japanese novel websites like 青空文庫 and 小説家になろう, ensuring compatibility with established conventions.

Reviews

No reviews yet.

Stats

11
stars
4,144
downloads
5
forks
557
days
65
days
89
days
4
total PRs
0
open PRs
2
closed PRs
2
merged PRs
5
total issues
0
open issues
5
closed issues
12
commits

Latest Version

3 months ago

Changelog

(EN)

Improvements

  • Expanded Kanji Character Support
    • Symbols such as "仝〆〇ヶ" are now treated as Kanji, following Aozora Bunko standards.

Bug Fixes

  • Live Preview: Disabled ruby rendering within code blocks and images
    • Changed the behavior to skip rendering in these areas as it is often unintended by the user.
  • Live Preview: Fixed an issue where ruby was not displayed in tables (issue #9)
    • Ensured that ruby is processed even when the table element itself is passed to the post-process.
    • To prevent table corruption while editing, text starting with | (half-width pipe followed by a space) is no longer interpreted as a ruby delimiter.

Documentation Updates

  • Updated README with a notice on half-width | usage in tables.

(JP)

機能改善

  • 漢字として扱われる文字の追加
    • 青空文庫の規定に則り、「仝〆〇ヶ」を漢字としてみなすようにしました。

バグ修正

  • ライブプレビュー:コードブロックや画像内でのルビのレンダリングを無効にしました
    • 多くの場合ユーザーの意図通りではないと思われるため、表示されない仕様に変更しました。
  • ライブプレビュー:テーブル内でルビ表示されない問題を修正しました (issue #9)
    • ポストプロセスにテーブル自体が渡された場合にもルビが表示されるようにしました。
    • 編集中のテーブル崩れを防ぐ為、「| 」(後ろにスペースが続く半角パイプ)で始まるテキストはルビとして解釈しないようにしました。

ドキュメント更新

  • READMEにテーブル内での半角|使用の制限について追記しました。

Full Changelog: https://github.com/k-quels/japanese-novel-ruby/compare/1.5.1...1.5.2

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)
  • 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.

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.
Word Splitting for Japanese in Edit Mode
4 years ago by sonarAIT
A patch for Obsidian's built-in CodeMirror Editor to support Japanese word splitting. Obsidian内蔵のCodeMirrorエディタが日本語の単語分割をサポートするためのパッチ.
DeepL
3 years ago by Till Friebe
DeepL for Obsidian.
Translate
3 years ago by Fevol
Translate text and entire notes in Obsidian
Natural Language Syntax Highlighting
3 years ago by artisticat
Highlight adjectives, nouns, adverbs, verbs, and conjunctions in Obsidian.md
Datetime Language Changer
2 years ago by Zetab_S
This is a Obsidian plugin that allows you to customize the language used for datetime formatting by changing moment.js's locale.
Etymology Lookup
2 years ago by Claire Froelich
Obsidian plugin for looking up the etymology of words in your notes with one click
Dictionary translator
2 years ago by Grover
我可以帮助你翻译单词或句子,听新单词或句子的录音,甚至录下自己的发音,以内部链接的形式保存到你的笔记中。
ruby.wasm
2 years ago by geeknees
Obsidian RubyWasm Plugin
Furigana
5 years ago by Koppa
Helper plugin for furigana in the Obsidian
Markdown Furigana
5 years ago by Steven Kraft
Simple Markdown to Furigana Rendering Plugin for Obsidian
Longform
5 years ago by Kevin Barrett
A plugin for Obsidian that helps you write and edit novels, screenplays, and other long projects.
Language Translator
4 years ago by Florin Bobis
An Obsidian plugin to translate selected text in the desired language
Code Language Completer
2 years ago by Stanley Wang
minimal Obisdian plugin, fine-tuned to speed up developer note-taking
Immersive Translate
2 years ago by imfenghuang
Immersive Translate For Obsidian
Jisage -Japanese Indentation-
2 years ago by Telehakke
Obsidian plugin.
kkh
a year ago by 奈幾乃(uakms)
kkh の Obsidian 用プラグイン
aDHL
a year ago by tine-schreibt
The Dynamic Highlights Plugin, but with hotkeys, more options and sorting; works well with Highlightr.
Japanese note taking helper
a year ago by OverFitter
Japanese Manuscript Counter
4 months ago by Yo Fujii