summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/inputenc.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-08-27 18:16:22 +0000
committerKarl Berry <karl@freefriends.org>2006-08-27 18:16:22 +0000
commit4ab3220f33f1983f5aff7b7253ad229e44c952fe (patch)
treec9d2408cfe8c113537c0031bc7e50bda98a262dc /Master/texmf-dist/source/latex/base/inputenc.dtx
parent6e05e1819838930d7f7e4eb36620d2994a45b97b (diff)
latex core update from latex-tds (27aug06)
git-svn-id: svn://tug.org/texlive/trunk@2043 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/base/inputenc.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/inputenc.dtx359
1 files changed, 237 insertions, 122 deletions
diff --git a/Master/texmf-dist/source/latex/base/inputenc.dtx b/Master/texmf-dist/source/latex/base/inputenc.dtx
index 2ebd81f6288..3fc18039b06 100644
--- a/Master/texmf-dist/source/latex/base/inputenc.dtx
+++ b/Master/texmf-dist/source/latex/base/inputenc.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
+% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
@@ -8,12 +8,12 @@
% -------------------------------------------
%
% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
+% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
%
% This file has the LPPL maintenance status "maintained".
%
@@ -46,7 +46,7 @@
%</driver>
% \fi
%
-% \CheckSum{3415}
+% \CheckSum{3463}
%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -138,6 +138,8 @@
% THIS MAY CHANGE}
% \changes{v0.95}{1997/12/20}{Updated documentation}
% \changes{v0.97}{1998/03/05}{Spanish ords changed to text chars, pr/2579}
+% \changes{v1.1b}{2006/03/04}{Number of normalisations in the LICR
+% representation (pr/3849)}
%
%
% \section{Introduction}
@@ -187,6 +189,9 @@
% \texttt{cp1252,ansinew} the latter only used for the provides
% file line.} for |cp1252|).
% \end{itemize}
+% See also the file \texttt{utf8ienc.dtx} that provides UTF8 support using the
+% \textsf{inputenc} package interface.
+%
% Each encoding has an associated |.def| file, for example
% |latin1.def| which defines the behaviour of each input character,
% using the commands:
@@ -223,6 +228,31 @@
% See the documentation in |fntguide.tex| and |ltoutenc.dtx| for
% details of how to declare text commands.
%
+% \subsection{Programmers interface}
+%
+% To better support packages that manage their own character mappings and
+% therefore have to react to input encoding changes, the following three
+% commands have been added in version 1.1a:
+%
+% \DescribeMacro\inputencodingname This command stores the name of the current
+% input encoding.
+%
+% \DescribeMacro\inpenc@prehook
+% \DescribeMacro\inpenc@posthook These two are token registers that are
+% executed whenever an |\inputencoding| change happens. The first is executed at
+% the very beginning, i.e., with |\inputencodingname| still pointing to the
+% encoding name currently in place while the second one is executed at the very
+% end, i.e., when |\inputencoding| has build a new mapping.
+%
+% Packages making use of this new features should consider including the
+% following line
+%\begin{verbatim}
+% \NeedsTeXFormat{LaTeX2e}[2005/12/01]
+%\end{verbatim}
+% as these commands haven't been available in \textsf{inputenc} distributed
+% with older releases of \LaTeX{}.
+%
+
% \StopEventually{}
%
% \section{Announcing the files}
@@ -252,7 +282,7 @@
%<ansinew> \ProvidesFile{ansinew.def}
%<cp1252&!ansinew> \ProvidesFile{cp1252.def}
%<cp1250> \ProvidesFile{cp1250.def}
- [2004/02/05 v1.0d Input encoding file]
+ [2006/05/05 v1.1b Input encoding file]
%<cp850>%%
%<cp850>%% If you need a euro symbol, try cp858 instead.
%<cp850>%%
@@ -390,6 +420,12 @@
%
% \begin{macrocode}
\def\inputencoding#1{%
+% \end{macrocode}
+% We start with a hook to be executed before the encoding change
+% happens.
+% \changes{v1.1a}{2006/02/22}{Added \cs{inpenc@prehook}}
+% \begin{macrocode}
+ \the\inpenc@prehook
\gdef\@inpenc@test{\global\let\@inpenc@test\relax}%
% \end{macrocode}
% Keyboard characters which don't get a definition will be mapped to
@@ -407,6 +443,13 @@
% |\CurrentOption| in which case a later use would return incorrect
% information (at best nothing).
%
+% For external lookup by other packages we also store the new encoding name
+% in a user accessible macro.
+% \changes{v1.1a}{2006/02/22}{Added \cs{inputencodingname}}
+% \begin{macrocode}
+ \edef\inputencodingname{#1}%
+% \end{macrocode}
+%
% Now we make all potential input characters active.
% \changes{v0.994}{2000/01/27}{Allow change also in horizontal mode
% (pr/2888)}
@@ -421,11 +464,13 @@
% we need to ensure that we don't get any stray spaces into the
% horizontal mode or else we end up with extra space in the
% paragraph.
-% \changes{v0.998}{2001/05/25}{suppress all spaces for horizontal mode
+% \changes{v0.998}{2001/05/25}{Suppress all spaces for horizontal mode
% (pr/3273)}
+% \changes{v1.0f}{2004/05/06}{Really do (pr/3273)}
% \begin{macrocode}
\advance\endlinechar\@M
\xdef\saved@space@catcode{\the\catcode`\ }%
+ \catcode`\ 9\relax
\input{#1.def}%
\advance\endlinechar-\@M
\catcode`\ \saved@space@catcode\relax
@@ -439,11 +484,30 @@
{No characters defined\MessageBreak
by input encoding change to `#1'\MessageBreak}%
\fi
+% \end{macrocode}
+% We finish with a hook to be executed after the encoding change
+% happens.
+% \changes{v1.1a}{2006/02/22}{Added \cs{inpenc@posthook}}
+% \begin{macrocode}
+ \the\inpenc@posthook
}
% \end{macrocode}
% \end{macro}
%
%
+% \begin{macro}{\inpenc@prehook}
+% \changes{v1.1a}{2006/02/22}{Hook added}
+% \begin{macro}{\inpenc@posthook}
+% \changes{v1.1a}{2006/02/22}{Hook added}
+% Two hooks to be executed before and after an encoding changes happened.
+% \begin{macrocode}
+\newtoks\inpenc@prehook
+\newtoks\inpenc@posthook
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%
% \begin{macro}{\@inpenc@undefined@}
% This command will assigned to any active character unless it
% get a proper definition by the encoding. The argument is the
@@ -542,15 +606,15 @@
%<*cp850|cp858|cp852|cp865|cp437|cp437de|applemac|cp1252|cp1250|cp1257|next>
\ProvideTextCommandDefault{\textdegree}{\ensuremath{{^\circ}}}
%</cp850|cp858|cp852|cp865|cp437|cp437de|applemac|cp1252|cp1250|cp1257|next>
-%<*latin1|decmulti|latin3|latin5|cp850|cp858|cp852|cp1252|next>
+%<*latin1|decmulti|latin3|latin5|cp850|cp858|cp852|cp1252|cp1257|next>
\ProvideTextCommandDefault{\textonehalf}{\ensuremath{\frac12}}
-%</latin1|decmulti|latin3|latin5|cp850|cp858|cp852|cp1252|next>
-%<*latin1|decmulti|latin5|cp850|cp858|cp852|cp1252|next>
+%</latin1|decmulti|latin3|latin5|cp850|cp858|cp852|cp1252|cp1257|next>
+%<*latin1|decmulti|latin5|cp850|cp858|cp852|cp1252|cp1257|next>
\ProvideTextCommandDefault{\textonequarter}{\ensuremath{\frac14}}
-%</latin1|decmulti|latin5|cp850|cp858|cp852|cp1252|next>
-%<*latin1|latin5|cp850|cp858|cp852|cp1252|next>
+%</latin1|decmulti|latin5|cp850|cp858|cp852|cp1252|cp1257|next>
+%<*latin1|latin5|cp850|cp858|cp852|cp1252|cp1257|next>
\ProvideTextCommandDefault{\textthreequarters}{\ensuremath{\frac34}}
-%</latin1|latin5|cp850|cp858|cp852|cp1252|next>
+%</latin1|latin5|cp850|cp858|cp852|cp1252|cp1257|next>
%<*applemac|cp850|cp858|cp865|cp437|cp437de|cp1252|next>
\ProvideTextCommandDefault{\textflorin}{\textit{f}}
%</applemac|cp850|cp858|cp865|cp437|cp437de|cp1252|next>
@@ -581,10 +645,14 @@
\ProvideTextCommandDefault{\textyen}
{\TextSymbolUnavailable\textyen}
%</applemac|cp1252|next>
-%<*latin9|cp1252|latin10>
+%<*cp1257>
+\ProvideTextCommandDefault{\textcent}
+ {\TextSymbolUnavailable\textcent}
+%</cp1257>
+%<*latin9|cp1252|cp1257|latin10>
\ProvideTextCommandDefault{\texteuro}
{\TextSymbolUnavailable\texteuro}
-%</latin9|cp1252|latin10>
+%</latin9|cp1252|cp1257|latin10>
%<*latin1|decmulti|latin2|latin3|latin4|latin5|cp850|cp858|cp852|cp865>
\ProvideTextCommandDefault{\textcurrency}
{\TextSymbolUnavailable\textcurrency}
@@ -593,10 +661,10 @@
\ProvideTextCommandDefault{\textcurrency}
{\TextSymbolUnavailable\textcurrency}
%</applemac|cp1252|cp1250|cp1257|next>
-%<*latin1|latin5|cp850|cp858|cp852|cp1252|cp1250>
+%<*latin1|latin5|cp850|cp858|cp852|cp1252|cp1250|cp1257>
\ProvideTextCommandDefault{\textbrokenbar}
{\TextSymbolUnavailable\textbrokenbar}
-%</latin1|latin5|cp850|cp858|cp852|cp1252|cp1250>
+%</latin1|latin5|cp850|cp858|cp852|cp1252|cp1250|cp1257>
%<*latin3>
\ProvideTextCommandDefault{\textmalteseH}
{\TextSymbolUnavailable\textmalteseH}
@@ -611,16 +679,10 @@
\ProvideTextCommandDefault{\texttstroke}
{\TextSymbolUnavailable\texttstroke}
%</latin4>
-%<*next>
-\ProvideTextCommandDefault{\textquotesingle}
- {\TextSymbolUnavailable\textquotesingle}
-\ProvideTextCommandDefault{\capitalogonek}
- {\TextSymbolUnavailable\capitalogonek}
-%</next>
-%<*cp1250|cp1252|applemac|next>
+%<*cp1250|cp1252|cp1257|applemac|next>
\ProvideTextCommandDefault{\textperthousand}
{\TextSymbolUnavailable\textperthousand}
-%</cp1250|cp1252|applemac|next>
+%</cp1250|cp1252|cp1257|applemac|next>
%<*applemacce>
\ProvideTextCommandDefault{\textdiv}
{\TextSymbolUnavailable\textdiv}
@@ -637,18 +699,18 @@
% encoding for math fonts is static.
%
% \begin{macrocode}
-%<*latin1|decmulti|latin5|latin9|cp850|cp858|cp1252|next>
+%<*latin1|decmulti|latin5|latin9|cp850|cp858|cp1252|cp1257|next>
\providecommand{\mathonesuperior}{{^1}}
-%</latin1|decmulti|latin5|latin9|cp850|cp858|cp1252|next>
-%<*latin1|decmulti|latin3|latin5|latin9|cp850|cp858|cp1252|next>
+%</latin1|decmulti|latin5|latin9|cp850|cp858|cp1252|cp1257|next>
+%<*latin1|decmulti|latin3|latin5|latin9|cp850|cp858|cp1252|cp1257|next>
\providecommand{\maththreesuperior}{{^3}}
-%</latin1|decmulti|latin3|latin5|latin9|cp850|cp858|cp1252|next>
+%</latin1|decmulti|latin3|latin5|latin9|cp850|cp858|cp1252|cp1257|next>
%<*latin1|decmulti|latin3|latin5|latin9|cp850|cp858|cp865|cp437|cp437de>
\providecommand{\mathtwosuperior}{{^2}}
%</latin1|decmulti|latin3|latin5|latin9|cp850|cp858|cp865|cp437|cp437de>
-%<*cp1252|next>
+%<*cp1252|cp1257|next>
\providecommand{\mathtwosuperior}{{^2}}
-%</cp1252|next>
+%</cp1252|cp1257|next>
%<*cp865|cp437|cp437de>
\providecommand{\mathnsuperior}{{^n}}
%</cp865|cp437|cp437de>
@@ -657,7 +719,14 @@
% \section{The ASCII encoding}
%
% The ASCII encoding only allows characters in the range 32--127, so
-% we only need to provide an empty |.def| file.
+% we only need to provide a more or less empty |.def| file.
+% But we supress the warning that would normally appear if there are no
+% encoding definitions.
+%
+% \changes{v1.1b}{2006/03/03}{Suppress unnecessary warning (pr/3849)}
+% \begin{macrocode}
+%<ascii>\@inpenc@test
+% \end{macrocode}
%
% \changes{v0.94}{1997/12/17}{Merged latin1 with ansinew/cp1252}
%
@@ -927,7 +996,7 @@
\DeclareInputText{165}{\~I}
\DeclareInputText{166}{\c L}
\DeclareInputText{167}{\S}
-\DeclareInputText{168}{\"\ }
+\DeclareInputText{168}{\"{}}
\DeclareInputText{169}{\v S}
\DeclareInputText{170}{\@tabacckludge=E}
\DeclareInputText{171}{\c G}
@@ -942,7 +1011,7 @@
\DeclareInputText{180}{\@tabacckludge'{}}
\DeclareInputText{181}{\~\i}
\DeclareInputText{182}{\c l}
-\DeclareInputText{183}{\v\ }
+\DeclareInputText{183}{\v{}}
\DeclareInputText{184}{\c\ }
\DeclareInputText{185}{\v s}
\DeclareInputText{186}{\@tabacckludge=e}
@@ -1020,7 +1089,7 @@
\DeclareInputText{252}{\"u}
\DeclareInputText{253}{\~u}
\DeclareInputText{254}{\@tabacckludge=u}
-\DeclareInputText{255}{\.\ }
+\DeclareInputText{255}{\.{}}
%</latin4>
% \end{macrocode}
%
@@ -1131,7 +1200,7 @@
\DeclareInputText{236}{\@tabacckludge`\i}
\DeclareInputText{252}{\"u}
\DeclareInputText{237}{\@tabacckludge'\i}
-\DeclareInputText{253}{\i }
+\DeclareInputText{253}{\i}
\DeclareInputText{238}{\^\i}
\DeclareInputText{254}{\c s}
\DeclareInputText{239}{\"\i}
@@ -1350,7 +1419,7 @@
%
% \begin{macrocode}
\DeclareInputText{224}{\@tabacckludge'O}
-\DeclareInputText{240}{\textendash}
+\DeclareInputText{240}{\-}
\DeclareInputText{225}{\ss}
\DeclareInputMath{241}{\pm}
\DeclareInputText{226}{\^O}
@@ -1442,7 +1511,7 @@
\DeclareInputText{167}{\v z}
\DeclareInputText{168}{\k E}
\DeclareInputText{169}{\k e}
-\DeclareInputText{170}{\nobreakspace} % or empty??
+\DeclareInputMath{170}{\lnot}
\DeclareInputText{171}{\@tabacckludge'z}
\DeclareInputText{172}{\v C}
\DeclareInputText{173}{\c s}
@@ -1475,7 +1544,7 @@
%
% \begin{macrocode}
\DeclareInputText{224}{\@tabacckludge'O}
-\DeclareInputText{240}{\textendash}
+\DeclareInputText{240}{\-}
\DeclareInputText{225}{\ss}
\DeclareInputText{241}{\H{}}
\DeclareInputText{226}{\^O}
@@ -1541,14 +1610,14 @@
%
% \begin{macrocode}
%<*cp437|cp437de|cp865>
-\DeclareInputText{128}{{\c C}}
+\DeclareInputText{128}{\c C}
\DeclareInputText{129}{\"u}
\DeclareInputText{130}{\@tabacckludge'e}
\DeclareInputText{131}{\^a}
\DeclareInputText{132}{\"a}
\DeclareInputText{133}{\@tabacckludge`a}
\DeclareInputText{134}{\r a}
-\DeclareInputText{135}{{\c c}}
+\DeclareInputText{135}{\c c}
\DeclareInputText{136}{\^e}
\DeclareInputText{137}{\"e}
\DeclareInputText{138}{\@tabacckludge`e}
@@ -1677,8 +1746,8 @@
\DeclareInputMath{239}{\cap}
\DeclareInputMath{240}{\equiv}
\DeclareInputMath{241}{\pm}
-\DeclareInputMath{242}{\ge}
-\DeclareInputMath{243}{\le}
+\DeclareInputMath{242}{\geq}
+\DeclareInputMath{243}{\leq}
%\DeclareInputMath{244}{} % upper part of integral sign
%\DeclareInputMath{245}{} % lower part of integral sign
\DeclareInputMath{246}{\div}
@@ -1851,6 +1920,16 @@
%
% \changes{v0.99b}{2002/06/16}{Added macce encoding (pr/3433)}
% \changes{v1.0d}{2004/02/05}{Reordered code}
+% \changes{v1.0g}{2004/05/22}{Changed \cs{textellipsis} to \cs{dots}
+% for consistency.}
+% \changes{v1.0g}{2004/05/22}{Changed \cs{textdagger} to \cs{dag}
+% for consistency.}
+% \changes{v1.0g}{2004/05/22}{Changed \cs{textparagraph} to \cs{P}
+% for consistency.}
+% \changes{v1.0g}{2004/05/22}{Changed \cs{textsection} to \cs{S}
+% for consistency.}
+% \changes{v1.0g}{2004/05/22}{Changed \cs{textcopyright} to \cs{copyright}
+% for consistency.}
% \begin{macrocode}
%<*applemacce>
\DeclareInputText{128}{\"A}
@@ -1860,7 +1939,7 @@
\DeclareInputText{134}{\"U}
\DeclareInputText{136}{\k a}
\DeclareInputText{137}{\v C}
-\DeclareInputText{138}{\" a}
+\DeclareInputText{138}{\"a}
\DeclareInputText{139}{\v c}
\DeclareInputText{140}{\@tabacckludge'C}
\DeclareInputText{141}{\@tabacckludge'c}
@@ -1875,27 +1954,31 @@
% \end{macrocode}
%
% \begin{macrocode}
-\DeclareInputText{160}{\textdagger}
+\DeclareInputText{160}{\dag}
\DeclareInputText{161}{\textdegree}
\DeclareInputText{162}{\k E}
\DeclareInputText{163}{\pounds}
-\DeclareInputText{164}{\textsection}
+\DeclareInputText{164}{\S}
\DeclareInputText{165}{\textbullet}
-\DeclareInputText{166}{\textparagraph}
-\DeclareInputText{167}{\SS}
+\DeclareInputText{166}{\P}
+\DeclareInputText{167}{\ss}
\DeclareInputText{168}{\textregistered}
\DeclareInputText{171}{\k e}
\DeclareInputText{193}{\@tabacckludge'N}
-\DeclareInputText{169}{\textcopyright}
+\DeclareInputText{169}{\copyright}
\DeclareInputText{184}{\l}
\DeclareInputText{196}{\@tabacckludge'n}
\DeclareInputText{199}{\guillemotleft}
\DeclareInputText{200}{\guillemotright}
-\DeclareInputText{201}{\textellipsis}
+\DeclareInputText{201}{\dots}
\DeclareInputText{202}{\nobreakspace}
\DeclareInputText{208}{\textendash}
\DeclareInputText{209}{\textemdash}
-\DeclareInputText{210}{\textquotedbleft}
+% \end{macrocode}
+%
+% \changes{v1.0e}{2004/05/03}{Typo in \cs{textquotedblleft} (pr/3673)}
+% \begin{macrocode}
+\DeclareInputText{210}{\textquotedblleft}
\DeclareInputText{211}{\textquotedblright}
\DeclareInputText{212}{\textquoteleft}
\DeclareInputText{213}{\textquoteright}
@@ -1987,7 +2070,7 @@
\DeclareInputText{166}{\textflorin}
\DeclareInputText{167}{\S}
\DeclareInputText{168}{\textcurrency}
-\DeclareInputText{169}{\textquotesingle}
+\DeclareInputText{169}{\textquoteright}
\DeclareInputText{170}{\textquotedblleft}
\DeclareInputText{171}{\guillemotleft}
\DeclareInputText{172}{\guilsinglleft}
@@ -1999,7 +2082,7 @@
\DeclareInputText{178}{\dag}
\DeclareInputText{179}{\ddag}
\DeclareInputText{180}{\textperiodcentered}
-\DeclareInputText{181}{\textbar}
+\DeclareInputText{181}{\textbrokenbar}
\DeclareInputText{182}{\P}
\DeclareInputText{183}{\textbullet}
\DeclareInputText{184}{\quotesinglbase}
@@ -2023,11 +2106,11 @@
\DeclareInputText{199}{\.{}}
\DeclareInputText{200}{\"{}}
\DeclareInputMath{201}{\mathtwosuperior}
-\DeclareInputText{202}{\textdegree}
+\DeclareInputText{202}{\r{}}
\DeclareInputText{203}{\c\ }
\DeclareInputMath{204}{\maththreesuperior}
\DeclareInputText{205}{\H{}}
-\DeclareInputText{206}{\capitalogonek{}}
+\DeclareInputText{206}{\k\ }
\DeclareInputText{207}{\v{}}
\DeclareInputText{208}{\textemdash}
\DeclareInputMath{209}{\pm}
@@ -2054,7 +2137,7 @@
\DeclareInputText{227}{\textordfeminine}
\DeclareInputText{228}{\^\i}
\DeclareInputText{229}{\"\i}
-\DeclareInputMath{230}{\eth}
+\DeclareInputText{230}{\dh}
\DeclareInputText{231}{\~n}
\DeclareInputText{232}{\L}
\DeclareInputText{233}{\O}
@@ -2078,8 +2161,6 @@
\DeclareInputText{251}{\ss}
\DeclareInputText{252}{\th}
\DeclareInputText{253}{\"y}
-\DeclareInputText{254}{}
-\DeclareInputText{255}{}
%</next>
% \end{macrocode}
%
@@ -2335,6 +2416,9 @@
% Data for the \LaTeX{} support was mainly provided by Ionel Ciob\^{i}c\u{a}
% with additions and corrections taken from\\
% \texttt{http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-16.TXT}.
+%
+% \changes{v1.1b}{2006/03/03}{Corrections (pr/3849)}
+%
% \begin{macrocode}
%<*latin10>
% \end{macrocode}
@@ -2354,7 +2438,11 @@
% \begin{macrocode}
\ProvideTextCommandDefault\textpm{\ensuremath\pm}
% \end{macrocode}
-%
+% But why only for this one encoding? (Answer: because it is a new encoding:
+% it contains only LICR objects --- Frank)
+% \changes{v1.0g}{2004/05/22}{Changed \cs{textpm} to \cs{pm}}
+% \changes{v1.1b}{2006/03/03}{Reverted back to \cs{textpm}
+% for consistency.}
% \begin{macrocode}
\DeclareInputText{160}{\nobreakspace}
\DeclareInputText{161}{\k A}
@@ -2472,8 +2560,6 @@
% for consistency.}
% \changes{v0.94}{1997/12/17}{Changed \cs{textdagger} to \cs{dag}
% for consistency.}
-% \changes{v0.94}{1997/12/17}{Changed \cs{textdagger} to \cs{dag}
-% for consistency.}
% \changes{v0.94}{1997/12/17}{Changed \cs{textparagraph} to \cs{P}
% for consistency.}
% \changes{v0.94}{1997/12/17}{Changed \cs{textsection} to \cs{S}
@@ -2547,7 +2633,7 @@
\DeclareInputText{188}{\v L}% L caron (L') ?
\DeclareInputText{189}{\H{}}
\DeclareInputText{190}{\v l}% l caron (l') ?
-\DeclareInputText{191}{\. z}
+\DeclareInputText{191}{\.z}
% \end{macrocode}
%
% \begin{macrocode}
@@ -2579,7 +2665,7 @@
\DeclareInputText{217}{\r U}
\DeclareInputText{218}{\@tabacckludge'U}
\DeclareInputText{219}{\H U}
-\DeclareInputText{220}{\" U}
+\DeclareInputText{220}{\"U}
\DeclareInputText{221}{\@tabacckludge'Y}
\DeclareInputText{222}{\c T}
\DeclareInputText{223}{\ss}
@@ -2590,7 +2676,7 @@
\DeclareInputText{225}{\@tabacckludge'a}
\DeclareInputText{226}{\^a}
\DeclareInputText{227}{\u a}
-\DeclareInputText{228}{\" a}
+\DeclareInputText{228}{\"a}
\DeclareInputText{229}{\@tabacckludge'l}
\DeclareInputText{230}{\@tabacckludge'c}
\DeclareInputText{231}{\c c}
@@ -2625,111 +2711,140 @@
%\section{The MS Windows encoding cp1257}
%
% This is an MS Windows encoding for Baltic languages,
-% known as Code Page 1257; it was provided on the web at
-% \texttt{http://nad.datapro.lv/LaTeX} and edited by Frank
-% to make it consistent with other files.
+% known as Code Page 1257; provided by Heiko Oberdiek
+% using the mappings to Unicode in
+% \texttt{http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT}
+% and
+% \texttt{http://www.microsoft.com/globaldev/reference/sbcs/1257.mspx}.
%
+% \changes{v1.1b}{2006/03/03}{Large number of corrections (pr/3849)}
% \begin{macrocode}
%<*cp1257>
+\DeclareInputText{128}{\texteuro}
+\DeclareInputText{130}{\quotesinglbase}
+\DeclareInputText{132}{\quotedblbase}
+\DeclareInputText{133}{\dots}
+\DeclareInputText{134}{\dag}
+\DeclareInputText{135}{\ddag}
+\DeclareInputText{137}{\textperthousand}
+\DeclareInputText{139}{\guilsinglleft}
+\DeclareInputText{141}{\"{}}
+\DeclareInputText{142}{\v{}}
+\DeclareInputText{143}{\c\ }
+\DeclareInputText{145}{\textquoteleft}
+\DeclareInputText{146}{\textquoteright}
+\DeclareInputText{147}{\textquotedblleft}
+\DeclareInputText{148}{\textquotedblright}
+\DeclareInputText{149}{\textbullet}
+\DeclareInputText{150}{\textendash}
+\DeclareInputText{151}{\textemdash}
+\DeclareInputText{153}{\texttrademark}
+\DeclareInputText{155}{\guilsinglright}
+\DeclareInputText{157}{\@tabacckludge={}}
+\DeclareInputText{158}{\k\ }
+% \end{macrocode}
+%
+% \begin{macrocode}
\DeclareInputText{160}{\nobreakspace}
-\DeclareInputText{161}{\k A}
-\DeclareInputText{163}{\c R}
+\DeclareInputText{162}{\textcent}
+\DeclareInputText{163}{\pounds}
\DeclareInputText{164}{\textcurrency}
-\DeclareInputText{165}{\~I}
-\DeclareInputText{166}{\c L}
+\DeclareInputText{166}{\textbrokenbar}
\DeclareInputText{167}{\S}
-\DeclareInputText{168}{\"\ }
-\DeclareInputText{169}{\v S}
-\DeclareInputText{170}{\@tabacckludge=E}
-\DeclareInputText{171}{\c G}
+\DeclareInputText{168}{\O}
+\DeclareInputText{169}{\copyright}
+\DeclareInputText{170}{\c R}
+\DeclareInputText{171}{\guillemotleft}
+\DeclareInputMath{172}{\lnot}
\DeclareInputText{173}{\-}
-\DeclareInputText{174}{\v Z}
-\DeclareInputText{175}{\@tabacckludge={}}
+\DeclareInputText{174}{\textregistered}
+\DeclareInputText{175}{\AE}
\DeclareInputText{176}{\textdegree}
-\DeclareInputText{177}{\k a}
-\DeclareInputText{178}{\k\ }
-\DeclareInputText{179}{\c r}
+\DeclareInputMath{177}{\pm}
+\DeclareInputMath{178}{\mathtwosuperior}
+\DeclareInputMath{179}{\maththreesuperior}
\DeclareInputText{180}{\@tabacckludge'{}}
-\DeclareInputText{181}{\~\i}
-\DeclareInputText{182}{\c l}
-\DeclareInputText{183}{\v\ }
-\DeclareInputText{184}{\c\ }
-\DeclareInputText{185}{\v s}
-\DeclareInputText{186}{\@tabacckludge=e}
-\DeclareInputText{187}{\c g}
-\DeclareInputText{189}{\NG}
-\DeclareInputText{190}{\v z}
-\DeclareInputText{191}{\ng}
+\DeclareInputMath{181}{\mu}
+\DeclareInputText{182}{\P}
+\DeclareInputText{183}{\textperiodcentered}
+\DeclareInputText{184}{\o}
+\DeclareInputMath{185}{\mathonesuperior}
+\DeclareInputText{186}{\c r}
+\DeclareInputText{187}{\guillemotright}
+\DeclareInputText{188}{\textonequarter}
+\DeclareInputText{189}{\textonehalf}
+\DeclareInputText{190}{\textthreequarters}
+\DeclareInputText{191}{\ae}
% \end{macrocode}
%
% \begin{macrocode}
-\DeclareInputText{192}{\@tabacckludge=A}
-\DeclareInputText{193}{\@tabacckludge'A}
-\DeclareInputText{194}{\=A}
-\DeclareInputText{195}{\~A}
+\DeclareInputText{192}{\k A}
+\DeclareInputText{193}{\k I}
+\DeclareInputText{194}{\@tabacckludge=A}
+\DeclareInputText{195}{\@tabacckludge'C}
\DeclareInputText{196}{\"A}
\DeclareInputText{197}{\r A}
-\DeclareInputText{198}{\AE}
-\DeclareInputText{199}{\=E}
+\DeclareInputText{198}{\k E}
+\DeclareInputText{199}{\@tabacckludge=E}
\DeclareInputText{200}{\v C}
\DeclareInputText{201}{\@tabacckludge'E}
-\DeclareInputText{202}{\k E}
-\DeclareInputText{203}{\"E}
+\DeclareInputText{202}{\@tabacckludge'Z}
+\DeclareInputText{203}{\.{E}}
\DeclareInputText{204}{\c G}
\DeclareInputText{205}{\c K}
\DeclareInputText{206}{\@tabacckludge=I}
\DeclareInputText{207}{\c L}
\DeclareInputText{208}{\v S}
-\DeclareInputText{209}{\c N}
+\DeclareInputText{209}{\@tabacckludge'N}
\DeclareInputText{210}{\c N}
-\DeclareInputText{211}{\c N}
-\DeclareInputText{212}{\^O}
+\DeclareInputText{211}{\@tabacckludge'O}
+\DeclareInputText{212}{\@tabacckludge=O}
\DeclareInputText{213}{\~O}
\DeclareInputText{214}{\"O}
\DeclareInputMath{215}{\times}
-\DeclareInputText{216}{\O}
-\DeclareInputText{217}{\k U}
-\DeclareInputText{218}{\@tabacckludge'U}
+\DeclareInputText{216}{\k U}
+\DeclareInputText{217}{\L}
+\DeclareInputText{218}{\@tabacckludge'S}
\DeclareInputText{219}{\@tabacckludge=U}
\DeclareInputText{220}{\"U}
-\DeclareInputText{221}{\~U}
+\DeclareInputText{221}{\.Z}
\DeclareInputText{222}{\v Z}
\DeclareInputText{223}{\ss}
% \end{macrocode}
%
% \begin{macrocode}
-\DeclareInputText{224}{\@tabacckludge=a}
-\DeclareInputText{225}{\@tabacckludge'a}
+\DeclareInputText{224}{\k a}
+\DeclareInputText{225}{\k i}
\DeclareInputText{226}{\@tabacckludge=a}
-\DeclareInputText{227}{\~a}
+\DeclareInputText{227}{\@tabacckludge'c}
\DeclareInputText{228}{\"a}
\DeclareInputText{229}{\r a}
-\DeclareInputText{230}{\ae}
+\DeclareInputText{230}{\k e}
\DeclareInputText{231}{\@tabacckludge=e}
\DeclareInputText{232}{\v c}
\DeclareInputText{233}{\@tabacckludge'e}
-\DeclareInputText{234}{\k e}
-\DeclareInputText{235}{\"e}
-\DeclareInputText{236}{\k g}
+\DeclareInputText{234}{\@tabacckludge'z}
+\DeclareInputText{235}{\.{e}}
+\DeclareInputText{236}{\c g}
\DeclareInputText{237}{\c k}
\DeclareInputText{238}{\@tabacckludge=\i}
-\DeclareInputText{239}{\k l}
+\DeclareInputText{239}{\c l}
\DeclareInputText{240}{\v s}
-\DeclareInputText{241}{\c n}
-\DeclareInputText{242}{\k n}
-\DeclareInputText{243}{\c k}
-\DeclareInputText{244}{\^o}
+\DeclareInputText{241}{\@tabacckludge'n}
+\DeclareInputText{242}{\c n}
+\DeclareInputText{243}{\@tabacckludge'o}
+\DeclareInputText{244}{\@tabacckludge=o}
\DeclareInputText{245}{\~o}
\DeclareInputText{246}{\"o}
\DeclareInputMath{247}{\div}
-\DeclareInputText{248}{\o}
-\DeclareInputText{249}{\k u}
-\DeclareInputText{250}{\@tabacckludge'u}
+\DeclareInputText{248}{\k u}
+\DeclareInputText{249}{\l}
+\DeclareInputText{250}{\@tabacckludge's}
\DeclareInputText{251}{\@tabacckludge=u}
\DeclareInputText{252}{\"u}
-\DeclareInputText{253}{\~u}
+\DeclareInputText{253}{\.z}
\DeclareInputText{254}{\v z}
-\DeclareInputText{255}{\.\ }
+\DeclareInputText{255}{\.{}}
%</cp1257>
% \end{macrocode}
%