Dynamic Line Height for CJK

by Ryota Ushio
5
4
3
2
1
Score: 54/100

Description

Category: Note Enhancements

The Dynamic Line Height for CJK plugin enhances the readability of notes containing Chinese, Japanese, and Korean (CJK) characters in Obsidian. It dynamically adjusts line height in Editing View or paragraph height in Reading View to accommodate the visual needs of CJK characters, which typically require more spacing than European alphabets. Users can customize these settings through the Style Settings plugin for tailored aesthetics. Additionally, the plugin applies a .cjk CSS class to lines or paragraphs with CJK characters, enabling further customization via CSS snippets. This plugin is ideal for users working with multilingual content, improving visual clarity and layout consistency.

Reviews

No reviews yet.

Stats

3
stars
3,269
downloads
0
forks
873
days
872
days
879
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

2 years ago

Changelog

Excluded .markdown-preview-view outside the actual reading view.

README file from

Github

Obsidian Dynamic Line Height for CJK

This Obsidian.md plugin dynamically adjusts the height of each line (in Editing View) or paragraph (in Reading View) based on it contains CJK (Chinese, Japanese, and Korean) characters. This is useful because CJK characters typically require more line height than European alphabets.

Line height for lines and paragraphs containing CJK characters can be set via Style Settings.

Moreover, this plugin adds the .cjk CSS class to lines and paragraphs containing CJK characters. This allows more advanced styling via CSS snippets.

Usage

  1. Install this plugin and enable it.
  2. Install Style Settings and enable it. If it's already enabled, you might need to reload it.
  3. Customize the line height for CJK via Style Settings if necessary. This can be done by either of the followings:
    1. Settings > Style Settings > Dynamic Line Height for CJK > Line height for CJK lines and paragraphs
    2. Command Palette > Run the command "Style Settings: Show style settings view" > Dynamic Line Height for CJK > Line height for CJK lines and paragraphs

Installation

You can find this plugin in the community plugin browser within Obsidian.

You can also install the latest beta release using BRAT.

  1. Install the latest version of BRAT and enable it.
  2. Open the following URL in browser: obsidian://brat?plugin=RyotaUshio/obsidian-dynamic-line-height-cjk.
  3. Click the "Add Plugin" button.
  4. (Optional but highly recommended) In the BRAT settings, turn on Auto-update plugins at startup at the top of the page.

Support development

If you find this plugin useful, please support my work by buying me a coffee!

Similar Plugins

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