npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

joplin-plugin-rubi-and-furigana

v1.1.0

Published

This plugin adds a new command `Rubi` (can be found in `Edit` menu, Editor toolbar, or Keyboard Shortcut) that insert appropriate `<ruby>` and `<rt>` tags into formatted text to display furigana and vice versa.

Downloads

13

Readme

Rubi and Furigana

This plugin adds a new command Rubi (can be found in Edit menu, Editor toolbar, or Keyboard Shortcut) that insert appropriate <ruby> and <rt> tags into formatted text to display furigana and vice versa.

It is especially useful for Japanese (and East Asian languages in general), but it has its uses for many scenarios.

It only works in markdown editor. The current WYSIWYG editor of Joplin is quite problematic, so I have no use for it at the moment.

Usage:

The current version of the plugin supports two methods for converting: Basic, and Search and Replace.

Rubi (Basic) (Shortcut: CmdOrCtrl+R)

The Basic logic will add <ruby> tags around the seclection

漢字「かんじ」 → <ruby>漢字<rt>かんじ</rt></ruby>
漢「かん」字「じ」 → <ruby>漢<rt>かん</rt>字<rt>じ</rt></ruby>
example(ɪɡˈzæmpl̩) → <ruby>example<rt>ɪɡˈzæmpl̩</rt></ruby>

which are displayed as the following:

漢字かんじ かん exampleɪɡˈzæmpl̩

The Basic logic will only be activated when there are an equal number of open and close characters.

Rubi (Search and Replace) (Shortcut: CmdOrCtrl+Shift+R)

The Basic logic is fine in most case but it is inconvenient to select each term seperately if you have to insert many furigana amid a paragraph. In that case you can use Search and Replace logic which simply convert designated characters to approriate tags.

{今日(きょう)}は{漢字(かんじ)}の{書き取(かきと)}りがある 
→ <ruby>今日<rt>きょう</rt></ruby>は<ruby>漢字<rt>かんじ</rt></ruby>の<ruby>書き取<rt>かきと</rt></ruby>りがある

which are displayed as the following:

今日きょう漢字かんじ書き取かきとりがある

It is not pretty but it allows us to keep typing instead of constantly switch back and forth between keyboard and mouse to toggle ruby characters.

Settings

You can define which characters will be turn into <ruby> (Default: {『), </ruby> (Default: }』), <rt> (Default: ([(「), and </rt> (Default: )])」) in the plugin settings.

There is only one Rubi button in the editor toolbar but you can set which logic it uses in plugin settings.

Keyboard Shortcuts can be changed in the shortcut editor.