An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

### My other plugins
- 😍 [Logseq Emoji Shortcodes](https://github.com/daviddavo/logseq-emoji-shortcodes)

# Logseq Furigana

![demo video](./demo.gif)

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)