FuriganaText
Renders a word with accurate furigana as ruby text, from the per-segment segmentation the server extracts (JmdictFurigana). Kana-only segments carry no annotation and render as plain text.
Interfaces¶
FuriganaTextProps¶
Defined in: src/shared/components/FuriganaText.tsx:10
Properties¶
| Property | Type | Description | Defined in |
|---|---|---|---|
fallback |
string |
Fallback text when no segmentation is known. | src/shared/components/FuriganaText.tsx:14 |
segments |
FuriganaSegment[] |
The word's furigana segments. | src/shared/components/FuriganaText.tsx:12 |
Functions¶
FuriganaText()¶
Defined in: src/shared/components/FuriganaText.tsx:24
The FuriganaText component. Font size is inherited, the ruby annotations scale down from it.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
props |
FuriganaTextProps |
The props. |
Returns¶
Element
The ruby-annotated word.