Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 2.23 KB

unicodedata.rst

File metadata and controls

77 lines (52 loc) · 2.23 KB

python

Unicode Data

Notifications:

The UnicodeData object uses notifications to notify observers of changes.

Types of Values

This object works with three types of Unicode values: real, pseudo and forced. A real Unicode value is the value assigned in the glyph object. A pseudo-Unicode value is an educated guess about what the Unicode value for the glyph could be. This guess is made by splitting the suffix, if one exists, off of the glyph name and then looking up the resulting base in the UnicodeData object. If something is found, the value is the pseudo-Unicode value. A forced-Unicode value is a Private Use Area value that is temporaryily mapped to a glyph in the font. These values are stored in the font object only as long as the font is active. They will not be saved into the font. Note: Forced-Unicode values are very experimental. They should not be relied upon.

Tasks

Value From Glyph Name

  • ~defcon.UnicodeData.unicodeForGlyphName
  • ~defcon.UnicodeData.pseudoUnicodeForGlyphName
  • ~defcon.UnicodeData.forcedUnicodeForGlyphName

Glyph Name from Value

  • ~defcon.UnicodeData.glyphNameForForcedUnicode
  • ~defcon.UnicodeData.glyphNameForUnicode

Glyph Descriptions

  • ~defcon.UnicodeData.blockForGlyphName
  • ~defcon.UnicodeData.categoryForGlyphName
  • ~defcon.UnicodeData.scriptForGlyphName

Open and Closed Relatives

  • ~defcon.UnicodeData.closeRelativeForGlyphName
  • ~defcon.UnicodeData.openRelativeForGlyphName

Decomposition

  • ~defcon.UnicodeData.decompositionBaseForGlyphName

Sorting Glyphs

  • ~defcon.UnicodeData.sortGlyphNames

Notifications

  • ~defcon.UnicodeData.dispatcher
  • ~defcon.UnicodeData.addObserver
  • ~defcon.UnicodeData.removeObserver
  • ~defcon.UnicodeData.hasObserver

Parent

  • ~defcon.UnicodeData.getParent
  • ~defcon.UnicodeData.setParent

UnicodeData

defcon

UnicodeData