Expand description
Vertical text, as MapLibre GL JS lays it out (util/script_detection.ts, util/verticalize_punctuation.ts, shaping.ts isLineVertical).
Characters with upright vertical orientation (CJK ideographs, kana,
Hangul, …) stay upright along a vertical line: a label whose text has
any such character gets a vertical shaping too, used for point labels
with text-writing-mode: vertical and for line labels whenever their line
runs more vertically than horizontally on screen. Punctuation between such
characters becomes its vertical presentation form.
The tables are generated from MapLibre’s own functions
(unicode_properties.g.ts, \p{sc=Arab} and \s regular expressions,
verticalizedCharacterMap) evaluated over every code point.
Functions§
- allows_
vertical_ writing_ mode - allowsVerticalWritingMode: any character is upright.
- glyph_
is_ vertical - isLineVertical for a glyph of a vertical shaping: upright characters, or with vertical point placement anything but whitespace and Arabic.
- ideographic_
breaking - codePointAllowsIdeographicBreaking.
- upright
- codePointHasUprightVerticalOrientation.
- verticalize_
punctuation - verticalizePunctuation: punctuation whose neighbours are not rotated (or are punctuation themselves) takes its vertical form.
- verticalized
- The vertical presentation form of a punctuation character.