def process(self):
    self.edit("VEDIC")
    self.edit("SIGN", "sign")
    self.edit("TONE", "tone")
    self.edit("DOUBLE", "dbl")
    self.edit("TRIPLE", "tpl")
    self.edit("LONG", "long")
    self.edit("REVERSED", "reversed")

    self.processAs("Helper Indic")

    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Vedic Extensions")
Ejemplo n.º 2
0
def process(self):
    self.edit("GURMUKHI")
    self.edit("LETTER")
    self.edit("DIGIT")
    self.processAs("Helper Indic")
    self.processAs("Helper Numbers")
    self.edit("SIGN", "sign")
    self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Gurmukhi")
    # Medial ligature: ALL the components are MEDI
    # Final ligature: the LAST component is FINA and the rest are MEDI
    # Isolate ligature: The LAST components is FINA, the fist components is INIT and the rest are MEDI
    if "WITH" in self.uniName:
        parts = self.uniName.split(" ")
        withIndex = parts.index("WITH")
        withParts = parts[withIndex+1:]
        nameParts = parts[:withIndex]
        if nameParts[0] == 'ARABIC':
            nameParts = nameParts[1:]
        if nameParts[0] == 'LETTER':
            nameParts = nameParts[1:]

        self.edit("WITH")
        self.edit("EXTENDED ARABIC-INDIC")
        self.edit("ARABIC LETTER")
        for p in nameParts:
            self.replace(p, camelCase(p.lower()))
        for p in withParts:
            self.replace(p, camelCase(p.lower()))

    self.compress()
    #if self.has("LIGATURE"):
    #    self.processAs("Helper Arabic Ligature")
    #else:
    #    self.processAs("Arabic")

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Arabic Supplement")

def process(self):
    # edits go here
    self.edit("LATIN")

    self.forceScriptPrefix("latin", "CAPITAL LETTER ALPHA", "Alpha")
    self.forceScriptPrefix("latin", "CAPITAL LETTER TURNED ALPHA", "Alphaturned")

    self.replace("LETTER SMALL CAPITAL TURNED E", "Esmallturned")

    self.edit("DOUBLE", "dbl")
    self.edit("BAR", "bar")
    self.edit("SUBSCRIPT", ".inferior")
    self.edit("HALF", "half")
    self.edit("TAILLESS", "tailless")

    self.edit("DIAGONAL")
    self.edit("WITH")

    self.processAs("Helper Diacritics")
    self.processAs("Helper Shapes")
    self.handleCase()
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Latin Extended-C")
Ejemplo n.º 5
0
    self.edit("COLON", "colon")
    self.edit("COMMA", "comma")
    self.edit("EQUALS SIGN", "equal")
    self.edit("LESS-THAN SIGN", "less")
    self.edit("GREATER-THAN SIGN", "greater")
    self.edit("REVERSE SOLIDUS", "backslash")
    self.edit("SOLIDUS", "slash")
    self.edit("VERTICAL LINE", "bar")
    self.edit("HYPHEN-MINUS", "hyphen")
    self.edit("AMPERSAND", "ampersand")
    self.edit("ASTERISK", "asterisk")
    self.edit("APOSTROPHE", "quotesingle")
    self.edit("FULL STOP", "period")
    self.edit("LOW LINE", "underscore")
    self.edit("CIRCUMFLEX ACCENT", "asciicircum")
    self.edit("GRAVE ACCENT", "grave")
    self.edit("TILDE", "asciitilde")

    self.edit("SQUARE BRACKET", "bracket")
    self.edit("CURLY BRACKET", "brace")
    self.edit("PARENTHESIS", "parenthesis")
    self.edit("LEFT", "left")
    if self.has("RIGHT") and not self.has("COPYRIGHT"):
        self.edit("RIGHT", "right")
    self.handleCase()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Basic Latin")
Ejemplo n.º 6
0
def process(self):
    # edits go here
    self.edit("MONGOLIAN")
    self.edit("DIGIT")

    self.replace("FULL STOP", "period")

    parts = [
        "TODO",
        "SIBE",
        "MANCHU",
        "ALI GALI",
        "HALF",
        "THREE",
        "INVERTED",
    ]
    for part in parts:
        self.edit(part, part.lower().replace(" ", ""))

    self.replace("LETTER")

    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Mongolian")
Ejemplo n.º 7
0
def process(self):

    self.edit("IDEOGRAPHIC TELEGRAPH SYMBOL FOR", "telegraph")
    self.edit("PARENTHESIZED IDEOGRAPH", "ideographicparen")
    self.editToFinal("PARENTHESIZED", "paren")
    self.edit("CIRCLED IDEOGRAPH", "ideographiccircled")
    self.edit("CIRCLED NUMBER", "circle")
    self.replace("IDEOGRAPH", "ideographic")

    self.edit("KOREAN CHARACTER")
    self.edit("ON BLACK SQUARE", "square")
    self.edit("CIRCLED KATAKANA", "circlekatakana")
    self.edit("CIRCLED HANGUL", "circlekorean")  # or hangul?

    self.edit("LIMITED LIABILITY SIGN", 'LTDfullwidth')
    self.edit("SQUARE HG", "Hgfullwidth")
    self.edit("SQUARE ERG", "ergfullwidth")
    self.edit("SQUARE EV", "eVfullwidth")
    self.edit("PARTNERSHIP SIGN", "partnership")

    self.edit("CIRCLED", "circle")

    self.processAs("Helper Digit Names")
    self.compress()
    self.lower()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Enclosed CJK Letters and Months")
def process(self):
    # If the Arabic ligature names comes with any of these terms then these rules apply on components:

    # Initial ligature: FIRST component is INIT and the REST are MEDI
    # Medial ligature: ALL the components are MEDI
    # Final ligature: the LAST component is FINA and the rest are MEDI
    # Isolate ligature: The LAST components is FINA, the fist components is INIT and the rest are MEDI

    # and now we're using camelcase?
    inevitableExceptions = {
        "ARABIC LIGATURE SHADDA WITH DAMMATAN ISOLATED FORM":   "shaddadamatan",
    }
    for k, v in inevitableExceptions.items():
        if k == self.uniName:
            self.edit(k, v)
            return

    if self.has("LIGATURE"):
        self.processAs("Helper Arabic Ligature")
    else:
        self.processAs("Arabic")


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Arabic Presentation Forms-A")
def process(self):
    self.replace("EURO-CURRENCY", "euroarchaic")
    self.replace("EURO", "Euro")
    self.replace("SIGN")
    self.compress()
    if not self.has("EURO"):
        self.lower()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Currency Symbols")
def process(self):
    self.replace("BRAILLE PATTERN BLANK", "brblank")
    self.replace("BRAILLE PATTERN DOTS", "dots")
    self.replace("-", "")
   

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Braille Patterns")
    self.replace("FOURTEEN", "fourteen")
    self.replace("SIXTEEN", "sixteen")
    self.replace("SEVENTEEN", "seventeen")
    self.replace("EIGHTEEN", "eighteen")
    self.replace("NINETEEN", "nineteen")

    self.replace('ZERO', 'zero')
    self.replace('ONE', 'one')
    self.replace('TWO', 'two')
    self.replace('THREE', 'three')
    self.replace('FOUR', 'four')
    self.replace('FIVE', 'five')
    self.replace('SIX', 'six')
    self.replace('SEVEN', 'seven')
    self.replace('EIGHT', 'eight')
    self.replace('NINE', 'nine')
    self.replace("TEN", "ten")
    self.replace("ELEVEN", "eleven")
    self.replace("TWELVE", "twelve")
    self.replace("THIRTEEN", "thirteen")
    self.replace("FIFTEEN", "fifteen")
    self.replace("TWENTY", "twenty")
    self.replace("THIRTY", "thirty")
    self.replace("FORTY", "forty")
    self.replace("FIFTY", "fifty")
    self.replace("SIXTY", "sixty")

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Helper Digit Names")
def process(self):

    parts = {
        'PROSGEGRAMMENI'    :   "iotasub",
        'YPOGEGRAMMENI'     :   "iotasub",
        'PERISPOMENI'       :   "tilde",
        'VARIA'             :   "grave",
        'PSILI'             :   "lenis",
        'DIALYTIKA'         :   "dieresis",
        'VRACHY'            :   "breve",
        'OXIA'              :   "acute",
        'DASIA'             :   "asper",
        "TONOS"             :   "tonos",
    }

    for prefix in ["WITH ", "AND ", ""]:
        for p in parts.keys():
            self.replace(prefix+p, parts[p])
    # output from Greek and Coptic will be lowercase
    for prefix in ["with ", "and ", ""]:
        for p in parts.keys():
            self.replace((prefix+p).lower(), parts[p])

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    from glyphNameFormatter.tools import debug
    printRange("Greek Extended")
    debug(0x1FF2)

def process(self):
    # edits go here
    self.edit("CROSSED-TAIL", "crossedtail")
    self.edit("WITH HOOK AND TAIL", "hooktail")
    self.processAs("Phonetic Extensions")
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Phonetic Extensions Supplement")
Ejemplo n.º 14
0
def process(self):
    self.edit("ORIYA")
    self.edit("LETTER")
    self.edit("DIGIT")
    self.edit("FRACTION")
    self.processAs("Helper Indic")
    self.processAs("Helper Numbers")


    self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Oriya")
    self.replace("MIDDLE DOT", 'periodcentered')

    self.edit("ACUTE ACCENT", "acute")
    self.edit("CIRCUMFLEX ACCENT", "circumflex")
    self.edit("GRAVE ACCENT", "grave")

    self.edit("LEFT-POINTING DOUBLE ANGLE QUOTATION MARK", "guillemet", "left")  # or guillemot ?
    self.edit("RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK", "guillemet", "right")  # or guillemot ?

    self.replace("VULGAR FRACTION ONE QUARTER", "onequarter")
    self.replace("VULGAR FRACTION ONE HALF", "onehalf")
    self.replace("VULGAR FRACTION THREE QUARTERS", "threequarters")

    self.replace("MULTIPLICATION SIGN", "multiply")
    self.replace("DIVISION SIGN", "divide")

    self.replace("CAPITAL LETTER AE", "AE")
    self.replace("WITH STROKE", "slash")
    self.replace("SMALL LETTER SHARP S", "germandbls")

    self.processAs("Helper Diacritics")

    self.handleCase()
    self.compress()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange

    printRange("Latin-1 Supplement")
Ejemplo n.º 16
0
    self.edit("STRETCHED", "stretched")
    self.edit("WITH STROKE", "stroke")
    self.edit("SQUAT", "squat")
    self.edit("INVERTED", "inverted")
    self.edit("REVERSED", "reversed")
    
    self.replace("DZ", "dzed")
    self.replace("LZ", "lzed")
    self.replace("DIGRAPH")
    self.replace("PERCUSSIVE", "percussive")
    self.replace("GLOTTAL", "glottal")
    self.replace("STOP", "stop")
    self.replace("PHARYNGEAL", "pharyngeal")
    self.replace("VOICED", "voiced")
    self.replace("FRICATIVE", "fricative")

    self.replace("LETTER CLICK", "click")
    self.replace("LETTER GLOTTAL STOP WITH STROKE", "glottalstopstroke")
    self.replace("LETTER SMALL CAPITAL OE", "OEsmall")

    self.processAs("Helper Diacritics")
    self.processAs("Helper Shapes")

    self.handleCase()
    self.replace("LETTER")
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("IPA Extensions")
Ejemplo n.º 17
0
def process(self):
    self.edit("LETTER")
    self.edit("SMALL", "small")
    self.edit("KATAKANA-HIRAGANA VOICED SOUND MARK", "voicedmarkkana")
    self.edit("KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK", "semivoicedmarkkana")
    self.edit("HIRAGANA ITERATION MARK", "iterationhiragana")
    self.edit("HIRAGANA VOICED ITERATION MARK", "voicediterationhiragana")
    # self.editToFinal("HIRAGANA", "hiragana")
    self.editToFinal("HIRAGANA")
    self.editToFinal("COMBINING", "cmb")
    self.lower()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Hiragana")
Ejemplo n.º 18
0
    self.edit("WITH HOOK", "hook")
    self.edit("WITH LOOP", "loop")
    self.edit("ZIGZAG", "zigzag")
    self.edit("WITH TIP", "tip")
    self.edit("WITH CORNER", "corner")
    self.edit("WITH DOTTED STEM", "dottedstem")
    self.edit("TO BLACK DIAMOND", "blackdiamond")
    self.edit("RIGHT", "right")
    self.edit("LEFT", "left")
    self.edit("UP", "up")
    self.edit("DOWN", "down")
    self.edit("AND", "")

    self.edit("THROUGH X", "thruX")
    self.edit("WITH SMALL CIRCLE", "smallcircle")
    self.edit("THROUGH SMALL CIRCLE", "thrusmallcircle")
    self.edit("ANTICLOCKWISE CLOSED CIRCLE", "anticlockwiseclosedcircle")
    self.edit("CLOCKWISE CLOSED CIRCLE", "clockwiseclosedcircle")
    self.edit("ANTICLOCKWISE TOP SEMICIRCLE", "anticlockwisesemicircle")
    self.edit("CLOCKWISE TOP SEMICIRCLE", "clockwisesemicircle")
    self.edit("ANTICLOCKWISE OPEN CIRCLE", "anticlockwiseopencircle")
    self.edit("CLOCKWISE OPEN CIRCLE", "clockwiseopencircle")
    self.edit("ABOVE ALMOST EQUAL TO", "abovealmostequal")
    self.edit("ABOVE TILDE OPERATOR", 'tildeabove')
    self.edit("TILDE OPERATOR ABOVE", 'tildeabove')


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Arrows")
Ejemplo n.º 19
0
def process(self):
    # just to test unicode 8 stuff
    # not complete
    self.replace("-", " ")
    self.camelCase()
    self.compress()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Emoticons")
Ejemplo n.º 20
0
def process(self):
    self.edit("TELUGU")
    self.edit("LETTER")
    self.edit("DIGIT")
    self.edit("CANDRABINDU", "candrabindu")
    self.processAs("Helper Indic")
    self.edit("ABOVE", "above")
    self.edit("VOWEL SIGN", "sign")
    self.edit("VOWEL")
    self.edit("SIGN", "sign")
    self.processAs("Helper Numbers")
    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Telugu")
    self.edit("SHORT STROKE", "strokeshort")
    self.edit("LONG STROKE", "strokelong")

    self.edit("DOUBLE RIGHTWARDS ARROW", "arrowrightdouble")
    self.edit("UPWARDS ARROW", "arrowup")
    self.edit("LEFT RIGHT ARROW", "arrowleftright")
    self.edit("LEFT ARROWHEAD", "arrowheadleft")
    self.edit("RIGHT ARROWHEAD", "arrowheadright")

    self.edit("DOUBLE", "double")
    self.edit("ABOVE", "above")
    self.edit("BELOW", "below")

    self.edit("BREVE", "breve")

    self.edit("COMBINING")
    self.replace("X", "x")

    # oddballs
    self.edit("GRAPHEME JOINER", "graphemejoiner")

    self.edit("LATIN")
    self.handleCase()
    # self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Combining Diacritical Marks")
def process(self):
    # edits go here
    # self.edit("ARMENIAN")
    # self.handleCase()
    # self.compress()
    self.edit("REVERSED")
    self.processAs("Cyrillic")


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Cyrillic Supplement")
        "INTERPOLATION",
        "TRANSPOSITION",
        "SUBSTITUTION",
        "RING",
        "VERTICAL",
        "PARAPHRASE",
        "FORKED",
        "EDITORIAL",
        "REVERSED",
        "INVERTED",
        "OBLIQUE",
        "FOUR",
        "BOTTOM",
        "TOP",
        "LOW",
        "LEFT",
        "RIGHT",
    ]
    for part in parts:
        self.edit(part, part.lower())

    self.replace("-POINTING")

    self.lower()
    self.compress()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Supplemental Punctuation")
Ejemplo n.º 24
0
    self.edit("AND SMALL TAH", "tahsmall")  # needs to follow dotbelow
    self.edit("ARABIC SMALL HIGH", 'above') # needs to be after all the dots
    self.edit("SMALL", 'small')
    self.edit("REVERSED", "reversed")

    self.processAs("Helper Arabic Positions")

    if self.uniName is not None:
       if "ARABIC LETTER" in self.uniName:
           lowercaseOk = True
       elif "ARABIC-INDIC DIGIT" in self.uniName:
           lowercaseOk = True

    # cleanup
    self.replace("ARABIC")
    self.replace("SIGN")
    self.replace("LETTER")
    if self.has("-"):
        self.replace('-')
    if lowercaseOk:
      self.lower()
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Arabic")
    debug(0x060C)
    # debug(0x066F)
    # debug(0x0697)
    # debug(0x069B)
    # debug(0x06E1)
    self.replace("LETTER SMALL CAPITAL EL", "Elsmall")
    self.replace("AIN", "ain")

    self.replace("LETTER SMALL CAPITAL AE", "AEsmall")
    self.replace("LETTER SMALL CAPITAL OU", "OUsmall")

    self.edit("FISHHOOK AND MIDDLE TILDE", "fishmiddletilde")
    self.processAs("Helper Diacritics")

    if self.has("GREEK"):
        self.edit("GREEK")
        self.forceScriptPrefix("greek")
        self.handleCase()
    elif self.has("CYRILLIC"):
        self.edit("CYRILLIC")
        self.handleCase()
        self.forceScriptPrefix("cyrillic")
    else:
        self.handleCase()

    self.edit("MODIFIER", "mod")
    self.edit("LETTER")

    self.compress()
    #self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Phonetic Extensions")
Ejemplo n.º 26
0

def process(self):
    # edits go here
    self.edit("MALAYALAM")

    self.edit("MARK")
    self.edit("VOWEL")

    self.edit("VOCALIC", "vocal")
    self.edit("SIGN", "sign")

    self.edit("CHILLU", "chillu")

    self.processAs("Helper Digit Names")

    self.edit("DIGIT")
    self.edit("NUMBER")
    self.edit("FRACTION")
    self.edit("LETTER")
    self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Malayalam")
Ejemplo n.º 27
0

def process(self):
    # edits go here
    self.edit("JAVANESE")
    self.edit("SIGN")
    self.edit("LETTER")

    parts = [
        "VOWEL", "CONSONANT",
        "LEFT", "RIGHT",
        "PADA"
        ]
    for part in parts:
        self.edit(part, part.lower())

    self.edit("DIGIT")
    self.processAs("Helper Digit Names")
    self.lower()
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Javanese")
Ejemplo n.º 28
0
def process(self):
    self.replace("SYMBOL")
    self.replace("-", " ")
    self.camelCase()
    pass


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Transport and Map Symbols")
Ejemplo n.º 29
0
def process(self):

    # nmbr:oneeighth -> oneeighth
    # nmbr:onetenth -> onetenth
    # nmbr:onefifth -> onefifth
    self.replace("FRACTION NUMERATOR ONE", "onefraction")
    self.replace("LATIN SMALL LETTER REVERSED C", "creversed")

    self.replace("VULGAR FRACTION")

    self.editToFinal("SMALL ROMAN", ".romansmall")
    self.editToFinal("ROMAN", ".roman")

    self.replace("NUMERAL")

    self.lower()
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Number Forms")
def process(self):
    self.setDraft()
    self.edit("CHEROKEE")
    self.edit("LETTER")
    self.edit("SMALL", "small")
    self.lower()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    from glyphNameFormatter.tools import debug
    printRange("Cherokee Supplement")
    debug(0xAB70)

def process(self):
    self.edit("SYMBOL")
    self.replace("FORM", "form")
    self.edit("FOR")
    self.edit("TABULATION", "tab")
    self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Control Pictures")
Ejemplo n.º 32
0
    'SINHALA VOWEL SIGN KOMBUVA HAA AELA-PILLA': 'SINHALA VOWEL SIGN O',
    'SINHALA VOWEL SIGN KOMBUVA HAA DIGA AELA-PILLA': 'SINHALA VOWEL SIGN OO',
    'SINHALA VOWEL SIGN KOMBUVA HAA GAYANUKITTA': 'SINHALA VOWEL SIGN AU',
    'SINHALA VOWEL SIGN GAYANUKITTA': 'SINHALA VOWEL SIGN VOCALIC L',
    'SINHALA VOWEL SIGN DIGA GAETTA-PILLA': 'SINHALA VOWEL SIGN VOCALIC RR',
    'SINHALA VOWEL SIGN DIGA GAYANUKITTA': 'SINHALA VOWEL SIGN VOCALIC LL',
}


def process(self):
    if self.uniName in sinhalaNameEquivalentsDict:
        self.replace(self.uniName, sinhalaNameEquivalentsDict[self.uniName])

    self.edit("SINHALA")
    self.edit("LETTER")
    self.edit("LITH", "lith")
    self.edit("DIGIT")
    self.edit("VOWEL SIGN", "sign")
    self.edit("PUNCTUATION")
    self.processAs("Helper Indic")
    self.processAs("Helper Numbers")
    self.replace("-")
    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Sinhala")
Ejemplo n.º 33
0
def process(self):
    self.edit("PRESENTATION FORM FOR")
    self.edit("LOW LINE", "underscore")
    self.edit("LEFT PARENTHESIS", "parenleft")
    self.edit("RIGHT PARENTHESIS", "parenright")
    self.edit("LEFT CURLY BRACKET", "braceleft")
    self.edit("RIGHT CURLY BRACKET", "braceright")
    self.edit("DOUBLE WAVY", "dblwavy")
    self.replace("DOUBLE", "dbl")
    self.edit("WAVY", "wavy")
    self.edit("DASHED", "dashed")
    self.edit("CENTRELINE", "centerline")

    self.edit("LEFT", "left")
    self.edit("RIGHT", "right")

    self.edit("VERTICAL", "vertical")
    # self.edit("SQUARE", "fullwidth")
    # self.edit("IDEOGRAPHIC TELEGRAPH SYMBOL FOR", "telegraph")
    # self.edit("-")
    # self.processAs("Helper Digit Names")
    self.lower()
    self.compress()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("CJK Compatibility Forms")
Ejemplo n.º 34
0
def process(self):
    # edits go here
    self.edit("MONGOLIAN")
    self.edit("DIGIT")

    self.replace("FULL STOP", "period")

    parts = [
        "TODO", "SIBE", "MANCHU", "ALI GALI", "HALF", "THREE",

        "INVERTED",
        ]
    for part in parts:
        self.edit(part, part.lower().replace(" ", ""))

    self.replace("LETTER")

    self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Mongolian")
    self.replace("SIXTEEN", "sixteen")
    self.replace("SEVENTEEN", "seventeen")
    self.replace("EIGHTEEN", "eighteen")
    self.replace("NINETEEN", "nineteen")

    self.replace('ZERO', 'zero')
    self.replace('ONE', 'one')
    self.replace('TWO', 'two')
    self.replace('THREE', 'three')
    self.replace('FOUR', 'four')
    self.replace('FIVE', 'five')
    self.replace('SIX', 'six')
    self.replace('SEVEN', 'seven')
    self.replace('EIGHT', 'eight')
    self.replace('NINE', 'nine')
    self.replace("TEN", "ten")
    self.replace("ELEVEN", "eleven")
    self.replace("TWELVE", "twelve")
    self.replace("THIRTEEN", "thirteen")
    self.replace("FIFTEEN", "fifteen")
    self.replace("TWENTY", "twenty")
    self.replace("THIRTY", "thirty")
    self.replace("FORTY", "forty")
    self.replace("FIFTY", "fifty")
    self.replace("SIXTY", "sixty")


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Helper Digit Names")
    self.replace("SMALL CAPITAL LETTER I", "Ismall")
    self.replace("LETTER SMALL CAPITAL EL", "Elsmall")
    self.replace("AIN", "ain")

    self.replace("LETTER SMALL CAPITAL AE", "AEsmall")
    self.replace("LETTER SMALL CAPITAL OU", "OUsmall")

    self.edit("FISHHOOK AND MIDDLE TILDE", "fishmiddletilde")
    self.processAs("Helper Diacritics")

    if self.has("GREEK"):
        self.edit("GREEK")
        self.forceScriptPrefix("greek")
        self.handleCase()
    elif self.has("CYRILLIC"):
        self.edit("CYRILLIC")
        self.handleCase()
        self.forceScriptPrefix("cyrillic")
    else:
        self.handleCase()

    self.edit("MODIFIER", "mod")
    self.edit("LETTER")

    self.compress()
    #self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Phonetic Extensions")
Ejemplo n.º 37
0
def process(self):
    self.edit("PRESENTATION FORM FOR")
    self.edit("LENTICULAR")
    self.edit("EXCLAMATION MARK", "exclam")
    self.edit("QUESTION MARK", "question")
    self.edit("VERTICAL")
    self.edit("HORIZONTAL", "hor")
    self.edit("WHITE", "white")
    self.edit("LEFT", "left")
    self.edit("RIGHT", "right")
    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Vertical Forms")
Ejemplo n.º 38
0
def process(self):
    self.uniNameProcessed = "private_use_%04X" % self.uniNumber


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Private Use Area")
def process(self):
    self.edit("SYMBOL")
    self.replace("FORM", "form")
    self.edit("FOR")
    self.edit("TABULATION", "tab")
    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Control Pictures")
def process(self):
    self.edit("LATIN")

    self.edit("BREVE-MACRON", "brevemacron")
    self.edit("MACRON-BREVE", "macronbreve")
    self.edit("GRAVE-MACRON", "gravemacron")
    self.edit("MACRON-GRAVE", "macrongrave")
    self.edit("ACUTE-MACRON", "acutemacron")
    self.edit("MACRON-ACUTE", "macronacute")

    self.edit("GRAVE-ACUTE-GRAVE", "graveacutegrave")
    self.edit("ACUTE-GRAVE-ACUTE", "acutegraveacute")

    #self.editToFinal("COMBINING", "cmb")
    self.edit("COMBINING")
    self.edit("OPEN")
    self.edit("ACCENT")
    self.edit("FLATTENED", "flat")

    self.processAs("Helper Diacritics")
    self.handleCase()

    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Combining Diacritical Marks Supplement")
from glyphNameFormatter.data.scriptPrefixes import scriptPrefixes


def process(self):
    if self.has("LATIN"):
        self.scriptTag = scriptPrefixes['latin']
    if self.has("ARMENIAN"):
        # self.scriptTag = scriptPrefixes['armenian']
        self.processAs("Armenian")
    elif self.has("HEBREW"):
        # self.scriptTag = scriptPrefixes['hebrew']
        self.processAs("Hebrew")

    self.edit("LATIN SMALL LIGATURE FFI", "f_f_i")
    self.edit("LATIN SMALL LIGATURE FFL", "f_f_l")
    self.edit("LATIN SMALL LIGATURE FF", "f_f")
    self.edit("LATIN SMALL LIGATURE FI", "fi")
    self.edit("LATIN SMALL LIGATURE FL", "fl")
    self.edit("LATIN SMALL LIGATURE LONG S T", "longs_t")
    self.edit("LATIN SMALL LIGATURE ST", "s_t")

    self.compress()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Alphabetic Presentation Forms")
Ejemplo n.º 42
0
def process(self):
    self.edit("THAI")
    self.edit("CHARACTER")
    self.edit("CURRENCY")
    self.edit("SYMBOL")
    self.edit("DIGIT")
    self.processAs("Helper Digit Names")
    self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Thai")
def process(self):
    self.processAs("Helper Digit Names")
    self.edit("DOUBLE CIRCLED", "circledbl")
    self.edit("CIRCLED", "circle")
    self.edit("DIGIT")
    self.edit("LATIN")
    self.edit("NUMBER")
    self.edit("PARENTHESIZED", "parenthesized")
    self.edit("FULL STOP", "period")
    self.edit("NEGATIVE", "black")
    self.handleCase()
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Enclosed Alphanumerics")
Ejemplo n.º 44
0
    self.edit("STRETCHED", "stretched")
    self.edit("WITH STROKE", "stroke")
    self.edit("SQUAT", "squat")
    self.edit("INVERTED", "inverted")
    self.edit("REVERSED", "reversed")

    self.replace("DZ", "dzed")
    self.replace("LZ", "lzed")
    self.replace("DIGRAPH")
    self.replace("PERCUSSIVE", "percussive")
    self.replace("GLOTTAL", "glottal")
    self.replace("STOP", "stop")
    self.replace("PHARYNGEAL", "pharyngeal")
    self.replace("VOICED", "voiced")
    self.replace("FRICATIVE", "fricative")

    self.replace("LETTER CLICK", "click")
    self.replace("LETTER GLOTTAL STOP WITH STROKE", "glottalstopstroke")
    self.replace("LETTER SMALL CAPITAL OE", "OEsmall")

    self.processAs("Helper Diacritics")
    self.processAs("Helper Shapes")

    self.handleCase()
    self.replace("LETTER")
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("IPA Extensions")
Ejemplo n.º 45
0
def process(self):
    self.setDraft()
    self.edit("CHEROKEE")
    self.edit("LETTER")
    self.edit("SMALL", "small")
    self.lower()
    self.scriptPrefix()
    

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Cherokee")
Ejemplo n.º 46
0
    self.edit("SOFT SIGN", "soft")

    self.edit("ROUND", "round")
    self.edit("KOMI", 'komi')
    self.edit("BYELORUSSIAN-UKRAINIAN", ukrainian)
    self.edit("UKRAINIAN", "ukr")

    self.edit("ALEUT", "aleut")

    self.edit("HUNDRED THOUSANDS SIGN", "hundredthousands")
    self.edit("MILLIONS SIGN", "millions")
    self.edit("THOUSANDS SIGN", "thousands")
    self.edit("POKRYTIE", "pokrytie")
    self.edit("PALATALIZATION", "palat")
    self.edit("DASIA PNEUMATA", "dasia")
    self.edit("PSILI PNEUMATA", "psili")

    self.edit("COMBINING", "cmb")

    self.processAs("Helper Diacritics")

    self.handleCase()
    # cleanup
    self.edit("CAPITAL")
    self.edit("LETTER")
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Cyrillic")
Ejemplo n.º 47
0
def process(self):
    self.edit("VOWEL SIGN VOCALIC", "vocalsign")
    self.edit("VOWEL SIGN", "sign")
    self.edit("VOCALIC", "vocal")
    self.edit("SIGN NUKTA", "nukta")
    self.edit("SIGN VIRAMA", "virama")
    self.edit("SIGN AVAGRAHA", "avagraha")
    self.edit("SIGN VISARGA", "visarga")
    self.edit("SIGN ANUSVARA", "anusvara")
    self.edit("SIGN CANDRABINDU", "candrabindu")
    self.edit("CANDRA", "candra")

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Helper Indic")

def process(self):
    self.edit("VEDIC")
    self.edit("SIGN", "sign")
    self.edit("TONE", "tone")
    self.edit("DOUBLE", "dbl")
    self.edit("TRIPLE", "tpl")
    self.edit("LONG", "long")
    self.edit("REVERSED", "reversed")

    self.processAs("Helper Indic")

    self.lower()
    self.compress()
    self.scriptPrefix()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Vedic Extensions")
Ejemplo n.º 49
0
def process(self):
    self.edit("TAMIL")
    self.edit("LETTER")
    self.edit("DIGIT")
    self.edit("NUMBER")
    self.processAs("Helper Indic")
    self.processAs("Helper Numbers")
    self.replace("-")
    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Tamil")
def process(self):
    self.edit("HANGUL")
    self.edit("LETTER")
    self.edit("-")
    self.lower()
    self.compress()
    self.scriptPrefix()


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Hangul Compatibility Jamo")

def process(self):
    self.edit("MATHEMATICAL")
    self.replace("PARENTHESIS", "paren")
    self.edit("FLATTENED", "flat")
    self.edit("CONCAVE-SIDED DIAMOND", "convavediamond")
    self.edit("LEFTWARDS", "left")
    self.edit("RIGHTWARDS", "right")
    self.edit("LEFT AND RIGHT", "leftright")
    self.edit("UPWARDS", "up")
    self.edit("UPPER", "up")
    self.edit("TORTOISE SHELL", "shell")
    self.edit("S-SHAPED", "sshape")
    parts = [
        "WHITE", "ANGLE", "SQUARE", "DIAMOND", "FULL",
        "REVERSE", "SUPERSET", "PRECEDING",
        ]
    for part in parts:
        self.edit(part, part.lower())

    self.edit("AND")
    self.processAs("Mathematical Operators")


if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Miscellaneous Mathematical Symbols-A")
Ejemplo n.º 52
0
def process(self):
    self.setDraft()
    self.edit("GLAGOLITIC")
    self.handleCase()
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Glagolitic")
Ejemplo n.º 53
0
    self.edit("OPEN-CIRCUIT-OUTPUT", "opencircuit")
    self.edit("PASSIVE-PULL-DOWN-OUTPUT", "passivedown")
    self.edit("PASSIVE-PULL-UP", "passiveup")
    self.replace("-TYPE", "type")

    parts = [
        "UP", "DOWN", "TOP", "BOTTOM",
        "TURNED",
        "HORIZONTAL", "VERTICAL",
        "LEFT", "RIGHT",
        "SQUARE", "CURLY",
        "METRICAL",
        "WHITE",
        ]
    for part in parts:
        self.edit(part, part.lower())

    self.processAs("helper_numbers")

    self.edit("FUNCTIONAL", "func")

    self.edit("AND")
    self.edit("-")

    self.lower()
    self.compress()

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Miscellaneous Technical")
def process(self):

    # positions
    self.edit('INITIAL FORM', ".init")
    self.edit('MEDIAL FORM', ".medi")
    self.edit('FINAL FORM', ".fina")
    self.edit('ISOLATED FORM', ".isol")

if __name__ == "__main__":
    from glyphNameFormatter.exporters import printRange
    printRange("Helper Arabic Positions")