Class: QgsStringUtils¶
Utility functions for working with strings.
List of all members, including inherited members
Static Methods
Makes a raw string safe for inclusion as a HTML/XML string literal. |
|
Converts a string by applying capitalization rules to the string. |
|
Given a candidate string, returns |
|
Generates the unaccent mapping table (auto-generated by script at build time). |
|
Tests a candidate string to see how likely it is a match for a specified search string. |
|
Returns the Hamming distance between two strings. |
|
Convert simple HTML to markdown. |
|
Returns a string with any URL (e.g., http(s)/ftp) and mailto: text converted to valid HTML <a ...> links. |
|
Returns whether the string is a URL (http,https,ftp,file) |
|
Returns the Levenshtein edit distance between two strings. |
|
Returns the longest common substring between two strings. |
|
Returns an escaped string matching the behavior of QRegExp.escape. |
|
Returns the Soundex representation of a string. |
|
Returns a string with characters having vertical representation form substituted. |
|
Truncates a string to the specified maximum character length. |
|
Removes accents and other diacritical marks from a string, replacing accented characters with their unaccented ASCII equivalents. |
|
Automatically wraps a string by inserting new line characters at appropriate locations in the string. |
Attributes
- class qgis.core.QgsStringUtils[source]¶
Bases:
object- class Capitalization(*values)¶
Bases:
IntEnumString capitalization options.
Note
Prior to QGIS 3.24 this was available as
QgsStringUtils.CapitalizationAdded in version 3.24.
MixedCase: Mixed case, ie no changeAllUppercase: Convert all characters to uppercaseAllLowercase: Convert all characters to lowercaseForceFirstLetterToCapital: Convert just the first letter of each word to uppercase, leave the rest untouchedSmallCaps: Mixed case small capsAdded in version 3.24.
TitleCase: Simple title case conversion - does not fully grammatically parse the text and uses simple rules only. Note that this method does not convert any characters to lowercase, it only uppercases required letters. Callers must ensure that input strings are already lowercased.UpperCamelCase: Convert the string to upper camel case. Note that this method does not unaccent characters.AllSmallCaps: Force all characters to small capsAdded in version 3.24.
- UNACCENT_MAP: Dict[str, str] = {'¡': '!', '©': '(C)', 'ª': 'a', '«': '<<', '\xad': '-', '®': '(R)', '±': '+/-', 'µ': 'μ', 'º': 'o', '»': '>>', '¼': ' 1/4', '½': ' 1/2', '¾': ' 3/4', '¿': '?', 'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE', 'Ç': 'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I', 'Î': 'I', 'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O', 'Õ': 'O', 'Ö': 'O', '×': '*', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U', 'Ü': 'U', 'Ý': 'Y', 'Þ': 'TH', 'ß': 'ss', 'à': 'a', 'á': 'a', 'â': 'a', 'ã': 'a', 'ä': 'a', 'å': 'a', 'æ': 'ae', 'ç': 'c', 'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e', 'ì': 'i', 'í': 'i', 'î': 'i', 'ï': 'i', 'ð': 'd', 'ñ': 'n', 'ò': 'o', 'ó': 'o', 'ô': 'o', 'õ': 'o', 'ö': 'o', '÷': '/', 'ø': 'o', 'ù': 'u', 'ú': 'u', 'û': 'u', 'ü': 'u', 'ý': 'y', 'þ': 'th', 'ÿ': 'y', 'Ā': 'A', 'ā': 'a', 'Ă': 'A', 'ă': 'a', 'Ą': 'A', 'ą': 'a', 'Ć': 'C', 'ć': 'c', 'Ĉ': 'C', 'ĉ': 'c', 'Ċ': 'C', 'ċ': 'c', 'Č': 'C', 'č': 'c', 'Ď': 'D', 'ď': 'd', 'Đ': 'D', 'đ': 'd', 'Ē': 'E', 'ē': 'e', 'Ĕ': 'E', 'ĕ': 'e', 'Ė': 'E', 'ė': 'e', 'Ę': 'E', 'ę': 'e', 'Ě': 'E', 'ě': 'e', 'Ĝ': 'G', 'ĝ': 'g', 'Ğ': 'G', 'ğ': 'g', 'Ġ': 'G', 'ġ': 'g', 'Ģ': 'G', 'ģ': 'g', 'Ĥ': 'H', 'ĥ': 'h', 'Ħ': 'H', 'ħ': 'h', 'Ĩ': 'I', 'ĩ': 'i', 'Ī': 'I', 'ī': 'i', 'Ĭ': 'I', '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q', 'ʣ': 'dz', 'ʥ': 'dz', 'ʦ': 'ts', 'ʪ': 'ls', 'ʫ': 'lz', 'ʰ': 'h', 'ʲ': 'j', 'ʳ': 'r', 'ʷ': 'w', 'ʸ': 'y', 'ʹ': "'", 'ʺ': '"', 'ʻ': "'", 'ʼ': "'", 'ʽ': "'", '˂': '<', '˃': '>', '˄': '^', 'ˆ': '^', 'ˈ': "'", 'ˋ': '`', 'ː': ':', '˖': '+', '˗': '-', '˜': '~', 'ˡ': 'l', 'ˢ': 's', 'ˣ': 'x', '̀': '', '́': '', '̂': '', '̃': '', '̄': '', '̅': '', '̆': '', '̇': '', '̈': '', '̉': '', '̊': '', '̋': '', '̌': '', '̍': '', '̎': '', '̏': '', '̐': '', '̑': '', '̒': '', '̓': '', '̔': '', '̕': '', '̖': '', '̗': '', '̘': '', '̙': '', '̚': '', '̛': '', '̜': '', '̝': '', '̞': '', '̟': '', '̠': '', '̡': '', '̢': '', '̣': '', '̤': '', '̥': '', '̦': '', '̧': '', '̨': '', '̩': '', '̪': '', '̫': '', '̬': '', '̭': '', '̮': '', '̯': '', '̰': '', '̱': '', '̲': '', '̳': '', '̴': '', '̵': '', '̶': '', '̷': '', '̸': '', '̹': '', '̺': '', '̻': '', '̼': '', '̽': '', '̾': '', '̿': '', '̀': '', '́': '', '͂': '', '̓': '', '̈́': '', 'ͅ': '', '͆': '', '͇': '', '͈': '', '͉': '', '͊': '', '͋': '', '͌': '', '͍': '', '͎': '', '͏': '', '͐': '', '͑': '', '͒': '', '͓': '', '͔': '', '͕': '', '͖': '', '͗': '', '͘': '', '͙': '', '͚': '', '͛': '', '͜': '', '͝': '', '͞': '', '͟': '', '͠': '', '͡': '', '͢': '', 'Ά': 'Α', 'Έ': 'Ε', 'Ή': 'Η', 'Ί': 'Ι', 'Ό': 'Ο', 'Ύ': 'Υ', 'Ώ': 'Ω', 'ΐ': 'ι', 'Ϊ': 'Ι', 'Ϋ': 'Υ', 'ά': 'α', 'έ': 'ε', 'ή': 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Ẍ': 'X', 'ẍ': 'x', 'Ẏ': 'Y', 'ẏ': 'y', 'Ẑ': 'Z', 'ẑ': 'z', 'Ẓ': 'Z', 'ẓ': 'z', 'Ẕ': 'Z', 'ẕ': 'z', 'ẖ': 'h', 'ẗ': 't', 'ẘ': 'w', 'ẙ': 'y', 'ẚ': 'a', 'ẜ': 's', 'ẝ': 's', 'ẞ': 'SS', 'Ạ': 'A', 'ạ': 'a', 'Ả': 'A', 'ả': 'a', 'Ấ': 'A', 'ấ': 'a', 'Ầ': 'A', 'ầ': 'a', 'Ẩ': 'A', 'ẩ': 'a', 'Ẫ': 'A', 'ẫ': 'a', 'Ậ': 'A', 'ậ': 'a', 'Ắ': 'A', 'ắ': 'a', 'Ằ': 'A', 'ằ': 'a', 'Ẳ': 'A', 'ẳ': 'a', 'Ẵ': 'A', 'ẵ': 'a', 'Ặ': 'A', 'ặ': 'a', 'Ẹ': 'E', 'ẹ': 'e', 'Ẻ': 'E', 'ẻ': 'e', 'Ẽ': 'E', 'ẽ': 'e', 'Ế': 'E', 'ế': 'e', 'Ề': 'E', 'ề': 'e', 'Ể': 'E', 'ể': 'e', 'Ễ': 'E', 'ễ': 'e', 'Ệ': 'E', 'ệ': 'e', 'Ỉ': 'I', 'ỉ': 'i', 'Ị': 'I', 'ị': 'i', 'Ọ': 'O', 'ọ': 'o', 'Ỏ': 'O', 'ỏ': 'o', 'Ố': 'O', 'ố': 'o', 'Ồ': 'O', 'ồ': 'o', 'Ổ': 'O', 'ổ': 'o', 'Ỗ': 'O', 'ỗ': 'o', 'Ộ': 'O', 'ộ': 'o', 'Ớ': 'O', 'ớ': 'o', 'Ờ': 'O', 'ờ': 'o', 'Ở': 'O', 'ở': 'o', 'Ỡ': 'O', 'ỡ': 'o', 'Ợ': 'O', 'ợ': 'o', 'Ụ': 'U', 'ụ': 'u', 'Ủ': 'U', 'ủ': 'u', 'Ứ': 'U', 'ứ': 'u', 'Ừ': 'U', 'ừ': 'u', 'Ử': 'U', 'ử': 'u', 'Ữ': 'U', 'ữ': 'u', 'Ự': 'U', 'ự': 'u', 'Ỳ': 'Y', 'ỳ': 'y', 'Ỵ': 'Y', 'ỵ': 'y', 'Ỷ': 'Y', 'ỷ': 'y', 'Ỹ': 'Y', 'ỹ': 'y', 'Ỻ': 'LL', 'ỻ': 'll', 'Ỽ': 'V', 'ỽ': 'v', 'Ỿ': 'Y', 'ỿ': 'y', 'ἀ': 'α', 'ἁ': 'α', 'ἂ': 'α', 'ἃ': 'α', 'ἄ': 'α', 'ἅ': 'α', 'ἆ': 'α', 'ἇ': 'α', 'Ἀ': 'Α', 'Ἁ': 'Α', 'Ἂ': 'Α', 'Ἃ': 'Α', 'Ἄ': 'Α', 'Ἅ': 'Α', 'Ἆ': 'Α', 'Ἇ': 'Α', 'ἐ': 'ε', 'ἑ': 'ε', 'ἒ': 'ε', 'ἓ': 'ε', 'ἔ': 'ε', 'ἕ': 'ε', 'Ἐ': 'Ε', 'Ἑ': 'Ε', 'Ἒ': 'Ε', 'Ἓ': 'Ε', 'Ἔ': 'Ε', 'Ἕ': 'Ε', 'ἠ': 'η', 'ἡ': 'η', 'ἢ': 'η', 'ἣ': 'η', 'ἤ': 'η', 'ἥ': 'η', 'ἦ': 'η', 'ἧ': 'η', 'Ἠ': 'Η', 'Ἡ': 'Η', 'Ἢ': 'Η', 'Ἣ': 'Η', 'Ἤ': 'Η', 'Ἥ': 'Η', 'Ἦ': 'Η', 'Ἧ': 'Η', 'ἰ': 'ι', 'ἱ': 'ι', 'ἲ': 'ι', 'ἳ': 'ι', 'ἴ': 'ι', 'ἵ': 'ι', 'ἶ': 'ι', 'ἷ': 'ι', 'Ἰ': 'Ι', 'Ἱ': 'Ι', 'Ἲ': 'Ι', 'Ἳ': 'Ι', 'Ἴ': 'Ι', 'Ἵ': 'Ι', 'Ἶ': 'Ι', 'Ἷ': 'Ι', 'ὀ': 'ο', 'ὁ': 'ο', 'ὂ': 'ο', 'ὃ': 'ο', 'ὄ': 'ο', 'ὅ': 'ο', 'Ὀ': 'Ο', 'Ὁ': 'Ο', 'Ὂ': 'Ο', 'Ὃ': 'Ο', 'Ὄ': 'Ο', 'Ὅ': 'Ο', 'ὐ': 'υ', 'ὑ': 'υ', 'ὒ': 'υ', 'ὓ': 'υ', 'ὔ': 'υ', 'ὕ': 'υ', 'ὖ': 'υ', 'ὗ': 'υ', 'Ὑ': 'Υ', 'Ὓ': 'Υ', 'Ὕ': 'Υ', 'Ὗ': 'Υ', 'ὠ': 'ω', 'ὡ': 'ω', 'ὢ': 'ω', 'ὣ': 'ω', 'ὤ': 'ω', 'ὥ': 'ω', 'ὦ': 'ω', 'ὧ': 'ω', 'Ὠ': 'Ω', 'Ὡ': 'Ω', 'Ὢ': 'Ω', 'Ὣ': 'Ω', 'Ὤ': 'Ω', 'Ὥ': 'Ω', 'Ὦ': 'Ω', 'Ὧ': 'Ω', 'ὰ': 'α', 'ά': 'α', 'ὲ': 'ε', 'έ': 'ε', 'ὴ': 'η', 'ή': 'η', 'ὶ': 'ι', 'ί': 'ι', 'ὸ': 'ο', 'ό': 'ο', 'ὺ': 'υ', 'ύ': 'υ', 'ὼ': 'ω', 'ώ': 'ω', 'ᾀ': 'α', 'ᾁ': 'α', 'ᾂ': 'α', 'ᾃ': 'α', 'ᾄ': 'α', 'ᾅ': 'α', 'ᾆ': 'α', 'ᾇ': 'α', 'ᾈ': 'Α', 'ᾉ': 'Α', 'ᾊ': 'Α', 'ᾋ': 'Α', 'ᾌ': 'Α', 'ᾍ': 'Α', 'ᾎ': 'Α', 'ᾏ': 'Α', 'ᾐ': 'η', 'ᾑ': 'η', 'ᾒ': 'η', 'ᾓ': 'η', 'ᾔ': 'η', 'ᾕ': 'η', 'ᾖ': 'η', 'ᾗ': 'η', 'ᾘ': 'Η', 'ᾙ': 'Η', 'ᾚ': 'Η', 'ᾛ': 'Η', 'ᾜ': 'Η', 'ᾝ': 'Η', 'ᾞ': 'Η', 'ᾟ': 'Η', 'ᾠ': 'ω', 'ᾡ': 'ω', 'ᾢ': 'ω', 'ᾣ': 'ω', 'ᾤ': 'ω', 'ᾥ': 'ω', 'ᾦ': 'ω', 'ᾧ': 'ω', 'ᾨ': 'Ω', 'ᾩ': 'Ω', 'ᾪ': 'Ω', 'ᾫ': 'Ω', 'ᾬ': 'Ω', 'ᾭ': 'Ω', 'ᾮ': 'Ω', 'ᾯ': 'Ω', 'ᾰ': 'α', 'ᾱ': 'α', 'ᾲ': 'α', 'ᾳ': 'α', 'ᾴ': 'α', 'ᾶ': 'α', 'ᾷ': 'α', 'Ᾰ': 'Α', 'Ᾱ': 'Α', 'Ὰ': 'Α', 'Ά': 'Α', 'ᾼ': 'Α', 'ι': 'ι', 'ῂ': 'η', 'ῃ': 'η', 'ῄ': 'η', 'ῆ': 'η', 'ῇ': 'η', 'Ὲ': 'Ε', 'Έ': 'Ε', 'Ὴ': 'Η', 'Ή': 'Η', 'ῌ': 'Η', 'ῐ': 'ι', 'ῑ': 'ι', 'ῒ': 'ι', 'ΐ': 'ι', 'ῖ': 'ι', 'ῗ': 'ι', 'Ῐ': 'Ι', 'Ῑ': 'Ι', 'Ὶ': 'Ι', 'Ί': 'Ι', 'ῠ': 'υ', 'ῡ': 'υ', 'ῢ': 'υ', 'ΰ': 'υ', 'ῤ': 'ρ', 'ῥ': 'ρ', 'ῦ': 'υ', 'ῧ': 'υ', 'Ῠ': 'Υ', 'Ῡ': 'Υ', 'Ὺ': 'Υ', 'Ύ': 'Υ', 'Ῥ': 'Ρ', 'ῲ': 'ω', 'ῳ': 'ω', 'ῴ': 'ω', 'ῶ': 'ω', 'ῷ': 'ω', 'Ὸ': 'Ο', 'Ό': 'Ο', 'Ὼ': 'Ω', 'Ώ': 'Ω', 'ῼ': 'Ω', '‐': '-', '‑': '-', '‒': '-', '–': '-', '—': '-', '―': '-', '‖': '||', '‘': "'", '’': "'", '‚': ',', '‛': "'", '“': '"', '”': '"', '„': ',,', '‟': '"', '․': '.', '‥': '..', '…': '...', '′': "'", '″': '"', '‹': '<', '›': '>', '‼': '!!', '⁄': '/', '⁅': '[', '⁆': ']', '⁇': '??', '⁈': '?!', '⁉': '!?', '⁎': '*', 'ⁱ': 'i', 'ⁿ': 'n', 'ₐ': 'a', 'ₑ': 'e', 'ₒ': 'o', 'ₓ': 'x', 'ₕ': 'h', 'ₖ': 'k', 'ₗ': 'l', 'ₘ': 'm', 'ₙ': 'n', 'ₚ': 'p', 'ₛ': 's', 'ₜ': 't', '₠': 'CE', '₢': 'Cr', '₣': 'Fr.', '₤': 'L.', '₧': 'Pts', '₹': 'Rs', '₺': 'TL', '⃝': '', '⃞': '', '⃟': '', '⃠': '', '⃢': '', '⃣': '', '⃤': '', '℀': 'a/c', '℁': 'a/s', 'ℂ': 'C', '℃': '°C', '℅': 'c/o', '℆': 'c/u', '℉': '°F', 'ℊ': 'g', 'ℋ': 'H', 'ℌ': 'H', 'ℍ': 'H', 'ℎ': 'h', 'ℐ': 'I', 'ℑ': 'I', 'ℒ': 'L', 'ℓ': 'l', 'ℕ': 'N', '№': 'No', '℗': '(P)', '℘': 'P', 'ℙ': 'P', 'ℚ': 'Q', 'ℛ': 'R', 'ℜ': 'R', 'ℝ': 'R', '℞': 'Rx', '℡': 'TEL', 'ℤ': 'Z', 'Ω': 'Ω', 'ℨ': 'Z', 'K': 'K', 'Å': 'A', 'ℬ': 'B', 'ℭ': 'C', 'ℯ': 'e', 'ℰ': 'E', 'ℱ': 'F', 'ℳ': 'M', 'ℴ': 'o', 'ℹ': 'i', '℻': 'FAX', 'ℼ': 'π', 'ℽ': 'γ', 'ℾ': 'Γ', 'ℿ': 'Π', 'ⅅ': 'D', 'ⅆ': 'd', 'ⅇ': 'e', 'ⅈ': 'i', 'ⅉ': 'j', '⅐': ' 1/7', '⅑': ' 1/9', '⅒': ' 1/10', '⅓': ' 1/3', '⅔': ' 2/3', '⅕': ' 1/5', '⅖': ' 2/5', '⅗': ' 3/5', '⅘': ' 4/5', '⅙': ' 1/6', '⅚': ' 5/6', '⅛': ' 1/8', '⅜': ' 3/8', '⅝': ' 5/8', '⅞': ' 7/8', '⅟': ' 1/', 'Ⅰ': 'I', 'Ⅱ': 'II', 'Ⅲ': 'III', 'Ⅳ': 'IV', 'Ⅴ': 'V', 'Ⅵ': 'VI', 'Ⅶ': 'VII', 'Ⅷ': 'VIII', 'Ⅸ': 'IX', 'Ⅹ': 'X', 'Ⅺ': 'XI', 'Ⅻ': 'XII', 'Ⅼ': 'L', 'Ⅽ': 'C', 'Ⅾ': 'D', 'Ⅿ': 'M', 'ⅰ': 'i', 'ⅱ': 'ii', 'ⅲ': 'iii', 'ⅳ': 'iv', 'ⅴ': 'v', 'ⅵ': 'vi', 'ⅶ': 'vii', 'ⅷ': 'viii', 'ⅸ': 'ix', 'ⅹ': 'x', 'ⅺ': 'xi', 'ⅻ': 'xii', 'ⅼ': 'l', 'ⅽ': 'c', 'ⅾ': 'd', 'ⅿ': 'm', '↉': ' 0/3', '−': '-', '∕': '/', '∖': '\\', '∣': '|', '∥': '||', '≪': '<<', '≫': '>>', '⑴': '(1)', '⑵': '(2)', '⑶': '(3)', '⑷': '(4)', '⑸': '(5)', '⑹': '(6)', '⑺': '(7)', '⑻': '(8)', '⑼': '(9)', '⑽': '(10)', '⑾': '(11)', '⑿': '(12)', '⒀': '(13)', '⒁': '(14)', '⒂': '(15)', '⒃': '(16)', '⒄': '(17)', '⒅': '(18)', '⒆': '(19)', '⒇': '(20)', '⒈': '1.', '⒉': '2.', '⒊': '3.', '⒋': '4.', '⒌': '5.', '⒍': '6.', '⒎': '7.', '⒏': '8.', '⒐': '9.', '⒑': '10.', '⒒': '11.', '⒓': '12.', '⒔': '13.', '⒕': '14.', '⒖': '15.', '⒗': '16.', '⒘': '17.', '⒙': '18.', '⒚': '19.', '⒛': '20.', '⒜': '(a)', '⒝': '(b)', '⒞': '(c)', '⒟': '(d)', '⒠': '(e)', '⒡': '(f)', '⒢': '(g)', '⒣': '(h)', '⒤': '(i)', '⒥': '(j)', '⒦': '(k)', '⒧': '(l)', '⒨': '(m)', '⒩': '(n)', '⒪': '(o)', '⒫': '(p)', '⒬': '(q)', '⒭': '(r)', '⒮': '(s)', '⒯': '(t)', '⒰': '(u)', '⒱': '(v)', '⒲': '(w)', '⒳': '(x)', '⒴': '(y)', '⒵': '(z)', '⦅': '((', '⦆': '))', '⩴': '::=', '⩵': '==', '⩶': '===', 'Ⱡ': 'L', 'ⱡ': 'l', 'Ɫ': 'L', 'Ᵽ': 'P', 'Ɽ': 'R', 'ⱥ': 'a', 'ⱦ': 't', 'Ⱨ': 'H', 'ⱨ': 'h', 'Ⱪ': 'K', 'ⱪ': 'k', 'Ⱬ': 'Z', 'ⱬ': 'z', 'Ɱ': 'M', 'ⱱ': 'v', 'Ⱳ': 'W', 'ⱳ': 'w', 'ⱴ': 'v', 'ⱸ': 'e', 'ⱺ': 'o', 'ⱼ': 'j', 'ⱽ': 'V', 'Ȿ': 'S', 'Ɀ': 'Z', '、': ',', '。': '.', '〇': '0', '〈': '<', '〉': '>', '《': '<<', '》': '>>', '〔': '[', '〕': ']', '〘': '[', '〙': ']', '〚': '[', '〛': ']', '〝': '"', '〞': '"', '㍱': 'hPa', '㍲': 'da', '㍳': 'AU', '㍴': 'bar', '㍵': 'oV', '㍶': 'pc', '㍷': 'dm', '㍺': 'IU', '㎀': 'pA', '㎁': 'nA', '㎃': 'mA', '㎄': 'kA', '㎅': 'KB', '㎆': 'MB', '㎇': 'GB', '㎈': 'cal', '㎉': 'kcal', '㎊': 'pF', '㎋': 'nF', '㎎': 'mg', '㎏': 'kg', '㎐': 'Hz', '㎑': 'kHz', '㎒': 'MHz', '㎓': 'GHz', '㎔': 'THz', '㎙': 'fm', '㎚': 'nm', '㎜': 'mm', '㎝': 'cm', '㎞': 'km', '㎧': 'm/s', '㎩': 'Pa', '㎪': 'kPa', '㎫': 'MPa', '㎬': 'GPa', '㎭': 'rad', '㎮': 'rad/s', '㎰': 'ps', '㎱': 'ns', '㎳': 'ms', '㎴': 'pV', '㎵': 'nV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ꝲ': 'l', 'ꝳ': 'm', 'ꝴ': 'n', 'ꝵ': 'r', 'ꝶ': 'R', 'ꝷ': 't', 'Ꝺ': 'D', 'ꝺ': 'd', 'Ꝼ': 'F', 'ꝼ': 'f', 'Ꞇ': 'T', 'ꞇ': 't', 'Ꞑ': 'N', 'ꞑ': 'n', 'Ꞓ': 'C', 'ꞓ': 'c', 'Ꞡ': 'G', 'ꞡ': 'g', 'Ꞣ': 'K', 'ꞣ': 'k', 'Ꞥ': 'N', 'ꞥ': 'n', 'Ꞧ': 'R', 'ꞧ': 'r', 'Ꞩ': 'S', 'ꞩ': 's', 'Ɦ': 'H', 'ꟲ': 'C', 'ꟳ': 'F', 'ꟴ': 'Q', 'ff': 'ff', 'fi': 'fi', 'fl': 'fl', 'ffi': 'ffi', 'ffl': 'ffl', 'ſt': 'st', 'st': 'st', '︐': ',', '︑': ',', '︒': '.', '︓': ':', '︔': ';', '︕': '!', '︖': '?', '︙': '...', '︰': '..', '︱': '-', '︲': '-', '︵': '(', '︶': ')', '︷': '{', '︸': '}', '︹': '[', '︺': ']', '︽': '<<', '︾': '>>', '︿': '<', '﹀': '>', '﹇': '[', '﹈': ']', '﹐': ',', '﹑': ',', '﹒': '.', '﹔': ';', '﹕': ':', '﹖': '?', '﹗': '!', '﹘': '-', '﹙': '(', '﹚': ')', '﹛': '{', '﹜': '}', '﹝': '[', '﹞': ']', '﹟': '#', '﹠': '&', '﹡': '*', '﹢': '+', '﹣': '-', '﹤': '<', '﹥': '>', '﹦': '=', '﹨': '\\', '﹩': '$', '﹪': '%', '﹫': '@', '!': '!', '"': '"', '#': '#', '$': '$', '%': '%', '&': '&', ''': "'", '(': '(', ')': ')', '*': '*', '+': '+', ',': ',', '-': '-', '.': '.', '/': '/', '0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6', '7': '7', '8': '8', '9': '9', ':': ':', ';': ';', '<': '<', '=': '=', '>': '>', '?': '?', '@': '@', 'A': 'A', 'B': 'B', 'C': 'C', 'D': 'D', 'E': 'E', 'F': 'F', 'G': 'G', 'H': 'H', 'I': 'I', 'J': 'J', 'K': 'K', 'L': 'L', 'M': 'M', 'N': 'N', 'O': 'O', 'P': 'P', 'Q': 'Q', 'R': 'R', 'S': 'S', 'T': 'T', 'U': 'U', 'V': 'V', 'W': 'W', 'X': 'X', 'Y': 'Y', 'Z': 'Z', '[': '[', '\': '\\', ']': ']', '^': '^', '_': '_', '`': '`', 'a': 'a', 'b': 'b', 'c': 'c', 'd': 'd', 'e': 'e', 'f': 'f', 'g': 'g', 'h': 'h', 'i': 'i', 'j': 'j', 'k': 'k', 'l': 'l', 'm': 'm', 'n': 'n', 'o': 'o', 'p': 'p', 'q': 'q', 'r': 'r', 's': 's', 't': 't', 'u': 'u', 'v': 'v', 'w': 'w', 'x': 'x', 'y': 'y', 'z': 'z', '{': '{', '|': '|', '}': '}', '~': '~', '⦅': '((', '⦆': '))', '。': '.', '、': ',', '←': '<-', '→': '->', '𐞥': 'q', '𝐀': 'A', '𝐁': 'B', '𝐂': 'C', '𝐃': 'D', '𝐄': 'E', '𝐅': 'F', '𝐆': 'G', '𝐇': 'H', '𝐈': 'I', '𝐉': 'J', '𝐊': 'K', '𝐋': 'L', '𝐌': 'M', '𝐍': 'N', '𝐎': 'O', '𝐏': 'P', '𝐐': 'Q', '𝐑': 'R', '𝐒': 'S', '𝐓': 'T', '𝐔': 'U', '𝐕': 'V', '𝐖': 'W', '𝐗': 'X', '𝐘': 'Y', '𝐙': 'Z', '𝐚': 'a', '𝐛': 'b', '𝐜': 'c', '𝐝': 'd', '𝐞': 'e', '𝐟': 'f', '𝐠': 'g', '𝐡': 'h', '𝐢': 'i', '𝐣': 'j', '𝐤': 'k', '𝐥': 'l', '𝐦': 'm', '𝐧': 'n', '𝐨': 'o', '𝐩': 'p', '𝐪': 'q', '𝐫': 'r', '𝐬': 's', '𝐭': 't', '𝐮': 'u', '𝐯': 'v', '𝐰': 'w', '𝐱': 'x', '𝐲': 'y', '𝐳': 'z', '𝐴': 'A', '𝐵': 'B', '𝐶': 'C', '𝐷': 'D', '𝐸': 'E', '𝐹': 'F', '𝐺': 'G', '𝐻': 'H', '𝐼': 'I', '𝐽': 'J', '𝐾': 'K', '𝐿': 'L', '𝑀': 'M', '𝑁': 'N', '𝑂': 'O', '𝑃': 'P', '𝑄': 'Q', '𝑅': 'R', '𝑆': 'S', '𝑇': 'T', '𝑈': 'U', '𝑉': 'V', '𝑊': 'W', '𝑋': 'X', '𝑌': 'Y', '𝑍': 'Z', '𝑎': 'a', '𝑏': 'b', '𝑐': 'c', '𝑑': 'd', '𝑒': 'e', '𝑓': 'f', '𝑔': 'g', '𝑖': 'i', '𝑗': 'j', '𝑘': 'k', '𝑙': 'l', '𝑚': 'm', '𝑛': 'n', '𝑜': 'o', '𝑝': 'p', '𝑞': 'q', '𝑟': 'r', '𝑠': 's', '𝑡': 't', '𝑢': 'u', '𝑣': 'v', '𝑤': 'w', '𝑥': 'x', '𝑦': 'y', '𝑧': 'z', '𝑨': 'A', '𝑩': 'B', '𝑪': 'C', '𝑫': 'D', '𝑬': 'E', '𝑭': 'F', '𝑮': 'G', '𝑯': 'H', '𝑰': 'I', '𝑱': 'J', '𝑲': 'K', '𝑳': 'L', '𝑴': 'M', '𝑵': 'N', '𝑶': 'O', '𝑷': 'P', '𝑸': 'Q', '𝑹': 'R', '𝑺': 'S', '𝑻': 'T', '𝑼': 'U', '𝑽': 'V', '𝑾': 'W', '𝑿': 'X', '𝒀': 'Y', '𝒁': 'Z', '𝒂': 'a', '𝒃': 'b', '𝒄': 'c', '𝒅': 'd', '𝒆': 'e', '𝒇': 'f', '𝒈': 'g', '𝒉': 'h', '𝒊': 'i', '𝒋': 'j', '𝒌': 'k', '𝒍': 'l', '𝒎': 'm', '𝒏': 'n', '𝒐': 'o', '𝒑': 'p', '𝒒': 'q', '𝒓': 'r', '𝒔': 's', '𝒕': 't', '𝒖': 'u', '𝒗': 'v', '𝒘': 'w', '𝒙': 'x', '𝒚': 'y', '𝒛': 'z', '𝒜': 'A', '𝒞': 'C', '𝒟': 'D', '𝒢': 'G', '𝒥': 'J', '𝒦': 'K', '𝒩': 'N', '𝒪': 'O', '𝒫': 'P', '𝒬': 'Q', '𝒮': 'S', '𝒯': 'T', '𝒰': 'U', '𝒱': 'V', '𝒲': 'W', '𝒳': 'X', '𝒴': 'Y', '𝒵': 'Z', '𝒶': 'a', '𝒷': 'b', '𝒸': 'c', '𝒹': 'd', '𝒻': 'f', '𝒽': 'h', '𝒾': 'i', '𝒿': 'j', '𝓀': 'k', '𝓁': 'l', '𝓂': 'm', '𝓃': 'n', '𝓅': 'p', '𝓆': 'q', '𝓇': 'r', '𝓈': 's', '𝓉': 't', '𝓊': 'u', '𝓋': 'v', '𝓌': 'w', '𝓍': 'x', '𝓎': 'y', '𝓏': 'z', '𝓐': 'A', '𝓑': 'B', '𝓒': 'C', '𝓓': 'D', '𝓔': 'E', '𝓕': 'F', '𝓖': 'G', '𝓗': 'H', '𝓘': 'I', '𝓙': 'J', '𝓚': 'K', '𝓛': 'L', '𝓜': 'M', '𝓝': 'N', '𝓞': 'O', '𝓟': 'P', '𝓠': 'Q', '𝓡': 'R', '𝓢': 'S', '𝓣': 'T', '𝓤': 'U', '𝓥': 'V', '𝓦': 'W', '𝓧': 'X', '𝓨': 'Y', '𝓩': 'Z', '𝓪': 'a', '𝓫': 'b', '𝓬': 'c', '𝓭': 'd', '𝓮': 'e', '𝓯': 'f', '𝓰': 'g', '𝓱': 'h', '𝓲': 'i', '𝓳': 'j', '𝓴': 'k', '𝓵': 'l', '𝓶': 'm', '𝓷': 'n', '𝓸': 'o', '𝓹': 'p', '𝓺': 'q', '𝓻': 'r', '𝓼': 's', '𝓽': 't', '𝓾': 'u', '𝓿': 'v', '𝔀': 'w', '𝔁': 'x', '𝔂': 'y', '𝔃': 'z', '𝔄': 'A', '𝔅': 'B', '𝔇': 'D', '𝔈': 'E', '𝔉': 'F', '𝔊': 'G', '𝔍': 'J', '𝔎': 'K', '𝔏': 'L', '𝔐': 'M', '𝔑': 'N', '𝔒': 'O', '𝔓': 'P', '𝔔': 'Q', '𝔖': 'S', '𝔗': 'T', '𝔘': 'U', '𝔙': 'V', '𝔚': 'W', '𝔛': 'X', '𝔜': 'Y', '𝔞': 'a', '𝔟': 'b', '𝔠': 'c', '𝔡': 'd', '𝔢': 'e', '𝔣': 'f', '𝔤': 'g', '𝔥': 'h', '𝔦': 'i', '𝔧': 'j', '𝔨': 'k', '𝔩': 'l', '𝔪': 'm', '𝔫': 'n', '𝔬': 'o', '𝔭': 'p', '𝔮': 'q', '𝔯': 'r', '𝔰': 's', '𝔱': 't', '𝔲': 'u', '𝔳': 'v', '𝔴': 'w', '𝔵': 'x', '𝔶': 'y', '𝔷': 'z', '𝔸': 'A', '𝔹': 'B', '𝔻': 'D', '𝔼': 'E', '𝔽': 'F', '𝔾': 'G', '𝕀': 'I', '𝕁': 'J', '𝕂': 'K', '𝕃': 'L', '𝕄': 'M', '𝕆': 'O', '𝕊': 'S', '𝕋': 'T', '𝕌': 'U', '𝕍': 'V', '𝕎': 'W', '𝕏': 'X', '𝕐': 'Y', '𝕒': 'a', '𝕓': 'b', '𝕔': 'c', '𝕕': 'd', '𝕖': 'e', '𝕗': 'f', '𝕘': 'g', '𝕙': 'h', '𝕚': 'i', '𝕛': 'j', '𝕜': 'k', '𝕝': 'l', '𝕞': 'm', '𝕟': 'n', '𝕠': 'o', '𝕡': 'p', '𝕢': 'q', '𝕣': 'r', '𝕤': 's', '𝕥': 't', '𝕦': 'u', '𝕧': 'v', '𝕨': 'w', '𝕩': 'x', '𝕪': 'y', '𝕫': 'z', '𝕬': 'A', '𝕭': 'B', '𝕮': 'C', '𝕯': 'D', '𝕰': 'E', '𝕱': 'F', '𝕲': 'G', '𝕳': 'H', '𝕴': 'I', '𝕵': 'J', '𝕶': 'K', '𝕷': 'L', '𝕸': 'M', '𝕹': 'N', '𝕺': 'O', '𝕻': 'P', '𝕼': 'Q', '𝕽': 'R', '𝕾': 'S', '𝕿': 'T', '𝖀': 'U', '𝖁': 'V', '𝖂': 'W', '𝖃': 'X', '𝖄': 'Y', '𝖅': 'Z', '𝖆': 'a', '𝖇': 'b', '𝖈': 'c', '𝖉': 'd', '𝖊': 'e', '𝖋': 'f', '𝖌': 'g', '𝖍': 'h', '𝖎': 'i', '𝖏': 'j', '𝖐': 'k', '𝖑': 'l', '𝖒': 'm', '𝖓': 'n', '𝖔': 'o', '𝖕': 'p', '𝖖': 'q', '𝖗': 'r', '𝖘': 's', '𝖙': 't', '𝖚': 'u', '𝖛': 'v', '𝖜': 'w', '𝖝': 'x', '𝖞': 'y', '𝖟': 'z', '𝖠': 'A', '𝖡': 'B', '𝖢': 'C', '𝖣': 'D', '𝖤': 'E', '𝖥': 'F', '𝖦': 'G', '𝖧': 'H', '𝖨': 'I', '𝖩': 'J', '𝖪': 'K', '𝖫': 'L', '𝖬': 'M', '𝖭': 'N', '𝖮': 'O', '𝖯': 'P', '𝖰': 'Q', '𝖱': 'R', '𝖲': 'S', '𝖳': 'T', '𝖴': 'U', '𝖵': 'V', '𝖶': 'W', '𝖷': 'X', '𝖸': 'Y', '𝖹': 'Z', '𝖺': 'a', '𝖻': 'b', '𝖼': 'c', '𝖽': 'd', '𝖾': 'e', '𝖿': 'f', '𝗀': 'g', '𝗁': 'h', '𝗂': 'i', '𝗃': 'j', '𝗄': 'k', '𝗅': 'l', '𝗆': 'm', '𝗇': 'n', '𝗈': 'o', '𝗉': 'p', '𝗊': 'q', '𝗋': 'r', '𝗌': 's', '𝗍': 't', '𝗎': 'u', '𝗏': 'v', '𝗐': 'w', '𝗑': 'x', '𝗒': 'y', '𝗓': 'z', '𝗔': 'A', '𝗕': 'B', '𝗖': 'C', '𝗗': 'D', '𝗘': 'E', '𝗙': 'F', '𝗚': 'G', '𝗛': 'H', '𝗜': 'I', '𝗝': 'J', '𝗞': 'K', '𝗟': 'L', '𝗠': 'M', '𝗡': 'N', '𝗢': 'O', '𝗣': 'P', '𝗤': 'Q', '𝗥': 'R', '𝗦': 'S', '𝗧': 'T', '𝗨': 'U', '𝗩': 'V', '𝗪': 'W', '𝗫': 'X', '𝗬': 'Y', '𝗭': 'Z', '𝗮': 'a', '𝗯': 'b', '𝗰': 'c', '𝗱': 'd', '𝗲': 'e', '𝗳': 'f', '𝗴': 'g', '𝗵': 'h', '𝗶': 'i', '𝗷': 'j', '𝗸': 'k', '𝗹': 'l', '𝗺': 'm', '𝗻': 'n', '𝗼': 'o', '𝗽': 'p', '𝗾': 'q', '𝗿': 'r', '𝘀': 's', '𝘁': 't', '𝘂': 'u', '𝘃': 'v', '𝘄': 'w', '𝘅': 'x', '𝘆': 'y', '𝘇': 'z', '𝘈': 'A', '𝘉': 'B', '𝘊': 'C', '𝘋': 'D', '𝘌': 'E', '𝘍': 'F', '𝘎': 'G', '𝘏': 'H', '𝘐': 'I', '𝘑': 'J', '𝘒': 'K', '𝘓': 'L', '𝘔': 'M', '𝘕': 'N', '𝘖': 'O', '𝘗': 'P', '𝘘': 'Q', '𝘙': 'R', '𝘚': 'S', '𝘛': 'T', '𝘜': 'U', '𝘝': 'V', '𝘞': 'W', '𝘟': 'X', '𝘠': 'Y', '𝘡': 'Z', '𝘢': 'a', '𝘣': 'b', '𝘤': 'c', '𝘥': 'd', '𝘦': 'e', '𝘧': 'f', '𝘨': 'g', '𝘩': 'h', '𝘪': 'i', '𝘫': 'j', '𝘬': 'k', '𝘭': 'l', '𝘮': 'm', '𝘯': 'n', '𝘰': 'o', '𝘱': 'p', '𝘲': 'q', '𝘳': 'r', '𝘴': 's', '𝘵': 't', '𝘶': 'u', '𝘷': 'v', '𝘸': 'w', '𝘹': 'x', '𝘺': 'y', '𝘻': 'z', '𝘼': 'A', '𝘽': 'B', '𝘾': 'C', '𝘿': 'D', '𝙀': 'E', '𝙁': 'F', '𝙂': 'G', '𝙃': 'H', '𝙄': 'I', '𝙅': 'J', '𝙆': 'K', '𝙇': 'L', '𝙈': 'M', '𝙉': 'N', '𝙊': 'O', '𝙋': 'P', '𝙌': 'Q', '𝙍': 'R', '𝙎': 'S', '𝙏': 'T', '𝙐': 'U', '𝙑': 'V', '𝙒': 'W', '𝙓': 'X', '𝙔': 'Y', '𝙕': 'Z', '𝙖': 'a', '𝙗': 'b', '𝙘': 'c', '𝙙': 'd', '𝙚': 'e', '𝙛': 'f', '𝙜': 'g', '𝙝': 'h', '𝙞': 'i', '𝙟': 'j', '𝙠': 'k', '𝙡': 'l', '𝙢': 'm', '𝙣': 'n', '𝙤': 'o', '𝙥': 'p', '𝙦': 'q', '𝙧': 'r', '𝙨': 's', '𝙩': 't', '𝙪': 'u', '𝙫': 'v', '𝙬': 'w', '𝙭': 'x', '𝙮': 'y', '𝙯': 'z', '𝙰': 'A', '𝙱': 'B', '𝙲': 'C', '𝙳': 'D', '𝙴': 'E', '𝙵': 'F', '𝙶': 'G', '𝙷': 'H', '𝙸': 'I', '𝙹': 'J', '𝙺': 'K', '𝙻': 'L', '𝙼': 'M', '𝙽': 'N', '𝙾': 'O', '𝙿': 'P', '𝚀': 'Q', '𝚁': 'R', '𝚂': 'S', '𝚃': 'T', '𝚄': 'U', '𝚅': 'V', '𝚆': 'W', '𝚇': 'X', '𝚈': 'Y', '𝚉': 'Z', '𝚊': 'a', '𝚋': 'b', '𝚌': 'c', '𝚍': 'd', '𝚎': 'e', '𝚏': 'f', '𝚐': 'g', '𝚑': 'h', '𝚒': 'i', '𝚓': 'j', '𝚔': 'k', '𝚕': 'l', '𝚖': 'm', '𝚗': 'n', '𝚘': 'o', '𝚙': 'p', '𝚚': 'q', '𝚛': 'r', '𝚜': 's', '𝚝': 't', '𝚞': 'u', '𝚟': 'v', '𝚠': 'w', '𝚡': 'x', '𝚢': 'y', '𝚣': 'z', '𝚨': 'Α', '𝚩': 'Β', '𝚪': 'Γ', '𝚫': 'Δ', '𝚬': 'Ε', '𝚭': 'Ζ', '𝚮': 'Η', '𝚯': 'Θ', '𝚰': 'Ι', '𝚱': 'Κ', '𝚲': 'Λ', '𝚳': 'Μ', '𝚴': 'Ν', '𝚵': 'Ξ', '𝚶': 'Ο', '𝚷': 'Π', '𝚸': 'Ρ', '𝚺': 'Σ', '𝚻': 'Τ', '𝚼': 'Υ', '𝚽': 'Φ', '𝚾': 'Χ', '𝚿': 'Ψ', '𝛀': 'Ω', '𝛂': 'α', '𝛃': 'β', '𝛄': 'γ', '𝛅': 'δ', '𝛆': 'ε', '𝛇': 'ζ', '𝛈': 'η', '𝛉': 'θ', '𝛊': 'ι', '𝛋': 'κ', '𝛌': 'λ', '𝛍': 'μ', '𝛎': 'ν', '𝛏': 'ξ', '𝛐': 'ο', '𝛑': 'π', '𝛒': 'ρ', '𝛓': 'ς', '𝛔': 'σ', '𝛕': 'τ', '𝛖': 'υ', '𝛗': 'φ', '𝛘': 'χ', '𝛙': 'ψ', '𝛚': 'ω', '𝛢': 'Α', '𝛣': 'Β', '𝛤': 'Γ', '𝛥': 'Δ', '𝛦': 'Ε', '𝛧': 'Ζ', '𝛨': 'Η', '𝛩': 'Θ', '𝛪': 'Ι', '𝛫': 'Κ', '𝛬': 'Λ', '𝛭': 'Μ', '𝛮': 'Ν', '𝛯': 'Ξ', '𝛰': 'Ο', '𝛱': 'Π', '𝛲': 'Ρ', '𝛴': 'Σ', '𝛵': 'Τ', '𝛶': 'Υ', '𝛷': 'Φ', '𝛸': 'Χ', '𝛹': 'Ψ', '𝛺': 'Ω', '𝛼': 'α', '𝛽': 'β', '𝛾': 'γ', '𝛿': 'δ', '𝜀': 'ε', '𝜁': 'ζ', '𝜂': 'η', '𝜃': 'θ', '𝜄': 'ι', '𝜅': 'κ', '𝜆': 'λ', '𝜇': 'μ', '𝜈': 'ν', '𝜉': 'ξ', '𝜊': 'ο', '𝜋': 'π', '𝜌': 'ρ', '𝜍': 'ς', '𝜎': 'σ', '𝜏': 'τ', '𝜐': 'υ', '𝜑': 'φ', '𝜒': 'χ', '𝜓': 'ψ', '𝜔': 'ω', '𝜜': 'Α', '𝜝': 'Β', '𝜞': 'Γ', '𝜟': 'Δ', '𝜠': 'Ε', '𝜡': 'Ζ', '𝜢': 'Η', '𝜣': 'Θ', '𝜤': 'Ι', '𝜥': 'Κ', '𝜦': 'Λ', '𝜧': 'Μ', '𝜨': 'Ν', '𝜩': 'Ξ', '𝜪': 'Ο', '𝜫': 'Π', '𝜬': 'Ρ', '𝜮': 'Σ', '𝜯': 'Τ', '𝜰': 'Υ', '𝜱': 'Φ', '𝜲': 'Χ', '𝜳': 'Ψ', '𝜴': 'Ω', '𝜶': 'α', '𝜷': 'β', '𝜸': 'γ', '𝜹': 'δ', '𝜺': 'ε', '𝜻': 'ζ', '𝜼': 'η', '𝜽': 'θ', '𝜾': 'ι', '𝜿': 'κ', '𝝀': 'λ', '𝝁': 'μ', '𝝂': 'ν', '𝝃': 'ξ', '𝝄': 'ο', '𝝅': 'π', '𝝆': 'ρ', '𝝇': 'ς', '𝝈': 'σ', '𝝉': 'τ', '𝝊': 'υ', '𝝋': 'φ', '𝝌': 'χ', '𝝍': 'ψ', '𝝎': 'ω', '𝝖': 'Α', '𝝗': 'Β', '𝝘': 'Γ', '𝝙': 'Δ', '𝝚': 'Ε', '𝝛': 'Ζ', '𝝜': 'Η', '𝝝': 'Θ', '𝝞': 'Ι', '𝝟': 'Κ', '𝝠': 'Λ', '𝝡': 'Μ', '𝝢': 'Ν', '𝝣': 'Ξ', '𝝤': 'Ο', '𝝥': 'Π', '𝝦': 'Ρ', '𝝨': 'Σ', '𝝩': 'Τ', '𝝪': 'Υ', '𝝫': 'Φ', '𝝬': 'Χ', '𝝭': 'Ψ', '𝝮': 'Ω', '𝝰': 'α', '𝝱': 'β', '𝝲': 'γ', '𝝳': 'δ', '𝝴': 'ε', '𝝵': 'ζ', '𝝶': 'η', '𝝷': 'θ', '𝝸': 'ι', '𝝹': 'κ', '𝝺': 'λ', '𝝻': 'μ', '𝝼': 'ν', '𝝽': 'ξ', '𝝾': 'ο', '𝝿': 'π', '𝞀': 'ρ', '𝞁': 'ς', '𝞂': 'σ', '𝞃': 'τ', '𝞄': 'υ', '𝞅': 'φ', '𝞆': 'χ', '𝞇': 'ψ', '𝞈': 'ω', '𝞐': 'Α', '𝞑': 'Β', '𝞒': 'Γ', '𝞓': 'Δ', '𝞔': 'Ε', '𝞕': 'Ζ', '𝞖': 'Η', '𝞗': 'Θ', '𝞘': 'Ι', '𝞙': 'Κ', '𝞚': 'Λ', '𝞛': 'Μ', '𝞜': 'Ν', '𝞝': 'Ξ', '𝞞': 'Ο', '𝞟': 'Π', '𝞠': 'Ρ', '𝞢': 'Σ', '𝞣': 'Τ', '𝞤': 'Υ', '𝞥': 'Φ', '𝞦': 'Χ', '𝞧': 'Ψ', '𝞨': 'Ω', '𝞪': 'α', '𝞫': 'β', '𝞬': 'γ', '𝞭': 'δ', '𝞮': 'ε', '𝞯': 'ζ', '𝞰': 'η', '𝞱': 'θ', '𝞲': 'ι', '𝞳': 'κ', '𝞴': 'λ', '𝞵': 'μ', '𝞶': 'ν', '𝞷': 'ξ', '𝞸': 'ο', '𝞹': 'π', '𝞺': 'ρ', '𝞻': 'ς', '𝞼': 'σ', '𝞽': 'τ', '𝞾': 'υ', '𝞿': 'φ', '𝟀': 'χ', '𝟁': 'ψ', '𝟂': 'ω', '🄀': '0.', '🄁': '0,', '🄂': '1,', '🄃': '2,', '🄄': '3,', '🄅': '4,', '🄆': '5,', '🄇': '6,', '🄈': '7,', '🄉': '8,', '🄊': '9,', '🄐': '(A)', '🄑': '(B)', '🄒': '(C)', '🄓': '(D)', '🄔': '(E)', '🄕': '(F)', '🄖': '(G)', '🄗': '(H)', '🄘': '(I)', '🄙': '(J)', '🄚': '(K)', '🄛': '(L)', '🄜': '(M)', '🄝': '(N)', '🄞': '(O)', '🄟': '(P)', '🄠': '(Q)', '🄡': '(R)', '🄢': '(S)', '🄣': '(T)', '🄤': '(U)', '🄥': '(V)', '🄦': '(W)', '🄧': '(X)', '🄨': '(Y)', '🄩': '(Z)'}¶
- static ampersandEncode(string: str | None) str[source]¶
Makes a raw string safe for inclusion as a HTML/XML string literal.
This includes replacing ‘<’ with ‘<’, ‘>’ with ‘>’, ‘&’ with ‘&’, and any extended unicode characters with the XML style é encoded versions of these characters.
Added in version 3.2.
- Parameters:
string (Optional[str])
- Return type:
str
- static capitalize(string: str | None, capitalization: Qgis.Capitalization) str[source]¶
Converts a string by applying capitalization rules to the string.
- Parameters:
string (Optional[str]) – input string
capitalization (Qgis.Capitalization) – capitalization type to apply
- Return type:
str
- Returns:
capitalized string
- static containsByWord(candidate: str | None, words: str | None, sensitivity: Qt.CaseSensitivity = Qt.CaseInsensitive) bool[source]¶
Given a
candidatestring, returnsTrueif thecandidatecontains all the individual words from another string, regardless of their order.Note
The search does NOT need to match whole words in the
candidatestring, so eg a candidate string of “Worldmap_Winkel_II” will returnTrueforwords“winkle world”Added in version 3.42.
- static createUnaccentMap() dict[str, str]¶
Generates the unaccent mapping table (auto-generated by script at build time).
This function creates a hash map from the unaccent rules file (resources/unaccent.rules), which is derived from PostgreSQL’s contrib/unaccent module.
Note
This function is called automatically during static initialization and should not need to be called directly by users.
Added in version 4.0.
- Return type:
dict[str, str]
- static fuzzyScore(candidate: str | None, search: str | None) float[source]¶
Tests a
candidatestring to see how likely it is a match for a specifiedsearchstring. Values are normalized between 0 and 1.- Parameters:
- Return type:
float
- Returns:
Normalized value of how likely is the
searchto be in thecandidate
Note
Use this function only to calculate the fuzzy score between two strings and later compare these values, but do not depend on the actual numbers. They are implementation detail that may change in a future release.
Added in version 3.14.
- static hammingDistance(string1: str | None, string2: str | None, caseSensitive: bool = False) int[source]¶
Returns the Hamming distance between two strings. This equates to the number of characters at corresponding positions within the input strings where the characters are different. The input strings must be the same length.
- static htmlToMarkdown(html: str | None) str[source]¶
Convert simple HTML to markdown. Only br, b and link are supported.
- Parameters:
html (Optional[str]) – HTML to convert to markdown
- Return type:
str
- Returns:
String formatted as markdown
Added in version 3.10.
- static insertLinks(string: str | None)[source]¶
Returns a string with any URL (e.g., http(s)/ftp) and mailto: text converted to valid HTML <a …> links.
- static isUrl(string: str | None) bool[source]¶
Returns whether the string is a URL (http,https,ftp,file)
- Parameters:
string (Optional[str]) – the string to check
- Return type:
bool
- Returns:
whether the string is an URL
Added in version 3.22.
- static levenshteinDistance(string1: str | None, string2: str | None, caseSensitive: bool = False) int[source]¶
Returns the Levenshtein edit distance between two strings. This equates to the minimum number of character edits (insertions, deletions or substitutions) required to change one string to another.
- static longestCommonSubstring(string1: str | None, string2: str | None, caseSensitive: bool = False) str[source]¶
Returns the longest common substring between two strings. This substring is the longest string that is a substring of the two input strings. For example, the longest common substring of “ABABC” and “BABCA” is “ABC”.
- static qRegExpEscape(string: str | None) str[source]¶
Returns an escaped string matching the behavior of QRegExp.escape.
- Parameters:
string (Optional[str]) – String to escape
- Return type:
str
- Returns:
Escaped string
Added in version 3.22.
- static soundex(string: str | None) str[source]¶
Returns the Soundex representation of a string. Soundex is a phonetic matching algorithm, so strings with similar sounds should be represented by the same Soundex code.
- Parameters:
string (Optional[str]) – input string
- Return type:
str
- Returns:
4 letter Soundex code
- static substituteVerticalCharacters(string: str | None) str[source]¶
Returns a string with characters having vertical representation form substituted.
- Parameters:
string (Optional[str]) – input string
- Return type:
str
- Returns:
string with substitution applied
Added in version 3.10.
- static truncateMiddleOfString(string: str | None, maxLength: int) str[source]¶
Truncates a
stringto the specified maximum character length.If the
stringexceeds the maximum character length, then the string will be truncated by removing characters from the middle of the string and replacing them with a horizontal ellipsis character.Added in version 3.22.
- Parameters:
string (Optional[str])
maxLength (int)
- Return type:
str
- static unaccent(input: str | None) str[source]¶
Removes accents and other diacritical marks from a string, replacing accented characters with their unaccented ASCII equivalents.
This function uses a comprehensive mapping table derived from PostgreSQL’s contrib/unaccent module, ensuring compatibility with PostgreSQL’s
unaccent()function. The implementation:Normalizes input to Unicode NFC (Canonical Composition) form
Maps accented characters to their base forms (é→e, ñ→n, etc.)
Handles ligatures (Æ→AE, œ→oe, ß→ss, etc.)
Processes compatibility characters (℃→°C, ½→ 1/2, etc.)
Supports both BMP and non-BMP (surrogate pair) Unicode characters
Preserves characters without mappings unchanged
Common use cases:
Normalizing text for search and comparison operations
Creating ASCII-safe identifiers or filenames from international text
Matching user input regardless of accent usage
Preparing text for systems that don’t support Unicode well
- Parameters:
input (Optional[str]) – string to remove accents from
- Return type:
str
- Returns:
string with accents and diacritical marks removed
Example usage:
Note
This function is also available as an expression function
unaccent()for use in QGIS expressions, field calculator, and labeling.See also
QgsExpressionfor using this function in expressionsAdded in version 4.0.
- static wordWrap(string: str | None, length: int, useMaxLineLength: bool = True, customDelimiter: str | None = '') str[source]¶
Automatically wraps a
stringby inserting new line characters at appropriate locations in the string.The
lengthargument specifies either the minimum or maximum length of lines desired, depending on whetheruseMaxLineLengthisTrue. IfuseMaxLineLengthisTrue, then the string will be wrapped so that each line ideally will not exceedlengthof characters. IfuseMaxLineLengthisFalse, then the string will be wrapped so that each line will ideally exceedlengthof characters.A custom delimiter can be specified to use instead of space characters.
Added in version 3.4.