Шаблон:Unichar/gc

< Шаблон:Unichar
Версия от 01:27, 24 февраля 2022; Adam (обсуждение | вклад) (Новая страница: «{{#if:{{{1|}}}<!-- -->|{{#ifexpr: {{{1}}}<=65535<!-- in plane 0 BMP -->|{{#ifexpr: (00<={{{1}}}) and ({{{1}}}<=31) or (127<={{{1}}}) and ({{{1}}}<=159)<!-- -->| Cc <!--00..1F 7F..9F -->| {{#ifexpr: (55296<={{{1}}}) and ({{{1}}}<=57343)<!-- -->| Cs <!--D800..DFFF high&low Surrogates -->| {{#ifexpr: ((57344<={{{1}}}) and ({{{1}}}<=63743))<!-- -->| Cp <!--E000..F8FF Private Use -->| {{#ifexpr: (64976<={{{1}}} and {{{1}}}<=65007)...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

<#not a Unicode code point#>

Документация

UsageПравить

Returns Unicode General Category (gc) Cc Cf Cn Cs Zl Zp Zs <blank> for special code points (like <control>, space characters, formatting characters). When regular gc like Letter, Symbol, Mark, or Punctuation, it returns a blank.

ParametersПравить

This is a subtemplate, so parameters may has tight requirements. Input: (unnamed)

{{Unichar/gc
|1= <!--decimal value of the code point-->
}}

The code point value is required as a decimal value, because we are using the #ifexpr: numerical calculations.

For five Arabic number markings U+0600..U+0603 and U+60DD, it returns Cf (visible). While Cf formatting characters usually have no glyph, these five have. By adding the «(visible)» text, these characters are shown (while regular Cf characters are hidden).

See alsoПравить

See main template {{unichar}} for full documentation.