aboutsummaryrefslogtreecommitdiff
path: root/examples/furigana-html.ts
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-07-03 13:49:42 +0200
committerlonkaars <loek@pipeframe.xyz>2023-07-03 13:49:42 +0200
commit14c31de2f166d9e6d874984cdee5a2876c1ddec5 (patch)
tree876497de9e2c3b170d564ee343d887d138033897 /examples/furigana-html.ts
parent5c9bebac4078ee053c5048e4de2a3ed5afed4e24 (diff)
keep kana-only words as kana-only in readings
Diffstat (limited to 'examples/furigana-html.ts')
-rw-r--r--examples/furigana-html.ts8
1 files changed, 8 insertions, 0 deletions
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"));