This was discussed previously, but on the old forums.
Not sure how you’re hosting Discourse, but it might be much easier to integrate an extension to handle <ruby> tag wrapping now. Considering how much discussion is already here (and should continue into the future :D) it would be nice to have a better way to format character readings - rather than always writing something along the lines of 悔(くや)しい.
If it’s not feasible with your setup, all good.
Thought I’d mention them in case it’s an easy win now that the forums have changed.
NB: Whether or not furigana is beneficial is tangential to having a standard way to display them. People do write readings on the forums, especially when discussing the language / answering questions.
I also like the syntax with the single set of 【】, but it is going to require some extra code to determine which text to place the furigana over. I should be able to add it though.
Some email providers don’t support ruby tags (I tried it in gmail, and it deleted everything inside the ruby tag: the text and furigana). Discourse occasionally sends email updates that might contain markdown from posts, that code strips all the ruby tags so the furigana will appear in parentheses.
Some of these idiosyncracies might be sensible. Putting furigana over romaji without explicitly specifying which part? I’m not sure that’s a good idea, seeing as… you know… spaces. However, I don’t see any reason to disallow putting romaji above kanji, or putting things over kana only.
Another gripe I have is that escaping these sequences doesn’t work at all on StackExchange. Check this odd pair out:
That’s just plain broken! Wiiildly inconsistent. So… if you could implement sensible behavior for those, that’d be sweet and you could honestly say you’re better than Stack Exchange.
I allowed escaping the sequences and set 【】as the default for emails/incompatible browsers.
I agree the oddities in the furigana support, I don’t see any reason to disallow anything in the furigana itself since the furigana is always in brackets.
The reason that putting things over kana only is disallowed is that kana are used to determine where to place the furigana.
For example,
私は行【い】く。
The い in 行く could apply to anything before it. However, the は serves as a marker to help place the furigana. Ramaji, punctuation, and other special characters (anything that is not kanji) also serve as markers.
So I will allow the automatically placed furigana to have anything in the furigana, but only kanji in the text. In the example you gave above (漢字【かんじ】 カナ【カナ】) it might be possible, but adding support for anything but kanji in the automatic placement would lead to inconsistent behavior in many cases.
Ah, I see! That makes a whole bunch of sense. Great observation.
I’m really hoping for official installation now! If you send off an e-mail to hello@wanikani.com, they might just do it. Viet and the gang are usually very responsive.
We are hosted on discourse.org and unfortunately our plan does not offer a plug-in option. Therefore we can’t extend support (whitelist basically) ruby tags.
I would try asking over at meta.discourse.org to see if ruby tags can be whitelisted by default.