The Chinese SE community would definitely benefit from a modified version of the furigana extension here. I'll make a list of concerns that is based on user senshin's points from a draft mockup a while back and the current Japanese Meta formatting page.*
*Apologies for posting here, but Japanese SE has the best (and only) support for ruby text, so it's easiest to demonstrate the functionality here.
removed support for okurigana and pitch accent
Agree, Chinese doesn't have/need this (although see Point 19).
added auto-conversion for things like zhong1wen2
to zhōngwén
Agree to this feature conditionally - we need an easy way to turn the conversion feature off.
Agree that this needs to be a core feature, because
- The tone marks on letters ā é ǐ ò and the umlaut ü are difficult to type on a standard keyboard
Condition: we need an easy way to turn it off (not on), because
The majority of questions or answers which are going to use this feature are probably going to be based on new learners of Chinese using Mandarin Pinyin (I don't know how to use bopomofo, but if tone marks are difficult to type there we should support that too). Making the feature default is more useful than making the user turn the feature on.
I like the idea of using numbers as the indicator to convert to the tone mark, but many non-Standard-Mandarin topolects use numbers to represent tone as well, without using the Mandarin notation of tone. Truncated example (from Wiktionary entry of 「你」):
Other topolects may also have different standards of where to put the tone, if it uses the same tone symbols (and probably won't correspond to the Mandarin notation of numbers 1 to 4):
If you include the pinyin in "numeric" form (like the second and fourth examples above), it will also automatically be segmented so that each syllable is placed above its corresponding character.
Agree to this feature conditionally. If numbers are overloaded to be a way to also segment syllables, we should be able to turn off the feature (e.g. by escaping it).
We need to address the neutral tone with either a "0" or "5".
We need to be able to turn it off due to the rare presence of multi-syllable characters, e.g. 「[圕]{túshūguǎn}」.
Can pinyin written in "diacritic" form (like the first and third examples above) be unambiguously broken into syllables (by itself, without reference to the characters)? If so, I can figure out how to implement automatic segmentation for diacritic-form pinyin.
Disagree with this feature, as Pinyin (with or without diacritics) cannot be broken unambiguously. In Pinyin,
The neutral tone (see Point 3) calls for the absence of any diacritics.
Tone diacritic marks always go above the vowel or one of the letters in a diphthong, regardless of what the syllable is, so syllable-final [-ng] cannot be unambiguously segmented from syllable initial [g-]; e.g. it is ambiguous whether [bangan] refers to [ban gan] or [bang an].
How do we turn it off for multi-syllable characters (see Point 4)?
Does this site cover Chinese languages besides Mandarin, and if so, would there be any demand for tonal annotations for other languages?
Yes, but currently I would suggest not to try to implement a topolect-specific version of those, otherwise the syntax is going to be too messy. See what the tone orthography could look like in Point 2.
A basic kind of support would be to reuse the Pinyin syntax with numbers for both tone marking and syllable segmentation, but replace the tone marks on the vowel/diphthong with a superscript number after the syllable.
[你好]{ni3hao3} should be rendered as [你]{nǐ}[好]{hǎo} in Mandarin Pinyin
[你好]{nei5hou2} should be rendered as [你]{nei⁵}[好]{hou²} in Cantonese Jyutping
A similar conversion to the Cantonese above should be used for a lot of other non-Mandarin topolects (see Point 2)
Are there any characters that would require annotation outside the UTF-8 range from U+4E00 to U+FEED? That's what JLU uses, and it seems to cover all common CJK characters, but the CJK Unified Ideographs Extension ranges fall outside that, and I don't know if you folks would need that.
I don't know what the current Japanese SE support is, but as a minimum, we need:
- Support for IPA symbols
- Support for superscript numbers and letters (if not already part of IPA)
Support for the standard CJK range from U+4E00 to U+FEED (annotating Chinese characters with other Chinese characters is standard practice of Fanqie for Middle Chinese)
Japanese SE already supports this
The ability to annotate the following character sets outside of the standard CJK range with all of the above:
Ideographic description characters
Japanese SE already supports this
[⿱戈止]{武}
As many of the CJK Unified Ideograph Extensions as possible
Japanese SE already supports annotating characters up to CJK Unified Ideographs Extension F, which is currently very sufficient
[𮯠]{I don't know the reading of the character U+2EBE0}
CJK Compatibility Ideographs
Japanese SE already supports this
[龎]{/*[b]ˤroŋ/}
However, CJK Compatibility Ideographs have some funky display issues (at least on my computer)
Nice to have (not crucial):
Support for Vietnamese Quốc ngữ both ways
Japanese SE already supports this
Support for ideographic description characters inside the annotation
Japanese SE already supports this
[𨷯]{⿵門舉}
Support for as many of the CJK Unified Ideograph Extensions as possible inside the annotation
Japanese SE already supports annotations with characters up to CJK Unified Ideographs Extension F, which is currently very sufficient
Support for CJK compatibility ideographs inside the annotation
Japanese SE doesn't support this fully
- [齃]{齃} (from typing [齃]{齃})
- [a齃a]{a齃a} (from typing [a齃a]{a齃a})
Other features taken from the Japanese Meta formatting page (nice to have)
Furigana padding
Modifying the pitch accent mechanism specifically for emphasising text - can we get a black any-coloured squiggly line?

This emphasis is often used in literature to mark proper nouns.
Points not addressed (needs further input from the community)
On JLU, there's also support for annotations of the form 神【かみ】 (in addition to square brackets []) because that's how dictionaries do it.
On JLU, the following characters behave like punctuation for the purposes of the helper script: .、。--/。<>()()≪≫;;::!!==≡≠≒$¥?\?&##@@“‘”’. Are there any additional punctuation characters for Chinese?