Skip to content

Instantly share code, notes, and snippets.

@avanavana
Created Jan 22, 2021
Embed
What would you like to do?
BibTeX special character conversions to Unicode equivalents using Python
#!/usr/bin/env python3
import sys
for line in sys.stdin:
line = line.replace(r"{\'{a}}",r"á")
line = line.replace(r"{\'{c}}",r"ć")
line = line.replace(r"{\'{e}}",r"é")
line = line.replace(r"{\'{g}}",r"ǵ")
line = line.replace(r"{\'{i}}",r"í")
line = line.replace(r"{\'{n}}",r"ń")
line = line.replace(r"{\'{o}}",r"ó")
line = line.replace(r"{\'{r}}",r"ŕ")
line = line.replace(r"{\'{s}}",r"ś")
line = line.replace(r"{\'{u}}",r"ú")
line = line.replace(r"{\'{w}}",r"ẃ")
line = line.replace(r"{\'{y}}",r"ý")
line = line.replace(r"{\'{z}}",r"ź")
line = line.replace(r"{\'{\a}}",r"á")
line = line.replace(r"{\'{\c}}",r"ć")
line = line.replace(r"{\'{\e}}",r"é")
line = line.replace(r"{\'{\g}}",r"ǵ")
line = line.replace(r"{\'{\i}}",r"í")
line = line.replace(r"{\'{\n}}",r"ń")
line = line.replace(r"{\'{\o}}",r"ó")
line = line.replace(r"{\'{\r}}",r"ŕ")
line = line.replace(r"{\'{\s}}",r"ś")
line = line.replace(r"{\'{\u}}",r"ú")
line = line.replace(r"{\'{\w}}",r"ẃ")
line = line.replace(r"{\'{\y}}",r"ý")
line = line.replace(r"{\'{\z}}",r"ź")
line = line.replace(r"{\' a}",r"á")
line = line.replace(r"{\' c}",r"ć")
line = line.replace(r"{\' e}",r"é")
line = line.replace(r"{\' g}",r"ǵ")
line = line.replace(r"{\' i}",r"í")
line = line.replace(r"{\' n}",r"ń")
line = line.replace(r"{\' o}",r"ó")
line = line.replace(r"{\' r}",r"ŕ")
line = line.replace(r"{\' s}",r"ś")
line = line.replace(r"{\' u}",r"ú")
line = line.replace(r"{\' w}",r"ẃ")
line = line.replace(r"{\' y}",r"ý")
line = line.replace(r"{\' z}",r"ź")
line = line.replace(r"{\'a}",r"á")
line = line.replace(r"{\'c}",r"ć")
line = line.replace(r"{\'e}",r"é")
line = line.replace(r"{\'g}",r"ǵ")
line = line.replace(r"{\'i}",r"í")
line = line.replace(r"{\'n}",r"ń")
line = line.replace(r"{\'o}",r"ó")
line = line.replace(r"{\'r}",r"ŕ")
line = line.replace(r"{\'s}",r"ś")
line = line.replace(r"{\'u}",r"ú")
line = line.replace(r"{\'w}",r"ẃ")
line = line.replace(r"{\'y}",r"ý")
line = line.replace(r"{\'z}",r"ź")
line = line.replace(r"{\'{A}}",r"Á")
line = line.replace(r"{\'{C}}",r"Ć")
line = line.replace(r"{\'{E}}",r"É")
line = line.replace(r"{\'{G}}",r"Ǵ")
line = line.replace(r"{\'{I}}",r"Í")
line = line.replace(r"{\'{N}}",r"Ń")
line = line.replace(r"{\'{O}}",r"Ó")
line = line.replace(r"{\'{R}}",r"Ŕ")
line = line.replace(r"{\'{S}}",r"Ś")
line = line.replace(r"{\'{U}}",r"Ú")
line = line.replace(r"{\'{W}}",r"Ẃ")
line = line.replace(r"{\'{Y}}",r"Ý")
line = line.replace(r"{\'{Z}}",r"Ź")
line = line.replace(r"{\'{\a}}",r"Á")
line = line.replace(r"{\'{\c}}",r"Ć")
line = line.replace(r"{\'{\e}}",r"É")
line = line.replace(r"{\'{\G}}",r"Ǵ")
line = line.replace(r"{\'{\I}}",r"Í")
line = line.replace(r"{\'{\n}}",r"Ń")
line = line.replace(r"{\'{\O}}",r"Ó")
line = line.replace(r"{\'{\r}}",r"Ŕ")
line = line.replace(r"{\'{\S}}",r"Ś")
line = line.replace(r"{\'{\U}}",r"Ú")
line = line.replace(r"{\'{\W}}",r"Ẃ")
line = line.replace(r"{\'{\Y}}",r"Ý")
line = line.replace(r"{\'{\Z}}",r"Ź")
line = line.replace(r"{\' A}",r"Á")
line = line.replace(r"{\' C}",r"Ć")
line = line.replace(r"{\' E}",r"É")
line = line.replace(r"{\' G}",r"Ǵ")
line = line.replace(r"{\' I}",r"Í")
line = line.replace(r"{\' N}",r"Ń")
line = line.replace(r"{\' O}",r"Ó")
line = line.replace(r"{\' R}",r"Ŕ")
line = line.replace(r"{\' S}",r"Ś")
line = line.replace(r"{\' U}",r"Ú")
line = line.replace(r"{\' W}",r"Ẃ")
line = line.replace(r"{\' Y}",r"Ý")
line = line.replace(r"{\' Z}",r"Ź")
line = line.replace(r"{\'A}",r"Á")
line = line.replace(r"{\'C}",r"Ć")
line = line.replace(r"{\'E}",r"É")
line = line.replace(r"{\'G}",r"Ǵ")
line = line.replace(r"{\'I}",r"Í")
line = line.replace(r"{\'N}",r"Ń")
line = line.replace(r"{\'O}",r"Ó")
line = line.replace(r"{\'R}",r"Ŕ")
line = line.replace(r"{\'S}",r"Ś")
line = line.replace(r"{\'U}",r"Ú")
line = line.replace(r"{\'W}",r"Ẃ")
line = line.replace(r"{\'Y}",r"Ý")
line = line.replace(r"{\'Z}",r"Ź")
line = line.replace(r"\'{a}",r"á")
line = line.replace(r"\'{c}",r"ć")
line = line.replace(r"\'{e}",r"é")
line = line.replace(r"\'{g}",r"ǵ")
line = line.replace(r"\'{i}",r"í")
line = line.replace(r"\'{n}",r"ń")
line = line.replace(r"\'{o}",r"ó")
line = line.replace(r"\'{r}",r"ŕ")
line = line.replace(r"\'{s}",r"ś")
line = line.replace(r"\'{u}",r"ú")
line = line.replace(r"\'{w}",r"ẃ")
line = line.replace(r"\'{y}",r"ý")
line = line.replace(r"\'{z}",r"ź")
line = line.replace(r"\'a",r"á")
line = line.replace(r"\'c",r"ć")
line = line.replace(r"\'e",r"é")
line = line.replace(r"\'g",r"ǵ")
line = line.replace(r"\'i",r"í")
line = line.replace(r"\'n",r"ń")
line = line.replace(r"\'o",r"ó")
line = line.replace(r"\'r",r"ŕ")
line = line.replace(r"\'s",r"ś")
line = line.replace(r"\'u",r"ú")
line = line.replace(r"\'w",r"ẃ")
line = line.replace(r"\'y",r"ý")
line = line.replace(r"\'z",r"ź")
line = line.replace(r"\'{\a}",r"á")
line = line.replace(r"\'{\c}",r"ć")
line = line.replace(r"\'{\e}",r"é")
line = line.replace(r"\'{\g}",r"ǵ")
line = line.replace(r"\'{\i}",r"í")
line = line.replace(r"\'{\n}",r"ń")
line = line.replace(r"\'{\o}",r"ó")
line = line.replace(r"\'{\r}",r"ŕ")
line = line.replace(r"\'{\s}",r"ś")
line = line.replace(r"\'{\u}",r"ú")
line = line.replace(r"\'{\w}",r"ẃ")
line = line.replace(r"\'{\y}",r"ý")
line = line.replace(r"\'{\z}",r"ź")
line = line.replace(r"\'{A}",r"Á")
line = line.replace(r"\'{C}",r"Ć")
line = line.replace(r"\'{E}",r"É")
line = line.replace(r"\'{G}",r"Ǵ")
line = line.replace(r"\'{I}",r"Í")
line = line.replace(r"\'{N}",r"Ń")
line = line.replace(r"\'{O}",r"Ó")
line = line.replace(r"\'{R}",r"Ŕ")
line = line.replace(r"\'{S}",r"Ś")
line = line.replace(r"\'{U}",r"Ú")
line = line.replace(r"\'{W}",r"Ẃ")
line = line.replace(r"\'{Y}",r"Ý")
line = line.replace(r"\'{Z}",r"Ź")
line = line.replace(r"\'A",r"Á")
line = line.replace(r"\'C",r"Ć")
line = line.replace(r"\'E",r"É")
line = line.replace(r"\'G",r"Ǵ")
line = line.replace(r"\'I",r"Í")
line = line.replace(r"\'N",r"Ń")
line = line.replace(r"\'O",r"Ó")
line = line.replace(r"\'R",r"Ŕ")
line = line.replace(r"\'S",r"Ś")
line = line.replace(r"\'U",r"Ú")
line = line.replace(r"\'W",r"Ẃ")
line = line.replace(r"\'Y",r"Ý")
line = line.replace(r"\'Z",r"Ź")
line = line.replace(r"\'{\a}",r"Á")
line = line.replace(r"\'{\c}",r"Ć")
line = line.replace(r"\'{\e}",r"É")
line = line.replace(r"\'{\G}",r"Ǵ")
line = line.replace(r"\'{\I}",r"Í")
line = line.replace(r"\'{\n}",r"Ń")
line = line.replace(r"\'{\O}",r"Ó")
line = line.replace(r"\'{\r}",r"Ŕ")
line = line.replace(r"\'{\S}",r"Ś")
line = line.replace(r"\'{\U}",r"Ú")
line = line.replace(r"\'{\W}",r"Ẃ")
line = line.replace(r"\'{\Y}",r"Ý")
line = line.replace(r"\'{\Z}",r"Ź")
line = line.replace(r'{\`{a}}',r"à")
line = line.replace(r'{\`{e}}',r"è")
line = line.replace(r'{\`{i}}',r"ì")
line = line.replace(r'{\`{o}}',r"ò")
line = line.replace(r'{\`{u}}',r"ù")
line = line.replace(r'{\`{\a}}',r"à")
line = line.replace(r'{\`{\e}}',r"è")
line = line.replace(r'{\`{\i}}',r"ì")
line = line.replace(r'{\`{\o}}',r"ò")
line = line.replace(r'{\`{\u}}',r"ù")
line = line.replace(r'{\` a}',r"à")
line = line.replace(r'{\` e}',r"è")
line = line.replace(r'{\` i}',r"ì")
line = line.replace(r'{\` o}',r"ò")
line = line.replace(r'{\` u}',r"ù")
line = line.replace(r'{\`a}',r"à")
line = line.replace(r'{\`e}',r"è")
line = line.replace(r'{\`i}',r"ì")
line = line.replace(r'{\`o}',r"ò")
line = line.replace(r'{\`u}',r"ù")
line = line.replace(r'{\`{A}}',r"À")
line = line.replace(r'{\`{E}}',r"È")
line = line.replace(r'{\`{I}}',r"Ì")
line = line.replace(r'{\`{O}}',r"Ò")
line = line.replace(r'{\`{U}}',r"Ù")
line = line.replace(r'{\`{\a}}',r"À")
line = line.replace(r'{\`{\e}}',r"È")
line = line.replace(r'{\`{\I}}',r"Ì")
line = line.replace(r'{\`{\O}}',r"Ò")
line = line.replace(r'{\`{\U}}',r"Ù")
line = line.replace(r'{\` A}',r"À")
line = line.replace(r'{\` E}',r"È")
line = line.replace(r'{\` I}',r"Ì")
line = line.replace(r'{\` O}',r"Ò")
line = line.replace(r'{\` U}',r"Ù")
line = line.replace(r'{\`A}',r"À")
line = line.replace(r'{\`E}',r"È")
line = line.replace(r'{\`I}',r"Ì")
line = line.replace(r'{\`O}',r"Ò")
line = line.replace(r'{\`U}',r"Ù")
line = line.replace(r'\`{a}',r"à")
line = line.replace(r'\`{e}',r"è")
line = line.replace(r'\`{i}',r"ì")
line = line.replace(r'\`{o}',r"ò")
line = line.replace(r'\`{u}',r"ù")
line = line.replace(r'\`a',r"à")
line = line.replace(r'\`e',r"è")
line = line.replace(r'\`i',r"ì")
line = line.replace(r'\`o',r"ò")
line = line.replace(r'\`u',r"ù")
line = line.replace(r'\`{\a}',r"à")
line = line.replace(r'\`{\e}',r"è")
line = line.replace(r'\`{\i}',r"ì")
line = line.replace(r'\`{\o}',r"ò")
line = line.replace(r'\`{\u}',r"ù")
line = line.replace(r'\`{A}',r"À")
line = line.replace(r'\`{E}',r"È")
line = line.replace(r'\`{I}',r"Ì")
line = line.replace(r'\`{O}',r"Ò")
line = line.replace(r'\`{U}',r"Ù")
line = line.replace(r'\`A',r"À")
line = line.replace(r'\`E',r"È")
line = line.replace(r'\`I',r"Ì")
line = line.replace(r'\`O',r"Ò")
line = line.replace(r'\`U',r"Ù")
line = line.replace(r'\`{\a}',r"À")
line = line.replace(r'\`{\e}',r"È")
line = line.replace(r'\`{\I}',r"Ì")
line = line.replace(r'\`{\O}',r"Ò")
line = line.replace(r'\`{\U}',r"Ù")
line = line.replace(r'{\^{a}}',r"â")
line = line.replace(r'{\^{c}}',r"ĉ")
line = line.replace(r'{\^{e}}',r"ê")
line = line.replace(r'{\^{g}}',r"ĝ")
line = line.replace(r'{\^{i}}',r"î")
line = line.replace(r'{\^{j}}',r"ĵ")
line = line.replace(r'{\^{o}}',r"ô")
line = line.replace(r'{\^{s}}',r"ŝ")
line = line.replace(r'{\^{u}}',r"û")
line = line.replace(r'{\^{\a}}',r"â")
line = line.replace(r'{\^{\c}}',r"ĉ")
line = line.replace(r'{\^{\e}}',r"ê")
line = line.replace(r'{\^{\g}}',r"ĝ")
line = line.replace(r'{\^{\i}}',r"î")
line = line.replace(r'{\^{\j}}',r"ĵ")
line = line.replace(r'{\^{\o}}',r"ô")
line = line.replace(r'{\^{\s}}',r"ŝ")
line = line.replace(r'{\^{\u}}',r"û")
line = line.replace(r'{\^ a}',r"â")
line = line.replace(r'{\^ c}',r"ĉ")
line = line.replace(r'{\^ e}',r"ê")
line = line.replace(r'{\^ g}',r"ĝ")
line = line.replace(r'{\^ i}',r"î")
line = line.replace(r'{\^ j}',r"ĵ")
line = line.replace(r'{\^ o}',r"ô")
line = line.replace(r'{\^ s}',r"ŝ")
line = line.replace(r'{\^ u}',r"û")
line = line.replace(r'{\^a}',r"â")
line = line.replace(r'{\^c}',r"ĉ")
line = line.replace(r'{\^e}',r"ê")
line = line.replace(r'{\^g}',r"ĝ")
line = line.replace(r'{\^i}',r"î")
line = line.replace(r'{\^j}',r"ĵ")
line = line.replace(r'{\^o}',r"ô")
line = line.replace(r'{\^s}',r"ŝ")
line = line.replace(r'{\^u}',r"û")
line = line.replace(r'{\^{A}}',r"Â")
line = line.replace(r'{\^{C}}',r"Ĉ")
line = line.replace(r'{\^{E}}',r"Ê")
line = line.replace(r'{\^{G}}',r"Ĝ")
line = line.replace(r'{\^{I}}',r"Î")
line = line.replace(r'{\^{J}}',r"Ĵ")
line = line.replace(r'{\^{O}}',r"Ô")
line = line.replace(r'{\^{S}}',r"Ŝ")
line = line.replace(r'{\^{U}}',r"Û")
line = line.replace(r'{\^{\a}}',r"Â")
line = line.replace(r'{\^{\c}}',r"Ĉ")
line = line.replace(r'{\^{\e}}',r"Ê")
line = line.replace(r'{\^{\G}}',r"Ĝ")
line = line.replace(r'{\^{\I}}',r"Î")
line = line.replace(r'{\^{\J}}',r"Ĵ")
line = line.replace(r'{\^{\O}}',r"Ô")
line = line.replace(r'{\^{\S}}',r"Ŝ")
line = line.replace(r'{\^{\U}}',r"Û")
line = line.replace(r'{\^ A}',r"Â")
line = line.replace(r'{\^ C}',r"Ĉ")
line = line.replace(r'{\^ E}',r"Ê")
line = line.replace(r'{\^ G}',r"Ĝ")
line = line.replace(r'{\^ I}',r"Î")
line = line.replace(r'{\^ J}',r"Ĵ")
line = line.replace(r'{\^ O}',r"Ô")
line = line.replace(r'{\^ S}',r"Ŝ")
line = line.replace(r'{\^ U}',r"Û")
line = line.replace(r'{\^A}',r"Â")
line = line.replace(r'{\^C}',r"Ĉ")
line = line.replace(r'{\^E}',r"Ê")
line = line.replace(r'{\^G}',r"Ĝ")
line = line.replace(r'{\^I}',r"Î")
line = line.replace(r'{\^J}',r"Ĵ")
line = line.replace(r'{\^O}',r"Ô")
line = line.replace(r'{\^S}',r"Ŝ")
line = line.replace(r'{\^U}',r"Û")
line = line.replace(r'\^{a}',r"â")
line = line.replace(r'\^{c}',r"ĉ")
line = line.replace(r'\^{e}',r"ê")
line = line.replace(r'\^{g}',r"ĝ")
line = line.replace(r'\^{i}',r"î")
line = line.replace(r'\^{j}',r"ĵ")
line = line.replace(r'\^{o}',r"ô")
line = line.replace(r'\^{s}',r"ŝ")
line = line.replace(r'\^{u}',r"û")
line = line.replace(r'\^a',r"â")
line = line.replace(r'\^c',r"ĉ")
line = line.replace(r'\^e',r"ê")
line = line.replace(r'\^g',r"ĝ")
line = line.replace(r'\^i',r"î")
line = line.replace(r'\^j',r"ĵ")
line = line.replace(r'\^o',r"ô")
line = line.replace(r'\^s',r"ŝ")
line = line.replace(r'\^u',r"û")
line = line.replace(r'\^{\a}',r"â")
line = line.replace(r'\^{\c}',r"ĉ")
line = line.replace(r'\^{\e}',r"ê")
line = line.replace(r'\^{\g}',r"ĝ")
line = line.replace(r'\^{\i}',r"î")
line = line.replace(r'\^{\j}',r"ĵ")
line = line.replace(r'\^{\o}',r"ô")
line = line.replace(r'\^{\s}',r"ŝ")
line = line.replace(r'\^{\u}',r"û")
line = line.replace(r'\^{A}',r"Â")
line = line.replace(r'\^{C}',r"Ĉ")
line = line.replace(r'\^{E}',r"Ê")
line = line.replace(r'\^{G}',r"Ĝ")
line = line.replace(r'\^{I}',r"Î")
line = line.replace(r'\^{J}',r"Ĵ")
line = line.replace(r'\^{O}',r"Ô")
line = line.replace(r'\^{S}',r"Ŝ")
line = line.replace(r'\^{U}',r"Û")
line = line.replace(r'\^A',r"Â")
line = line.replace(r'\^C',r"Ĉ")
line = line.replace(r'\^E',r"Ê")
line = line.replace(r'\^G',r"Ĝ")
line = line.replace(r'\^I',r"Î")
line = line.replace(r'\^J',r"Ĵ")
line = line.replace(r'\^O',r"Ô")
line = line.replace(r'\^S',r"Ŝ")
line = line.replace(r'\^U',r"Û")
line = line.replace(r'\^{\a}',r"Â")
line = line.replace(r'\^{\c}',r"Ĉ")
line = line.replace(r'\^{\e}',r"Ê")
line = line.replace(r'\^{\G}',r"Ĝ")
line = line.replace(r'\^{\I}',r"Î")
line = line.replace(r'\^{\J}',r"Ĵ")
line = line.replace(r'\^{\O}',r"Ô")
line = line.replace(r'\^{\S}',r"Ŝ")
line = line.replace(r'\^{\U}',r"Û")
line = line.replace(r'{\"{a}}',r"ä")
line = line.replace(r'{\"{e}}',r"ë")
line = line.replace(r'{\"{i}}',r"ï")
line = line.replace(r'{\"{o}}',r"ö")
line = line.replace(r'{\"{u}}',r"ü")
line = line.replace(r'{\"{\a}}',r"ä")
line = line.replace(r'{\"{\e}}',r"ë")
line = line.replace(r'{\"{\i}}',r"ï")
line = line.replace(r'{\"{\o}}',r"ö")
line = line.replace(r'{\"{\u}}',r"ü")
line = line.replace(r'{\" a}',r"ä")
line = line.replace(r'{\" e}',r"ë")
line = line.replace(r'{\" i}',r"ï")
line = line.replace(r'{\" o}',r"ö")
line = line.replace(r'{\" u}',r"ü")
line = line.replace(r'{\"a}',r"ä")
line = line.replace(r'{\"e}',r"ë")
line = line.replace(r'{\"i}',r"ï")
line = line.replace(r'{\"o}',r"ö")
line = line.replace(r'{\"u}',r"ü")
line = line.replace(r'{\"{A}}',r"Ä")
line = line.replace(r'{\"{E}}',r"Ë")
line = line.replace(r'{\"{I}}',r"Ï")
line = line.replace(r'{\"{O}}',r"Ö")
line = line.replace(r'{\"{U}}',r"Ü")
line = line.replace(r'{\"{\a}}',r"Ä")
line = line.replace(r'{\"{\e}}',r"Ë")
line = line.replace(r'{\"{\I}}',r"Ï")
line = line.replace(r'{\"{\O}}',r"Ö")
line = line.replace(r'{\"{\U}}',r"Ü")
line = line.replace(r'{\" A}',r"Ä")
line = line.replace(r'{\" E}',r"Ë")
line = line.replace(r'{\" I}',r"Ï")
line = line.replace(r'{\" O}',r"Ö")
line = line.replace(r'{\" U}',r"Ü")
line = line.replace(r'{\"A}',r"Ä")
line = line.replace(r'{\"E}',r"Ë")
line = line.replace(r'{\"I}',r"Ï")
line = line.replace(r'{\"O}',r"Ö")
line = line.replace(r'{\"U}',r"Ü")
line = line.replace(r'\"{a}',r"ä")
line = line.replace(r'\"{e}',r"ë")
line = line.replace(r'\"{i}',r"ï")
line = line.replace(r'\"{o}',r"ö")
line = line.replace(r'\"{u}',r"ü")
line = line.replace(r'\"a',r"ä")
line = line.replace(r'\"e',r"ë")
line = line.replace(r'\"i',r"ï")
line = line.replace(r'\"o',r"ö")
line = line.replace(r'\"u',r"ü")
line = line.replace(r'\"{\a}',r"ä")
line = line.replace(r'\"{\e}',r"ë")
line = line.replace(r'\"{\i}',r"ï")
line = line.replace(r'\"{\o}',r"ö")
line = line.replace(r'\"{\u}',r"ü")
line = line.replace(r'\"{A}',r"Ä")
line = line.replace(r'\"{E}',r"Ë")
line = line.replace(r'\"{I}',r"Ï")
line = line.replace(r'\"{O}',r"Ö")
line = line.replace(r'\"{U}',r"Ü")
line = line.replace(r'\"A',r"Ä")
line = line.replace(r'\"E',r"Ë")
line = line.replace(r'\"I',r"Ï")
line = line.replace(r'\"O',r"Ö")
line = line.replace(r'\"U',r"Ü")
line = line.replace(r'\"{\a}',r"Ä")
line = line.replace(r'\"{\e}',r"Ë")
line = line.replace(r'\"{\I}',r"Ï")
line = line.replace(r'\"{\O}',r"Ö")
line = line.replace(r'\"{\U}',r"Ü")
line = line.replace(r'{\={a}}',r"ā")
line = line.replace(r'{\={e}}',r"ē")
line = line.replace(r'{\={i}}',r"ī")
line = line.replace(r'{\={o}}',r"ō")
line = line.replace(r'{\={u}}',r"ū")
line = line.replace(r'{\={\a}}',r"ā")
line = line.replace(r'{\={\e}}',r"ē")
line = line.replace(r'{\={\i}}',r"ī")
line = line.replace(r'{\={\o}}',r"ō")
line = line.replace(r'{\={\u}}',r"ū")
line = line.replace(r'{\= a}',r"ā")
line = line.replace(r'{\= e}',r"ē")
line = line.replace(r'{\= i}',r"ī")
line = line.replace(r'{\= o}',r"ō")
line = line.replace(r'{\= u}',r"ū")
line = line.replace(r'{\=a}',r"ā")
line = line.replace(r'{\=e}',r"ē")
line = line.replace(r'{\=i}',r"ī")
line = line.replace(r'{\=o}',r"ō")
line = line.replace(r'{\=u}',r"ū")
line = line.replace(r'{\={A}}',r"Ā")
line = line.replace(r'{\={E}}',r"Ē")
line = line.replace(r'{\={I}}',r"Ī")
line = line.replace(r'{\={O}}',r"Ō")
line = line.replace(r'{\={U}}',r"Ū")
line = line.replace(r'{\={\a}}',r"Ā")
line = line.replace(r'{\={\e}}',r"Ē")
line = line.replace(r'{\={\I}}',r"Ī")
line = line.replace(r'{\={\O}}',r"Ō")
line = line.replace(r'{\={\U}}',r"Ū")
line = line.replace(r'{\= A}',r"Ā")
line = line.replace(r'{\= E}',r"Ē")
line = line.replace(r'{\= I}',r"Ī")
line = line.replace(r'{\= O}',r"Ō")
line = line.replace(r'{\= U}',r"Ū")
line = line.replace(r'{\=A}',r"Ā")
line = line.replace(r'{\=E}',r"Ē")
line = line.replace(r'{\=I}',r"Ī")
line = line.replace(r'{\=O}',r"Ō")
line = line.replace(r'{\=U}',r"Ū")
line = line.replace(r'\={a}',r"ā")
line = line.replace(r'\={e}',r"ē")
line = line.replace(r'\={i}',r"ī")
line = line.replace(r'\={o}',r"ō")
line = line.replace(r'\={u}',r"ū")
line = line.replace(r'\=a',r"ā")
line = line.replace(r'\=e',r"ē")
line = line.replace(r'\=i',r"ī")
line = line.replace(r'\=o',r"ō")
line = line.replace(r'\=u',r"ū")
line = line.replace(r'\={\a}',r"ā")
line = line.replace(r'\={\e}',r"ē")
line = line.replace(r'\={\i}',r"ī")
line = line.replace(r'\={\o}',r"ō")
line = line.replace(r'\={\u}',r"ū")
line = line.replace(r'\={A}',r"Ā")
line = line.replace(r'\={E}',r"Ē")
line = line.replace(r'\={I}',r"Ī")
line = line.replace(r'\={O}',r"Ō")
line = line.replace(r'\={U}',r"Ū")
line = line.replace(r'\=A',r"Ā")
line = line.replace(r'\=E',r"Ē")
line = line.replace(r'\=I',r"Ī")
line = line.replace(r'\=O',r"Ō")
line = line.replace(r'\=U',r"Ū")
line = line.replace(r'\={\a}',r"Ā")
line = line.replace(r'\={\e}',r"Ē")
line = line.replace(r'\={\I}',r"Ī")
line = line.replace(r'\={\O}',r"Ō")
line = line.replace(r'\={\U}',r"Ū")
line = line.replace(r'{\.{a}}',r"ȧ")
line = line.replace(r'{\.{c}}',r"ċ")
line = line.replace(r'{\.{e}}',r"ė")
line = line.replace(r'{\.{g}}',r"ġ")
line = line.replace(r'{\.{o}}',r"ȯ")
line = line.replace(r'{\.{z}}',r"ż")
line = line.replace(r'{\.{\a}}',r"ȧ")
line = line.replace(r'{\.{\c}}',r"ċ")
line = line.replace(r'{\.{\e}}',r"ė")
line = line.replace(r'{\.{\g}}',r"ġ")
line = line.replace(r'{\.{\o}}',r"ȯ")
line = line.replace(r'{\.{\z}}',r"ż")
line = line.replace(r'{\. a}',r"ȧ")
line = line.replace(r'{\. c}',r"ċ")
line = line.replace(r'{\. e}',r"ė")
line = line.replace(r'{\. g}',r"ġ")
line = line.replace(r'{\. o}',r"ȯ")
line = line.replace(r'{\. z}',r"ż")
line = line.replace(r'{\.a}',r"ȧ")
line = line.replace(r'{\.c}',r"ċ")
line = line.replace(r'{\.e}',r"ė")
line = line.replace(r'{\.g}',r"ġ")
line = line.replace(r'{\.o}',r"ȯ")
line = line.replace(r'{\.z}',r"ż")
line = line.replace(r'{\.{A}}',r"Ȧ")
line = line.replace(r'{\.{C}}',r"Ċ")
line = line.replace(r'{\.{E}}',r"Ė")
line = line.replace(r'{\.{G}}',r"Ġ")
line = line.replace(r'{\.{O}}',r"Ȯ")
line = line.replace(r'{\.{Z}}',r"Ż")
line = line.replace(r'{\.{\a}}',r"Ȧ")
line = line.replace(r'{\.{\c}}',r"Ċ")
line = line.replace(r'{\.{\e}}',r"Ė")
line = line.replace(r'{\.{\G}}',r"Ġ")
line = line.replace(r'{\.{\O}}',r"Ȯ")
line = line.replace(r'{\.{\Z}}',r"Ż")
line = line.replace(r'{\. A}',r"Ȧ")
line = line.replace(r'{\. C}',r"Ċ")
line = line.replace(r'{\. E}',r"Ė")
line = line.replace(r'{\. G}',r"Ġ")
line = line.replace(r'{\. O}',r"Ȯ")
line = line.replace(r'{\. Z}',r"Ż")
line = line.replace(r'{\.A}',r"Ȧ")
line = line.replace(r'{\.C}',r"Ċ")
line = line.replace(r'{\.E}',r"Ė")
line = line.replace(r'{\.G}',r"Ġ")
line = line.replace(r'{\.O}',r"Ȯ")
line = line.replace(r'{\.Z}',r"Ż")
line = line.replace(r'\.{a}',r"ȧ")
line = line.replace(r'\.{c}',r"ċ")
line = line.replace(r'\.{e}',r"ė")
line = line.replace(r'\.{g}',r"ġ")
line = line.replace(r'\.{o}',r"ȯ")
line = line.replace(r'\.{z}',r"ż")
line = line.replace(r'\.a',r"ȧ")
line = line.replace(r'\.c',r"ċ")
line = line.replace(r'\.e',r"ė")
line = line.replace(r'\.g',r"ġ")
line = line.replace(r'\.o',r"ȯ")
line = line.replace(r'\.z',r"ż")
line = line.replace(r'\.{\a}',r"ȧ")
line = line.replace(r'\.{\c}',r"ċ")
line = line.replace(r'\.{\e}',r"ė")
line = line.replace(r'\.{\g}',r"ġ")
line = line.replace(r'\.{\o}',r"ȯ")
line = line.replace(r'\.{\z}',r"ż")
line = line.replace(r'\.{A}',r"Ȧ")
line = line.replace(r'\.{C}',r"Ċ")
line = line.replace(r'\.{E}',r"Ė")
line = line.replace(r'\.{G}',r"Ġ")
line = line.replace(r'\.{O}',r"Ȯ")
line = line.replace(r'\.{Z}',r"Ż")
line = line.replace(r'\.A',r"Ȧ")
line = line.replace(r'\.C',r"Ċ")
line = line.replace(r'\.E',r"Ė")
line = line.replace(r'\.G',r"Ġ")
line = line.replace(r'\.O',r"Ȯ")
line = line.replace(r'\.Z',r"Ż")
line = line.replace(r'\.{\a}',r"Ȧ")
line = line.replace(r'\.{\c}',r"Ċ")
line = line.replace(r'\.{\e}',r"Ė")
line = line.replace(r'\.{\G}',r"Ġ")
line = line.replace(r'\.{\O}',r"Ȯ")
line = line.replace(r'\.{\Z}',r"Ż")
line = line.replace(r'{\d{a}}',r"ạ")
line = line.replace(r'{\d{e}}',r"ẹ")
line = line.replace(r'{\d{h}}',r"ḥ")
line = line.replace(r'{\d{i}}',r"ị")
line = line.replace(r'{\d{m}}',r"ṃ")
line = line.replace(r'{\d{n}}',r"ṇ")
line = line.replace(r'{\d{o}}',r"ọ")
line = line.replace(r'{\d{r}}',r"ṛ")
line = line.replace(r'{\d{s}}',r"ṣ")
line = line.replace(r'{\d{u}}',r"ụ")
line = line.replace(r'{\d{\a}}',r"ạ")
line = line.replace(r'{\d{\e}}',r"ẹ")
line = line.replace(r'{\d{\h}}',r"ḥ")
line = line.replace(r'{\d{\i}}',r"ị")
line = line.replace(r'{\d{\m}}',r"ṃ")
line = line.replace(r'{\d{\n}}',r"ṇ")
line = line.replace(r'{\d{\o}}',r"ọ")
line = line.replace(r'{\d{\r}}',r"ṛ")
line = line.replace(r'{\d{\s}}',r"ṣ")
line = line.replace(r'{\d{\u}}',r"ụ")
line = line.replace(r'{\d a}',r"ạ")
line = line.replace(r'{\d e}',r"ẹ")
line = line.replace(r'{\d h}',r"ḥ")
line = line.replace(r'{\d i}',r"ị")
line = line.replace(r'{\d m}',r"ṃ")
line = line.replace(r'{\d n}',r"ṇ")
line = line.replace(r'{\d o}',r"ọ")
line = line.replace(r'{\d r}',r"ṛ")
line = line.replace(r'{\d s}',r"ṣ")
line = line.replace(r'{\d u}',r"ụ")
line = line.replace(r'{\da}',r"ạ")
line = line.replace(r'{\de}',r"ẹ")
line = line.replace(r'{\dh}',r"ḥ")
line = line.replace(r'{\di}',r"ị")
line = line.replace(r'{\dm}',r"ṃ")
line = line.replace(r'{\dn}',r"ṇ")
line = line.replace(r'{\do}',r"ọ")
line = line.replace(r'{\dr}',r"ṛ")
line = line.replace(r'{\ds}',r"ṣ")
line = line.replace(r'{\du}',r"ụ")
line = line.replace(r'{\d{A}}',r"Ạ")
line = line.replace(r'{\d{E}}',r"Ẹ")
line = line.replace(r'{\d{H}}',r"Ḥ")
line = line.replace(r'{\d{I}}',r"Ị")
line = line.replace(r'{\d{M}}',r"Ṃ")
line = line.replace(r'{\d{N}}',r"Ṇ")
line = line.replace(r'{\d{O}}',r"Ọ")
line = line.replace(r'{\d{R}}',r"Ṛ")
line = line.replace(r'{\d{S}}',r"Ṣ")
line = line.replace(r'{\d{U}}',r"Ụ")
line = line.replace(r'{\d{\a}}',r"Ạ")
line = line.replace(r'{\d{\e}}',r"Ẹ")
line = line.replace(r'{\d{\H}}',r"Ḥ")
line = line.replace(r'{\d{\I}}',r"Ị")
line = line.replace(r'{\d{\M}}',r"Ṃ")
line = line.replace(r'{\d{\n}}',r"Ṇ")
line = line.replace(r'{\d{\O}}',r"Ọ")
line = line.replace(r'{\d{\r}}',r"Ṛ")
line = line.replace(r'{\d{\S}}',r"Ṣ")
line = line.replace(r'{\d{\U}}',r"Ụ")
line = line.replace(r'{\d A}',r"Ạ")
line = line.replace(r'{\d E}',r"Ẹ")
line = line.replace(r'{\d H}',r"Ḥ")
line = line.replace(r'{\d I}',r"Ị")
line = line.replace(r'{\d M}',r"Ṃ")
line = line.replace(r'{\d N}',r"Ṇ")
line = line.replace(r'{\d O}',r"Ọ")
line = line.replace(r'{\d R}',r"Ṛ")
line = line.replace(r'{\d S}',r"Ṣ")
line = line.replace(r'{\d U}',r"Ụ")
line = line.replace(r'{\dA}',r"Ạ")
line = line.replace(r'{\dE}',r"Ẹ")
line = line.replace(r'{\dH}',r"Ḥ")
line = line.replace(r'{\dI}',r"Ị")
line = line.replace(r'{\dM}',r"Ṃ")
line = line.replace(r'{\dN}',r"Ṇ")
line = line.replace(r'{\dO}',r"Ọ")
line = line.replace(r'{\dR}',r"Ṛ")
line = line.replace(r'{\dS}',r"Ṣ")
line = line.replace(r'{\dU}',r"Ụ")
line = line.replace(r'\d{a}',r"ạ")
line = line.replace(r'\d{e}',r"ẹ")
line = line.replace(r'\d{h}',r"ḥ")
line = line.replace(r'\d{i}',r"ị")
line = line.replace(r'\d{m}',r"ṃ")
line = line.replace(r'\d{n}',r"ṇ")
line = line.replace(r'\d{o}',r"ọ")
line = line.replace(r'\d{r}',r"ṛ")
line = line.replace(r'\d{s}',r"ṣ")
line = line.replace(r'\d{u}',r"ụ")
line = line.replace(r'\da',r"ạ")
line = line.replace(r'\de',r"ẹ")
line = line.replace(r'\dh',r"ḥ")
line = line.replace(r'\di',r"ị")
line = line.replace(r'\dm',r"ṃ")
line = line.replace(r'\dn',r"ṇ")
line = line.replace(r'\do',r"ọ")
line = line.replace(r'\dr',r"ṛ")
line = line.replace(r'\ds',r"ṣ")
line = line.replace(r'\du',r"ụ")
line = line.replace(r'\d{\a}',r"ạ")
line = line.replace(r'\d{\e}',r"ẹ")
line = line.replace(r'\d{\h}',r"ḥ")
line = line.replace(r'\d{\i}',r"ị")
line = line.replace(r'\d{\m}',r"ṃ")
line = line.replace(r'\d{\n}',r"ṇ")
line = line.replace(r'\d{\o}',r"ọ")
line = line.replace(r'\d{\r}',r"ṛ")
line = line.replace(r'\d{\s}',r"ṣ")
line = line.replace(r'\d{\u}',r"ụ")
line = line.replace(r'\d{A}',r"Ạ")
line = line.replace(r'\d{E}',r"Ẹ")
line = line.replace(r'\d{H}',r"Ḥ")
line = line.replace(r'\d{I}',r"Ị")
line = line.replace(r'\d{M}',r"Ṃ")
line = line.replace(r'\d{N}',r"Ṇ")
line = line.replace(r'\d{O}',r"Ọ")
line = line.replace(r'\d{R}',r"Ṛ")
line = line.replace(r'\d{S}',r"Ṣ")
line = line.replace(r'\d{U}',r"Ụ")
line = line.replace(r'\dA',r"Ạ")
line = line.replace(r'\dE',r"Ẹ")
line = line.replace(r'\dH',r"Ḥ")
line = line.replace(r'\dI',r"Ị")
line = line.replace(r'\dM',r"Ṃ")
line = line.replace(r'\dN',r"Ṇ")
line = line.replace(r'\dO',r"Ọ")
line = line.replace(r'\dR',r"Ṛ")
line = line.replace(r'\dS',r"Ṣ")
line = line.replace(r'\dU',r"Ụ")
line = line.replace(r'\d{\a}',r"Ạ")
line = line.replace(r'\d{\e}',r"Ẹ")
line = line.replace(r'\d{\H}',r"Ḥ")
line = line.replace(r'\d{\I}',r"Ị")
line = line.replace(r'\d{\M}',r"Ṃ")
line = line.replace(r'\d{\n}',r"Ṇ")
line = line.replace(r'\d{\O}',r"Ọ")
line = line.replace(r'\d{\r}',r"Ṛ")
line = line.replace(r'\d{\S}',r"Ṣ")
line = line.replace(r'\d{\U}',r"Ụ")
line = line.replace(r'{\u{a}}',r"ă")
line = line.replace(r'{\u{e}}',r"ĕ")
line = line.replace(r'{\u{g}}',r"ğ")
line = line.replace(r'{\u{i}}',r"ĭ")
line = line.replace(r'{\u{o}}',r"ŏ")
line = line.replace(r'{\u{u}}',r"ŭ")
line = line.replace(r'{\u{\a}}',r"ă")
line = line.replace(r'{\u{\e}}',r"ĕ")
line = line.replace(r'{\u{\g}}',r"ğ")
line = line.replace(r'{\u{\i}}',r"ĭ")
line = line.replace(r'{\u{\o}}',r"ŏ")
line = line.replace(r'{\u{\u}}',r"ŭ")
line = line.replace(r'{\u a}',r"ă")
line = line.replace(r'{\u e}',r"ĕ")
line = line.replace(r'{\u g}',r"ğ")
line = line.replace(r'{\u i}',r"ĭ")
line = line.replace(r'{\u o}',r"ŏ")
line = line.replace(r'{\u u}',r"ŭ")
line = line.replace(r'{\ua}',r"ă")
line = line.replace(r'{\ue}',r"ĕ")
line = line.replace(r'{\ug}',r"ğ")
line = line.replace(r'{\ui}',r"ĭ")
line = line.replace(r'{\uo}',r"ŏ")
line = line.replace(r'{\uu}',r"ŭ")
line = line.replace(r'{\u{A}}',r"Ă")
line = line.replace(r'{\u{E}}',r"Ĕ")
line = line.replace(r'{\u{G}}',r"Ğ")
line = line.replace(r'{\u{I}}',r"Ĭ")
line = line.replace(r'{\u{O}}',r"Ŏ")
line = line.replace(r'{\u{U}}',r"Ŭ")
line = line.replace(r'{\u{\a}}',r"Ă")
line = line.replace(r'{\u{\e}}',r"Ĕ")
line = line.replace(r'{\u{\G}}',r"Ğ")
line = line.replace(r'{\u{\I}}',r"Ĭ")
line = line.replace(r'{\u{\O}}',r"Ŏ")
line = line.replace(r'{\u{\U}}',r"Ŭ")
line = line.replace(r'{\u A}',r"Ă")
line = line.replace(r'{\u E}',r"Ĕ")
line = line.replace(r'{\u G}',r"Ğ")
line = line.replace(r'{\u I}',r"Ĭ")
line = line.replace(r'{\u O}',r"Ŏ")
line = line.replace(r'{\u U}',r"Ŭ")
line = line.replace(r'{\uA}',r"Ă")
line = line.replace(r'{\uE}',r"Ĕ")
line = line.replace(r'{\uG}',r"Ğ")
line = line.replace(r'{\uI}',r"Ĭ")
line = line.replace(r'{\uO}',r"Ŏ")
line = line.replace(r'{\uU}',r"Ŭ")
line = line.replace(r'\u{a}',r"ă")
line = line.replace(r'\u{e}',r"ĕ")
line = line.replace(r'\u{g}',r"ğ")
line = line.replace(r'\u{i}',r"ĭ")
line = line.replace(r'\u{o}',r"ŏ")
line = line.replace(r'\u{u}',r"ŭ")
line = line.replace(r'\ua',r"ă")
line = line.replace(r'\ue',r"ĕ")
line = line.replace(r'\ug',r"ğ")
line = line.replace(r'\ui',r"ĭ")
line = line.replace(r'\uo',r"ŏ")
line = line.replace(r'\uu',r"ŭ")
line = line.replace(r'\u{\a}',r"ă")
line = line.replace(r'\u{\e}',r"ĕ")
line = line.replace(r'\u{\g}',r"ğ")
line = line.replace(r'\u{\i}',r"ĭ")
line = line.replace(r'\u{\o}',r"ŏ")
line = line.replace(r'\u{\u}',r"ŭ")
line = line.replace(r'\u{A}',r"Ă")
line = line.replace(r'\u{E}',r"Ĕ")
line = line.replace(r'\u{G}',r"Ğ")
line = line.replace(r'\u{I}',r"Ĭ")
line = line.replace(r'\u{O}',r"Ŏ")
line = line.replace(r'\u{U}',r"Ŭ")
line = line.replace(r'\uA',r"Ă")
line = line.replace(r'\uE',r"Ĕ")
line = line.replace(r'\uG',r"Ğ")
line = line.replace(r'\uI',r"Ĭ")
line = line.replace(r'\uO',r"Ŏ")
line = line.replace(r'\uU',r"Ŭ")
line = line.replace(r'\u{\a}',r"Ă")
line = line.replace(r'\u{\e}',r"Ĕ")
line = line.replace(r'\u{\G}',r"Ğ")
line = line.replace(r'\u{\I}',r"Ĭ")
line = line.replace(r'\u{\O}',r"Ŏ")
line = line.replace(r'\u{\U}',r"Ŭ")
line = line.replace(r'{\H{o}}',r"ő")
line = line.replace(r'{\H{u}}',r"ű")
line = line.replace(r'{\H{\o}}',r"ő")
line = line.replace(r'{\H{\u}}',r"ű")
line = line.replace(r'{\H o}',r"ő")
line = line.replace(r'{\H u}',r"ű")
line = line.replace(r'{\Ho}',r"ő")
line = line.replace(r'{\Hu}',r"ű")
line = line.replace(r'{\H{O}}',r"Ő")
line = line.replace(r'{\H{U}}',r"Ű")
line = line.replace(r'{\H{\O}}',r"Ő")
line = line.replace(r'{\H{\U}}',r"Ű")
line = line.replace(r'{\H O}',r"Ő")
line = line.replace(r'{\H U}',r"Ű")
line = line.replace(r'{\HO}',r"Ő")
line = line.replace(r'{\HU}',r"Ű")
line = line.replace(r'\H{o}',r"ő")
line = line.replace(r'\H{u}',r"ű")
line = line.replace(r'\Ho',r"ő")
line = line.replace(r'\Hu',r"ű")
line = line.replace(r'\H{\o}',r"ő")
line = line.replace(r'\H{\u}',r"ű")
line = line.replace(r'\H{O}',r"Ő")
line = line.replace(r'\H{U}',r"Ű")
line = line.replace(r'\HO',r"Ő")
line = line.replace(r'\HU',r"Ű")
line = line.replace(r'\H{\O}',r"Ő")
line = line.replace(r'\H{\U}',r"Ű")
line = line.replace(r'a{\v}',r"â")
line = line.replace(r'A{\v}',r"Â")
line = line.replace(r'{\v{a}}',r"ǎ")
line = line.replace(r'{\v{\a}}',r"ǎ")
line = line.replace(r'{\v a}',r"ǎ")
line = line.replace(r'{\va}',r"ǎ")
line = line.replace(r'\v{a}',r"ǎ")
line = line.replace(r'\va',r"ǎ")
line = line.replace(r'\v{\a}',r"ǎ")
line = line.replace(r'{\v{A}}',r"Ǎ")
line = line.replace(r'{\v{\a}}',r"Ǎ")
line = line.replace(r'{\v A}',r"Ǎ")
line = line.replace(r'{\vA}',r"Ǎ")
line = line.replace(r'\v{A}',r"Ǎ")
line = line.replace(r'\vA',r"Ǎ")
line = line.replace(r'\v{\a}',r"Ǎ")
line = line.replace(r'{\v{c}}',r"č")
line = line.replace(r'{\v{\c}}',r"č")
line = line.replace(r'{\v c}',r"č")
line = line.replace(r'{\vc}',r"č")
line = line.replace(r'\v{c}',r"č")
line = line.replace(r'\vc',r"č")
line = line.replace(r'\v{\c}',r"č")
line = line.replace(r'{\v{C}}',r"Č")
line = line.replace(r'{\v{\c}}',r"Č")
line = line.replace(r'{\v C}',r"Č")
line = line.replace(r'{\vC}',r"Č")
line = line.replace(r'\v{C}',r"Č")
line = line.replace(r'\vC',r"Č")
line = line.replace(r'\v{\c}',r"Č")
line = line.replace(r'e{\v}',r"ê")
line = line.replace(r'{\v{e}}',r"ě")
line = line.replace(r'{\v{\e}}',r"ě")
line = line.replace(r'{\v e}',r"ě")
line = line.replace(r'{\ve}',r"ě")
line = line.replace(r'\v{e}',r"ě")
line = line.replace(r'\ve',r"ě")
line = line.replace(r'\v{\e}',r"ě")
line = line.replace(r'E{\v}',r"Ê")
line = line.replace(r'{\v{E}}',r"Ě")
line = line.replace(r'{\v{\e}}',r"Ě")
line = line.replace(r'{\v E}',r"Ě")
line = line.replace(r'{\vE}',r"Ě")
line = line.replace(r'\v{E}',r"Ě")
line = line.replace(r'\vE',r"Ě")
line = line.replace(r'\v{\e}',r"Ě")
line = line.replace(r'{\v{j}}',r"ǰ")
line = line.replace(r'{\v{\j}}',r"ǰ")
line = line.replace(r'{\v j}',r"ǰ")
line = line.replace(r'{\vj}',r"ǰ")
line = line.replace(r'\v{j}',r"ǰ")
line = line.replace(r'\vj',r"ǰ")
line = line.replace(r'\v{\j}',r"ǰ")
line = line.replace(r'{\v{r}}',r"ř")
line = line.replace(r'{\v{\r}}',r"ř")
line = line.replace(r'{\v r}',r"ř")
line = line.replace(r'{\vr}',r"ř")
line = line.replace(r'\v{r}',r"ř")
line = line.replace(r'\vr',r"ř")
line = line.replace(r'\v{\r}',r"ř")
line = line.replace(r'{\v{R}}',r"Ř")
line = line.replace(r'{\v{\r}}',r"Ř")
line = line.replace(r'{\v R}}',r"Ř")
line = line.replace(r'{\vR}}',r"Ř")
line = line.replace(r'\v{R}',r"Ř")
line = line.replace(r'\vR',r"Ř")
line = line.replace(r'\v{\r}',r"Ř")
line = line.replace(r'{\v{s}}',r"š")
line = line.replace(r'{\v{\s}}',r"š")
line = line.replace(r'{\v s}',r"š")
line = line.replace(r'{\vs}',r"š")
line = line.replace(r'\v{s}',r"š")
line = line.replace(r'\vs',r"š")
line = line.replace(r'\v{\s}',r"š")
line = line.replace(r'{\v{S}}',r"Š")
line = line.replace(r'{\v S}',r"Š")
line = line.replace(r'{\vS}',r"Š")
line = line.replace(r'{\v{\S}}',r"Š")
line = line.replace(r'\v{S}',r"Š")
line = line.replace(r'\vS',r"Š")
line = line.replace(r'\v{\S}',r"Š")
line = line.replace(r'{\v{z}}',r"ž")
line = line.replace(r'{\v{\z}}',r"ž")
line = line.replace(r'{\v z}',r"ž")
line = line.replace(r'{\vz}',r"ž")
line = line.replace(r'\v{z}',r"ž")
line = line.replace(r'\vz',r"ž")
line = line.replace(r'\v{\z}',r"ž")
line = line.replace(r'{\v{Z}}',r"Ž")
line = line.replace(r'{\v{\Z}}',r"Ž")
line = line.replace(r'{\v Z}',r"Ž")
line = line.replace(r'{\vZ}',r"Ž")
line = line.replace(r'\v{Z}',r"Ž")
line = line.replace(r'\vZ',r"Ž")
line = line.replace(r'\v{\Z}',r"Ž")
line = line.replace(r'{\c{s}}',r"ş")
line = line.replace(r'{\c{\s}}',r"ş")
line = line.replace(r'{\c s}',r"ş")
line = line.replace(r'\c{s}',r"ş")
line = line.replace(r'\cs',r"ş")
line = line.replace(r'\c{\s}',r"ş")
line = line.replace(r's{\c}',r"ş")
line = line.replace(r's{c}',r"ş")
line = line.replace(r'{\c{S}}',r"Ş")
line = line.replace(r'{\c{\S}}',r"Ş")
line = line.replace(r'{\c S}',r"Ş")
line = line.replace(r'{\cS}',r"Ş")
line = line.replace(r'\c{S}',r"Ş")
line = line.replace(r'\cS',r"Ş")
line = line.replace(r'\c{\S}',r"Ş")
line = line.replace(r'S{\c}',r"Ş")
line = line.replace(r'S{c}',r"Ş")
line = line.replace(r'{\c{e}}',r"ȩ")
line = line.replace(r'{\c{\e}}',r"ȩ")
line = line.replace(r'{\c e}',r"ȩ")
line = line.replace(r'{\ce}',r"ȩ")
line = line.replace(r'\c{e}',r"ȩ")
line = line.replace(r'\ce',r"ȩ")
line = line.replace(r'\c{\e}',r"ȩ")
line = line.replace(r'e{\c}',r"ȩ")
line = line.replace(r'e{c}',r"ȩ")
line = line.replace(r'{\c{E}}',r"Ȩ")
line = line.replace(r'{\c{\e}}',r"Ȩ")
line = line.replace(r'{\c E}',r"Ȩ")
line = line.replace(r'{\cE}',r"Ȩ")
line = line.replace(r'\c{E}',r"Ȩ")
line = line.replace(r'\cE',r"Ȩ")
line = line.replace(r'\c{\e}',r"Ȩ")
line = line.replace(r'E{\c}',r"Ȩ")
line = line.replace(r'E{c}',r"Ȩ")
line = line.replace(r'{\c{c}}',r"ç")
line = line.replace(r'{\c{\c}}',r"ç")
line = line.replace(r'{\c c}',r"ç")
line = line.replace(r'{\cc}',r"ç")
line = line.replace(r'\c{c}',r"ç")
line = line.replace(r'\cc',r"ç")
line = line.replace(r'\c{\c}',r"ç")
line = line.replace(r'c{\c}',r"ç")
line = line.replace(r'c{c}',r"ç")
line = line.replace(r'{\c{C}}',r"Ç")
line = line.replace(r'{\c{\c}}',r"Ç")
line = line.replace(r'{\c C}',r"Ç")
line = line.replace(r'{\cC}',r"Ç")
line = line.replace(r'\c{C}',r"Ç")
line = line.replace(r'\cC',r"Ç")
line = line.replace(r'\c{\c}',r"Ç")
line = line.replace(r'C{\c}',r"Ç")
line = line.replace(r'C{c}',r"Ç")
line = line.replace(r'{\~{a}}',r"ã")
line = line.replace(r'{\~{o}}',r"õ")
line = line.replace(r'{\~{\a}}',r"ã")
line = line.replace(r'{\~{\o}}',r"õ")
line = line.replace(r'{\~ a}',r"ã")
line = line.replace(r'{\~ o}',r"õ")
line = line.replace(r'{\~a}',r"ã")
line = line.replace(r'{\~o}',r"õ")
line = line.replace(r'{\~{A}}',r"Ã")
line = line.replace(r'{\~{O}}',r"Õ")
line = line.replace(r'{\~{\a}}',r"Ã")
line = line.replace(r'{\~{\O}}',r"Õ")
line = line.replace(r'{\~ A}',r"Ã")
line = line.replace(r'{\~ O}',r"Õ")
line = line.replace(r'{\~A}',r"Ã")
line = line.replace(r'{\~O}',r"Õ")
line = line.replace(r'\~{a}',r"ã")
line = line.replace(r'\~{o}',r"õ")
line = line.replace(r'\~a',r"ã")
line = line.replace(r'\~o',r"õ")
line = line.replace(r'\~{\a}',r"ã")
line = line.replace(r'\~{\o}',r"õ")
line = line.replace(r'\~{A}',r"Ã")
line = line.replace(r'\~{O}',r"Õ")
line = line.replace(r'\~A',r"Ã")
line = line.replace(r'\~O',r"Õ")
line = line.replace(r'\~{\a}',r"Ã")
line = line.replace(r'\~{\O}',r"Õ")
line = line.replace(r'{\~{n}}',r"ñ")
line = line.replace(r'{\~{\n}}',r"ñ")
line = line.replace(r'{\~ n}',r"ñ")
line = line.replace(r'{\~n}',r"ñ")
line = line.replace(r'\~{n}',r"ñ")
line = line.replace(r'\~n',r"ñ")
line = line.replace(r'\~{\n}',r"ñ")
line = line.replace(r'{\~{N}}',r"Ñ")
line = line.replace(r'{\~{\n}}',r"Ñ")
line = line.replace(r'{\~ N}',r"Ñ")
line = line.replace(r'{\~N}',r"Ñ")
line = line.replace(r'\~{N}',r"Ñ")
line = line.replace(r'\~N',r"Ñ")
line = line.replace(r'\~{\n}',r"Ñ")
line = line.replace(r'{\aa}',r"å")
line = line.replace(r'\aa',r"å")
line = line.replace(r'{\aA}',r"Å")
line = line.replace(r'\aA',r"Å")
line = line.replace(r'{\r{a}}',r"å")
line = line.replace(r'{\r{\a}}',r"å")
line = line.replace(r'{\r a}',r"å")
line = line.replace(r'{\ra}',r"å")
line = line.replace(r'\r{a}',r"å")
line = line.replace(r'\ra',r"å")
line = line.replace(r'\r{\a}',r"å")
line = line.replace(r'{\r{A}}',r"Å")
line = line.replace(r'{\r{\a}}',r"Å")
line = line.replace(r'{\r A}',r"Å")
line = line.replace(r'{\rA}',r"Å")
line = line.replace(r'\r{A}',r"Å")
line = line.replace(r'\rA',r"Å")
line = line.replace(r'\r{\a}',r"Å")
line = line.replace(r'{\r{u}}',r"ů")
line = line.replace(r'{\r{\u}}',r"ů")
line = line.replace(r'{\r u}',r"ů")
line = line.replace(r'{\ru}',r"ů")
line = line.replace(r'\r{u}',r"ů")
line = line.replace(r'\ru',r"ů")
line = line.replace(r'\r{\u}',r"ů")
line = line.replace(r'{\r{U}}',r"Ů")
line = line.replace(r'{\r{\U}}',r"Ů")
line = line.replace(r'{\r U}',r"Ů")
line = line.replace(r'{\rU}',r"Ů")
line = line.replace(r'\r{U}',r"Ů")
line = line.replace(r'\rU',r"Ů")
line = line.replace(r'\r{\U}',r"Ů")
line = line.replace(r'{\ae}',r"æ")
line = line.replace(r'\ae',r"æ")
line = line.replace(r'{\aE}',r"Æ")
line = line.replace(r'\aE',r"Æ")
line = line.replace(r'{\oe}',r"œ")
line = line.replace(r'\oe',r"œ")
line = line.replace(r'{\OE}',r"Œ")
line = line.replace(r'\OE',r"Œ")
line = line.replace(r'{\o}',r"ø")
line = line.replace(r'\o',r"ø")
line = line.replace(r'\o{}',r"ø")
line = line.replace(r'{\O}',r"Ø")
line = line.replace(r'\O',r"Ø")
line = line.replace(r'\O{}',r"Ø")
line = line.replace(r'{\ss}',r"ß")
line = line.replace(r'\ss',r"ß")
line = line.replace(r'{\l}',r"ł")
line = line.replace(r'\l',r"ł")
line = line.replace(r'{\L}',r"Ł")
line = line.replace(r'\L',r"Ł")
line = line.replace(r'{\i}',r"ı")
line = line.replace(r'\i',r"ı")
line = line.replace(r'{\textquotesingle}',r"'")
line = line.replace(r'\textquotesingle',r"'")
line = line.replace(r'{\textendash}',r"–")
line = line.replace(r'\textendash',r"–")
line = line.replace(r'{\textemdash}',r"—")
line = line.replace(r'\textemdash',r"—")
line = line.replace(r'{\textgreater}',r">")
line = line.replace(r'\textgreater',r">")
line = line.replace(r'{\textless}',r"<")
line = line.replace(r'\textless',r"<")
line = line.replace(r'{\textquoteright}',r"'")
line = line.replace(r'\textquoteright',r"'")
line = line.replace(r'{\textquoteleft}',r"'")
line = line.replace(r'\textquoteleft',r"'")
line = line.replace(r'{\textquotedblright}',r'"')
line = line.replace(r'\textquotedblright',r'"')
line = line.replace(r'{\textquotedblleft}',r'"')
line = line.replace(r'\textquotedblleft',r'"')
print(line, end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment