Received: from mail.proteosys.com ([62.225.9.49]) by nummer-3.proteosys with Microsoft SMTPSVC(5.0.2195.5329); Thu, 9 Jan 2003 21:29:30 +0100 Received: by mail.proteosys.com (8.12.2/8.12.2) with ESMTP id h09KTR6C025862 for ; Thu, 9 Jan 2003 21:29:28 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.27]) by relay2.uni-heidelberg.de (8.12.4/8.12.4) with ESMTP id h09KNiwO011175; Thu, 9 Jan 2003 21:23:45 +0100 (MET) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2B81D.CFD1F100" Received: from listserv (listserv.uni-heidelberg.de [129.206.100.27]) by listserv.uni-heidelberg.de (8.12.2/8.12.2/SuSE Linux 0.6) with ESMTP id h090ugrM003608; Thu, 9 Jan 2003 21:16:22 +0100 Received: from LISTSERV.UNI-HEIDELBERG.DE by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8d) with spool id 6288 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 9 Jan 2003 21:16:22 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.12.2/8.12.2/SuSE Linux 0.6) with ESMTP id h09KGMTk011354 for ; Thu, 9 Jan 2003 21:16:22 +0100 Received: from mail.umu.se (mail.umu.se [130.239.8.30]) by relay.uni-heidelberg.de (8.12.4/8.12.4) with ESMTP id h09KMuEV022145 for ; Thu, 9 Jan 2003 21:22:57 +0100 (MET) Received: from [130.239.20.144] (mac144.math.umu.se [130.239.20.144]) by mail.umu.se (8.12.4/8.12.4) with ESMTP id h09KMvwH059229 for ; Thu, 9 Jan 2003 21:22:57 +0100 (MET) In-Reply-To: <15899.14827.804209.458595@istrati.mittelbach-online.de> References: <200212031601.gB3G11cQ009558@sun.dante.de> <200212031601.gB3G11cQ009558@sun.dante.de> Return-Path: X-OriginalArrivalTime: 09 Jan 2003 20:29:30.0119 (UTC) FILETIME=[CFE41970:01C2B81D] X-Sender: lars@abel.math.umu.se x-mime-autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id h09KGMTk011355 X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang) X-Spam-Score: -1.3 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 Content-class: urn:content-classes:message Subject: Re: latex/3480: Support for UTF-8 missing in inputenc.sty Date: Thu, 9 Jan 2003 21:22:57 +0100 Message-ID: A X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: latex/3480: Support for UTF-8 missing in inputenc.sty Thread-Index: AcK4HdAH+/cOaHU0R66WHmNgUCX7sg== From: =?iso-8859-1?Q?Lars_Hellstr=F6m?= To: Reply-To: "Mailing list for the LaTeX3 project" Status: R X-Status: X-Keywords: X-UID: 4429 This is a multi-part message in MIME format. ------_=_NextPart_001_01C2B81D.CFD1F100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable At 21.34 +0100 2003-01-07, Frank Mittelbach wrote: >following up on the discussion concering utf-8 support for LaTeX, below = is a >package written to provide that support within the inputenc framework. > >it is not complete, nor are its tables set up finally, we would need = some >volunteers to help us here. > >but first i would like to hear comments/suggestions on the approach I like it -- it's a nice compromise between practical usefulness and the ideal that input and output encodings should be independent. >% \begin{macrocode} >\gdef\DeclareUnicodeCharacter#1#2{% > \count@"#1\relax > \typeout{ \space\space defining Unicode char #1 (decimal = \the\count@)}% That should probably be better as \typeout{ \space\space defining Unicode char U+#1 (decimal = \the\count@)}% >% >% \end{macrocode} >% The following definitions are in the encoding file but have no >% direct equivalent in Unicode or simply do not make sense in that >% context (or I couldn't find anything or \ldots :-). >%\begin{verbatim} >%\DeclareTextSymbol{\j}{OT1}{17} >%\DeclareTextSymbol{\SS}{T1}{223} >%\DeclareTextSymbol{\textcompwordmark}{T1}{23} I would say that the compwordmark is U+200C (ZERO WIDTH NON-JOINER); = that character is for example supposed to prevent ligaturing between = characters. Adobe has assigned dotlessj to U+F6BE (LATIN SMALL LETTER DOTLESS J), = but that is inofficial (and thus not universal) as it resides in the private use area. U+00DF (LATIN SMALL LETTER SHARP S) is uppercased as SS (two U+0053), so there probably isn't any \SS. >% But the following (and some others) might actually lurk in Unicode >% somewhere\ldots >%\begin{verbatim} >%\DeclareTextSymbol{\textasteriskcentered}{OMS}{3} % "03 How about U+2217 (ASTERISK OPERATOR)? OTOH, \textasteriskcentered is probably a glyphic variation on the = normal asterisk rather than a separate character. >%\DeclareTextCommand{\textcircled}{OMS} U+24B6 (CIRCLED LATIN CAPITAL LETTER A) is decribed as being = approximately " A", where "" means "something expressed by a higher = level protocol" (such as LaTeX). Hence I don't think there is a character for this. Lars Hellstr=F6m ------_=_NextPart_001_01C2B81D.CFD1F100 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: latex/3480: Support for UTF-8 missing in = inputenc.sty

At 21.34 +0100 2003-01-07, Frank Mittelbach = wrote:
>following up on the discussion concering utf-8 = support for LaTeX, below is a
>package written to provide that support within = the inputenc framework.
>
>it is not complete, nor are its tables set up = finally, we would need some
>volunteers to help us here.
>
>but first i would like to hear = comments/suggestions on the approach

I like it -- it's a nice compromise between practical = usefulness and the
ideal that input and output encodings should be = independent.

>%    \begin{macrocode}
>\gdef\DeclareUnicodeCharacter#1#2{%
>   \count@"#1\relax
>   \typeout{ \space\space defining = Unicode char #1 (decimal \the\count@)}%

That should probably be better as

  \typeout{ \space\space defining Unicode char = U+#1 (decimal \the\count@)}%



>%</t1>
>%    \end{macrocode}
>%    The following definitions are = in the encoding file but have no
>%    direct equivalent in Unicode = or simply do not make sense in that
>%    context (or I couldn't find = anything or \ldots :-).
>%\begin{verbatim}
>%\DeclareTextSymbol{\j}{OT1}{17}
>%\DeclareTextSymbol{\SS}{T1}{223}
>%\DeclareTextSymbol{\textcompwordmark}{T1}{23}

I would say that the compwordmark is U+200C (ZERO = WIDTH NON-JOINER); that
character is for example supposed to prevent = ligaturing between characters.
Adobe has assigned dotlessj to U+F6BE (LATIN SMALL = LETTER DOTLESS J), but
that is inofficial (and thus not universal) as it = resides in the private
use area. U+00DF (LATIN SMALL LETTER SHARP S) is = uppercased as SS (two
U+0053), so there probably isn't any \SS.

>% But the following (and some others) might = actually lurk in Unicode
>%    somewhere\ldots
>%\begin{verbatim}
>%\DeclareTextSymbol{\textasteriskcentered}{OMS}{3} &nbs= p; % "03

How about U+2217 (ASTERISK OPERATOR)?
OTOH, \textasteriskcentered is probably a glyphic = variation on the normal
asterisk rather than a separate character.

>%\DeclareTextCommand{\textcircled}{OMS}

U+24B6 (CIRCLED LATIN CAPITAL LETTER A) is decribed as = being approximately
"<circle> A", where = "<circle>" means "something expressed by a higher = level
protocol" (such as LaTeX). Hence I don't think = there is a character for
this.

Lars Hellstr=F6m

------_=_NextPart_001_01C2B81D.CFD1F100--