12 lines
435 B
Plaintext
12 lines
435 B
Plaintext
component Japanese(text string)
|
|
if arn.ContainsUnicodeLetters(text)
|
|
for _, token := range arn.JapaneseTokenizer.Tokenize(text)
|
|
if token.Furigana
|
|
a.japanese(href="http://jisho.org/search/" + token.Original, target="_blank", rel="noopener")
|
|
ruby(title=token.Romaji)= token.Original
|
|
rt.furigana= token.Hiragana
|
|
else
|
|
ruby.japanese(title=token.Romaji)= token.Original
|
|
rt.furigana
|
|
else
|
|
span.japanese= text |