typerig.core.func.string
typerig.core.func.string (version 0.26.2)
# MODULE: TypeRig / Core / String (Functions) # ----------------------------------------------------------- # (C) Vassil Kateliev, 2015-2020 (http://www.kateliev.com) # (C) Karandash Type Foundry (http://www.karandash.eu) #------------------------------------------------------------ # www.typerig.com
Functions
- getLowercaseCodepoint(unicodeName)
-
Based on given Uppercase Unicode Name (String) returns coresponding Lowercase Unicode Name! Names are in Adobe uniXXXX format
- getLowercaseInt(uniocdeInt)
-
Based on given Uppercase Unicode (Integer) returns coresponding Lowercase Unicode (Integer)
- getUppercaseCodepoint(unicodeName)
-
Based on given Uppercase Unicode Name (String) returns coresponding Uppercase Unicode Name! Names are in Adobe uniXXXX format
- getUppercaseInt(uniocdeInt)
-
Based on given Lowercase Uniocde (Integer) returns coresponding Uppercase Unicode (Integer)
- kpxGen(inputA, inputB, suffix=('', ''))
-
Generate AMF style KPX paris for kerning
- lst2str(listItems, separator)
-
Converts [listItems] to 'String' using 'String separator' Example: lst2str([List], ',')
- lstcln(listItems, discard)
-
Cleans a [listItems] by removing [discard] Example: lstcln([List], '/space')
- str2lst(stringItems, separator)
-
Converts 'stringItems' to [List] using 'String separator' Example: str2lst(String, ',')
- strNormSpace(string)
-
Removes all mutiple /space characters from [string]
- strRepDict(stringItems, replacementDicionary, method='replace')
-
Replaces every instance of [stringItems] according to [replacementDicionary] using 'replace' ('r') or 'consecutive' replacement ('c') [method]s Example: strRepDict('12', {'1':'/one', '2':'/two'}, 'r')
- stringGen(inputA, inputB, filler=('HH', 'HH'), genPattern='FL A B A FR', suffix=('', ''), sep='/')
-
Generate test text string for metrics, kerning and pairs/phrases Args: inputA, inputB (list/string) : Input lists to be paired filler (tuple(str)) : Filler string genPattern (string): A SPACE separated ordering pattern, where FL, FR is Filler Left/Right and A, B are input strings suffix (tuple(str)) : Suffixes to be added to inputs A and B sep (str) : Glyph Separator to be used. '/' default for Fontlab Returns: list(str)
- stringGenPairs(pairs_input, filler=('HH', 'HH'), genPattern='FL A B A FR', suffix=('', ''), sep='/')
-
Generate test text string for metrics, kerning and pairs/phrases Args: pairs_input (list(tuple)): Input list contaiing pairs filler (tuple(str)) : Filler string genPattern (string): A SPACE separated ordering pattern, where FL, FR is Filler Left/Right and A, B are input strings suffix (tuple(str)) : Suffixes to be added to inputs A and B sep (str) : Glyph Separator to be used. '/' default for Fontlab Returns: list(str)
getLowercaseInt
- typerig.core.func.string.getLowercaseInt = getLowercaseInt(uniocdeInt)
-
Based on given Uppercase Unicode (Integer) returns coresponding Lowercase Unicode (Integer)
getUppercaseInt
- typerig.core.func.string.getUppercaseInt = getUppercaseInt(uniocdeInt)
-
Based on given Lowercase Uniocde (Integer) returns coresponding Uppercase Unicode (Integer)
getLowercaseCodepoint
- typerig.core.func.string.getLowercaseCodepoint = getLowercaseCodepoint(unicodeName)
-
Based on given Uppercase Unicode Name (String) returns coresponding Lowercase Unicode Name! Names are in Adobe uniXXXX format
getUppercaseCodepoint
- typerig.core.func.string.getUppercaseCodepoint = getUppercaseCodepoint(unicodeName)
-
Based on given Uppercase Unicode Name (String) returns coresponding Uppercase Unicode Name! Names are in Adobe uniXXXX format
kpxGen
- typerig.core.func.string.kpxGen = kpxGen(inputA, inputB, suffix=('', ''))
-
Generate AMF style KPX paris for kerning
stringGen
- typerig.core.func.string.stringGen = stringGen(inputA, inputB, filler=('HH', 'HH'), genPattern='FL A B A FR', suffix=('', ''), sep='/')
-
Generate test text string for metrics, kerning and pairs/phrases Args: inputA, inputB (list/string) : Input lists to be paired filler (tuple(str)) : Filler string genPattern (string): A SPACE separated ordering pattern, where FL, FR is Filler Left/Right and A, B are input strings suffix (tuple(str)) : Suffixes to be added to inputs A and B sep (str) : Glyph Separator to be used. '/' default for Fontlab Returns: list(str)
stringGenPairs
- typerig.core.func.string.stringGenPairs = stringGenPairs(pairs_input, filler=('HH', 'HH'), genPattern='FL A B A FR', suffix=('', ''), sep='/')
-
Generate test text string for metrics, kerning and pairs/phrases Args: pairs_input (list(tuple)): Input list contaiing pairs filler (tuple(str)) : Filler string genPattern (string): A SPACE separated ordering pattern, where FL, FR is Filler Left/Right and A, B are input strings suffix (tuple(str)) : Suffixes to be added to inputs A and B sep (str) : Glyph Separator to be used. '/' default for Fontlab Returns: list(str)
strNormSpace
- typerig.core.func.string.strNormSpace = strNormSpace(string)
-
Removes all mutiple /space characters from [string]
lst2str
- typerig.core.func.string.lst2str = lst2str(listItems, separator)
-
Converts [listItems] to 'String' using 'String separator' Example: lst2str([List], ',')
str2lst
- typerig.core.func.string.str2lst = str2lst(stringItems, separator)
-
Converts 'stringItems' to [List] using 'String separator' Example: str2lst(String, ',')
lstcln
- typerig.core.func.string.lstcln = lstcln(listItems, discard)
-
Cleans a [listItems] by removing [discard] Example: lstcln([List], '/space')
strRepDict
- typerig.core.func.string.strRepDict = strRepDict(stringItems, replacementDicionary, method='replace')
-
Replaces every instance of [stringItems] according to [replacementDicionary] using 'replace' ('r') or 'consecutive' replacement ('c') [method]s Example: strRepDict('12', {'1':'/one', '2':'/two'}, 'r')