Gem furigana library

The Gem library makes it easier to work with furigana text, particularly on web pages.

 Gem uses a simple syntax to encode furigana information in Japanese text. The text to be displayed in the furigana gem is simply included in square brackets following the character or group of characters it relates to. For example: 新[あたら]しい.

 Once you create a Gem, it is very easy to:
 - Display the HTML required to view furigana in the browser using the HTML ruby syntax
 - Extract the plain text without any furigana from Japanese text written in the gem syntax
 - Extract phonetic hiragana text from Japanese text written in the gem syntax

 The library includes a .NET and javascript implementation of the library.

Install-Package Gem -Version
dotnet add package Gem --version
<PackageReference Include="Gem" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gem --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

04 August 2017 - Made the gem.furigana.js file install into /script directory only.
 30 July 2017 - improved the logic that parsers furigana to make sure furigana appears only over kanji characters.
 16 July 2017 - added a javascript version of the library.
 16 July 2017 - Updated to split the gem when an honorific 'o' is encountered. Also handles spaces more consistently. Respects spaces, but collapses multiple ones.
 03 June 2018 - Create a .NET standard version of the library.

  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated 256 6/3/2018
1.0.6425.24805 276 8/4/2017
1.0.6420.38072 249 7/30/2017
1.0.6406.36758 341 7/16/2017
1.0.6406.24888 513 7/16/2017
1.0.5882.34168 424 2/8/2016
1.0.5768.26750 376 10/17/2015
1.0.5679.38134 349 7/20/2015