1.1.0 • Published 3 years ago

@phoenix-plugin-registry/brackets-rubify-text v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Rubify Text

Rubify Text is a simple extension that wraps selected texts with <ruby> annotation tags to help make annotating Asian texts with furigana easier.

Preview

Usage

Rubifying Text

Select your text, then open the context menu (right click) and select "Rubify Text" to wrap your selected texts with <ruby> tags.

You can also use CTRL+ALT+T instead of using the context menu.

Result

Before RubifyingAfter Rubifying
時々<ruby>時々<rt></rt></ruby>

After rubifiying the text, all you need to do is fill in the <rt> annotations.

Derubifying Text

Select the text you want to convert from a <ruby> tag into plain text, then open the context menu and hover over "Derubify Text" to show a list of conversion options. Each option is listed below.

to <ruby> text

Converts the string into the text that is only inside of the <ruby> tag. (does not include <rt> texts)

Before DerubifyingAfter Derubifying
<ruby>時々<rt>ときどき</rt></ruby>時々

to <rt> text

Converts the string into the text that is only inside of the <rt> tag. (does not include <ruby> texts)

Before DerubifyingAfter Derubifying
<ruby>時々<rt>ときどき</rt></ruby>ときどき

to two strings

Returns two separate strings based on the two prior options separated by a bar |.

Before DerubifyingAfter Derubifying
<ruby>時々<rt>ときどき</rt></ruby>時々|ときどき