Skip to content

[css-ruby] Handling apostrophes in pinyin #5997

@frivoal

Description

@frivoal

In Chinese, pinyin syllables can be separated by spaces, but when part of a single compound word, they're more typically just juxtaposed with no separator. Except some of them: for disambiguation, certain combinations that would otherwise combine to form a single are separated by an apostrophe. E.g. "dong" and "xi", when next to each other, are just "dongxi", but "xi" and "an" are "xi'an", not "xian" (which is a single syllable with a different pronunciation).

We currently don't have anything in css-ruby that would let us automatically inject these apostrophes when needed. In a way, this is very language specific, and maybe we cannot solve it fully automatically. But it also depends on layout: whether the ruby of adjacent syllables lack sufficient space for visual separation or not. If we could find something generic enough, it would be nice to be able to handle such cases, even if it needed some amount of preprocessor / markup support.

Possibly, if compound words are marked up as single ruby segments, the apostrophes could go in the markup so that there would be no need for the layout engine to guess where they go, and so that if the annotation is rendered inline, it is correct. In that case, what we'd need in css is a way to make them disapear in the right circumstances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-ruby-2i18n-clreqChinese language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions