From 7131fa9824c2865f455c15870f4d358946d1cf9c Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 31 Jul 2023 13:13:01 -0700 Subject: [PATCH] Add index.html --- index.html | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..e035584 --- /dev/null +++ b/index.html @@ -0,0 +1,79 @@ + + + + + + Markdown Furigana to HTML + + + + +
+

Markdown Furigana to HTML

+

+ Welcome to Elnu's Markdown Furigana to HTML converter utility. + This converter uses the following syntax, which is a custom and unofficial extension to Markdown: +

+

+ + [振]{ふ}り[仮]{が}[名]{な} +  ⟶  + ()()() + +

+
+ How does it work? +

This syntax gets rendered to HTML as:

+

+ <span lang="ja">
+  <ruby>振<rp>(</rp><rt>ふ</rt><rp>)</rp></ruby>り
+  <ruby>仮<rp>(</rp><rt>が</rt><rp>)</rp></ruby>
+  <ruby>名<rp>(</rp><rt>な</rt><rp>)</rp></ruby>
+ </span> +

+
    +
  • + <rp>(</rp> and <rp>)</rp> + ruby fallback parentheses tags + are used to wrap furigana text with parentheses on legacy browsers that don't support <ruby>. +
  • +
  • + Most browsers default to displaying Chinese character variants rather than Japanese. + By wrapping the ruby text in <span lang="ja">, we + can ensure that the Japanese variants will always be used, if available. +
  • +
+

+ For more information on this syntax, see + my blog post here + on creating a parser regular expression and integrating it into the Hugo static site generator. +

+
+
+ +
+ +

+
+
+
+ + + \ No newline at end of file