On Thursday 16 March 2006 12:14, Agustin Martin wrote: > When ispell reads a .tex file both deformatter and charset are set to tex > giving the behavior described in #61956. To deal with this you just need to > explicitely specify the charset, e.g., for spanish > > $ ispell -dspanish -Tlatin1 test.tex > > works as expected. For italian or french something like > > $ ispell -ditalian -Tlist test.tex > > should work. > > David, I am merging both bugreports and bcc'ing original submitters. I > think this is rather a feature than a bug, and both bugreports can probably > be closed, but better waiting for feedback from submitters.
I now see how this paragraph from the manpage: The -T option is used to specify a default formatter type for use in generating string characters. This switch overrides the default type determined from the file name. The type argument may be either one of the unique names defined in the language affix file (e.g., nroff) or a file suffix including the dot (e.g., .tex). together with your examples can be read this way. Using the minimal testcase: -- latin1.tex ------------------------------------------- \section{Sch\0366heit} \section{Sch"onheit} --------------------------------------------------------- which uses a latin1 umlaut-o and the equally legal "o LaTeX encoded/escaped umlaut-o, -Ttex and -Tlatin1 fail on the first and second line respectively. As a first workaround, please add the word "charset" to the description of -T like this: -T type Assume a given formatter or charset for all files. and The -T option is used to specify a default formatter type for use in generating string characters. This switch overrides the default type determined from the file name. The type argument may be either one of the unique names defined in the language affix file (e.g., nroff), a file suffix including the dot (e.g., .tex) or a character set (e.g., latin1). I'd expect similar problems with HTML (which can contain various encodings too). A real fix would be to separate charset handling and formatting completely or to extend the tex formatter to recognise the \usepackage[charset]{inputenc} declaration. Regards, David -- - hallo... wie gehts heute? - *hust* gut *rotz* *keuch* - gott sei dank kommunizieren wir über ein septisches medium ;) -- Matthias Leeb, Uni f. angewandte Kunst, 2005-02-15