You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, most browsers render the Chinese variants of CJK characters. In order to get them to display Japanese, one needs to use the lang="ja" attribute on a parent element of the Japanese content. Of course, the quickest fix would be putting lang="ja" on the root <html> element, but this certainly isn't ideal if one's website language is English (or something other than Japanese) with then Japanese interspersed in it. It'd be great to have an option lets one set the lang attribute on all <ruby> tags that furigana-markdown-it outputs, i.e. replacing <ruby> with <ruby lang="ja"> or whatever one's preferred language is.
The text was updated successfully, but these errors were encountered:
Though, in my browser (Firefox on Arch Linux), it seems to be non-compliant - lang="ja" doesn't work, have to be lang="ja-JP" (or at least a hyphen - after ja). On my Firefox for Android, all work fine without a hyphen.
No lang attribute: 誤解
ja: 誤解
ja-JP: 誤解
zh: 誤解
zh-CN: 誤解
ko: 誤解
ko-KR: 誤解
Furthermore, the some CSS might be required, if you own the website - to force the fonts - see MDBG or Jisho
@ElnuDev It might be better to nest in another span - 東南の方角 - The last character 角 isn't a part of ruby, but it is inside the span.
By default, most browsers render the Chinese variants of CJK characters. In order to get them to display Japanese, one needs to use the
lang="ja"
attribute on a parent element of the Japanese content. Of course, the quickest fix would be puttinglang="ja"
on the root<html>
element, but this certainly isn't ideal if one's website language is English (or something other than Japanese) with then Japanese interspersed in it. It'd be great to have an option lets one set thelang
attribute on all<ruby>
tags thatfurigana-markdown-it
outputs, i.e. replacing<ruby>
with<ruby lang="ja">
or whatever one's preferred language is.The text was updated successfully, but these errors were encountered: