I typeset my work with pdflatex and UTF-8 input files with lots of Unicode characters. Most of them work with a simple \usepackage[utf8]{inputenc} in my preamble, and for the others I simply maintain a long list of \DeclareUnicodeCharacter.
However, I often paste into my LaTeX files some text that has combining accents (that results from Mac OS X’s copy/paste mechanism). I have to normalize that text, because combining accents don’t work out of the box. How could I manage to make them work? (once and for all, e.g. by adding good definitions near my big list of Unicode characters)
Minimal self-contained example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
Élève
Élève
\end{document}
where the text with accents is:
U+00C9 É LATIN CAPITAL LETTER E WITH ACUTE
U+006C l LATIN SMALL LETTER L
U+00E8 è LATIN SMALL LETTER E WITH GRAVE
U+0076 v LATIN SMALL LETTER V
U+0065 e LATIN SMALL LETTER E
U+000A NEWLINE
U+0045 E LATIN CAPITAL LETTER E
U+0301 ́ COMBINING ACUTE ACCENT
U+006C l LATIN SMALL LETTER L
U+0065 e LATIN SMALL LETTER E
U+0300 ̀ COMBINING GRAVE ACCENT
U+0076 v LATIN SMALL LETTER V
U+0065 e LATIN SMALL LETTER E
newunicode– Marco Daniel Oct 27 '12 at 19:58newunicodechar) I think it's only a convenience macro over\DeclareUnicodeCharacter, which can take one codepoint, but not a series of two codepoints. I tried, and it complains:Package newunicodechar Error: Invalid argument. – F'x Oct 27 '12 at 20:01E + combining grave accent. If the order where reversed, it would be trivial (just make the combining grave be\'). – F'x Oct 27 '12 at 20:13