[OS X TeX] Re: TeXShop 3 and text encoding on Lion - serious problems

Sebastian Nascimento tiaonasc at brturbo.com.br
Tue Sep 13 05:35:23 CEST 2011


I have observed that the line \usepackage[portuguese]{babel} typesets well, but \usepackage[latin1]{inputenc} or \usepackage[applemac]{inputenc}
even recognize the edited latin characters when typeset.
Please, can someone help me?
regards,
Sebastian Nascimento



On Sep 12, 2011, at 4:00 PM, <macosx-tex-request at email.esm.psu.edu> <macosx-tex-request at email.esm.psu.edu> wrote:

> Send MacOSX-TeX mailing list submissions to
> 	macosx-tex at email.esm.psu.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> or, via email, send a message with subject or body 'help' to
> 	macosx-tex-request at email.esm.psu.edu
> 
> You can reach the person managing the list at
> 	macosx-tex-owner at email.esm.psu.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MacOSX-TeX digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: TeXShop 3 and text encoding on Lion - serious problems
>      (Ross Moore)
>   2. Re: TS 3.06 crash on Lion (Themis Matsoukas)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 12 Sep 2011 06:34:20 +1000
> From: Ross Moore <ross.moore at mq.edu.au>
> Subject: Re: [OS X TeX] TeXShop 3 and text encoding on Lion - serious
> 	problems
> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
> Message-ID: <933F9130-9D79-4280-A2E9-B5D30C311BB3 at mq.edu.au>
> Content-Type: text/plain;	charset=utf-8
> 
> Hello Luis,
> 
> On 11/09/2011, at 8:39 PM, Luis Sequeira <lfsequeira at gmail.com> wrote:
> 
>> I am experiencing serious issues with TeXShop and text encodings in Lion. 
>> 
>> My wife sent me a tex file written using the mac roman encoding. I opened it, selecting the encoding, as usual, from the dropdown menu in the open dialog. 
>> The accented characters don't appear. The file typesets correctly - using \usepackage[applemac]{inputenc} - which confirms that the file itself is not corrupted and is using the right encoding.
> 
> The file is just a byte stream, and the  \usepackage[applemac]{inputenc}  tells LaTeX how to deal with the characters outside the ASCII range.
> 
>> Making changes to the file causes havoc, as would be expected - now new accented characters that are input show up correctly in the source but not in the pdf - suggesting that TeXShop is using a different encoding than it is was supposed to.
> 
> No. Adding new accented characters to this file is a really bad idea.
> I do not believe that the file encoding tells your Mac software to translate bytes to a different encoding upon input; maybe it does for UTF8 or UTF16, but certainly not for other legacy encodings. 
> 
>> 
>> I then converted the file to utf8 (using Smultron) and replaced applemac by utf8 (\usepackage[utf8]{inputenc}) - and again opened the file from the open dialog, selecting utf8 encoding.
> 
> Is this the original file, or with the extra typed characters?
> Personally, I would look at the converted file with a command-line editor, such as vi , to see whether the bytes have really been converted correctly. The physical file size should have increased slightly, as UTF8 requires a byte sequence for each non-ASCII character.
> 
>> In this encoding the accented characters still did not display correctly, but still the file typeset ok.
> 
> Display correctly in which software? TeXshop's editor?
> What does it look like in other Mac editing software, such as TextEdit?
> Maybe there is a memory of the old encoding.
> Did you change the file's name for the new encoding?
> 
>> 
>> Both versions of the file (using macroman or unicode) display and typeset correctly in TeXShop 2 on Leopard.
>> 
>> I think this is a serious bug in TeXShop in Lion (I am using 3.04, but the same problem occurs in 2.29 in Lion). 
>> Smultron in Lion (although an old version from 2009) has no problem handling the files. TeXShop 2 in Leopard also has no problem. The same flle displays and typesets perfectly in my wife's iBook.
> 
> That is disturbing, that newer software is not doing the same as in older versions.
> I'd guess that the change is in more recent Apple libraries, perhaps dropping some aspects of the support for really old methods.
> 
> What happens if you take your wife's file and convert to UTF8 using iconv on the command-line, before ever opening it in any window-based program?
> I'd expect that now everything will look right in all programs. (touchwood)
> 
>> 
>> For now this makes working with accented characters (which are abundant in my language, Portuguese) a nuisance. I am reverting to writing stuff like \'a for á for the first time in years.
> 
> Knuth's original methods show their value!
> 
>> 
>> Luis Sequeira
> 
> Hope this helps,
> 
>       Ross
> 
> ------------------------------
> 
> Message: 2
> Date: Sun, 11 Sep 2011 17:00:37 -0400
> From: Themis Matsoukas <tmatsoukas at me.com>
> Subject: Re: [OS X TeX] TS 3.06 crash on Lion
> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
> Message-ID: <42CD3FCD-5298-47DA-BE10-2C477CDA5994 at me.com>
> Content-Type: text/plain; CHARSET=US-ASCII
> 
> On Sep 11, 2011, at 11:23 AM, Yusuke TERADA wrote:
> 
>> I was able to reproduce this issue.
>> I investigated the cause, and it turned out that this issue is caused from lack of the definition of fileNameExtensionForType:saveOperation: in TSDocument.m.
>> By inserting the definition, this issue seemed to be solved.
>> 
>> Here is the modified TeXShop binary: http://dl.dropbox.com/u/5807100/TeXShop3.06Terada.dmg
>> 
>> And the modified source: http://dl.dropbox.com/u/5807100/TSDocument.m
>> 
>> Please test this. 
> 
> Thanks - the modified version has fixed this problem.
> 
> I appreciate the quick response -there should be a donate button on TS's homepage.
> 
> Themis
> 
> 
> 
> ------------------------------
> 
> 
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> 
> 
> 
> End of MacOSX-TeX Digest, Vol 47, Issue 9
> *****************************************



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20110913/db7a0049/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.tiff
Type: image/tiff
Size: 187038 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20110913/db7a0049/attachment.tiff>


More information about the macostex-archives mailing list