angular-phonetic
A simple component to aid in rendering ruby text.
See an example here: https://tyrantwave.github.io/angular-phonetic/
Installation
- Install from npm:
npm install --save angular-phonetic
Importing to your application
Reference the directive in the main module:
;
Then in your base module:
imports:
Using in your application
Use the component, providing the phonetic guide:
中文
Customisation
For browsers that don't support the <ruby>
tag, the brackets used for the phonetic guide can be customised:
日本語
You can also specify no brackets if required:
日本語
Or use the same bracket on both sides:
朝鮮的
License
MIT