是否可以使用 Unicode 输入汉字假名(和 Ruby 个字符)?

Is it possible to type in Furigana (and Ruby characters) using Unicode?

我目前正在制作一个Corona app where I would like to include Japanese text. For those of you who do not know, it appears that Japanese has multiple languages to write in text (Kanji, Hiragana, etc.). Furigana is a way to have Kanji characters with Hiragana in what looks to be subtext (or Ruby characters). See the Ruby slide on this page作为示例。

我正在寻找一种在 Corona 中使用 Furigana in my app. I was hoping there was a way to do it using Unicode. Well, I stumbled upon the Interlinear Annotation characters and tested them out (using unicodeToUtf8 and the LastResort 字体的方法,如下所示::

    local iaAnchor = unicodeToUtf8(0xfff9)
    local iaSep = unicodeToUtf8(0xfffa)
    local iaTerm = unicodeToUtf8(0xfffb)
    local options = {
        parent = localGroup,
        text = iaAnchor .. "漢" .. iaSep .. "かん" .. iaTerm .. iaAnchor .."字" .. iaSep .. "じ" .. iaTerm,
        x = 285,
        y = 195,
        font = "LastResort",
        fontSize = 24,
    }
    local testText = display.newText(options)

不幸的是,我没有成功,最终得到这样的结果:

所以,我的问题是,是否可以让 Furigana (and Ruby characters) 使用 Unicode 工作?或者这不是 Unicode 中实际可用的功能?我只是想确保我没有在浪费时间让这些东西发挥作用。

我查看了 this Unicode report, but the jargon is a bit too thick for me to understand what they're trying to say. Are they implying at all that such characters should not be used in regular practice? If so, then the previous resources on Unicode Ruby Characters 中的行间注释字符部分,有点误导。

行间注释字符是用于注释文本的通用工具(如注音假名、注音符或其他语音指南),但 Unicode 标准并未指定应如何解释或呈现它们。也就是说,您可能必须自己为它们实现渲染支持,因为大多数库不知道如何处理它们。

使用已经支持呈现 Ruby 文本的更高级别的协议可能会更容易。例如,如果您有权访问可以呈现 HTML 的 API,则可以使用 <ruby>/<rt> 标签——它们具有明确定义的呈现语义。