3.6. uniseg.derived — Derived Core Properties

Unicode derived properties.

UAX #44: Unicode Character Database (16.0.0)

uniseg.derived.InCB

alias of Indic_Conjunct_Break

class uniseg.derived.Indic_Conjunct_Break(value)

Derived Property: Indic_Conjunct_Break.

Consonant = 'Consonant'

Indic_Conjunct_Break=Consonant

Extend = 'Extend'

Indic_Conjunct_Break=Extend

Linker = 'Linker'

Indic_Conjunct_Break=Linker

None_ = 'None'

Indic_Conjunct_Break=None

uniseg.derived.alphabetic(c: str, /) bool

Return Alphabetic boolean derived Unicode property value for c.

>>> alphabetic('A')
True
>>> alphabetic('1')
False
uniseg.derived.case_ignorable(c: str, /) bool

Return Case_Ignorable boolean derived Unicode property value for c.

>>> case_ignorable('A')
False
>>> case_ignorable('.')
True
uniseg.derived.cased(c: str, /) bool

Return Cased boolean derived Unicode property value for c.

>>> cased('A')
True
>>> cased('a')
True
>>> cased('*')
False
uniseg.derived.changes_when_casefolded(c: str, /) bool

Return Changes_When_Casefolded boolean derived Unicode property value for c.

>>> changes_when_casefolded('A')
True
>>> changes_when_casefolded('a')
False
uniseg.derived.changes_when_casemapped(c: str, /) bool

Return Changes_When_Casemapped boolean derived Unicode property value for c.

>>> changes_when_casemapped('A')
True
>>> changes_when_casemapped('a')
True
>>> changes_when_casemapped('1')
False
uniseg.derived.changes_when_lowercased(c: str, /) bool

Return Changes_When_Lowercased boolean derived Unicode property value for c.

>>> changes_when_lowercased('A')
True
>>> changes_when_lowercased('a')
False
uniseg.derived.changes_when_titlecased(c: str, /) bool

Return Changes_When_Titlecased boolean derived Unicode property value for c.

>>> changes_when_titlecased('A')
False
>>> changes_when_titlecased('a')
True
uniseg.derived.changes_when_uppercased(c: str, /) bool

Return Changes_When_Uppercased boolean derived Unicode property value for c.

>>> changes_when_uppercased('A')
False
>>> changes_when_uppercased('a')
True
uniseg.derived.default_ignorable_code_point(c: str, /) bool

Return Default_Ignorable_Code_Point boolean derived Unicode property value for c.

>>> default_ignorable_code_point('A')
False
>>> default_ignorable_code_point('­')
True
uniseg.derived.grapheme_base(c: str, /) bool

Return Grapheme_Base boolean derived Unicode property value for c.

>>> grapheme_base('A')
True
>>> grapheme_extend('̀')
True
uniseg.derived.grapheme_extend(c: str, /) bool

Return Grapheme_Extend boolean derived Unicode property value for c.

>>> grapheme_extend('A')
False
>>> grapheme_extend('̀')
True
uniseg.derived.id_continue(c: str, /) bool

Return ID_Continue boolean derived Unicode property value for c.

>>> id_continue('A')
True
>>> id_continue('a')
True
>>> id_continue('1')
True
>>> id_continue('.')
False
uniseg.derived.id_start(c: str, /) bool

Return ID_Start boolean derived Unicode property value for c.

>>> id_start('A')
True
>>> id_start('a')
True
>>> id_start('1')
False
uniseg.derived.indic_conjunct_break(c: str, /) Indic_Conjunct_Break

Retrun Indic_Conjunct_Break derived property for c.

>>> indic_conjunct_break('A')
Indic_Conjunct_Break.None_
>>> indic_conjunct_break('्')
Indic_Conjunct_Break.Linker
uniseg.derived.lowercase(c: str, /) bool

Return Lowercase boolean derived Unicode property value for c.

>>> lowercase('A')
False
>>> lowercase('a')
True
uniseg.derived.math(c: str, /) bool

Return Math boolean derived Unicode property value for c.

>>> math('A')
False
>>> math('+')
True
uniseg.derived.uppercase(c: str, /) bool

Return Uppercase boolean derived Unicode property value for c.

>>> uppercase('A')
True
>>> uppercase('a')
False
uniseg.derived.xid_continue(c: str, /) bool

Return XID_Continue boolean derived Unicode property value for c.

>>> xid_continue('A')
True
>>> xid_continue('a')
True
>>> xid_continue('1')
True
>>> xid_continue('.')
False
uniseg.derived.xid_start(c: str, /) bool

Return XID_Start boolean derived Unicode property value for c.

>>> xid_start('A')
True
>>> xid_start('a')
True
>>> xid_start('1')
False