pub enum Slot {
Upright(String),
LatinWord(String),
MongolianRun(String),
Space(String),
VerticalPunctuation(String),
CornerPunctuation(String),
Neutral(String),
}Variants§
Upright(String)
An upright ideograph, kana, or hangul grapheme cluster.
LatinWord(String)
One normal, horizontally readable Latin word in a vertical slot.
MongolianRun(String)
Keep the run intact so a vertical-capable font can perform Mongolian joining and vertical substitutions.
Space(String)
Whitespace from the source, carried through verbatim so a copied paragraph matches what was written.
VerticalPunctuation(String)
Punctuation that turns a quarter-circle in vertical text: brackets, quotes, colons, dashes, ellipses, slashes.
The host rotates the view. It must never swap the character for a vertical presentation form (U+FE10–FE4F): those look correct and silently destroy the document, because copy-paste, find-in-page, and screen readers then yield codepoints the author never typed. A renderer may decide how text appears; the text itself is content, and content is not ours to edit.
CornerPunctuation(String)
A stop or comma. These do not turn in vertical text — they move to the upper-right corner of their em square. Again a view-only change.
Neutral(String)
Punctuation and other unsupported scripts remain upright for now.