aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-07-03 12:46:22 +0200
committerlonkaars <loek@pipeframe.xyz>2023-07-03 12:46:22 +0200
commit5c9bebac4078ee053c5048e4de2a3ed5afed4e24 (patch)
tree6afc0bf8e0d8db373bb080567c6db56b78b4440a /examples
parentfa68eb21bf1d0460303cae3a0233e2d6cefd00ca (diff)
fix furigana for known working sentence
Diffstat (limited to 'examples')
-rw-r--r--examples/furigana-html.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/furigana-html.ts b/examples/furigana-html.ts
index f0ff067..6b6d2cd 100644
--- a/examples/furigana-html.ts
+++ b/examples/furigana-html.ts
@@ -14,6 +14,9 @@ var sentence = await api.sentence("日本に来て一番驚いたことは自動
// Copy the sentence verbatim but add furigana to each word's kanji
var furigana = sentence.furigana("HTML");
+// TODO: sentence is not copied verbatim, words are replaced by their kanji if they matched by kana only
console.log(furigana);
+// this sentence works :tada:
+// console.log((await api.sentence("浮上したハイラル城の下にてゼルダ様達の捜索を行うこととなった")).furigana("HTML"));