[OS X TeX] [Beginner] unicode support
Peter Dyballa
Peter_Dyballa at Web.DE
Tue Apr 12 05:08:10 EDT 2005
Am 12.04.2005 um 00:43 schrieb Marek Stepanek:
> But I will give a try tomorrow to XeTeX. First surprise : i-Installer
> does
> not list XeTeX anywhere !!! So the next nightmare starts :-( I will
> try to
> install it from the XeTeX-image.
It does! Known Packages i-Directory --> select Jonathan Kew's
i-Directory @ SIL
Your test case still is not OK:
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 Ô
ªø\documentclass[paper=a4]{scrlttr2}‚Ä®\usepackage{ngerman}‚Ä®\usepacka.
..
BBEdit, or you, makes gross mistakes. In *EVERY* encoding the LaTeX
code just has to be:
\documentclass[paper=a4]{scrlttr2}
\usepackage{ngerman}
\usepacka...
Basta!
When I pdflatex your file (I copied your test case into an UTF-8 text
buffer in GNU Emacs) I get, either I add ``\usepackage{lmodern}´´ to
define a modern PostScript based Computern Modern substituting font, or
not:
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./Stepanek.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for british, french, ngerman,
nohyphenat
ion, loaded.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/koma-script/scrlttr2.cls
Document Class: scrlttr2 2004/09/16 v2.9t LaTeX2e KOMA document class
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2004/09/16 v2.9t LaTeX2e KOMA package
Copyright (C) Markus Kohm
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size12.clo)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/koma-script/typearea.sty
Package typearea, 2004/09/16 v2.9t LaTeX2e KOMA package
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-2002
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/koma-script/DIN.lco))
(/usr/local/teTeX/share/texmf.tetex/tex/generic/german/ngerman.sty
v2.5e 1998-07-08)
(/usr/local/teTeX/share/texmf.gwtex/tex/latex/ucs/ucs.sty
(/usr/local/teTeX/share/texmf.gwtex/tex/latex/ucs/data/uni-global.def))
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/inputenc.sty
(/usr/local/teTeX/share/texmf.tetex/tex/latex/t2/utf-8.def
(/usr/local/teTeX/share/texmf.tetex/tex/latex/t2/utfcyr.def
! Missing number, treated as zero.
<to be read again>
\errhelp
l.4 \UnicodeCharacter{x0300}{\`}
?
! ngerman: The command "\else is undefined.
\grmn at dq@error ...and \dq \string #1 is undefined}
l.4 \UnicodeCharacter{x0300}{\`}
?
They point to an incompatability of ngerman and ucs, so I commented the
use of ngerman and got a new log output:
Class scrlttr2 Warning: \language is 0, \languagename is
`nohyphenation'
(scrlttr2) but \datenohyphenation not defined!
(scrlttr2) This seems to be a bug at you're `hyphen.cfg'.
(scrlttr2) I'l undefine \languagename to avoid errors.
Class scrlttr2 Warning: \languagename not defined, using \language.
(scrlttr2) This may result in use of wrong language!
(scrlttr2) You should use a compatible language package
(scrlttr2) (e.g. `Babel', `german', `ngerman', ...).
(/usr/local/teTeX/share/texmf.gwtex/tex/latex/ucs/ucsencs.def)
Foldmarks: yes
Head of first page
Foot of first page
Address (backaddress, addressee)
LaTeX Font Warning: Font shape `OT1/lmss/m/n' undefined
(Font) using `OT1/cmr/m/n' instead on input line 28.
Underfull \hbox (badness 10000) in paragraph at lines 28--28
Underfull \hbox (badness 10000) in paragraph at lines 28--28
Underfull \hbox (badness 10000) in paragraph at lines 28--28
Underfull \hbox (badness 10000) in paragraph at lines 28--28
Location field: empty
Reference line: only place and date
Title: no
Subject: before opening
LaTeX Font Warning: Font shape `OT1/lmr/bx/n' undefined
(Font) using `OT1/lmr/m/n' instead on input line 28.
! Undefined control sequence.
\U2У ->\CYRU
l.39 Authority - PУ
ВД 645
?
! Undefined control sequence.
\U2В ->\CYRV
l.39 Authority - PУВ
Д 645
+ many others of that kind
In the end I got a PDF file without Cyrillic glyphs. Certainly because
I've chosen the wrong font (without lmodern, i.e. Computer Modern then,
the same). There are some KOMA related errors for me.
My final advice is to create a new file and copy its contents from the
copy of your eMail to OS X TeX list. You *do* have to get rid of the
erroneous UTF-8 characters sprayed into your text! To do so open
TeXShop once and go into its preferences (Einstellungen) and set Coding
to UTF-8. Then quit and re-launch TeXShop. Now copy&paste your example
from Mail. This one worked for me. I don't know whether
Microsoft-Entourage/11.1.0.040913 works at all ...
I'm a bit busy today, I'll have some more time at home in the evening!
--
Mit friedvollen Grüßen
Pete
Got Mole problems?
Call Avogadro 6.02 x 10^23
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list