From 14c31de2f166d9e6d874984cdee5a2876c1ddec5 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 3 Jul 2023 13:49:42 +0200 Subject: keep kana-only words as kana-only in readings --- examples/furigana-html.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples') diff --git a/examples/furigana-html.ts b/examples/furigana-html.ts index 6b6d2cd..6a0e801 100644 --- a/examples/furigana-html.ts +++ b/examples/furigana-html.ts @@ -20,3 +20,11 @@ console.log(furigana); // this sentence works :tada: // console.log((await api.sentence("浮上したハイラル城の下にてゼルダ様達の捜索を行うこととなった")).furigana("HTML")); + +var test = "日本に来て一番驚いたことは自動販売機の多さだ。"; +console.log(test); +console.log((await api.sentence(test)).furigana("parenthesis")); + +test = "にほんに来て一番驚いたことは自動販売機の多さだ。"; +console.log(test); +console.log((await api.sentence(test)).furigana("parenthesis")); -- cgit v1.2.3