https://github.com/daviddavo/logseq-furigana
A small plugin to add markdown support for furigana (ruby tags)
https://github.com/daviddavo/logseq-furigana
furigana logseq logseq-plugin markdown
Last synced: 3 months ago
JSON representation
A small plugin to add markdown support for furigana (ruby tags)
- Host: GitHub
- URL: https://github.com/daviddavo/logseq-furigana
- Owner: daviddavo
- License: mit
- Created: 2023-04-27T11:16:45.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T09:35:04.000Z (about 2 years ago)
- Last Synced: 2025-04-04T02:34:30.313Z (about 1 year ago)
- Topics: furigana, logseq, logseq-plugin, markdown
- Language: TypeScript
- Homepage:
- Size: 3.05 MB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
### My other plugins
- π [Logseq Emoji Shortcodes](https://github.com/daviddavo/logseq-emoji-shortcodes)
#
Logseq Furigana

If you π what I'm doing - you can support my work π΅
## Features
Choose if you want to modify your notes or not:
- **Slash command** to transcribe from Markdown Furigana to HTML Ruby tags.
- Modifies your notes but you can read them without having the plugin installed.
- **Markdown rendering** to show ruby tags without modifying your notes
- Just write something like `{ζΌ’ε|γγγ}` and it will show us as furigana
### Parsers
- There are multiple ways of writing the γ΅γγγͺfurigana:
- **Round parentheses**: An old classic: `γγγ― ζΌ’εοΌγγγοΌγ§γ`
- β οΈ Keep in mind that these are JAPANESE parentheses. You have to use your japanese input method.
- **Anki** way: Like this `γγγ― ζΌ’ε[γγγ]γ§γ`
- **Spectacle parentheses**: `γγγ― ζΌ’εγγγγγγ§γ`
- **[Obsidian's plugin](https://github.com/steven-kraft/obsidian-markdown-furigana)** way, based on a [markdown-it extension](https://github.com/lostandfound/markdown-it-ruby) (recommended)
- Uses two brackets to enclose the whole compound: `γγγ―{ζΌ’ε|γγγ}γ§γ`
- You might need to put an space to separate compounds.
- Use extra `|` to show the furigana of each kanji of the word:
- `ζΌ’ε[γγ|γ] or {ζΌ’ε|γγ|γ}`
## How to develop
1. Clone the repository
2. Make sure you have pnpm installed, [install](https://pnpm.io/installation) if necessary π
3. Execute `pnpm install` π¦
4. Execute `pnpm build` to build the plugin π§
5. Enable developer-mode in Logseq, go to plugins, select "Load unpacked plugin" π
6. Select the directory of your plugin (not the `/dist`-directory, but the directory which includes your package.json) π
7. Enjoy! π
## Acknowledgments
- Obsidian Furigana Parser based on the [obsidian-markdown-furigana](https://github.com/steven-kraft/obsidian-markdown-furigana) plugin
- Plugin template in [logseq-plugin-template-react](https://github.com/pengx17/logseq-plugin-template-react)