An Obsidian plugin for Japanese fiction writers. It provides a writing environment optimized for Japanese novel composition, with .txt file support, vertical writing preview, term highlighting, ruby annotation, and manuscript export. Works on both desktop and mobile (iOS / Android).
Activate novel mode by adding mode: novel to a note's frontmatter. All plugin behaviors—fonts, formatting, highlighting—are scoped exclusively to novel-mode notes. Standard notes are unaffected.
---
mode: novel
---
Note: Novel Mode detection is based on YAML frontmatter, which Obsidian only parses for
.mdfiles. Frontmatter in.txtfiles is not recognized by Obsidian, somode: novelhas no effect there—novel mode features (fonts, term/bracket highlighting, ruby rendering, word count, etc.) will not activate on.txtfiles even if the frontmatter is present..txtsupport (see below) covers opening/editing the file and using Vertical Writing Preview only.

.txt file support — open and edit plain text files directly in Obsidian, and preview them with Vertical Writing Preview. Note: this does not include novel mode itself—see the note under Novel Mode above.Add furigana to selected text from the editor's right-click context menu.
Ruby notation is also rendered inline in the editor as an HTML <ruby> element so you can read the text naturally while writing.
On mobile: There is no way to open a right-click context menu on mobile, so the same actions are also available as commands. Select text, then run 選択した文字列にルビを振る / 選択した文字列に傍点を振る from the command palette (or from a mobile toolbar button, if you've added these commands via Customize Toolbar).
Four ruby notation styles are supported (configured globally in Settings):
| Style | Format |
|---|---|
| なろう式 | |漢字《ルビ》 (half-width pipe) |
| 青空文庫式 | |漢字《ルビ》 (full-width pipe) |
| でんでん式 | {漢字|ルビ} |
| HTML | <ruby>漢字<rt>ルビ</rt></ruby> |
Notes tagged with a category (character, location, glossary, organization, item) register their filename as a term, which is then highlighted wherever it appears in novel-mode editors. Colors and on/off toggles are configurable per category. Additional names for the same term can be registered via aliases.
---
tags: character
aliases: (register alternative names here)
---
Hovering over a highlighted term in the editor shows the corresponding term note via Obsidian's standard Page Preview (Hover Preview).
On mobile: Hovering isn't possible on a touch device, so this feature is disabled on mobile. Instead, select a string of text and run the 選択した文字列の用語ノートを開く command — this shows the term note's content in a preview modal, with a button to open the note directly if needed.
Highlight Japanese brackets (「」『』()【】〈〉《》) with individually configurable colors and toggles.
A right-sidebar panel displays all defined terms, organized in a folder-tree view. Features include:
When creating a new term note, you can specify a folder path. If the folder does not exist, a confirmation dialog appears before creating it.
On mobile: Long-press a category or folder to open the same "create new term note" menu that right-click opens on desktop. Drag-and-drop still works for moving terms between folders, but dragging a term into the main pane to insert it doesn't work, due to how drag-and-drop behaves on mobile browsers. Instead, tap a term to open a menu with "ノートを開く" (open note), "原稿に挿入" (insert into manuscript), and "リンクをクリップボードへコピー" (copy link to clipboard). "原稿に挿入" inserts into whichever manuscript note you were last editing; if none is open, the link is copied to the clipboard automatically instead.
Three counting modes are available, shown in the status bar (desktop only — Obsidian's mobile apps don't support status bar items, so this display isn't available there):
Additional options control whether full-width spaces, blank lines, and hashtags are included in the count.
Preview the current note in vertical writing (tate-gumi) layout. Features:

On mobile: On desktop, this opens in the right sidebar so you can keep it visible alongside the editor while you write. Mobile screens can't show both at once, so it opens as an independent tab instead. As a result, cursor position sync and cursor-line highlighting don't work on mobile (the Settings screen shows "モバイル版では使用できません。" for the highlight option). The line-wrap column setting may also not display the exact character count you've configured, depending on the available screen height.
A clean reading view that strips WikiLinks, tags, and non-manuscript content. Displays a notice for non-novel-mode files. Includes an export button alongside the standard edit button.

Export the current note as clean manuscript text via a dedicated export dialog:
.txt / .md)
Open a manuscript overview in the main pane, aggregating every mode: novel note in the vault into one place.
「」, 『』, etc.)
Novels Note JPThe same steps work in the mobile app.
main.js, manifest.json, and styles.css from the latest release<vault>/.obsidian/plugins/novels-note-jp/mode: novel to the frontmatter of any note you want to use as a novel manuscriptDesktop:
Mobile:
Create notes for characters, locations, and other story elements, and add the matching category tag to the note's frontmatter tags:
| Tag | Category |
|---|---|
character |
Character names |
location |
Place names |
glossary |
Terminology / worldbuilding |
organization |
Groups and organizations |
item |
Items and objects |
The note's filename (or its name frontmatter field, if set) becomes the term, and is automatically highlighted in novel-mode editors.
Use the command palette (Ctrl/Cmd + P) and run Novels Note JP: 縦書きプレビューを開く to open the tate-gumi preview panel. It opens in the right sidebar on desktop, and as a new tab on mobile.
Run Novels Note JP: 小説閲覧ビューを開く from the command palette to switch the current note to the clean reading view.
Run Novels Note JP: 現在のファイルを原稿 Export する from the command palette to open the export dialog.
Run Novels Note JP: 執筆情報一覧を開く from the command palette to open the manuscript stats overview in a new tab.
| Setting | Description |
|---|---|
| Font size | Font size for novel-mode editors |
| Line height | Line height for novel-mode editors |
| Wrap column | Number of full-width characters per line |
| Show guideline | Enable/disable the line-wrap ruler, with color, opacity, and style options |
| Full-width space visualization | Enable/disable, with display style (dot / underline / box) and color options |
| Highlight: Global toggle | Enable or disable all highlighting |
| Category colors / toggles | Color and enable/disable per term category |
| Bracket colors / toggles | Color and enable/disable per bracket type |
| Ruby notation style | Format used when inserting and rendering ruby annotations (narou / aozora / denden / HTML) |
| Word count mode | Raw / Novel-weighted / Manuscript pages (desktop only) |
| Word count options | Whether to include full-width spaces, blank lines, and hashtags in the count |
| Vertical preview cursor highlight | Enable/disable and color for the cursor-line highlight in vertical preview (disabled on mobile) |
| Exclude folders | Folders excluded from the term index |
| Writing Stats exclude folders | Folders excluded from the Writing Stats scan (managed separately from the term index's exclude list) |
As of version 0.9.0, Novels Note JP runs on the iOS and Android Obsidian apps. Core writing, highlighting, ruby annotation, export, and term-management features all work the same as on desktop, but a few features are adapted or unavailable due to mobile-specific constraints. See the "On mobile:" notes under each feature above for details.
git clone https://github.com/p77-don/novels-note-jp.git
cd novels-note-jp
npm install
npm run dev
Copy main.js, manifest.json, and styles.css to your vault's plugin folder and reload Obsidian.
日本語小説の執筆に特化した Obsidian プラグインです。.txt ファイルのサポート、縦書きプレビュー、用語ハイライト、ルビ入力、原稿エクスポートなど、小説執筆ワークフローに必要な機能を提供します。デスクトップ・モバイル(iOS / Android)の両方に対応しています。
フロントマターに mode: novel を記載したノートのみにプラグインの機能が適用されます。通常のノートには影響を与えません。
---
mode: novel
---
注意 ノベルモードの判定は YAML フロントマターに基づいていますが、Obsidian はフロントマターを
.mdファイルに対してのみ解析します。.txtファイルではフロントマターがそもそも認識されないため、mode: novelを記載してもノベルモードは有効になりません(フォント・用語ハイライト・括弧ハイライト・ルビ表示・文字数カウントなどの機能は動作しません)。後述する「.txtファイル対応」は、あくまでファイルの開閉・編集と縦書きプレビューのみを対象としています。

.txt ファイル対応 — プレーンテキストファイルを直接開いて編集でき、縦書きプレビューも利用可能です。ただし、ノベルモード自体は含まれません(詳細は上記ノベルモードの注意書きを参照)エディター上でテキストを選択して右クリックすると、コンテキストメニューに項目が表示されます。
ルビ記法はエディター上でも HTML の <ruby> 要素としてインラインレンダリングされるため、執筆中も読みやすい表示で確認できます。
モバイルでは: モバイル環境には右クリックメニューを開く手段がないため、同じ機能をコマンドとして提供しています。文字列を選択したうえで、コマンドパレット(または「ツールバーをカスタマイズ」に登録したモバイルツールバー)から 選択した文字列にルビを振る / 選択した文字列に傍点を振る を実行してください。
対応しているルビ記法は以下の4種類です(設定で統一的に切り替え可能):
| 方式 | 記法 |
|---|---|
| なろう式 | |漢字《ルビ》(半角縦棒) |
| 青空文庫式 | |漢字《ルビ》(全角縦棒) |
| でんでん式 | {漢字|ルビ} |
| HTML | <ruby>漢字<rt>ルビ</rt></ruby> |
カテゴリタグ(character、location、glossary、organization、item)が付いたノートのファイル名(または name プロパティの値)が用語として登録され、エディター上でハイライト表示します。カテゴリごとに色と表示のオン/オフを設定できます。また、aliases にて別名を登録することもできます。
---
tags: character
aliases: (別名を登録)
---
エディター上でハイライトされた用語にマウスを合わせると、対応する用語ノートを Obsidian 標準のページプレビュー(Hover Preview)で確認できます。
モバイルでは: ホバー(マウスを合わせる操作)自体が存在しないため、この機能はモバイルでは無効になります。代わりに、文字列を選択して 選択した文字列の用語ノートを開く コマンドを実行すると、用語ノートの内容(本文プレビュー)をモーダル表示で確認できます。モーダルの「用語ページを開く」からノートを直接開くことも可能です。
日本語括弧(「」『』()【】〈〉《》)を種類ごとに色設定・個別トグルでハイライト表示します。
右サイドバーに用語の一覧をフォルダツリー形式で表示します。
用語ノートの新規作成時にフォルダパスを指定できます。指定したフォルダが存在しない場合、作成前に確認ダイアログが表示されます。
モバイルでは: カテゴリ・フォルダの長押しで新規作成メニューが開きます(右クリックの代わり)。用語のドラッグ&ドロップは、フォルダ間の移動には対応していますが、メインペインへの挿入(原稿へのWikiLink挿入)はモバイル環境のドラッグ&ドロップの制約により動作しません。代わりに、用語をタップするとメニューが開き、「ノートを開く」「原稿に挿入」「リンクをクリップボードへコピー」を選択できます。「原稿に挿入」は、直前まで編集していた原稿ノートに挿入されます(原稿を開いていない場合は自動的にクリップボードへコピーされます)。
3つのカウントモードをステータスバーに表示します(デスクトップのみ。モバイルでは Obsidian 側の仕様によりステータスバーが利用できないため、この表示はありません):
全角スペース・空行・ハッシュタグをカウントに含めるかどうかもオプションで設定できます。
現在のノートを縦書きレイアウトでプレビューします。

モバイルでは: デスクトップでは右サイドバーに開き、エディターと並べて確認しながら執筆できますが、モバイルでは画面の制約上エディターと同時に表示できないため、独立したタブとして開きます。これに伴い、カーソル位置同期・カーソル行ハイライトはモバイルでは動作しません(設定画面にも「モバイル版では使用できません。」と表示されます)。折り返し桁数の設定も、画面の高さによっては指定した文字数どおりに収まらない場合があります。
WikiLink・タグ・本文以外のコンテンツを除去したクリーンな閲覧ビューです。ノベルモードでないファイルにはポップアップで通知します。編集ボタンの隣にエクスポートボタンも配置されています。

専用のエクスポートダイアログから、現在のノートをクリーンな原稿テキストとして出力します。
.txt / .md)を選択可能
Vault 全体の mode: novel ノートを集計し、メインペインに一覧表示します。

モバイル版アプリでも同じ手順でインストールできます。
main.js、manifest.json、styles.css をダウンロード<vault>/.obsidian/plugins/novels-note-jp/mode: novel を追加するデスクトップ:
モバイル:
登場人物・場所・用語などのノートを作成し、対応するカテゴリタグを付与します:
| タグ | カテゴリ |
|---|---|
character |
人物名 |
location |
場所名 |
glossary |
用語・世界観設定 |
organization |
組織・団体 |
item |
アイテム・道具 |
ノートのファイル名(または name プロパティを設定している場合はその値)が用語として登録され、ノベルモードのエディターで自動的にハイライトされます。
コマンドパレット(Ctrl/Cmd + P)から Novels Note JP: 縦書きプレビューを開く を実行します。デスクトップでは右サイドバー、モバイルでは新規タブとして開きます。
コマンドパレットから Novels Note JP: 小説閲覧ビューを開く を実行すると、現在のノートを小説閲覧ビューに切り替えます。
コマンドパレットから Novels Note JP: 現在のファイルを原稿 Export する を実行します。
コマンドパレットから Novels Note JP: 執筆情報一覧を開く を実行すると、原稿の集計一覧が新規タブとして開きます。
| 設定項目 | 説明 |
|---|---|
| フォントサイズ | ノベルモードのエディターで使用するフォントサイズ |
| 行間 | ノベルモードのエディターで使用する行間 |
| 折り返し桁数 | 1行あたりの全角文字数 |
| 定規の表示 | 折り返し位置の定規の表示/非表示(色・不透明度・実線/破線) |
| 全角スペースの可視化 | 表示/非表示の切り替えと、スタイル(ドット・下線・ボーダー)・色の設定 |
| ハイライト:全体トグル | すべてのハイライト機能の一括オン/オフ |
| カテゴリカラー・トグル | 用語カテゴリごとの色とオン/オフ |
| 括弧カラー・トグル | 括弧の種類ごとの色とオン/オフ |
| ルビ記法 | ルビ入力・インラインレンダリング・エクスポートに使用する記法(なろう式 / 青空文庫式 / でんでん式 / HTML) |
| 文字数カウントモード | 生文字数 / 小説用重み付き / 原稿用紙換算(デスクトップのみ表示) |
| 文字数カウントオプション | 全角スペース・空行・ハッシュタグをカウントに含めるか |
| 縦書きプレビューのカーソルハイライト | カーソル行の背景色とオン/オフ(モバイルでは操作不可) |
| 除外フォルダ | 用語インデックスから除外するフォルダ |
| 執筆情報一覧 除外フォルダ | 執筆情報一覧の集計対象から除外するフォルダ(用語インデックスの除外フォルダとは別に管理) |
バージョン 0.9.0 より、iOS / Android のモバイル版 Obsidian に対応しました。基本的な執筆・ハイライト・ルビ・エクスポート・用語管理機能はデスクトップと同様に利用できますが、モバイル特有の制約により、一部の機能は操作方法が異なる、または利用できません。詳細は各機能セクション内の「モバイルでは:」の記載を参照してください。