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
Install-Package Gem -Version 126.96.36.19939
dotnet add package Gem --version 188.8.131.5239
<PackageReference Include="Gem" Version="184.108.40.20639" />
paket add Gem --version 220.127.116.1139
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 - 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.
- No dependencies.
This package is not used by any popular GitHub repositories.