On 30-04-2010 10:22, Peter Dyballa wrote:
But I think it is a flaw.
Which proof do you have?
Are you requesting a proof of an opinion? That's rather strange, but I
will do my best.
Please consider again this file:
\documentclass[10pt,a4paper]{book}
\usepackage[frenchb]{babel}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\begin{document}
\frontmatter
\tableofcontents
\XeTeXinputencoding "cp1252"
\XeTeXdefaultencoding "cp1252"
\mainmatter\setcounter{secnumdepth}{2}
\chapter{Général de Gaulle}
Il était français.
\end{document}
When the \tableofcontents command is found, the line
\XeTeXinputencoding "cp1252"
was not read yet. Therefore, it seems to me (since XeTeX is
unicode-based) that the file .toc is in unicode and therefore that
XeLaTeX should have no problem with it.
Best regards,
Jose Carlos Santos
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex