combine unicode combining characters (#7356)

This commit is contained in:
Frédéric Péters 2015-05-26 15:55:45 +02:00
parent 5f51402243
commit b4def397b3
1 changed files with 13 additions and 0 deletions

View File

@ -301,6 +301,19 @@ def convertLegi2Tex(input, outputFileName, annexes, d, draft=0, toc=True,
(u'“', u'\guillemotleft'), (u'\u201C', u'«'),
(u'”', u'\guillemotright'), (u'\u201D', u'»'),
(u'‑', u'-'), (u'\u2011', u'-'),
(u'a\u0300', u'à'),
(u'e\u0300', u'è'),
(u'u\u0300', u'ù'),
(u'e\u0301', u'é'),
(u'a\u0302', u'â'),
(u'e\u0302', u'ê'),
(u'i\u0302', u'î'),
(u'o\u0302', u'ô'),
(u'u\u0302', u'û'),
(u'e\u0308', u'ë'),
(u'i\u0308', u'ï'),
(u'i\u0308', u'ü'),
(u'c\u0327', u'ç'),
(u'TABELLIO--', u'\hyp{}'),]:
doc = doc.replace(before, after)