Debian Codegraph @

texmf-dist/source/latex/codepage/codepage.dtx

raw
1 \def\fileversion{1.2}%
2 \def\filedate{2 January 1995}%
3 \def\docdate{2 January 1995}%
4 \def\CheckSum{4615}%
5 % \changes{v0.1}{28-May-1993}{first release}
6 % \changes{v0.8}{17-June-1993}{macros to draw accent on character added (taken from DCLFONT.STY)}
7 % \changes{v0.9}{15-October-1993}{revised naming convention, comments, and unify style}
8 % \changes{v1.0}{16-May-1994}{Add suppression of character translation, put in DOC format}
9 % \changes{v1.1}{26-September-1994}{Redesign of code to improve
10 % memory usage, French text for the
11 % introduction.}
12 % \changes{v1.2}{2-January-1995}{Suppression of some ``loop'' command and
13 % expansion of code instead. This save many space on
14 % input stack size. Mainly the files
15 % initcar and in codepage were changed.}
16 % \MakeShortVerb{|}
17 %
18 % \iffrench
19 % \title{\texttt{codepage} un style pour traiter
20 % diff\'e{}rents code de page dans le m\^e{}me document}
21 % \author{Alain Aubord}
22 % \maketitle
23 % \begin{abstract}
24 % Cet article d\'e{}crit les nouvelles commandes disponibles pour
25 % traiter un code de page\ft{Un code de page est une convention qui d\'e{}finit une association
26 % unique entre un caract\`e{}re et un nombre qui le repr\'e{}sente dans un ordinateur.} ainsi que les
27 % probl\`e{}mes rencontr\'e{}s pour r\'e{}aliser cette implantation uniquement en \TeX{}.
28 % \end{abstract}
29 %
30 % \section{Introduction\label{INTRO}}
31 %
32 % La version 3 de \TeX{} permet de composer plus facilement des documents dans une autre langue
33 % que l'anglais. En effet, cette version autorise l'usage de caract\`e{}res cod\'e{}s sur 8 bits (valeurs
34 % de 0 \`a{} 255) dans le texte source et de multiples tables de c\'e{}sures dans un format.
35 %
36 % Ces am\'e{}liorations \'e{}taient n\'e{}cessaires, mais pas suffisantes. En effet, il est encore n\'e{}cessaire
37 % de disposer de styles adapt\'e{}s aux diff\'e{}rentes langues
38 % ainsi que des polices de caract\`e{}res contenant
39 % des signes sp\'e{}cifiques (comme les caract\`e{}res accentu\'e{}s\ft{La composition, c'est-\`a{}-dire
40 % l'utilisation d'une commande de positionnement d'un accent suivie par la lettre \`a{} accentuer, pr\'e{}sente
41 % l'avantage de pouvoir accentuer n'importe quel caract\`e{}re mais emp\^e{}che la c\'e{}sure correcte d'un mot
42 % accentu\'e{}.}, les guillemets fran\c c{}ais...).
43 %
44 %
45 % Le style \Fich{Babel} et les polices \textsc{Dc} ont \'e{}t\'e{} d\'e{}velopp\'e{}s pour r\'e{}soudre ces probl\`e{}mes.
46 % Cependant, il reste encore un probl\`e{}me de taille: les diff\'e{}rents codes de page existant sont
47 % incompatibles. Un document \'e{}crit dans un code de page doit \^e{}tre converti dans un nouveau code de page
48 % lorsqu'il est utilis\'e{} sur un ordinateur avec un syst\`e{}me
49 % d'exploitation diff\'e{}rent
50 % ou avec des polices de caract\`e{}res dont l'encodage correspond \`a{} un autre code de page
51 % (comme les polices \textsc{Dc}).
52 % La gestion des
53 % diff\'e{}rents codes de page peut se faire de plusieurs mani\`e{}res en \TeX:
54 % \begin{itemize}
55 % \item Par l'utilisation d'un programme externe de conversion de caract\`e{}res.
56 % Lorsqu'un tel programme est bien int\'e{}gr\'e{} dans \TeX{} (comme les
57 % tables \textsc{Tcp} d\'e{}finies par
58 % \textsc{EmTeX}), cette solution est tr\`e{}s efficace et agr\'e{}able \`a{} utiliser. Son principal
59 % d\'e{}savantage est le manque de portabilit\'e{}.
60 % \item Par l'utilisation de polices virtuelles\ft{Une police virtuelle est un m\'e{}canisme
61 % fourni avec \TeX{} version 3 qui permet de changer le vecteur d'encodage d'une
62 % police de caract\`e{}res, de composer une nouvelle police de caract\`e{}res \`a{} partir
63 % de plusieurs polices etc.}. Cette
64 % solution est tr\`e{}s bien int\'e{}gr\'e{}e dans \TeX\ft{Certains vieux pilotes de p\'e{}riph\'e{}riques ne
65 % savent pas utiliser les polices virtuelles.}. Cependant, il est n\'e{}cessaire de
66 % fournir les
67 % fichiers d\'e{}crivant la m\'e{}trique et le r\'e{}-encodage de chaque police
68 % virtuelle utilis\'e{}e dans un document.
69 % \item Par l'utilisation de la composition pour obtenir un caract\`e{}re accentu\'e{} (i.e.|\'e| pour
70 % \'e).
71 % Cette solution fonctionne remarquablement bien avec les polices \textsc{Dc}. Le style fourni
72 % pour l'utilisation de ces polices red\'e{}finit tr\`e{}s habilement les commandes qui dessinent un
73 % caract\`e{}re accentu\'e{}. Chaque fois qu'un caract\`e{}re accentu\'e{} existe dans la police, il est
74 % employ\'e{} (en lieu et place de la composition). Ce syst\`e{}me est donc parfaitement int\'e{}gr\'e{} dans
75 % \TeX{}, mais il est tr\`e{}s d\'e{}sagr\'e{}able de taper et de relire les caract\`e{}res accentu\'e{}s suivant
76 % cette m\'e{}thode.
77 % \item Par l'utilisation du paquet \Fich{codepage} qui est totalement compatible avec \TeX{}
78 % (version 3). Ce paquet offre en outre la possibilit\'e{} de composer avec \TeX{} un document
79 % pr\'e{}vu pour un autre code de page que celui de son propre ordinateur et de d\'e{}clarer des
80 % exceptions de c\'e{}sures contenant des syllabes accentu\'e{}es.
81 %
82 % Ce paquet transforme tous les caract\`e{}res sup\'e{}rieurs \`a{} 127
83 % en caract\`e{}re \og actif\fg{}
84 % (chaque caract\`e{}re actif est une commande \TeX)
85 % et il n\'e{}cessite la transmission de quelques
86 % fichiers annexes pour pouvoir composer un document sur un autre syst\`e{}me.
87 % \end{itemize}
88 %
89 % Comme on le voit, il n'y a pas de solution parfaite dans tous les cas. Le probl\`e{}me provient d'un manque
90 % de norme dans la mani\`e{}re de coder les symboles sp\'e{}ciaux\ft{Si un standard unique devait voir le jour,
91 % il serait d\'e{}fini sur 16 bits (valeur de 0 \`a{} 65535).}.
92 %
93 % \subsection{Le probl\`e{}me des c\'e{}sures\label{HYPHENATION}}
94 % \TeX{} effectue une c\'e{}sure automatique des mots en se basant sur une table d\'e{}crivant
95 % quelles syllabes peuvent \^e{}tre coup\'e{}es. Cette table est inclue dans le format\ft{Un format est
96 % un
97 % ensemble de commandes pr\'e{}-d\'e{}finies qui sont analys\'e{}es et enregistr\'e{}es sous une forme sp\'e{}ciale
98 % par une variante du programme \TeX{} appel\'e{}e \textsc{Ini}\TeX{}. Le programme \TeX{} peut
99 % ensuite
100 % charger en m\'e{}moire tr\`e{}s rapidement un format.} et sa forme est fig\'e{}e
101 % tant qu'un nouveau format n'est pas reconstruit. Lors de la construction
102 % d'une table de c\'e{}sure toutes les syllabes sont converties en minuscules (en utilisant le
103 % \Comm{lccode} de chaque caract\`e{}re) avant d'\^e{}tre enregistr\'e{}es. Pour
104 % trouver une c\'e{}sure lors de la composition d'un document,
105 % le texte \`a{} couper est traduit en minuscule et compar\'e{} avec les tables
106 % pr\'e{}-d\'e{}finies.
107 %
108 % Lorsque les tables de c\'e{}sures utilis\'e{}es lors de la construction du
109 % format et le texte du document utilisent des codes de pages diff\'e{}rents,
110 % les caract\`e{}res (dont la valeur est plus
111 % grande que 127) du texte \`a{} composer et
112 % ceux utilis\'e{}s pour les tables de c\'e{}sure ne correspondront jamais. Aucune
113 % c\'e{}sure ne pourra alors \^e{}tre trouv\'e{}e (des exceptions existent cependant).
114 %
115 % Il est \'e{}videmment possible de modifier la table de c\'e{}sure et de reg\'e{}n\'e{}rer
116 % un nouveau format, cependant cette solution n'est pas toujours possible
117 % ni forc\'e{}ment souhaitable pour plusieurs raisons:
118 % \begin{itemize}
119 % \item le fichier qui d\'e{}crit la table de c\'e{}sure devrait \^e{}tre identique
120 % quel que soit le syst\`e{}me pour obtenir une c\'e{}sure identique
121 % partout\ft{Un exemple tr\`e{}s concret de cette situation est l'utilisation
122 % de la table de c\'e{}sure anglaise pour des textes fran\c c{}ais. Les tables
123 % de c\'e{}sures anglaises sont disponibles et identiques quelle que soit
124 % l'implantation de \TeX{}. Lorsqu'on veut transmettre un document \'e{}crit
125 % en fran\c c{}ais \`a{} un correspondant dont on n'est pas certain qu'il puisse
126 % disposer d'une table de c\'e{}sure fran\c c{}aise, il est toujours possible d'utiliser
127 % le table de c\'e{}sure anglaise et d'indiquer les exceptions de c\'e{}sure avec la
128 % commande \Comm{hyphenation}. Cette m\'e{}thode fonctionne relativement bien
129 % si l'on prend la pr\'e{}caution de red\'e{}finir les commandes qui dessinent les
130 % accents sur les caract\`e{}res (comme cela est fait dans le paquet \Fich{codepage}).}.
131 % \item la g\'e{}n\'e{}ration d'un format est une op\'e{}ration complexe et d\'e{}licate
132 % qui peut exiger la possession d'autorisations sp\'e{}cifiques (sur une
133 % machine partag\'e{}e entre plusieurs utilisateurs).
134 % \end{itemize}
135 %
136 % La solution propos\'e{}e par le paquet \Fich{codepage} pour r\'e{}soudre ce
137 % probl\`e{}me consiste en une nouvelle commande \Comm{MakeHyphenationLetter} qui
138 % permet de modifier les valeurs associ\'e{}es \`a{} un caract\`e{}re cod\'e{} au-del\`a{} de 127
139 % pour utiliser des valeurs compatibles avec la commande \Comm{hyphenation}.
140 %
141 % \section{L'interface utilisateur}
142 % Cet interface a \'e{}t\'e{} con\c c{}u pour \^e{}tre \og le plus simple possible\fg.
143 % Seules deux macros (commandes) et quelques constantes sont d\'e{}finies.
144 %
145 % Les diff\'e{}rents codes de page possibles sont d\'e{}finis par des constantes:
146 % \begin{description}
147 % \item[\Comm{FourThreeSeven}] pour le code de page 437 du PC; ce code
148 % de page est surtout utilis\'e{} avec les syst\`e{}mes ayant l'anglais
149 % comme langue principale;
150 % \item[\Comm{EightFiveZero}] pour le code de page 850 du PC. Ce code de
151 % page est semblable au code 437 mais il contient moins de signes
152 % semi-graphiques et math\'e{}matiques et plus de lettres (comme les
153 % caract\`e{}res majuscules accentu\'e{}s). Ce code de page est surtout
154 % utilis\'e{} avec d'autres langues que l'anglais.
155 % \item[\Comm{IsoOne}] ISO Latin set 1. Cette norme est utilis\'e{}e
156 % par de nombreux syst\`e{}mes (la plupart des syst\`e{}mes \textsc{Unix}
157 % et \textsc{Windows}). L'encodage \textsc{Dc} des polices \TeX{}
158 % suit cette norme pour certains caract\`e{}res (en particulier toutes les lettres).
159 % Lorsque ce code de page est utilis\'e{} les caract\`e{}res qui
160 % correspondent exactement aux caract\`e{}res des polices \textsc{Dc}
161 % ne deviennent pas \og actifs\fg{} mais gardent le \og catcode\fg{}
162 % de lettres. Les caract\`e{}res se dessinant en utilisant le mode
163 % math\'e{}matique de \TeX{} restent cependant \og actifs\fg{}.
164 % \item[\Comm{Mac}] pour les caract\`e{}res du \textsc{Mac Intosh}.
165 % \end{description}
166 %
167 % Le choix de l'encodage des polices de \TeX{} est d\'e{}fini par deux autres
168 % constantes:
169 % \begin{description}
170 % \item[\Comm{CM}] d\'e{}finit l'encodage standard de \TeX{}. Ce code est
171 % d\'e{}fini sur 128 positions, les caract\`e{}res accentu\'e{}s sont
172 % dessin\'e{}s par composition.
173 % \item[\Comm{DC}] pour le nouvel encodage d\'e{}fini pour les polices \TeX{}.
174 % L'utilisation de ce code implique l'usage des polices \textsc{Dc}.
175 % Lorsque ce code est choisi, les caract\`e{}res existant dans un
176 % code de page sont simplement convertis en caract\`e{}re \'e{}quivalent
177 % des polices \textsc{Dc}.
178 % \end{description}
179 %
180 % Les symboles math\'e{}matiques sont dessin\'e{}s en utilisant les commandes et le
181 % mode math\'e{}matiques de \TeX{}, les autres symboles sont en g\'e{}n\'e{}ral ignor\'e{}s.
182 %
183 % Les deux commandes principales sont:
184 % \begin{description}
185 % \item[\Comm{codepage\#1\#2}] cette macro accepte deux param\`e{}tres: le code
186 % de page du document, et le type d'encodage choisi pour les polices
187 % \TeX.
188 %
189 % Apr\`e{}s l'appel \`a{} la macro \Comm{codepage} tous les caract\`e{}res
190 % sup\'e{}rieurs \`a{} 127 sont \og actifs\fg{} (ils se comportent
191 % comme des commandes).
192 % \item[\Comm{MakeHyphenationLetter\#1\#2}] cette macro n'existe
193 % que si le code de page \textsc{Dc} est choisi. Elle sert
194 % \`a{} modifier les valeurs associ\'e{}es \`a{} un caract\`e{}re sup\'e{}rieur
195 % \`a{} 127 pour qu'il puisse \^e{}tre utilis\'e{} avec la commande
196 % \Comm{hyphenation}.
197 % Pour que ces modifications restent locales,
198 % \Comm{MakeHyphenationLetter} doit donc toujours \^e{}tre appel\'e{}e dans un groupe
199 % (entre des accolades |{| et |}|). Pour des raisons techniques
200 % ces modifications ne sont pas univoques, il est possible
201 % que plusieurs caract\`e{}res aient des valeurs identiques apr\`e{}s
202 % transformation. Cette situation n'est pas trop grave car elle
203 % est peu fr\'e{}quente et n'entrave pas la c\'e{}sure (du moins dans le cas
204 % de la langue fran\c c{}aise), un message signalant un conflit
205 % potentiel est tout de fois \'e{}mis.
206 % \item[\Comm{CurrentEncoding}] Cette commande contient la valeur du
207 % syst\`e{}me d'encodage choisi. Sa valeur n'est d\'e{}finie qu'apr\`e{}s
208 % l'appel \`a{} la commande \Comm{codepage}.
209 % \end{description}
210 %
211 %
212 % Toutes les commandes qui servent \`a{} dessiner des accents sur des caract\`e{}res
213 % sont red\'e{}finies. Les valeurs originales des commandes sont sauv\'e{}es avec un
214 % nouveau nom:
215 % \begin{center}
216 % \begin{tabular}{ll}
217 % \textbf{Nouveau nom} & \textbf{Commande Originale}\\
218 % \Comm{Grave} & \Comm{`} \\
219 % \Comm{Circumflex} & \Comm{\Circonflexe} \\
220 % \Comm{Tilda} & \Comm{\TildeChar} \\
221 % \Comm{OverBar} & \Comm{=} \\
222 % \Comm{UnderBar} & \Comm{b} \\
223 % \Comm{Join} & \Comm{t} \\
224 % \Comm{HungarUmlaut} & \Comm{H} \\
225 % \Comm{Acute} & \Comm{'} \\
226 % \Comm{Diaresis} & \Comm{"} \\
227 % \Comm{Breve} & \Comm{u} \\
228 % \Comm{OverDot} & \Comm{.} \\
229 % \Comm{UnderDot} & \Comm{d} \\
230 % \Comm{Tcheche} & \Comm{v} \\
231 % \Comm{Cedille} & \Comm{c} \\
232 % \end{tabular}
233 % \end{center}
234 %
235 % Voici encore quelques commandes d\'e{}finies par le paquet. Ces commandes
236 % devraient \^e{}tre d'un usage exceptionnel:
237 % \begin{description}
238 % \item[\Comm{TRtrue}] enclenche le m\'e{}canisme qui transforme chaque
239 % caract\`e{}re sup\'e{}rieur \`a{} 127 pour qu'il soit imprim\'e{} correctement
240 % par \TeX. C'est la valeur par d\'e{}faut !
241 % \item[\Comm{TRfalse}] produit l'effet inverse de la commande pr\'e{}c\'e{}dente.
242 % Cette commande est surtout utile lorsque des caract\`e{}res doivent
243 % \^e{}tre \'e{}crits dans des fichiers auxiliaires (comme les fichiers
244 % servant \`a{} construire les index ou les glossaires). Il est
245 % alors souvent plus judicieux de convertir les caract\`e{}res sp\'e{}ciaux
246 % lors de la relecture de ces fichiers plut\^o{}t qu'\`a{} leur \'e{}criture.
247 % \item[\Comm{AllActive}] transforme tous les caract\`e{}res sup\'e{}rieurs
248 % \`a{} 127 en caract\`e{}re actifs.
249 % \item[\Comm{AllOther}] transforme tous les caract\`e{}res sup\'e{}rieurs \`a{} 127 en
250 % caract\`e{}re sans signification particuli\`e{}re pour TeX{} (leur
251 % \Comm{catcode} vaut 12).
252 % \item[\Comm{og}] dessine les guillemets fran\c c{}ais ouvrants (d\'e{}finis
253 % seulement lorsque les polices \textsc{Cm} sont choisies).
254 % \item[\Comm{fg}] dessine les guillemets fran\c c{}ais fermants (d\'e{}finis
255 % seulement lorsque les polices \textsc{Cm} sont choisies).
256 % \item[\Comm{atcatcode}] qui est une constante qui contient la valeur du
257 % |\catcode| du caract\`e{}re \textbf{@} lorsque cette valeur est
258 % modifi\'e{}e par le paquet \textsc{Codepage}. Autrement, elle
259 % est identique \`a{} la commande |\relax|.
260 % \end{description}
261 %
262 % \section{Un bref exemple (pour \LaTeX{}2e)}
263 % {
264 % | \documentclass{article}|\\
265 % | \usepackage{t1enc,codepage}|\\
266 % | {\MakeHyphenationLetter{\EightFiveZero}{|\tt\`e|}|\\
267 % | \hyphenation{sys-t|\tt\`e|-me sys-t|\tt\`e|-mes}|\\
268 % | }|\\
269 % | \codepage{\EightFiveZero}{\DC}|\\
270 % | \begin{document}|\\
271 % | Unix est un joli syst|\tt \`e|me d'exploitation.|\\
272 % | \end{document}|
273 % }
274 %
275 % Cet exemple fonctionnera correctement si tous les caract\`e{}res
276 % au-del\`a{} de 127 sont disponibles. Certaines implantations de \TeX{} (comme
277 % \textsc{Emtex}) transforment tous les caract\`e{}res au-del\`a{} de 127 en
278 % caract\`e{}re 127 ou utilise des tables sp\'e{}ciales (les tables
279 % \textsc{Tcp} pour \textsc{EmTeX}).
280 %
281 % Pour obtenir un comportement correct avec \textsc{Emtex}, il faut
282 % utiliser l'option |/8| lorsque le format est g\'e{}n\'e{}r\'e{}.
283 %
284 % \fi
285 % \ifenglish
286 % \title{\texttt{code-page} a style to handle different code-pages in the same document}
287 % \author{Alain Aubord}
288 % \maketitle
289 % \begin{abstract}
290 % This package provides some new commands to handle code page\ft{A code page is the convention
291 % for associating a character with a number used to represent it in a computer.}. This text describes the
292 % interface offered by the package and some problems which occur when the implementation is done only
293 % in \TeX{}.
294 % \end{abstract}
295 %
296 % \section{Introduction\label{INTRO}}
297 %
298 % The version 3 of TeX provides some facilities to work with documents written in a language
299 % different than English. Mainly, by allowing the use of characters coded on eight bits (values from 1 to
300 % 255) and the possibility to use multiple hyphenation tables.
301 %
302 % Although, this improvements are necessary, they are not sufficient. The standard \LaTeX{} style
303 % should be adapted to the different languages and new polices of characters containing glyphs\ft{Most
304 % foreign languages use characters with accent or diacritical marks. The
305 % traditional way to draw an accented character in TeX is the composition, ---~i.e. by using a
306 % macro to put an accent over a letter~---. This method offer the possibility to put accent on any character,
307 % but prohibit hyphenation on word containing an accented letter.}
308 % for the characters used in other language than English should be defined.
309 %
310 %
311 % The style \Fich{Babel} and the new font \textsc{Dc} have been developed to solve these problems.
312 % Well, one could think, ``don't worry, be happy'', documents will be typeset without problem.
313 % Unfortunately this is not exactly the case, but the problem is outside \TeX{}: there isn't any
314 % unique code page! Moreover some systems allow the use of many different code pages.
315 % The \textsc{Dc} font obeys more or less to the \textsc{Iso Latin Set 1} standard, but many
316 % other code pages exist. The solutions to this problem are multiples:
317 % \begin{itemize}
318 % \item The use of on external program to do the translation.
319 % If the program is well interfaced with \TeX{} (like the \textsc{Tcp} tables of \textsc{Emtex})
320 % this solution is very efficient and comfortable to use. But its main disadvantage is to be
321 % implementation specific, and the transfer of the document on an other \TeX{} implementation
322 % is not easy.
323 % \item The use of virtual fonts to match the position of each character in a font to the local
324 % code page. This solution is fully integrated with \TeX{}\ft{Some old driver don't work with
325 % virtual fonts.}, but when a document is transferred, all the virtual fonts should
326 % be given with the document (or defined at the other place), and the problem of hyphenation
327 % (see~\ref{HYPHENATION}) is not solved.
328 % \item The use of the standard convention to write accented character in \TeX{} (i.e.|\'e| for \'e).
329 % This solution works well with \textsc{Dc} fonts (due to a very clever redefinition of macros
330 % for positioning accent) and, naturally, is totally portable with any \TeX{} (version 2 and 3).
331 % But the typing of accented characters is clumsy (even with a good editor) and
332 % the reading is boring.
333 % \item The use of the package \Fich{codepage} which is totally \TeX{} (version 3 only) compatible. It
334 % can be used to typeset without any modifications a document with an other code page than those of
335 % the local computer (this may be useful for a demo version of a document) and the problem of
336 % hyphenation is partially (for hyphenation exceptions) solved.
337 % But the transfer of document implies the use of package and most
338 % of characters above 127 are
339 % made ``active'' (they are like macros). This could cause some interference with other packages.
340 % \end{itemize}
341 % As one could see, no solution is totally perfect, this is due to the lack of a standard for code page not
342 % to \TeX{}\ft{If, one day, a such standard should be established, no doubts it will be defined on sixteen
343 % bits (number from 1 to 65535) to allow special characters for every applications (math symbols,
344 % foreign languages, etc...).}.
345 %
346 % \subsection{The hyphenation problem\label{HYPHENATION}}
347 % The algorithm used in the \TeX{} program to hyphenate word is based on patterns read when the
348 % format\ft{A format is a precompiled version of commands used to composed a document.} is build.
349 % During the build of the hyphenation table, all the characters are put to lowercase by using the
350 % \Comm{lccode} value. When a string of characters in a text is to be hyphenated, it is put in lowercase
351 % by using the \Comm{lccode} value and the compared with hyphenation table to find a good break point.
352 %
353 % If the pattern file use the \Comm{lccode} values defined for the \textsc{Dc} font (which is generally
354 % the case), a match will never occur with the character above 127 in a text with a different
355 % code page
356 % since the \Comm{lccode} are adapted to that code page\ft{This is mandatory to have a correct behaviour
357 % with the command \Comm{uppercase} and \Comm{lowercase}, which transform a character in lower or upper case,
358 % according to the values: \Comm{lccode} and \Comm{uccode}.}.
359 % Despite this fact, the use of a pattern file containing characters above 127 is a good
360 % idea\ft{The
361 % modification of the original pattern file should not be done to preserve portability and (often) to
362 % respect the wish of maintainer who want to have a standard file.}, because
363 % the results are surprisingly good (almost with French language). Moreover, the package \Fich{codepage}
364 % provides the command \Comm{MakeHyphenationLetter} to adapt locally the \Comm{lccode} value to
365 % a value usable by the |\hyphenation| command.
366 %
367 % \section{The user interface}
368 % The prime goal of the interface was to be ``as simple as possible''. Therefore it's composed by two
369 % macros and some constants:
370 %
371 % The code pages are defined by constants:
372 % \begin{description}
373 % \item[\Comm{FourThreeSeven}] for the code page 437 of the PC; this code page is the standard code
374 % page used with English system.
375 % \item[\Comm{EightFiveZero}] for the code page 850. This code page is similar to code page 437 but
376 % contain more accented characters and less mathematical and special glyphs. It is used by
377 % international systems.
378 % \item[\Comm{IsoOne}] Iso Latin set 1 (the windows characters).
379 % \item[\Comm{Mac}] \textsc{Mac Intosh} characters.
380 % \end{description}
381 % The \TeX{} encoding are defined by two other constants:
382 % \begin{description}
383 % \item[\Comm{CM}] for the standard original \TeX{} encoding. This code is defined on only 128 position
384 % and does not contain characters with diacritical marks.
385 % \item[\Comm{DC}] for the new code defined at Cork. When this code is chosen, the \textsc{Dc} fonts
386 % should be available.
387 % \end{description}
388 %
389 % Now the two main macros:
390 % \begin{description}
391 % \item[\Comm{codepage\#1\#2}] This macro has two parameters which should be the constants defined above. The
392 % first parameter is the local code page, the second the encoding of the fonts used with \TeX{}
393 % (|\DC|,|\CM|). This macro redefines all the macros for putting
394 % accent over a letter, the original macro is saved under
395 % a new name.
396 % \begin{center}
397 % \begin{tabular}{ll}
398 % \textbf{New name} & \textbf{Original command}\\
399 % \Comm{Grave} & \Comm{`} \\
400 % \Comm{Circumflex} & \Comm{\Circonflexe} \\
401 % \Comm{Tilda} & \Comm{\TildeChar} \\
402 % \Comm{OverBar} & \Comm{=} \\
403 % \Comm{UnderBar} & \Comm{b} \\
404 % \Comm{Join} & \Comm{t} \\
405 % \Comm{HungarUmlaut} & \Comm{H} \\
406 % \Comm{Acute} & \Comm{'} \\
407 % \Comm{Diaresis} & \Comm{"} \\
408 % \Comm{Breve} & \Comm{u} \\
409 % \Comm{OverDot} & \Comm{.} \\
410 % \Comm{UnderDot} & \Comm{d} \\
411 % \Comm{Tcheche} & \Comm{v} \\
412 % \Comm{Cedille} & \Comm{c} \\
413 % \end{tabular}
414 % \end{center}
415 % After the call of |\codepage| all the characters above 127 are ``active''.
416 % \item[\Comm{MakeHyphenationLetter\#1\#2}] This macro has two parameters,
417 % the first is the local code page
418 % and the second is a character above 127. This macro should always be called in a group
419 % (i.e. inside braces) to avoid undesirable change of \Comm{lccode}. After the call, the letter can be
420 % use in the macro |\hyphenation| to construct correct pattern for hyphenation exceptions.
421 % Unfortunately this is not one way transformation, and two different characters above 127 could have
422 % the same \Comm{lccode}. In this case a warning is used, but this could affect
423 % only exceptionally the use of |\hyphenation| command\ft{The tests done with the French language
424 % haven't shown any problem, although some french letters are
425 % in conflict.}. This macro is defined only when the \textsc{Dc}
426 % encoding is chosen.
427 % \item[\Comm{CurrentEncoding}] This macro contain the value of the
428 % encoding chosen. Its value is meaningful only after the call
429 % to the \Comm{codepage} command.
430 % \end{description}
431 %
432 % Now we have some other macros defined by the package. Normally they should be quite rarely used:
433 % \begin{description}
434 % \item[\Comm{TRtrue}] to allow the translation of special characters (this is the default value !).
435 % \item[\Comm{TRfalse}] to suppress the translation of special character. This is useful
436 % when writing special characters into auxiliary (external) files like (\texttt{.idx, .toc}).
437 % Sometimes, the translation should be done only when these files are read again and not when they are
438 % written.
439 % \item[\Comm{AllActive}] put the \Comm{catcode} for all characters above 127 to \Comm{active}.
440 % \item[\Comm{AllOther}] put the \Comm{catcode} for all characters above 127 to the value 12
441 % (other).
442 % \item[\Comm{og}] draw the opening french guillomet (defined only when \textsc{Cm} encoding is used).
443 % \item[\Comm{fg}] draw the closing french guillomet (defined only when \textsc{Cm} encoding is used).
444 % \item[\Comm{atcatcode}] contain the value of the |\catcode| for the
445 % character \textbf{@} or |\relax|
446 % outside the part of code where this |\catcode| is modified.
447 % \item[\Comm{CurrentEncoding}] contain the value of the \TeX{} encoding choosen.
448 % \end{description}
449 %
450 % \section{A short example (for \LaTeX2e)}
451 % {
452 % | \documentclass{article}|\\
453 % | \usepackage{t1enc,codepage}|\\
454 % | {\MakeHyphenationLetter{\EightFiveZero}{|\tt\`e|}|\\
455 % | \hyphenation{sys-t|\tt\`e|-me sys-t|\tt\`e|-mes}|\\
456 % | }|\\
457 % | \codepage{\EightFiveZero}{\DC}|\\
458 % | \begin{document}|\\
459 % | Unix est un joli syst|\tt \`e|me d'exploitation.|\\
460 % | \end{document}|
461 % }
462 %
463 % This example will work correctly if all the characters above 127 are usable. Some
464 % implementations (like
465 % \textsc{Emtex}) map all characters above 127 on character 127 or use special translation tables
466 % (\textsc{Tcp} tables for \textsc{EmTeX}). With \textsc{Emtex} the options |/8| should be used when
467 % the format is generated.
468 %
469 %\fi
470 %
471 % \StopEventually{
472 % \begin{thebibliography}{9}
473 % \bibitem{Companion} M.~Goosens, F.~Mittelbach, and A.~Samarin
474 % \emph{The \LaTeX{} Companion}, 1994, Addison-Wesley.
475 % \bibitem{TeXnician} V.~Eijkhout
476 % \emph{\TeX{} by Topic A \TeX nician's Reference}, 1992 Addison-Wesley
477 % \bibitem{PETIT} R.~Seroul
478 % \emph{Le petit livre de \TeX{}}, 1989, Inter\'Edition
479 % \end{thebibliography}
480 %}
481 %
482 % \section{The implementation\label{IMPLEMENTATION}}
483 %
484 % \subsection{Introduction}
485 %
486 % The package is divided in three parts:
487 % \begin{enumerate}
488 % \item The drawing of characters\ft{Not all the characters in all code page could be represented in \TeX{}.}.
489 % \item The definition for the different code pages.
490 % \item The interface.
491 % \end{enumerate}
492 %
493 % Inside the package the characters above 127 are defined by commands whose names try to follow
494 % the
495 % standard defined by the \textsc{Postscript} language (\Comm{eacute} will draw the character \'e).
496 %
497 % The definition of a code page is done by associating a character with the command which draw it. To be more
498 % precise the command \Comm{eacute} does not draw the character directly, but it define an active character
499 % to draw the glyph ``e acute''. Thus a code page table is a call to a command which define each character
500 % from this code page to become an active character which draw the desired glyph.
501 %
502 % In addition, the associated code (\Comm{uccode} and \Comm{lccode}) are adapted to the values used in the code
503 % page to have a correct behaviour with the commands \Comm{uppercase} and \Comm{lowercase}. The change of
504 % \Comm{lccode} prohibit correct hyphenation\ft{Generally, the hyphenation patterns are defined with the
505 % \textsc{Dc} characters and it's not a good idea to modify this file to adapt it to a particular code page.},
506 % therefore the command \Comm{MakeHyphenationLetter} is provided to circumvent this problem.
507 %
508 % \subsection{File \Fich{codepage.sty}}
509 %
510 % First of all, a general purpose counter used in all package is declared:
511 % \begin{macrocode}
512 %<*codepage>
513 % \end{macrocode}
514 %
515 % Now we save the category code for the character \textbf{@}
516 % \begin{macrocode}
517 \chardef\atcatcode=\catcode`\@
518 \catcode`\@=11\relax
519 % \end{macrocode}
520 % and we define some conditionals to be able to test:
521 % \begin{itemize}
522 % \item what format is used (because some commands do not exist in \TeX{})
523 % \item if the translation should be executed on every special character. This is obviously almost ever
524 % the case (why else using this package ?!) but in some cases this is not a good solution. When
525 % the special characters are written in an auxiliary files, it could be better to translate them
526 % when the text is read again, specially if these characters should be transform by commands such
527 % \Comm{lowercase} or \Comm{uppercase}.
528 % \item if it's the first time that the command \Comm{codepage} is called, because the definition for the
529 % command drawing of accents should be saved just the first time (to avoid recursion problem).
530 % \end{itemize}
531 % \begin{macrocode}
532 \newif\if@FirstCodePageCall
533 \@FirstCodePageCalltrue
534 \newif\ifTeX
535 \newif\ifTR % True if we do the translation of character
536 \TRtrue
537 % \end{macrocode}
538 %
539 % Here is the test to know if the format is plain \TeX{} or \LaTeX{}. This code is stolen
540 % from~\cite{TeXnician}.
541 % \begin{macrocode}
542 \expandafter\ifx\csname @currsize\endcsname\relax\TeXtrue\else\TeXfalse\fi
543 \ifTeX
544 \message{codepage.sty used in TeX context}%
545 \else
546 \typeout{codepage.sty used in LaTeX context}%
547 \fi
548 % \end{macrocode}
549 %
550 % \DescribeMacro{\@BadHyphenCarMsg}
551 % This macro is defined here because it's used in all code page tables. It issue a warning
552 % when a special character is used to hyphenate a word, but it is not really a letter. A symbol
553 % drawn using mathematical mode of \TeX{} could not be used to hyphenate word.
554 % \begin{macrocode}
555 \def\@BadHyphenCarMsg#1{%
556 \ifTeX
557 \message{Warning: the character \string #1 is not a character
558 to form a word}%
559 \message{Hyphenation can't be done with it}%
560 \else
561 \typeout{Warning: the character \string #1 is not a character
562 to form a word}%
563 \typeout{Hyphenation can't be done with it}%
564 \fi
565 }%@BadHyphenCarMsg
566 % \end{macrocode}
567 % \DescribeMacro{\@ConflictHyphenCarMsg}
568 % Due to the manner to treat the hyphenation (see paragraph~\ref{HYPHEN}),
569 % some conflicts could arise
570 % between two characters for hyphenation. The two arguments of the macro are the two characters in conflict.
571 % \begin{macrocode}
572 \def\@ConflictHyphenCarMsg#1#2{%
573 \ifTeX
574 \message{Warning the character #1 could be in conflict}%
575 \message{with character #2 for hyphenation algorithm !}%
576 \else
577 \typeout{Warning the character #1 could be in conflict}%
578 \typeout{with character #2 for hyphenation algorithm !}%
579 \fi
580 }%\@ConflictHyphenCarMsg
581 % \end{macrocode}
582 %
583 % Now we could declare the interface of the package, first the definition of constants
584 % \begin{macrocode}
585 \chardef\CM=0% The target font is CM encoding
586 \chardef\DC=1% The target font is DC encoding
587 \chardef\FourThreeSeven=0% Code page 437
588 \chardef\EightFiveZero=1% Code page 850
589 \chardef\IsoOne=2% Iso latin set 1
590 \chardef\Mac=3% Apple Mac Intosh characters
591 % \end{macrocode}
592 %
593 % \DescribeMacro{\codepage}
594 % This is the main macro which take two parameters:
595 % \begin{enumerate}
596 % \item the source code page of the document;
597 % \item the encoding scheme chosen for the output (\texttt{T1} or \texttt{OT1}).
598 % \end{enumerate}
599 % After the call of the macro, all the characters above 127 are made ``active''.
600 % Some characters draw their shape, the other issue a warning indicating that they could not be drawn
601 % with \TeX{} commands.
602 %
603 % The first thing to do is the save of the current encoding in a global
604 % variable and the save of the original macros for putting accents over
605 % letter.
606 % This should be done inside the macro to be independent of the order of style's declarations and
607 % it should be done just once to avoid the recursion problem.
608 % \begin{macrocode}
609 \def\codepage#1#2{%
610 \chardef\CurrentEncoding=#2%
611 \if@FirstCodePageCall
612 \let\Grave=\`%
613 \let\Circumflex=\^%
614 \let\Tilda=\~%
615 \let\OverBar=\=%
616 \let\UnderBar=\b%
617 \let\Join=\t%
618 \let\HungarUmlaut=\H%
619 \let\Acute=\'%
620 \let\Diaresis=\"%
621 \let\Breve=\u%
622 \let\OverDot=\.%
623 \let\UnderDot=\d%
624 \let\Tcheche=\v%
625 \let\Cedille=\c%
626 \@FirstCodePageCallfalse
627 \fi
628 % \end{macrocode}
629 % All the characters upper 127 are made active and the table for the
630 % code page of document is set.
631 % \begin{macrocode}
632 \AllActive
633 \ifcase#1%
634 \input code437 %
635 \or
636 \input code850 %
637 \or
638 \input codeiso1 %
639 \or
640 \input codemac %
641 \fi
642 % \end{macrocode}
643 % The last thing to do is to save with an other name the standard macros for drawing accent
644 % which are modified by ``tabbing''
645 % environment of \LaTeX{} and the suppression of white space generated.
646 % Thus the same macro's name could
647 % be used everywhere to put accent on character.
648 % \begin{macrocode}
649 \let\@Grave=\`%
650 \let\@Aigu=\'%
651 \let\@OverBar=\=%
652 \ignorespaces
653 }%\codepage
654 % \end{macrocode}
655 %
656 % \DescribeMacro{\AllActive}
657 % \begin{macrocode}
658 \def\AllActive{%
659 \catcode`\^^80=\active \catcode`\^^81=\active \catcode`\^^82=\active
660 \catcode`\^^83=\active \catcode`\^^84=\active \catcode`\^^85=\active
661 \catcode`\^^86=\active \catcode`\^^87=\active \catcode`\^^88=\active
662 \catcode`\^^89=\active \catcode`\^^8a=\active \catcode`\^^8b=\active
663 \catcode`\^^8c=\active \catcode`\^^8d=\active \catcode`\^^8e=\active
664 \catcode`\^^8f=\active \catcode`\^^90=\active \catcode`\^^91=\active
665 \catcode`\^^92=\active \catcode`\^^93=\active \catcode`\^^94=\active
666 \catcode`\^^95=\active \catcode`\^^96=\active \catcode`\^^97=\active
667 \catcode`\^^98=\active \catcode`\^^99=\active \catcode`\^^9a=\active
668 \catcode`\^^9b=\active \catcode`\^^9c=\active \catcode`\^^9d=\active
669 \catcode`\^^9e=\active \catcode`\^^9f=\active \catcode`\^^a0=\active
670 \catcode`\^^a1=\active \catcode`\^^a2=\active \catcode`\^^a3=\active
671 \catcode`\^^a4=\active \catcode`\^^a5=\active \catcode`\^^a6=\active
672 \catcode`\^^a7=\active \catcode`\^^a8=\active \catcode`\^^a9=\active
673 \catcode`\^^aa=\active \catcode`\^^ab=\active \catcode`\^^ac=\active
674 \catcode`\^^ad=\active \catcode`\^^ae=\active \catcode`\^^af=\active
675 \catcode`\^^b0=\active \catcode`\^^b1=\active \catcode`\^^b2=\active
676 \catcode`\^^b3=\active \catcode`\^^b4=\active \catcode`\^^b5=\active
677 \catcode`\^^b6=\active \catcode`\^^b7=\active \catcode`\^^b8=\active
678 \catcode`\^^b9=\active \catcode`\^^ba=\active \catcode`\^^bb=\active
679 \catcode`\^^bc=\active \catcode`\^^bd=\active \catcode`\^^be=\active
680 \catcode`\^^bf=\active \catcode`\^^c0=\active \catcode`\^^c1=\active
681 \catcode`\^^c2=\active \catcode`\^^c3=\active \catcode`\^^c4=\active
682 \catcode`\^^c5=\active \catcode`\^^c6=\active \catcode`\^^c7=\active
683 \catcode`\^^c8=\active \catcode`\^^c9=\active \catcode`\^^ca=\active
684 \catcode`\^^cb=\active \catcode`\^^cc=\active \catcode`\^^cd=\active
685 \catcode`\^^ce=\active \catcode`\^^cf=\active \catcode`\^^d0=\active
686 \catcode`\^^d1=\active \catcode`\^^d2=\active \catcode`\^^d3=\active
687 \catcode`\^^d4=\active \catcode`\^^d5=\active \catcode`\^^d6=\active
688 \catcode`\^^d7=\active \catcode`\^^d8=\active \catcode`\^^d9=\active
689 \catcode`\^^da=\active \catcode`\^^db=\active \catcode`\^^dc=\active
690 \catcode`\^^dd=\active \catcode`\^^de=\active \catcode`\^^df=\active
691 \catcode`\^^e0=\active \catcode`\^^e1=\active \catcode`\^^e2=\active
692 \catcode`\^^e3=\active \catcode`\^^e4=\active \catcode`\^^e5=\active
693 \catcode`\^^e6=\active \catcode`\^^e7=\active \catcode`\^^e8=\active
694 \catcode`\^^e9=\active \catcode`\^^ea=\active \catcode`\^^eb=\active
695 \catcode`\^^ec=\active \catcode`\^^ed=\active \catcode`\^^ee=\active
696 \catcode`\^^ef=\active \catcode`\^^f0=\active \catcode`\^^f1=\active
697 \catcode`\^^f2=\active \catcode`\^^f3=\active \catcode`\^^f4=\active
698 \catcode`\^^f5=\active \catcode`\^^f6=\active \catcode`\^^f7=\active
699 \catcode`\^^f8=\active \catcode`\^^f9=\active \catcode`\^^fa=\active
700 \catcode`\^^fb=\active \catcode`\^^fc=\active \catcode`\^^fd=\active
701 \catcode`\^^fe=\active \catcode`\^^ff=\active
702 }% \AllActive
703 % \end{macrocode}
704 %
705 % \DescribeMacro{\AllOther}
706 % \begin{macrocode}
707 \def\AllOther{%
708 % \end{macrocode}
709 % This definition is used to save space (two digits take twice as space than and
710 % macro) and to clarify the meaning of catcode.
711 % \begin{macrocode}
712 \chardef\other=12\relax
713 \catcode`\^^80=\other \catcode`\^^81=\other \catcode`\^^82=\other
714 \catcode`\^^83=\other \catcode`\^^84=\other \catcode`\^^85=\other
715 \catcode`\^^86=\other \catcode`\^^87=\other \catcode`\^^88=\other
716 \catcode`\^^89=\other \catcode`\^^8a=\other \catcode`\^^8b=\other
717 \catcode`\^^8c=\other \catcode`\^^8d=\other \catcode`\^^8e=\other
718 \catcode`\^^8f=\other \catcode`\^^90=\other \catcode`\^^91=\other
719 \catcode`\^^92=\other \catcode`\^^93=\other \catcode`\^^94=\other
720 \catcode`\^^95=\other \catcode`\^^96=\other \catcode`\^^97=\other
721 \catcode`\^^98=\other \catcode`\^^99=\other \catcode`\^^9a=\other
722 \catcode`\^^9b=\other \catcode`\^^9c=\other \catcode`\^^9d=\other
723 \catcode`\^^9e=\other \catcode`\^^9f=\other \catcode`\^^a0=\other
724 \catcode`\^^a1=\other \catcode`\^^a2=\other \catcode`\^^a3=\other
725 \catcode`\^^a4=\other \catcode`\^^a5=\other \catcode`\^^a6=\other
726 \catcode`\^^a7=\other \catcode`\^^a8=\other \catcode`\^^a9=\other
727 \catcode`\^^aa=\other \catcode`\^^ab=\other \catcode`\^^ac=\other
728 \catcode`\^^ad=\other \catcode`\^^ae=\other \catcode`\^^af=\other
729 \catcode`\^^b0=\other \catcode`\^^b1=\other \catcode`\^^b2=\other
730 \catcode`\^^b3=\other \catcode`\^^b4=\other \catcode`\^^b5=\other
731 \catcode`\^^b6=\other \catcode`\^^b7=\other \catcode`\^^b8=\other
732 \catcode`\^^b9=\other \catcode`\^^ba=\other \catcode`\^^bb=\other
733 \catcode`\^^bc=\other \catcode`\^^bd=\other \catcode`\^^be=\other
734 \catcode`\^^bf=\other \catcode`\^^c0=\other \catcode`\^^c1=\other
735 \catcode`\^^c2=\other \catcode`\^^c3=\other \catcode`\^^c4=\other
736 \catcode`\^^c5=\other \catcode`\^^c6=\other \catcode`\^^c7=\other
737 \catcode`\^^c8=\other \catcode`\^^c9=\other \catcode`\^^ca=\other
738 \catcode`\^^cb=\other \catcode`\^^cc=\other \catcode`\^^cd=\other
739 \catcode`\^^ce=\other \catcode`\^^cf=\other \catcode`\^^d0=\other
740 \catcode`\^^d1=\other \catcode`\^^d2=\other \catcode`\^^d3=\other
741 \catcode`\^^d4=\other \catcode`\^^d5=\other \catcode`\^^d6=\other
742 \catcode`\^^d7=\other \catcode`\^^d8=\other \catcode`\^^d9=\other
743 \catcode`\^^da=\other \catcode`\^^db=\other \catcode`\^^dc=\other
744 \catcode`\^^dd=\other \catcode`\^^de=\other \catcode`\^^df=\other
745 \catcode`\^^e0=\other \catcode`\^^e1=\other \catcode`\^^e2=\other
746 \catcode`\^^e3=\other \catcode`\^^e4=\other \catcode`\^^e5=\other
747 \catcode`\^^e6=\other \catcode`\^^e7=\other \catcode`\^^e8=\other
748 \catcode`\^^e9=\other \catcode`\^^ea=\other \catcode`\^^eb=\other
749 \catcode`\^^ec=\other \catcode`\^^ed=\other \catcode`\^^ee=\other
750 \catcode`\^^ef=\other \catcode`\^^f0=\other \catcode`\^^f1=\other
751 \catcode`\^^f2=\other \catcode`\^^f3=\other \catcode`\^^f4=\other
752 \catcode`\^^f5=\other \catcode`\^^f6=\other \catcode`\^^f7=\other
753 \catcode`\^^f8=\other \catcode`\^^f9=\other \catcode`\^^fa=\other
754 \catcode`\^^fb=\other \catcode`\^^fc=\other \catcode`\^^fd=\other
755 \catcode`\^^fe=\other \catcode`\^^ff=\other
756 }% \AllOther
757 % \end{macrocode}
758 %
759 % \DescribeMacro{\MakeHyphenationLetter}
760 % This macro allow a special letter to be use in a \Comm{hyphenation}
761 % command to declare hyphenation exceptions.
762 % To do the hyphenation \TeX{} will transform all the characters to lowercase (by using the \Comm{lowerccase}
763 % primitive) and then compare the string of characters with the table of hyphenation; if a match is found
764 % the hyphenation could be done.
765 %
766 % The \Comm{lccode} and the \Comm{uccode} are always defined in term of code page of document
767 % (for instance the code page 850 of PC), but the process of
768 % hyphenation comes at a very late stage when all the characters are already translated in the \textsc{Dc}
769 % encoding. Thus a match is never possible. The macro \Comm{MakeHyphenationLetter} will then change locally the
770 % value of \Comm{lccode} to anticipate what it will be when the character is translated. Unfortunately this
771 % transformation is not one way, and different characters could give the same result, but this case is
772 % quite rare and a warning is issued.
773 %
774 % The two parameters for the macro are the code page of the document and the letter to be used in the
775 % \Comm{hyphenation} command.
776 % \begin{macrocode}
777 \def\MakeHyphenationLetter#1#2{%
778 \ifcase#1%
779 \@MakeHyphenationFourThreeSeven{#2}%
780 \or
781 \@MakeHyphenationEightFiveZero{#2}%
782 \or
783 \@MakeHyphenationLatinOne{#2}%
784 \or
785 \@MakeHyphenationMac{#2}%
786 \fi
787 }% MakeHyphenationLetter
788 % \end{macrocode}
789 %
790 % \DescribeMacro{\@CarSmaller}
791 % Macros that work only with \LaTeX, and draw character smaller (two steps less
792 % than current writing size ie. normalsize is set to footnotesize).
793 % With \TeX{} this macros does nothing.
794 % \begin{macrocode}
795 \def\@CarSmaller{\ifTeX
796 %Do nothing
797 \else
798 %We are in LaTeX
799 \ifx\@currsize\normalsize\relax
800 \footnotesize
801 \else
802 \ifx\@currsize\small\relax
803 \scriptsize
804 \else
805 \ifx\@currsize\footnotesize\relax
806 \tiny
807 \else
808 \ifx\@currsize\scriptsize\relax
809 \tiny % we cannot have less
810 \fi
811 \fi
812 \fi
813 \fi
814 \ifx\@currsize\large\relax
815 \small
816 \else
817 \ifx\@currsize\Large\relax
818 \normalsize
819 \else
820 \ifx\@currsize\LARGE\relax
821 \large
822 \else
823 \ifx\@currsize\huge\relax
824 \Large
825 \else
826 \ifx\@currsize\Huge\relax
827 \LARGE
828 \fi
829 \fi
830 \fi
831 \fi
832 \fi
833 \fi
834 }% \@CarSmaller
835 % \end{macrocode}
836 %
837 % \DescribeMacro{\@Sup}
838 % \begin{macrocode}
839 \def\@Sup#1{%
840 \ifmmode
841 ^{\hbox{\@CarSmaller #1}}%
842 \else
843 $^{\hbox{\@CarSmaller #1}}$%
844 \fi
845 }%\@Sup
846 % \end{macrocode}
847 % \DescribeMacro{\@Fraction}
848 % Create a fraction (for one half, one quarter etc.)
849 % \begin{macrocode}
850 \def\@Fraction#1#2{%
851 \ifmmode
852 \ifTeX
853 #1\over#2%
854 \else
855 \frac{#1}{#2}%
856 \fi
857 \else
858 \ifTeX
859 $#1\over#2$%
860 \else
861 $\frac{#1}{#2}$%
862 \fi
863 \fi
864 }%\@Fraction
865 % \end{macrocode}
866 %
867 % \DescribeMacro{\@MathSymbol}
868 % MathSymbol defines its first parameter to print the mathematical
869 % symbol given as second parameter (given without {\tt\bslash{}})
870 % \begin{macrocode}
871 \def\@MathSymbol#1#2{%
872 %Do the global definitions
873 \gdef#1{\ifTR
874 \ifmmode
875 % Already in math ==> no $
876 \csname#2\endcsname
877 \else
878 $\csname#2\endcsname$%
879 \fi
880 \else
881 %No translation to do
882 \string#1%
883 \fi
884 }%
885 }%\@MathSymbol
886 % \end{macrocode}
887 % \DescribeMacro{\@InMath}
888 % @InMath write its argument in mathematical mode (given without {\tt\bslash{}})
889 % \begin{macrocode}
890 \def\@InMath#1{%
891 \ifmmode
892 % Already in math ==> no $
893 \csname#1\endcsname
894 \else
895 $\csname#1\endcsname$%
896 \fi
897 }%\@InMath
898 % \end{macrocode}
899 %
900 % \DescribeMacro{\@UC}
901 % \begin{macrocode}
902 \def\@UC#1#2#3{%
903 \global\uccode`#1=#2\global\lccode`#1=#3%
904 }%
905 % \end{macrocode}
906 %
907 % \DescribeMacro{\@DefaultValue}
908 %Define the default macro for an active character which could not be printed.
909 % \begin{macrocode}
910 \def\@DefaultValue#1{%
911 \ifTeX
912 \message{The character No #1 doesn't exist in target
913 font (ignored) !}%
914 \else
915 \typeout{The character No #1 doesn't exist in target
916 font (ignored) !}%
917 \fi
918 }%
919 % \end{macrocode}
920 % The last thing to do is to restore the value of \textbf{@} character
921 % \begin{macrocode}
922 \catcode`\@=\atcatcode \let\atcatcode\relax
923 %</codepage>
924 % \end{macrocode}
925 %
926 % \subsection{The drawing of characters (Files
927 % \Fich{shapecm.tex}, \Fich{shapedc.tex})}
928 %
929 %
930 % One file for every different possible (in \TeX{}) coding scheme is
931 % used. Each file should define macros to draw the characters and the
932 % accents in \TeX. All files should contain the same macros.
933 %
934 % \penalty -200
935 % Two types of macros are provided:
936 % \penalty 10000
937 % \begin{itemize}
938 % \item The macros prefixed with the @ character which are used to facilitate
939 % the drawing of some characters.
940 % These macros should be global and shared by all the
941 % active characters (thus they are declared in the file
942 % \Fich{codepage.tex}).
943 % \item The macros to define active characters. The name of
944 % these macro follows the Postscript conventions for
945 % character's name (whenever possible) and does not
946 % contain an @ character.
947 % \end{itemize}
948 %
949 % The auxiliary macros which are used are:
950 % \begin{description}
951 % \item[\Comm{@Sup}] to put its argument in superscript
952 % \item[\Comm{@Fraction}] to create a fraction with the first parameter over the second in
953 % smaller size than the current writing
954 % size.
955 % \item[\Comm{@CarSmaller}] which change the font to have
956 % a font two steps smaller than
957 % the current font (do nothing in \TeX{}).
958 % \item[\Comm{@MathSymbol}] draw a predefined \TeX{} math symbol.
959 % \item[\Comm{@UC}] just to have one macro for doing the same action
960 % many times.
961 % \end{description}
962 %
963 % \begin{macrocode}
964 %<*shapecm>
965 \chardef\atcatcode=\catcode`\@
966 \catcode`\@=11\relax
967 % \end{macrocode}
968 % \DescribeMacro{\@StartNewWord}
969 % This macro give the possibility to hyphenate word containing special characters between
970 % the syllabs containing the accented character. The trick used is to isolate a special character
971 % by surrounding it with ``end of word'' mark (i.e. a white space of 0pt where the hyphenation
972 % is prohibited).
973 %
974 % These techniques are used since many year in \TeX{} communauty.
975 % \begin{macrocode}
976 \gdef\@StartNewWord{\penalty\@M\hskip\z@skip}%
977 % \end{macrocode}
978 % \DescribeMacro{\@TreatDotLessCar}
979 % Change a dot character to remove the dot when used with an accented character.
980 % \begin{macrocode}
981 \gdef\@TreatDotLessCar#1#2{%
982 \@StartNewWord
983 \ifx#1i%
984 \csname#2\endcsname \i
985 \else
986 \ifx#1j%
987 \csname#2\endcsname \j
988 \else
989 \csname#2\endcsname #1%
990 \fi
991 \fi
992 \@StartNewWord}%
993 \gdef\`#1{{\@TreatDotLessCar{#1}{Grave}}}%
994 \gdef\^#1{{\@TreatDotLessCar{#1}{Circumflex}}}%
995 \gdef\~#1{{\@TreatDotLessCar{#1}{Tilda}}}%
996 \gdef\=#1{{\@TreatDotLessCar{#1}{OverBar}}}%
997 \gdef\b#1{{\underbar #1\@StartNewWord}}%
998 \gdef\t#1{{\@TreatDotLessCar{#1}{Join}}}%
999 \gdef\H#1{{\@TreatDotLessCar{#1}{HungarUmlaut}}}%
1000 \gdef\'#1{{\@TreatDotLessCar{#1}{Acute}}}%
1001 \gdef\"#1{{\@TreatDotLessCar{#1}{Diaresis}}}%
1002 \gdef\u#1{{\@TreatDotLessCar{#1}{Breve}}}%
1003 \gdef\.#1{{\@TreatDotLessCar{#1}{OverDot}}}%
1004 \gdef\d#1{{\UnderDot #1\@StartNewWord}}%
1005 \gdef\v#1{{\@TreatDotLessCar{#1}{Tcheche}}}%
1006 \gdef\c#1{{\Cedille #1\@StartNewWord}}%
1007 % \end{macrocode}
1008 % Now we should define the definition for the french quotation marks which aren't defined
1009 % in the \textsc{Cm} font. The code is taken from~\cite{PETIT}.
1010 % \begin{macrocode}
1011 \gdef\og{\leavevmode\raise.3ex\hbox{$\scriptscriptstyle\langle\!\langle\,$}}%
1012 \gdef\fg{\leavevmode\raise.3ex\hbox{$\scriptscriptstyle\,\rangle\!\rangle$}}%
1013 % \end{macrocode}
1014 % This is a rudimentary code to obtain pounds sign in \TeX{} mode.
1015 % \begin{macrocode}
1016 \ifTeX\gdef\pounds{{\it\$}}\fi
1017 % \end{macrocode}
1018 %
1019 % The macros for defining
1020 % a active character to draw its glyph has always three parameters:
1021 % \begin{enumerate}
1022 % \item The character in source font (should be active before the call)
1023 % \item The uppercase code
1024 % \item The lowercase code
1025 % \end{enumerate}
1026 %
1027 % \begin{macrocode}
1028 \def\dieresis#1#2#3{%
1029 % \end{macrocode}
1030 % This macro will define an active character to draw a ``diaresis'' character.
1031 % The first thing to do is to set the \Comm{lccode} and \Comm{uccode} to values meaningful for the
1032 % code page of the document.
1033 % \begin{macrocode}
1034 \@UC{#1}{#2}{#3}%
1035 % \end{macrocode}
1036 % Then, depending on the \TeX{} encoding, the translation is done if the test \Comm{ifTR} is true, else
1037 % the character is left verbatim (with \Comm{catcode=12}). When
1038 % |\ifTR| is true, the character is written |\char "xx| for
1039 % the \textsc{Dc} encoding and it is composed (i.e. |\'e|)
1040 % for the \textsc{Cm} encoding.
1041 % \begin{macrocode}
1042 \gdef#1{\ifTR\char"7F{}\else\string#1\fi}%
1043 }%
1044 \def\acute#1#2#3{%
1045 \@UC{#1}{#2}{#3}%
1046 \gdef#1{\ifTR\char"13{}\else\string#1\fi}%
1047 }%
1048 \def\cedilla#1#2#3{%
1049 \@UC{#1}{#2}{#3}%
1050 \gdef#1{\ifTR\char"18{}\else\string#1\fi}%
1051 }%
1052 \def\Agrave#1#2#3{%
1053 \@UC{#1}{#2}{#3}%
1054 \gdef#1{\ifTR\ifmmode\grave{A}\else\@Grave{A}\fi\else\string#1\fi}%
1055 }%
1056 \def\Aacute#1#2#3{%
1057 \@UC{#1}{#2}{#3}%
1058 \gdef#1{\ifTR\ifmmode\acute{A}\else\@Aigu{A}\fi\else\string#1\fi}%
1059 }%
1060 \def\Acircumflex#1#2#3{%
1061 \@UC{#1}{#2}{#3}%
1062 \gdef#1{\ifTR\ifmmode\hat{A}\else\^{A}\fi\else\string#1\fi}%
1063 }%
1064 \def\Atilde#1#2#3{%
1065 \@UC{#1}{#2}{#3}%
1066 \gdef#1{\ifTR\ifmmode\tilde{A}\else\~{A}\fi\else\string#1\fi}%
1067 }%
1068 \def\Adieresis#1#2#3{%
1069 \@UC{#1}{#2}{#3}%
1070 \gdef#1{\ifTR\ifmmode\ddot{A}\else\"{A}\fi\else\string#1\fi}%
1071 }%
1072 \def\Aring#1#2#3{%
1073 \@UC{#1}{#2}{#3}%
1074 \gdef#1{\ifTR\AA{}\else\string#1\fi}%
1075 }%
1076 \def\fiLigature#1#2#3{%
1077 \@UC{#1}{#2}{#3}%
1078 \gdef#1{\ifTR{fi}\else\string#1\fi}%
1079 }%
1080 \def\flLigature#1#2#3{%
1081 \@UC{#1}{#2}{#3}%
1082 \gdef#1{\ifTR{fl}\else\string#1\fi}%
1083 }%
1084 \def\AE#1#2#3{%
1085 \@UC{#1}{#2}{#3}%
1086 \gdef#1{\ifTR\AE{}\else\string#1\fi}%
1087 }%
1088 \def\Ccedilla#1#2#3{%
1089 \@UC{#1}{#2}{#3}%
1090 \gdef#1{\ifTR\c {C}\else\string#1\fi}%
1091 }%
1092 \def\Egrave#1#2#3{%
1093 \@UC{#1}{#2}{#3}%
1094 \gdef#1{\ifTR\ifmmode\grave{E}\else\@Grave{E}\fi\else\string#1\fi}%
1095 }%
1096 \def\Eacute#1#2#3{%
1097 \@UC{#1}{#2}{#3}%
1098 \gdef#1{\ifTR\ifmmode\acute{E}\else\@Aigu{E}\fi\else\string#1\fi}%
1099 }%
1100 \def\Ecircumflex#1#2#3{%
1101 \@UC{#1}{#2}{#3}%
1102 \gdef#1{\ifTR\ifmmode\hat{E}\else\^{E}\fi\else\string#1\fi}%
1103 }%
1104 \def\Edieresis#1#2#3{%
1105 \@UC{#1}{#2}{#3}%
1106 \gdef#1{\ifTR\ifmmode\ddot{E}\else\"{E}\fi\else\string#1\fi}%
1107 }%
1108 \def\Igrave#1#2#3{%
1109 \@UC{#1}{#2}{#3}%
1110 \gdef#1{\ifTR\ifmmode\grave{I}\else\@Grave{I}\fi\else\string#1\fi}%
1111 }%
1112 \def\Iacute#1#2#3{%
1113 \@UC{#1}{#2}{#3}%
1114 \gdef#1{\ifTR\ifmmode\acute{I}\else\@Aigu{I}\fi\else\string#1\fi}%
1115 }%
1116 \def\Icircumflex#1#2#3{%
1117 \@UC{#1}{#2}{#3}%
1118 \gdef#1{\ifTR\ifmmode\hat{I}\else\^{I}\fi\else\string#1\fi}%
1119 }%
1120 \def\Idieresis#1#2#3{%
1121 \@UC{#1}{#2}{#3}%
1122 \gdef#1{\ifTR\ifmmode\ddot{I}\else\"{I}\fi\else\string#1\fi}%
1123 }%
1124 \def\DBar#1#2#3{%
1125 \@UC{#1}{#2}{#3}%
1126 % nothing to do we use the default value
1127 }%
1128 \def\Ntilde#1#2#3{%
1129 \@UC{#1}{#2}{#3}%
1130 \gdef#1{\ifTR\ifmmode\tilde{N}\else\~{N}\fi\else\string#1\fi}%
1131 }%
1132 \def\Ograve#1#2#3{%
1133 \@UC{#1}{#2}{#3}%
1134 \gdef#1{\ifTR\ifmmode\grave{O}\else\@Grave{O}\fi\else\string#1\fi}%
1135 }%
1136 \def\Oacute#1#2#3{%
1137 \@UC{#1}{#2}{#3}%
1138 \gdef#1{\ifTR\ifmmode\acute{O}\else\@Aigu{O}\fi\else\string#1\fi}%
1139 }%
1140 \def\Ocircumflex#1#2#3{%
1141 \@UC{#1}{#2}{#3}%
1142 \gdef#1{\ifTR\ifmmode\hat{O}\else\^{O}\fi\else\string#1\fi}%
1143 }%
1144 \def\Otilde#1#2#3{%
1145 \@UC{#1}{#2}{#3}%
1146 \gdef#1{\ifTR\ifmmode\tilde{O}\else\~{O}\fi\else\string#1\fi}%
1147 }%
1148 \def\Odieresis#1#2#3{%
1149 \@UC{#1}{#2}{#3}%
1150 \gdef#1{\ifTR\ifmmode\ddot{O}\else\"{O}\fi\else\string#1\fi}%
1151 }%
1152 \def\Oslash#1#2#3{%
1153 \@UC{#1}{#2}{#3}%
1154 \gdef#1{\ifTR\O{}\else\string#1\fi}%
1155 }%
1156 \def\Ugrave#1#2#3{%
1157 \@UC{#1}{#2}{#3}%
1158 \gdef#1{\ifTR\ifmmode\grave{U}\else\@Grave{U}\fi\else\string#1\fi}%
1159 }%
1160 \def\Uacute#1#2#3{%
1161 \@UC{#1}{#2}{#3}%
1162 \gdef#1{\ifTR\ifmmode\acute{U}\else\@Aigu{U}\fi\else\string#1\fi}%
1163 }%
1164 \def\Ucircumflex#1#2#3{%
1165 \@UC{#1}{#2}{#3}%
1166 \gdef#1{\ifTR\ifmmode\hat{U}\else\^{U}\fi\else\string#1\fi}%
1167 }%
1168 \def\Udieresis#1#2#3{%
1169 \@UC{#1}{#2}{#3}%
1170 \gdef#1{\ifTR\ifmmode\ddot{U}\else\"{U}\fi\else\string#1\fi}%
1171 }%
1172 \def\Yacute#1#2#3{%
1173 \@UC{#1}{#2}{#3}%
1174 \gdef#1{\ifTR\ifmmode\acute{Y}\else\@Aigu{Y}\fi\else\string#1\fi}%
1175 }%
1176 \def\Thorn#1#2#3{%
1177 \@UC{#1}{#2}{#3}%
1178 % no definition in CM
1179 }%
1180 \def\germandbls#1#2#3{%
1181 \@UC{#1}{#2}{#3}%
1182 \gdef#1{\ifTR{SS}\else\string#1\fi}%
1183 }%
1184 \def\agrave#1#2#3{%
1185 \@UC{#1}{#2}{#3}%
1186 \gdef#1{\ifTR\ifmmode\grave{a}\else\@Grave{a}\fi\else\string#1\fi}%
1187 }%
1188 \def\aacute#1#2#3{%
1189 \@UC{#1}{#2}{#3}%
1190 \gdef#1{\ifTR\ifmmode\acute{a}\else\@Aigu{a}\fi\else\string#1\fi}%
1191 }%
1192 \def\acircumflex#1#2#3{%
1193 \@UC{#1}{#2}{#3}%
1194 \gdef#1{\ifTR\ifmmode\hat{a}\else\^{a}\fi\else\string#1\fi}%
1195 }%
1196 \def\atilde#1#2#3{%
1197 \@UC{#1}{#2}{#3}%
1198 \gdef#1{\ifTR\ifmmode\tilde{a}\else\~{a}\fi\else\string#1\fi}%
1199 }%
1200 \def\adieresis#1#2#3{%
1201 \@UC{#1}{#2}{#3}%
1202 \gdef#1{\ifTR\ifmmode\ddot{a}\else\"{a}\fi\else\string#1\fi}%
1203 }%
1204 \def\aring#1#2#3{%
1205 \@UC{#1}{#2}{#3}%
1206 \gdef#1{\ifTR\aa{}\else\string#1\fi}%
1207 }%
1208 \def\ae#1#2#3{%
1209 \@UC{#1}{#2}{#3}%
1210 \gdef#1{\ifTR\ae{}\else\string#1\fi}%
1211 }%
1212 \def\ccedilla#1#2#3{%
1213 \@UC{#1}{#2}{#3}%
1214 \gdef#1{\ifTR\c {c}\else\string#1\fi}%
1215 }%
1216 \def\egrave#1#2#3{%
1217 \@UC{#1}{#2}{#3}%
1218 \gdef#1{\ifTR\ifmmode\grave{e}\else\@Grave{e}\fi\else\string#1\fi}%
1219 }%
1220 \def\eacute#1#2#3{%
1221 \@UC{#1}{#2}{#3}%
1222 \gdef#1{\ifTR\ifmmode\acute{e}\else\@Aigu{e}\fi\else\string#1\fi}%
1223 }%
1224 \def\ecircumflex#1#2#3{%
1225 \@UC{#1}{#2}{#3}%
1226 \gdef#1{\ifTR\ifmmode\hat{e}\else\^{e}\fi\else\string#1\fi}%
1227 }%
1228 \def\edieresis#1#2#3{%
1229 \@UC{#1}{#2}{#3}%
1230 \gdef#1{\ifTR\ifmmode\ddot{e}\else\"{e}\fi\else\string#1\fi}%
1231 }%
1232 \def\igrave#1#2#3{%
1233 \@UC{#1}{#2}{#3}%
1234 \gdef#1{\ifTR\ifmmode\grave{i}\else\@Grave{i}\fi\else\string#1\fi}%
1235 }%
1236 \def\iacute#1#2#3{%
1237 \@UC{#1}{#2}{#3}%
1238 \gdef#1{\ifTR\ifmmode\acute{i}\else\@Aigu{i}\fi\else\string#1\fi}%
1239 }%
1240 \def\icircumflex#1#2#3{%
1241 \@UC{#1}{#2}{#3}%
1242 \gdef#1{\ifTR\ifmmode\hat{i}\else\^{i}\fi\else\string#1\fi}%
1243 }%
1244 \def\idieresis#1#2#3{%
1245 \@UC{#1}{#2}{#3}%
1246 \gdef#1{\ifTR\ifmmode\ddot{i}\else\"{i}\fi\else\string#1\fi}%
1247 }%
1248 \def\dBar#1#2#3{%
1249 \@UC{#1}{#2}{#3}%
1250 % no definition in CM
1251 }%
1252 \def\ntilde#1#2#3{%
1253 \@UC{#1}{#2}{#3}%
1254 \gdef#1{\ifTR\ifmmode\tilde{n}\else\~{n}\fi\else\string#1\fi}%
1255 }%
1256 \def\ograve#1#2#3{%
1257 \@UC{#1}{#2}{#3}%
1258 \gdef#1{\ifTR\ifmmode\grave{o}\else\@Grave{o}\fi\else\string#1\fi}%
1259 }%
1260 \def\oacute#1#2#3{%
1261 \@UC{#1}{#2}{#3}%
1262 \gdef#1{\ifTR\ifmmode\acute{o}\else\@Aigu{o}\fi\else\string#1\fi}%
1263 }%
1264 \def\ocircumflex#1#2#3{%
1265 \@UC{#1}{#2}{#3}%
1266 \gdef#1{\ifTR\ifmmode\hat{o}\else\^{o}\fi\else\string#1\fi}%
1267 }%
1268 \def\otilde#1#2#3{%
1269 \@UC{#1}{#2}{#3}%
1270 \gdef#1{\ifTR\ifmmode\tilde{o}\else\~{o}\fi\else\string#1\fi}%
1271 }%
1272 \def\odieresis#1#2#3{%
1273 \@UC{#1}{#2}{#3}%
1274 \gdef#1{\ifTR\ifmmode\ddot{o}\else\"{o}\fi\else\string#1\fi}%
1275 }%
1276 \def\OE#1#2#3{%
1277 \@UC{#1}{#2}{#3}%
1278 \gdef#1{\ifTR\OE{}\else\string#1\fi}%
1279 }%
1280 \def\oe#1#2#3{%
1281 \@UC{#1}{#2}{#3}%
1282 \gdef#1{\ifTR\oe{}\else\string#1\fi}%
1283 }%
1284 \def\oslash#1#2#3{%
1285 \@UC{#1}{#2}{#3}%
1286 \gdef#1{\ifTR\o{}\else\string#1\fi}%
1287 }%
1288 \def\ugrave#1#2#3{%
1289 \@UC{#1}{#2}{#3}%
1290 \gdef#1{\ifTR\ifmmode\grave{u}\else\@Grave{u}\fi\else\string#1\fi}%
1291 }%
1292 \def\uacute#1#2#3{%
1293 \@UC{#1}{#2}{#3}%
1294 \gdef#1{\ifTR\ifmmode\acute{u}\else\@Aigu{u}\fi\else\string#1\fi}%
1295 }%
1296 \def\ucircumflex#1#2#3{%
1297 \@UC{#1}{#2}{#3}%
1298 \gdef#1{\ifTR\ifmmode\hat{u}\else\^{u}\fi\else\string#1\fi}%
1299 }%
1300 \def\udieresis#1#2#3{%
1301 \@UC{#1}{#2}{#3}%
1302 \gdef#1{\ifTR\ifmmode\ddot{u}\else\"{u}\fi\else\string#1\fi}%
1303 }%
1304 \def\yacute#1#2#3{%
1305 \@UC{#1}{#2}{#3}%
1306 \gdef#1{\ifTR\ifmmode\acute{y}\else\@Aigu{y}\fi\else\string#1\fi}%
1307 }%
1308 \def\thorn#1#2#3{%
1309 \@UC{#1}{#2}{#3}%
1310 % no definition in CM
1311 }%
1312 \def\ydieresis#1#2#3{%
1313 \@UC{#1}{#2}{#3}%
1314 \gdef#1{\ifTR\ifmmode\ddot{y}\else\"{y}\fi\else\string#1\fi}%
1315 }%
1316 \def\Ydieresis#1#2#3{%
1317 \@UC{#1}{#2}{#3}%
1318 \gdef#1{\ifTR\ifmmode\ddot{Y}\else\"{Y}\fi\else\string#1\fi}%
1319 }%
1320 %
1321 \def\alpha#1#2#3{%
1322 \@UC{#1}{#2}{#3}%
1323 \@MathSymbol{#1}{alpha}%
1324 }%
1325 \def\approx#1#2#3{%
1326 \@UC{#1}{#2}{#3}%
1327 \@MathSymbol{#1}{approx}%
1328 }%
1329 \def\beta#1#2#3{%
1330 \@UC{#1}{#2}{#3}%
1331 \@MathSymbol{#1}{beta}%
1332 }%
1333 \def\bullet#1#2#3{%
1334 \@UC{#1}{#2}{#3}%
1335 \@MathSymbol{#1}{bullet}%
1336 }%
1337 \def\cap#1#2#3{%
1338 \@UC{#1}{#2}{#3}%
1339 \@MathSymbol{#1}{cap}%
1340 }%
1341 \def\cent#1#2#3{%
1342 \@UC{#1}{#2}{#3}%
1343 % no definition in CM
1344 % no definition in DC
1345 }%
1346 \def\guillemeotright#1#2#3{%
1347 \@UC{#1}{#2}{#3}%
1348 \gdef#1{\ifTR\fg{}\else\string#1\fi}%
1349 }%
1350 \def\copyright#1#2#3{%
1351 \@UC{#1}{#2}{#3}%
1352 \gdef#1{\ifTR\copyright{}\else\string#1\fi}%
1353 }%
1354 \def\currency#1#2#3{% character hex A4 in Iso latin set 1
1355 \@UC{#1}{#2}{#3}%
1356 % no definition in CM
1357 }%
1358 \def\degree#1#2#3{%
1359 \@UC{#1}{#2}{#3}%
1360 }%
1361 \def\dag#1#2#3{%
1362 \@UC{#1}{#2}{#3}%
1363 \@MathSymbol{#1}{dag}%
1364 }%
1365 \def\ddag#1#2#3{%
1366 \@UC{#1}{#2}{#3}%
1367 \@MathSymbol{#1}{ddag}%
1368 }%
1369 \def\delta#1#2#3{%
1370 \@UC{#1}{#2}{#3}%
1371 \@MathSymbol{#1}{delta}%
1372 }%
1373 \def\div#1#2#3{%
1374 \@UC{#1}{#2}{#3}%
1375 \@MathSymbol{#1}{div}%
1376 }%
1377 \def\diamond#1#2#3{%
1378 \@UC{#1}{#2}{#3}%
1379 \@MathSymbol{#1}{Diamond}%
1380 }%
1381 \def\emptysetSign#1#2#3{%
1382 \@UC{#1}{#2}{#3}%
1383 \@MathSymbol{#1}{emptyset}% is nicer than epsilon
1384 }%
1385 \def\section#1#2#3{%
1386 \@UC{#1}{#2}{#3}%
1387 \gdef#1{\ifTR{\S}\else\string#1\fi}%
1388 }%
1389 \def\epsilon#1#2#3{%
1390 \@UC{#1}{#2}{#3}%
1391 \@MathSymbol{#1}{varepsilon}% is nicer than epsilon
1392 }%
1393 \def\equiv#1#2#3{%
1394 \@UC{#1}{#2}{#3}%
1395 \@MathSymbol{#1}{equiv}%
1396 }%
1397 \def\ellipsis#1#2#3{%
1398 \@UC{#1}{#2}{#3}%
1399 \gdef#1{\ifTR{...}\else\string#1\fi}%
1400 }%
1401 \def\exclamdown#1#2#3{%
1402 \@UC{#1}{#2}{#3}%
1403 \gdef#1{\ifTR{!`}\else\string#1\fi}%
1404 }%
1405 \def\ordfeminine#1#2#3{%
1406 \@UC{#1}{#2}{#3}%
1407 \gdef#1{\ifTR\@Sup{\b{a}}\else\string#1\fi}%
1408 }%
1409 \def\geq#1#2#3{%
1410 \@UC{#1}{#2}{#3}%
1411 \@MathSymbol{#1}{geq}%
1412 }%
1413 \def\Gamma#1#2#3{%
1414 \@UC{#1}{#2}{#3}%
1415 \@MathSymbol{#1}{Gamma}%
1416 }%
1417 \def\infty#1#2#3{%
1418 \@UC{#1}{#2}{#3}%
1419 \@MathSymbol{#1}{infty}%
1420 }%
1421 \def\leq#1#2#3{%
1422 \@UC{#1}{#2}{#3}%
1423 \@MathSymbol{#1}{leq}%
1424 }%
1425 \def\emdash#1#2#3{%
1426 \@UC{#1}{#2}{#3}%
1427 \gdef#1{\ifTR{---}\else\string#1\fi}%
1428 }%
1429 \def\ordmasculine#1#2#3{%
1430 \@UC{#1}{#2}{#3}%
1431 \gdef#1{\ifTR\@Sup{\b{o}}\else\string#1\fi}%
1432 }%
1433 \def\mu#1#2#3{%
1434 \@UC{#1}{#2}{#3}%
1435 \@MathSymbol{#1}{mu}%
1436 }%
1437 \def\neg#1#2#3{%
1438 \@UC{#1}{#2}{#3}%
1439 \@MathSymbol{#1}{neg}%
1440 }%
1441 \def\neq#1#2#3{%
1442 \@UC{#1}{#2}{#3}%
1443 \@MathSymbol{#1}{neq}%
1444 }%
1445 \def\unbreakablespace#1#2#3{%
1446 \@UC{#1}{#2}{#3}%
1447 \gdef#1{\ifTR~\else\string#1\fi}%
1448 }%
1449 \def\Omega#1#2#3{%
1450 \@UC{#1}{#2}{#3}%
1451 \@MathSymbol{#1}{Omega}%
1452 }%
1453 \def\OneHalf#1#2#3{%
1454 \@UC{#1}{#2}{#3}%
1455 \gdef#1{\ifTR{\@Fraction{1}{2}}\else\string#1\fi}%
1456 }%
1457 \def\OneQuarter#1#2#3{%
1458 \@UC{#1}{#2}{#3}%
1459 \gdef#1{\ifTR{\@Fraction{1}{4}}\else\string#1\fi}%
1460 }%
1461 \def\guilletmotleft#1#2#3{%
1462 \@UC{#1}{#2}{#3}%
1463 \gdef#1{\ifTR\og{}\else\string#1\fi}%
1464 }%
1465 \def\Pi#1#2#3{%
1466 \@UC{#1}{#2}{#3}%
1467 \@MathSymbol{#1}{Pi}%
1468 }%
1469 \def\pi#1#2#3{%
1470 \@UC{#1}{#2}{#3}%
1471 \@MathSymbol{#1}{pi}%
1472 }%
1473 \def\pm#1#2#3{%
1474 \@UC{#1}{#2}{#3}%
1475 \@MathSymbol{#1}{pm}%
1476 }%
1477 \def\ParagraphSign#1#2#3{%
1478 \@UC{#1}{#2}{#3}%
1479 \gdef#1{\ifTR{\P}\else\string#1\fi}%
1480 }%
1481 \def\partial#1#2#3{%
1482 \@UC{#1}{#2}{#3}%
1483 \@MathSymbol{#1}{partial}%
1484 }%
1485 \def\Phi#1#2#3{%
1486 \@UC{#1}{#2}{#3}%
1487 \@MathSymbol{#1}{Phi}%
1488 }%
1489 \def\pounds#1#2#3{%
1490 \@UC{#1}{#2}{#3}%
1491 \gdef#1{\ifTR\pounds{}\else\string#1\fi}%
1492 }%
1493 \def\powerone#1#2#3{%
1494 \@UC{#1}{#2}{#3}%
1495 \gdef#1{\ifTR{\@Sup{1}}\else\string#1\fi}%
1496 }%
1497 \def\powerthree#1#2#3{%
1498 \@UC{#1}{#2}{#3}%
1499 \gdef#1{\ifTR{\@Sup{3}}\else\string#1\fi}%
1500 }%
1501 \def\powertwo#1#2#3{%
1502 \@UC{#1}{#2}{#3}%
1503 \gdef#1{\ifTR{\@Sup{2}}\else\string#1\fi}%
1504 }%
1505 \def\questiondown#1#2#3{%
1506 \@UC{#1}{#2}{#3}%
1507 \gdef#1{\ifTR{?`}\else\string#1\fi}%
1508 }%
1509 \def\register#1#2#3{%
1510 \@UC{#1}{#2}{#3}%
1511 % no definition in CM
1512 % no definition in DC
1513 }%
1514 \def\Sigma#1#2#3{%
1515 \@UC{#1}{#2}{#3}%
1516 \@MathSymbol{#1}{Sigma}%
1517 }%
1518 \def\sigma#1#2#3{%
1519 \@UC{#1}{#2}{#3}%
1520 \@MathSymbol{#1}{sigma}%
1521 }%
1522 \def\quoteright#1#2#3{%
1523 \@UC{#1}{#2}{#3}%
1524 \gdef#1{\ifTR{'}\else\string#1\fi}%
1525 }%
1526 \def\quoteleft#1#2#3{%
1527 \@UC{#1}{#2}{#3}%
1528 \gdef#1{\ifTR{`}\else\string#1\fi}%
1529 }%
1530 \def\splitbar#1#2#3{%
1531 \@UC{#1}{#2}{#3}%
1532 % no definition in CM
1533 }%
1534 \def\tau#1#2#3{%
1535 \@UC{#1}{#2}{#3}%
1536 \@MathSymbol{#1}{tau}%
1537 }%
1538 \def\ThetaSign#1#2#3{%
1539 \@UC{#1}{#2}{#3}%
1540 \@MathSymbol{#1}{Theta}%
1541 }%
1542 \def\threequarter#1#2#3{%
1543 \@UC{#1}{#2}{#3}%
1544 \gdef#1{\ifTR{\@Fraction{3}{4}}\else\string#1\fi}%
1545 }%
1546 \def\times#1#2#3{%
1547 \@UC{#1}{#2}{#3}%
1548 \@MathSymbol{#1}{times}%
1549 }%
1550 \def\trademark#1#2#3{%
1551 \@UC{#1}{#2}{#3}%
1552 \gdef#1{\ifTR\@Sup{TM}\else\string#1\fi}%
1553 }%
1554 \def\quotedblright#1#2#3{%
1555 \@UC{#1}{#2}{#3}%
1556 \gdef#1{\ifTR{''}\else\string#1\fi}%
1557 }%
1558 \def\quotedblleft#1#2#3{%
1559 \@UC{#1}{#2}{#3}%
1560 \gdef#1{\ifTR{``}\else\string#1\fi}%
1561 }%
1562 \def\yen#1#2#3{%
1563 \@UC{#1}{#2}{#3}%
1564 % no definition in CM
1565 % no definition in DC
1566 }%
1567 \def\perthousand#1#2#3{%
1568 \@UC{#1}{#2}{#3}%
1569 % no definition in CM
1570 % no definition in DC
1571 }%
1572 \def\florin#1#2#3{%
1573 \@UC{#1}{#2}{#3}%
1574 \gdef#1{\ifTR{\it f}\else\string#1\fi}%
1575 }%
1576 \catcode`\@=\atcatcode \let\atcatcode\relax
1577 %</shapecm>
1578 % \end{macrocode}
1579 %
1580 % These macros redefines all the effect of the macros to put accents on
1581 % characters
1582 % in order to produce directly the character in the font \textsc{Dc}.
1583 % The code is stolen from the file \Fich{DCLFONT.STY} from the \textsc{Nfss} distribution.
1584 % Two reasons have dictated this choice:
1585 % \begin{itemize}
1586 % \item When \textsc{Nfss} is not used, the composition of character+accent
1587 % will give directly the accented character;
1588 % \item When \textsc{Nfss} is used, it's better to have the translation done
1589 % in command |\char 'xxx| instead of |^^xx|. This avoid bad translation when
1590 % an auxiliary file is reread.
1591 % \end{itemize}
1592 % The first thing to do is to save the catcode of @ character.
1593 % \begin{macrocode}
1594 %<*shapedc>
1595 \chardef\atcatcode=\catcode`\@
1596 \catcode`\@=11\relax
1597 \global\chardef\aa="0E5%
1598 \global\chardef\ae="0E6%
1599 \global\chardef\l="0AA%
1600 \global\chardef\oe="0F7%
1601 \global\chardef\o="0F8%
1602 \global\chardef\ss="0FF%
1603 \global\chardef\AA="0C5%
1604 \global\chardef\AE="0C6%
1605 \global\chardef\L="8A%
1606 \global\chardef\OE="0D7%
1607 \global\chardef\O="0D8%
1608 \global\chardef\SS="0DF%
1609 \global\chardef\i="19%
1610 \global\chardef\j="1A%
1611 \global\chardef\pounds="0BF%
1612 \gdef\hbar{{\mathchar'11\mkern-9muh}}%
1613 \def\@accent@def#1#2#3{\expandafter\gdef
1614 \csname @#1@\string#2@#1@\endcsname{#3}}%
1615 \gdef\@accent@use#1#2#3{%
1616 \expandafter\ifx \csname @#1@\string#3@#1@\endcsname \relax
1617 {\accent#2 #3}%
1618 \else \csname @#1@\string#3@#1@\endcsname\fi}%
1619 \gdef\`{\@accent@use{grave}{0}}%
1620 \let\@accii=\`%
1621 \@accent@def{grave}{a}{\char"E0{}}%
1622 \@accent@def{grave}{e}{\char"E8{}}%
1623 \@accent@def{grave}{\i}{\char"EC{}}%
1624 \@accent@def{grave}{i}{\char"EC{}}%
1625 \@accent@def{grave}{o}{\char"F2{}}%
1626 \@accent@def{grave}{u}{\char"F9{}}%
1627 \@accent@def{grave}{A}{\char"C0{}}%
1628 \@accent@def{grave}{E}{\char"C8{}}%
1629 \@accent@def{grave}{I}{\char"CC{}}%
1630 \@accent@def{grave}{O}{\char"D2{}}%
1631 \@accent@def{grave}{U}{\char"D9{}}%
1632 \gdef\'{\@accent@use{acute}{1}}%
1633 \let\@acci=\'%
1634 \@accent@def{acute}{n}{\char"AB{}}%
1635 \@accent@def{acute}{l}{\char"A8{}}%
1636 \@accent@def{acute}{r}{\char"AF{}}%
1637 \@accent@def{acute}{s}{\char"B1{}}%
1638 \@accent@def{acute}{z}{\char"B9{}}%
1639 \@accent@def{acute}{a}{\char"E1{}}%
1640 \@accent@def{acute}{e}{\char"E9{}}%
1641 \@accent@def{acute}{\i}{\char"ED{}}%
1642 \@accent@def{acute}{i}{\char"ED{}}%
1643 \@accent@def{acute}{o}{\char"F3{}}%
1644 \@accent@def{acute}{u}{\char"FA{}}%
1645 \@accent@def{acute}{y}{\char"FD{}}%
1646 \@accent@def{acute}{N}{\char"8B{}}%
1647 \@accent@def{acute}{L}{\char"88{}}%
1648 \@accent@def{acute}{R}{\char"8F{}}%
1649 \@accent@def{acute}{S}{\char"91{}}%
1650 \@accent@def{acute}{Z}{\char"99{}}%
1651 \@accent@def{acute}{A}{\char"C1{}}%
1652 \@accent@def{acute}{E}{\char"C9{}}%
1653 \@accent@def{acute}{I}{\char"CD{}}%
1654 \@accent@def{acute}{O}{\char"D3{}}%
1655 \@accent@def{acute}{U}{\char"DA{}}%
1656 \@accent@def{acute}{Y}{\char"DD{}}%
1657 \@accent@def{acute}{c}{\char"A2{}}%
1658 \@accent@def{acute}{C}{\char"82{}}%
1659 \gdef\v{\@accent@use{check}{7}}%
1660 \@accent@def{check}{c}{\char"A3{}}%
1661 \@accent@def{check}{e}{\char"A5{}}%
1662 \@accent@def{check}{n}{\char"AC{}}%
1663 \@accent@def{check}{r}{\char"B0{}}%
1664 \@accent@def{check}{s}{\char"B2{}}%
1665 \@accent@def{check}{z}{\char"BA{}}%
1666 \@accent@def{check}{C}{\char"83{}}%
1667 \@accent@def{check}{D}{\char"84{}}%
1668 \@accent@def{check}{E}{\char"85{}}%
1669 \@accent@def{check}{N}{\char"8C{}}%
1670 \@accent@def{check}{R}{\char"90{}}%
1671 \@accent@def{check}{S}{\char"92{}}%
1672 \@accent@def{check}{T}{\char"94{}}%
1673 \@accent@def{check}{Z}{\char"9A{}}%
1674 \gdef\u{\@accent@use{breve}{8}}%
1675 \@accent@def{breve}{a}{\char"A0{}}%
1676 \@accent@def{breve}{g}{\char"A7{}}%
1677 \@accent@def{breve}{A}{\char"80{}}%
1678 \@accent@def{breve}{G}{\char"87{}}%
1679 \gdef\=#1{{\accent9 #1}}%
1680 \let\@acciii=\=%
1681 \gdef\^{\@accent@use{circflx}{2}}%
1682 \@accent@def{circflx}{a}{\char"E2{}}%
1683 \@accent@def{circflx}{e}{\char"EA{}}%
1684 \@accent@def{circflx}{\i}{\char"EE{}}%
1685 \@accent@def{circflx}{i}{\char"EE{}}%
1686 \@accent@def{circflx}{o}{\char"F4{}}%
1687 \@accent@def{circflx}{u}{\char"FB{}}%
1688 \@accent@def{circflx}{A}{\char"C2{}}%
1689 \@accent@def{circflx}{E}{\char"CA{}}%
1690 \@accent@def{circflx}{I}{\char"CE{}}%
1691 \@accent@def{circflx}{O}{\char"D4{}}%
1692 \@accent@def{circflx}{U}{\char"DB{}}%
1693 \gdef\.{\@accent@use{dot}{10}}%
1694 \@accent@def{dot}{z}{\char"BB{}}%
1695 \@accent@def{dot}{Z}{\char"9B{}}%
1696 \@accent@def{dot}{I}{\char"9D{}}%
1697 \@accent@def{dot}{i}{i}%
1698 \gdef\H{\@accent@use{Hung}{5}}%
1699 \@accent@def{Hung}{o}{\char"AE{}}%
1700 \@accent@def{Hung}{u}{\char"B6{}}%
1701 \@accent@def{Hung}{O}{\char"8E{}}%
1702 \@accent@def{Hung}{U}{\char"96{}}%
1703 \gdef\~{\@accent@use{tilde}{3}}%
1704 \@accent@def{tilde}{a}{\char"E3{}}%
1705 \@accent@def{tilde}{n}{\char"F1{}}%
1706 \@accent@def{tilde}{o}{\char"F5{}}%
1707 \@accent@def{tilde}{A}{\char"C3{}}%
1708 \@accent@def{tilde}{N}{\char"D1{}}%
1709 \@accent@def{tilde}{O}{\char"D5{}}%
1710 \gdef\"{\@accent@use{Umlaut}{4}}%
1711 \@accent@def{Umlaut}{a}{\char"E4{}}%
1712 \@accent@def{Umlaut}{e}{\char"EB{}}%
1713 \@accent@def{Umlaut}{\i}{\char"EF{}}%
1714 \@accent@def{Umlaut}{i}{\char"EF{}}%
1715 \@accent@def{Umlaut}{o}{\char"F6{}}%
1716 \@accent@def{Umlaut}{u}{\char"FC{}}%
1717 \@accent@def{Umlaut}{A}{\char"C4{}}%
1718 \@accent@def{Umlaut}{E}{\char"CB{}}%
1719 \@accent@def{Umlaut}{I}{\char"CF{}}%
1720 \@accent@def{Umlaut}{O}{\char"D6{}}%
1721 \@accent@def{Umlaut}{U}{\char"DC{}}%
1722 \gdef\pb#1{\oalign{#1\crcr\hidewidth
1723 \vbox to.2ex{\hbox{\char9}\vss}\hidewidth}}%
1724 \gdef\pc#1{\expandafter\ifx
1725 \csname @cedilla@\string#1@cedilla@\endcsname \relax
1726 \c@dilla#1\else \csname @cedilla@\string#1@cedilla@\endcsname\fi}%
1727 \@accent@def{cedilla}{s}{\char"B3{}}%
1728 \@accent@def{cedilla}{t}{\char"B5{}}%
1729 \@accent@def{cedilla}{c}{\char"E7{}}%
1730 \@accent@def{cedilla}{S}{\char"93{}}%
1731 \@accent@def{cedilla}{T}{\char"95{}}%
1732 \@accent@def{cedilla}{C}{\char"C7{}}%
1733 \gdef\c@dilla#1{\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent11 #1%
1734 \else{\ooalign{\hidewidth\char11\hidewidth\crcr\unhbox\z@}}\fi}%
1735 %
1736 \def\dieresis#1#2#3{%
1737 \@UC{#1}{#2}{#3}%
1738 \gdef#1{\ifTR\char'004{}\else\string#1\fi}%
1739 }%
1740 \def\acute#1#2#3{%
1741 \@UC{#1}{#2}{#3}%
1742 \gdef#1{\ifTR\char"01{}\else\string#1\fi}%
1743 }%
1744 \def\cedilla#1#2#3{%
1745 \@UC{#1}{#2}{#3}%
1746 \gdef#1{\ifTR\char"0D{}\else\string#1\fi}%
1747 }%
1748 \def\Agrave#1#2#3{%
1749 \@UC{#1}{#2}{#3}%
1750 \gdef#1{\ifTR\char"C0{}\else\string#1\fi}%
1751 }%
1752 \def\Aacute#1#2#3{%
1753 \@UC{#1}{#2}{#3}%
1754 \gdef#1{\ifTR\char"C1{}\else\string#1\fi}%
1755 }%
1756 \def\Acircumflex#1#2#3{%
1757 \@UC{#1}{#2}{#3}%
1758 \gdef#1{\ifTR\char"C2{}\else\string#1\fi}%
1759 }%
1760 \def\Atilde#1#2#3{%
1761 \@UC{#1}{#2}{#3}%
1762 \gdef#1{\ifTR\char"C3{}\else\string#1\fi}%
1763 }%
1764 \def\Adieresis#1#2#3{%
1765 \@UC{#1}{#2}{#3}%
1766 \gdef#1{\ifTR\char"C4{}\else\string#1\fi}%
1767 }%
1768 \def\Aring#1#2#3{%
1769 \@UC{#1}{#2}{#3}%
1770 \gdef#1{\ifTR\char"C5{}\else\string#1\fi}%
1771 }%
1772 \def\fiLigature#1#2#3{%
1773 \@UC{#1}{#2}{#3}%
1774 \gdef#1{\ifTR{fi}\else\string#1\fi}%
1775 }%
1776 \def\flLigature#1#2#3{%
1777 \@UC{#1}{#2}{#3}%
1778 \gdef#1{\ifTR{fl}\else\string#1\fi}%
1779 }%
1780 \def\AE#1#2#3{%
1781 \@UC{#1}{#2}{#3}%
1782 \gdef#1{\ifTR\char"C6{}\else\string#1\fi}%
1783 }%
1784 \def\Ccedilla#1#2#3{%
1785 \@UC{#1}{#2}{#3}%
1786 \gdef#1{\ifTR\char"C7{}\else\string#1\fi}%
1787 }%
1788 \def\Egrave#1#2#3{%
1789 \@UC{#1}{#2}{#3}%
1790 \gdef#1{\ifTR\char"C8{}\else\string#1\fi}%
1791 }%
1792 \def\Eacute#1#2#3{%
1793 \@UC{#1}{#2}{#3}%
1794 \gdef#1{\ifTR\char"C9{}\else\string#1\fi}%
1795 }%
1796 \def\Ecircumflex#1#2#3{%
1797 \@UC{#1}{#2}{#3}%
1798 \gdef#1{\ifTR\char"CA{}\else\string#1\fi}%
1799 }%
1800 \def\Edieresis#1#2#3{%
1801 \@UC{#1}{#2}{#3}%
1802 \gdef#1{\ifTR\char"CB{}\else\string#1\fi}%
1803 }%
1804 \def\Igrave#1#2#3{%
1805 \@UC{#1}{#2}{#3}%
1806 \gdef#1{\ifTR\char"CC{}\else\string#1\fi}%
1807 }%
1808 \def\Iacute#1#2#3{%
1809 \@UC{#1}{#2}{#3}%
1810 \gdef#1{\ifTR\char"CD{}\else\string#1\fi}%
1811 }%
1812 \def\Icircumflex#1#2#3{%
1813 \@UC{#1}{#2}{#3}%
1814 \gdef#1{\ifTR\char"CE{}\else\string#1\fi}%
1815 }%
1816 \def\Idieresis#1#2#3{%
1817 \@UC{#1}{#2}{#3}%
1818 \gdef#1{\ifTR\char"CF{}\else\string#1\fi}%
1819 }%
1820 \def\DBar#1#2#3{%
1821 \@UC{#1}{#2}{#3}%
1822 \gdef#1{\ifTR\char"D0{}\else\string#1\fi}%
1823 }%
1824 \def\Ntilde#1#2#3{%
1825 \@UC{#1}{#2}{#3}%
1826 \gdef#1{\ifTR\char"D1{}\else\string#1\fi}%
1827 }%
1828 \def\Ograve#1#2#3{%
1829 \@UC{#1}{#2}{#3}%
1830 \gdef#1{\ifTR\char"D2{}\else\string#1\fi}%
1831 }%
1832 \def\Oacute#1#2#3{%
1833 \@UC{#1}{#2}{#3}%
1834 \gdef#1{\ifTR\char"D3{}\else\string#1\fi}%
1835 }%
1836 \def\Ocircumflex#1#2#3{%
1837 \@UC{#1}{#2}{#3}%
1838 \gdef#1{\ifTR\char"D4{}\else\string#1\fi}%
1839 }%
1840 \def\Otilde#1#2#3{%
1841 \@UC{#1}{#2}{#3}%
1842 \gdef#1{\ifTR\char"D5{}\else\string#1\fi}%
1843 }%
1844 \def\Odieresis#1#2#3{%
1845 \@UC{#1}{#2}{#3}%
1846 \gdef#1{\ifTR\char"D6{}\else\string#1\fi}%
1847 }%
1848 \def\Oslash#1#2#3{%
1849 \@UC{#1}{#2}{#3}%
1850 \gdef#1{\ifTR\char"D8{}\else\string#1\fi}%
1851 }%
1852 \def\Ugrave#1#2#3{%
1853 \@UC{#1}{#2}{#3}%
1854 \gdef#1{\ifTR\char"D9{}\else\string#1\fi}%
1855 }%
1856 \def\Uacute#1#2#3{%
1857 \@UC{#1}{#2}{#3}%
1858 \gdef#1{\ifTR\char"DA{}\else\string#1\fi}%
1859 }%
1860 \def\Ucircumflex#1#2#3{%
1861 \@UC{#1}{#2}{#3}%
1862 \gdef#1{\ifTR\char"DB{}\else\string#1\fi}%
1863 }%
1864 \def\Udieresis#1#2#3{%
1865 \@UC{#1}{#2}{#3}%
1866 \gdef#1{\ifTR\char"DC{}\else\string#1\fi}%
1867 }%
1868 \def\Yacute#1#2#3{%
1869 \@UC{#1}{#2}{#3}%
1870 \gdef#1{\ifTR\char"DD{}\else\string#1\fi}%
1871 }%
1872 \def\Thorn#1#2#3{%
1873 \@UC{#1}{#2}{#3}%
1874 \gdef#1{\ifTR\char"DE{}\else\string#1\fi}%
1875 }%
1876 \def\germandbls#1#2#3{%
1877 \@UC{#1}{#2}{#3}%
1878 \gdef#1{\ifTR\char"DF{}\else\string#1\fi}%
1879 }%
1880 \def\agrave#1#2#3{%
1881 \@UC{#1}{#2}{#3}%
1882 \gdef#1{\ifTR\char"E0{}\else\string#1\fi}%
1883 }%
1884 \def\aacute#1#2#3{%
1885 \@UC{#1}{#2}{#3}%
1886 \gdef#1{\ifTR\char"E1{}\else\string#1\fi}%
1887 }%
1888 \def\acircumflex#1#2#3{%
1889 \@UC{#1}{#2}{#3}%
1890 \gdef#1{\ifTR\char"E2{}\else\string#1\fi}%
1891 }%
1892 \def\atilde#1#2#3{%
1893 \@UC{#1}{#2}{#3}%
1894 \gdef#1{\ifTR\char"E3{}\else\string#1\fi}%
1895 }%
1896 \def\adieresis#1#2#3{%
1897 \@UC{#1}{#2}{#3}%
1898 \gdef#1{\ifTR\char"E4{}\else\string#1\fi}%
1899 }%
1900 \def\aring#1#2#3{%
1901 \@UC{#1}{#2}{#3}%
1902 \gdef#1{\ifTR\char"E5{}\else\string#1\fi}%
1903 }%
1904 \def\ae#1#2#3{%
1905 \@UC{#1}{#2}{#3}%
1906 \gdef#1{\ifTR\char"E6{}\else\string#1\fi}%
1907 }%
1908 \def\ccedilla#1#2#3{%
1909 \@UC{#1}{#2}{#3}%
1910 \gdef#1{\ifTR\char"E7{}\else\string#1\fi}%
1911 }%
1912 \def\egrave#1#2#3{%
1913 \@UC{#1}{#2}{#3}%
1914 \gdef#1{\ifTR\char"E8{}\else\string#1\fi}%
1915 }%
1916 \def\eacute#1#2#3{%
1917 \@UC{#1}{#2}{#3}%
1918 \gdef#1{\ifTR\char"E9{}\else\string#1\fi}%
1919 }%
1920 \def\ecircumflex#1#2#3{%
1921 \@UC{#1}{#2}{#3}%
1922 \gdef#1{\ifTR\char"EA{}\else\string#1\fi}%
1923 }%
1924 \def\edieresis#1#2#3{%
1925 \@UC{#1}{#2}{#3}%
1926 \gdef#1{\ifTR\char"EB{}\else\string#1\fi}%
1927 }%
1928 \def\igrave#1#2#3{%
1929 \@UC{#1}{#2}{#3}%
1930 \gdef#1{\ifTR\char"EC{}\else\string#1\fi}%
1931 }%
1932 \def\iacute#1#2#3{%
1933 \@UC{#1}{#2}{#3}%
1934 \gdef#1{\ifTR\char"ED{}\else\string#1\fi}%
1935 }%
1936 \def\icircumflex#1#2#3{%
1937 \@UC{#1}{#2}{#3}%
1938 \gdef#1{\ifTR\char"EE{}\else\string#1\fi}%
1939 }%
1940 \def\idieresis#1#2#3{%
1941 \@UC{#1}{#2}{#3}%
1942 \gdef#1{\ifTR\char"EF{}\else\string#1\fi}%
1943 }%
1944 \def\dBar#1#2#3{%
1945 \@UC{#1}{#2}{#3}%
1946 \gdef#1{\ifTR\char"F0{}\else\string#1\fi}%
1947 }%
1948 \def\ntilde#1#2#3{%
1949 \@UC{#1}{#2}{#3}%
1950 \gdef#1{\ifTR\char"F1{}\else\string#1\fi}%
1951 }%
1952 \def\ograve#1#2#3{%
1953 \@UC{#1}{#2}{#3}%
1954 \gdef#1{\ifTR\char"F2{}\else\string#1\fi}%
1955 }%
1956 \def\oacute#1#2#3{%
1957 \@UC{#1}{#2}{#3}%
1958 \gdef#1{\ifTR\char"F3{}\else\string#1\fi}%
1959 }%
1960 \def\ocircumflex#1#2#3{%
1961 \@UC{#1}{#2}{#3}%
1962 \gdef#1{\ifTR\char"F4{}\else\string#1\fi}%
1963 }%
1964 \def\otilde#1#2#3{%
1965 \@UC{#1}{#2}{#3}%
1966 \gdef#1{\ifTR\char"F5{}\else\string#1\fi}%
1967 }%
1968 \def\odieresis#1#2#3{%
1969 \@UC{#1}{#2}{#3}%
1970 \gdef#1{\ifTR\char"F6{}\else\string#1\fi}%
1971 }%
1972 \def\OE#1#2#3{%
1973 \@UC{#1}{#2}{#3}%
1974 \gdef#1{\ifTR\OE{}\else\string#1\fi}%
1975 }%
1976 \def\oe#1#2#3{%
1977 \@UC{#1}{#2}{#3}%
1978 \gdef#1{\ifTR\oe{}\else\string#1\fi}%
1979 }%
1980 \def\oslash#1#2#3{%
1981 \@UC{#1}{#2}{#3}%
1982 \gdef#1{\ifTR\char"F8{}\else\string#1\fi}%
1983 }%
1984 \def\ugrave#1#2#3{%
1985 \@UC{#1}{#2}{#3}%
1986 \gdef#1{\ifTR\char"F9{}\else\string#1\fi}%
1987 }%
1988 \def\uacute#1#2#3{%
1989 \@UC{#1}{#2}{#3}%
1990 \gdef#1{\ifTR\char"FA{}\else\string#1\fi}%
1991 }%
1992 \def\ucircumflex#1#2#3{%
1993 \@UC{#1}{#2}{#3}%
1994 \gdef#1{\ifTR\char"FB{}\else\string#1\fi}%
1995 }%
1996 \def\udieresis#1#2#3{%
1997 \@UC{#1}{#2}{#3}%
1998 \gdef#1{\ifTR\char"FC{}\else\string#1\fi}%
1999 }%
2000 \def\yacute#1#2#3{%
2001 \@UC{#1}{#2}{#3}%
2002 \gdef#1{\ifTR\char"FD{}\else\string#1\fi}%
2003 }%
2004 \def\thorn#1#2#3{%
2005 \@UC{#1}{#2}{#3}%
2006 \gdef#1{\ifTR\char"FE{}\else\string#1\fi}%
2007 }%
2008 \def\ydieresis#1#2#3{%
2009 \@UC{#1}{#2}{#3}%
2010 \gdef#1{\ifTR\char"B8{}\else\string#1\fi}%
2011 }%
2012 \def\Ydieresis#1#2#3{%
2013 \@UC{#1}{#2}{#3}%
2014 \gdef#1{\ifTR\char"98{}\else\string#1\fi}%
2015 }%
2016 %
2017 \def\alpha#1#2#3{%
2018 \@UC{#1}{#2}{#3}%
2019 \@MathSymbol{#1}{alpha}%
2020 }%
2021 \def\approx#1#2#3{%
2022 \@UC{#1}{#2}{#3}%
2023 \@MathSymbol{#1}{approx}%
2024 }%
2025 \def\beta#1#2#3{%
2026 \@UC{#1}{#2}{#3}%
2027 \@MathSymbol{#1}{beta}%
2028 }%
2029 \def\bullet#1#2#3{%
2030 \@UC{#1}{#2}{#3}%
2031 \@MathSymbol{#1}{bullet}%
2032 }%
2033 \def\cap#1#2#3{%
2034 \@UC{#1}{#2}{#3}%
2035 \@MathSymbol{#1}{cap}%
2036 }%
2037 \def\cent#1#2#3{%
2038 \@UC{#1}{#2}{#3}%
2039 % no definition in DC
2040 }%
2041 \def\guillemeotright#1#2#3{%
2042 \@UC{#1}{#2}{#3}%
2043 % a small space is inserted before the french guillemot
2044 % and the pre-existing space is removed
2045 \gdef#1{\ifTR\unskip\@InMath{,}\char'024{}\else\string#1\fi}%
2046 }%
2047 \def\copyright#1#2#3{%
2048 \@UC{#1}{#2}{#3}%
2049 \gdef#1{\ifTR\copyright{}\else\string#1\fi}%
2050 }%
2051 \def\currency#1#2#3{% character hex A4 in Iso latin set 1
2052 \@UC{#1}{#2}{#3}%
2053 % no definition in DC
2054 }%
2055 \def\degree#1#2#3{%
2056 \@UC{#1}{#2}{#3}%
2057 }%
2058 \def\dag#1#2#3{%
2059 \@UC{#1}{#2}{#3}%
2060 \@MathSymbol{#1}{dag}%
2061 }%
2062 \def\ddag#1#2#3{%
2063 \@UC{#1}{#2}{#3}%
2064 \@MathSymbol{#1}{ddag}%
2065 }%
2066 \def\delta#1#2#3{%
2067 \@UC{#1}{#2}{#3}%
2068 \@MathSymbol{#1}{delta}%
2069 }%
2070 \def\div#1#2#3{%
2071 \@UC{#1}{#2}{#3}%
2072 \@MathSymbol{#1}{div}%
2073 }%
2074 \def\diamond#1#2#3{%
2075 \@UC{#1}{#2}{#3}%
2076 \@MathSymbol{#1}{Diamond}%
2077 }%
2078 \def\emptysetSign#1#2#3{%
2079 \@UC{#1}{#2}{#3}%
2080 \@MathSymbol{#1}{emptyset}%
2081 }%
2082 \def\section#1#2#3{%
2083 \@UC{#1}{#2}{#3}%
2084 \gdef#1{\ifTR{\S}\else\string#1\fi}%
2085 }%
2086 \def\epsilon#1#2#3{%
2087 \@UC{#1}{#2}{#3}%
2088 \@MathSymbol{#1}{varepsilon}%
2089 }%
2090 \def\equiv#1#2#3{%
2091 \@UC{#1}{#2}{#3}%
2092 \@MathSymbol{#1}{equiv}%
2093 }%
2094 \def\ellipsis#1#2#3{%
2095 \@UC{#1}{#2}{#3}%
2096 \gdef#1{\ifTR{...}\else\string#1\fi}%
2097 }%
2098 \def\exclamdown#1#2#3{%
2099 \@UC{#1}{#2}{#3}%
2100 \gdef#1{\ifTR\char"BD{}\else\string#1\fi}%
2101 }%
2102 \def\ordfeminine#1#2#3{%
2103 \@UC{#1}{#2}{#3}%
2104 \gdef#1{\ifTR\@Sup{\b{a}}\else\string#1\fi}%
2105 }%
2106 \def\geq#1#2#3{%
2107 \@UC{#1}{#2}{#3}%
2108 \@MathSymbol{#1}{geq}%
2109 }%
2110 \def\Gamma#1#2#3{%
2111 \@UC{#1}{#2}{#3}%
2112 \@MathSymbol{#1}{Gamma}%
2113 }%
2114 \def\infty#1#2#3{%
2115 \@UC{#1}{#2}{#3}%
2116 \@MathSymbol{#1}{infty}%
2117 }%
2118 \def\leq#1#2#3{%
2119 \@UC{#1}{#2}{#3}%
2120 \@MathSymbol{#1}{leq}%
2121 }%
2122 \def\emdash#1#2#3{%
2123 \@UC{#1}{#2}{#3}%
2124 \gdef#1{\ifTR{---}\else\string#1\fi}%
2125 }%
2126 \def\ordmasculine#1#2#3{%
2127 \@UC{#1}{#2}{#3}%
2128 \gdef#1{\ifTR\@Sup{\b{o}}\else\string#1\fi}%
2129 }%
2130 \def\mu#1#2#3{%
2131 \@UC{#1}{#2}{#3}%
2132 \@MathSymbol{#1}{mu}%
2133 }%
2134 \def\neg#1#2#3{%
2135 \@UC{#1}{#2}{#3}%
2136 \@MathSymbol{#1}{neg}%
2137 }%
2138 \def\neq#1#2#3{%
2139 \@UC{#1}{#2}{#3}%
2140 \@MathSymbol{#1}{neq}%
2141 }%
2142 \def\unbreakablespace#1#2#3{%
2143 \@UC{#1}{#2}{#3}%
2144 \gdef#1{\ifTR~\else\string#1\fi}%
2145 }%
2146 \def\Omega#1#2#3{%
2147 \@UC{#1}{#2}{#3}%
2148 \@MathSymbol{#1}{Omega}%
2149 }%
2150 \def\OneHalf#1#2#3{%
2151 \@UC{#1}{#2}{#3}%
2152 \gdef#1{\ifTR{\@Fraction{1}{2}}\else\string#1\fi}%
2153 }%
2154 \def\OneQuarter#1#2#3{%
2155 \@UC{#1}{#2}{#3}%
2156 \gdef#1{\ifTR{\@Fraction{1}{4}}\else\string#1\fi}%
2157 }%
2158 \def\guilletmotleft#1#2#3{%
2159 \@UC{#1}{#2}{#3}%
2160 % a small space is added after the opening guillemot
2161 % and the pre-existing space is removed
2162 \gdef#1{\ifTR\char"13\unskip\@InMath{,}\else\string#1\fi}%
2163 }%
2164 \def\Pi#1#2#3{%
2165 \@UC{#1}{#2}{#3}%
2166 \@MathSymbol{#1}{Pi}%
2167 }%
2168 \def\pi#1#2#3{%
2169 \@UC{#1}{#2}{#3}%
2170 \@MathSymbol{#1}{pi}%
2171 }%
2172 \def\pm#1#2#3{%
2173 \@UC{#1}{#2}{#3}%
2174 \@MathSymbol{#1}{pm}%
2175 }%
2176 \def\ParagraphSign#1#2#3{%
2177 \@UC{#1}{#2}{#3}%
2178 \gdef#1{\ifTR{\P}\else\string#1\fi}%
2179 }%
2180 \def\partial#1#2#3{%
2181 \@UC{#1}{#2}{#3}%
2182 \@MathSymbol{#1}{partial}%
2183 }%
2184 \def\Phi#1#2#3{%
2185 \@UC{#1}{#2}{#3}%
2186 \@MathSymbol{#1}{Phi}%
2187 }%
2188 \def\pounds#1#2#3{%
2189 \@UC{#1}{#2}{#3}%
2190 \gdef#1{\ifTR\char"BF{}\else\string#1\fi}%
2191 }%
2192 \def\powerone#1#2#3{%
2193 \@UC{#1}{#2}{#3}%
2194 \gdef#1{\ifTR{\@Sup{1}}\else\string#1\fi}%
2195 }%
2196 \def\powerthree#1#2#3{%
2197 \@UC{#1}{#2}{#3}%
2198 \gdef#1{\ifTR{\@Sup{3}}\else\string#1\fi}%
2199 }%
2200 \def\powertwo#1#2#3{%
2201 \@UC{#1}{#2}{#3}%
2202 \gdef#1{\ifTR{\@Sup{2}}\else\string#1\fi}%
2203 }%
2204 \def\questiondown#1#2#3{%
2205 \@UC{#1}{#2}{#3}%
2206 \gdef#1{\ifTR\char"BE{}\else\string#1\fi}%
2207 }%
2208 \def\register#1#2#3{%
2209 \@UC{#1}{#2}{#3}%
2210 % no definition in DC
2211 }%
2212 \def\Sigma#1#2#3{%
2213 \@UC{#1}{#2}{#3}%
2214 \@MathSymbol{#1}{Sigma}%
2215 }%
2216 \def\sigma#1#2#3{%
2217 \@UC{#1}{#2}{#3}%
2218 \@MathSymbol{#1}{sigma}%
2219 }%
2220 \def\quoteright#1#2#3{%
2221 \@UC{#1}{#2}{#3}%
2222 \gdef#1{\ifTR{'}\else\string#1\fi}%
2223 }%
2224 \def\quoteleft#1#2#3{%
2225 \@UC{#1}{#2}{#3}%
2226 \gdef#1{\ifTR{`}\else\string#1\fi}%
2227 }%
2228 \def\splitbar#1#2#3{%
2229 \@UC{#1}{#2}{#3}%
2230 % no definition in DC
2231 }%
2232 \def\tau#1#2#3{%
2233 \@UC{#1}{#2}{#3}%
2234 \@MathSymbol{#1}{tau}%
2235 }%
2236 \def\ThetaSign#1#2#3{%
2237 \@UC{#1}{#2}{#3}%
2238 \@MathSymbol{#1}{Theta}%
2239 }%
2240 \def\threequarter#1#2#3{%
2241 \@UC{#1}{#2}{#3}%
2242 \gdef#1{\ifTR{\@Fraction{3}{4}}\else\string#1\fi}%
2243 }%
2244 \def\times#1#2#3{%
2245 \@UC{#1}{#2}{#3}%
2246 \@MathSymbol{#1}{times}%
2247 }%
2248 \def\trademark#1#2#3{%
2249 \@UC{#1}{#2}{#3}%
2250 \gdef#1{\ifTR\@Sup{TM}\else\string#1\fi}%
2251 }%
2252 \def\quotedblright#1#2#3{%
2253 \@UC{#1}{#2}{#3}%
2254 \gdef#1{\ifTR{''}\else\string#1\fi}%
2255 }%
2256 \def\quotedblleft#1#2#3{%
2257 \@UC{#1}{#2}{#3}%
2258 \gdef#1{\ifTR{``}\else\string#1\fi}%
2259 }%
2260 \def\yen#1#2#3{%
2261 \@UC{#1}{#2}{#3}%
2262 % no definition in DC
2263 }%
2264 \def\perthousand#1#2#3{%
2265 \@UC{#1}{#2}{#3}%
2266 % no definition in DC
2267 }%
2268 \def\florin#1#2#3{%
2269 \@UC{#1}{#2}{#3}%
2270 \gdef#1{\ifTR{\it f}\else\string#1\fi}%
2271 }%
2272 \catcode`\@=\atcatcode \let\atcatcode\relax
2273 %
2274 %</shapedc>
2275 % \end{macrocode}
2276 %
2277 % \subsection{Table for the code page 850 (file:
2278 % \Fich{code850.tex})\label{HYPHEN}}
2279 % This file contains code to set up the table to convert the
2280 % code page 850 to
2281 % the DC or Cm encoding scheme (depending on the value of global
2282 % variable \Comm{CurrentEncoding}). This file should be moved into
2283 % \TeX's
2284 % memory with an \Comm{input} command and all the characters above 127
2285 % should be active before the call to the \Comm{input} command.
2286 %
2287 %Some normal unaccented character should be made active, just for the case
2288 %where the \Comm{uppercase} command is used with lowercase accented character which don't
2289 %have uppercase accented equivalent (the normal unaccented character is used).
2290 %
2291 %Since the \Comm{uppercase} or \Comm{lowercase} command doesn't change the catcode,
2292 %the resulting character will have the catcode \Comm{active} (since all the characters
2293 %above 127 are active). Thus a macro should exist !
2294 % \begin{macrocode}
2295 %<*codepage850>
2296 \chardef\atcatcode=\catcode`\@
2297 \catcode`\@=11\relax
2298 {%
2299 \catcode`\Y=\active
2300 \gdef Y{\string Y}%
2301 }%
2302 % \end{macrocode}
2303 % All the characters are assigned to a default value (each character issue a message telling it
2304 % could not be drawn with \TeX{} commands) and a group is started (in effect
2305 % when the file \Fich{code850.tex} is read)
2306 % to limit the scope of macros created by the inputting
2307 % of files \Fich{shapecm} or \Fich{shapedc}. These macros
2308 % are used just for setting the tables and never useful
2309 % after that.
2310 % \begin{macrocode}
2311 \begingroup
2312 \input initcar %
2313 \ifcase\CurrentEncoding
2314 \input shapecm %
2315 \or
2316 \input shapedc %
2317 \fi
2318 \Ccedilla{^^80}{"80}{"87}%
2319 \udieresis{^^81}{"9A}{"81}%
2320 \eacute{^^82}{"90}{"82}%
2321 \acircumflex{^^83}{"B6}{"83}%
2322 \adieresis{^^84}{"8E}{"84}%
2323 \agrave{^^85}{"B7}{"85}%
2324 \aring{^^86}{"8F}{"86}%
2325 \ccedilla{^^87}{"80}{"87}%
2326 \ecircumflex{^^88}{"D2}{"88}%
2327 \edieresis{^^89}{"D3}{"89}%
2328 \egrave{^^8a}{"D4}{"8A}%
2329 \idieresis{^^8b}{"D8}{"8B}%
2330 \icircumflex{^^8c}{"D7}{"8C}%
2331 \igrave{^^8d}{"DE}{"8D}%
2332 \Adieresis{^^8e}{"8E}{"84}%
2333 \Aring{^^8f}{"8F}{"86}%
2334 \Eacute{^^90}{"90}{"82}%
2335 \ae{^^91}{"92}{"91}%
2336 \AE{^^92}{"92}{"91}%
2337 \ocircumflex{^^93}{"E2}{"93}%
2338 \odieresis{^^94}{"99}{"94}%
2339 \ograve{^^95}{"E3}{"95}%
2340 \ucircumflex{^^96}{"EA}{"96}%
2341 \ugrave{^^97}{"EB}{"97}%
2342 \ydieresis{^^98}{"59}{"98}%
2343 \Odieresis{^^99}{"99}{"94}%
2344 \Udieresis{^^9a}{"9A}{"81}%
2345 \oslash{^^9b}{"9D}{"9B}%
2346 \pounds{^^9c}{"9C}{"9C}%
2347 \Oslash{^^9d}{"9D}{"9B}%
2348 \times{^^9e}{"9E}{"9E}%
2349 \florin{^^9f}{"9F}{"9F}%
2350 \aacute{^^a0}{"B5}{"A0}%
2351 \iacute{^^a1}{"D6}{"A1}%
2352 \oacute{^^a2}{"E0}{"A2}%
2353 \uacute{^^a3}{"E9}{"A3}%
2354 \ntilde{^^a4}{"A5}{"A4}%
2355 \Ntilde{^^a5}{"A5}{"A4}%
2356 \ordfeminine{^^a6}{"A6}{"A6}%
2357 \ordmasculine{^^a7}{"A7}{"A7}%
2358 \questiondown{^^a8}{"A8}{"A8}%
2359 \register{^^a9}{"A9}{"A9}%
2360 \neg{^^aa}{"AA}{"AA}%
2361 \OneHalf{^^ab}{"AB}{"AB}%
2362 \OneQuarter{^^ac}{"AC}{"AC}%
2363 \exclamdown{^^ad}{"AD}{"AD}%
2364 \guilletmotleft{^^ae}{"AE}{"AE}%
2365 \guillemeotright{^^af}{"AF}{"AF}%
2366 \Aacute{^^b5}{"B5}{"A0}%
2367 \Acircumflex{^^b6}{"B6}{"83}%
2368 \Agrave{^^b7}{"B7}{"85}%
2369 \copyright{^^b8}{"B8}{"B8}%
2370 \cent{^^bd}{"BD}{"BD}%
2371 \yen{^^be}{"BE}{"BE}%
2372 \atilde{^^c6}{"C7}{"C6}%
2373 \Atilde{^^c7}{"C7}{"C6}%
2374 \currency{^^cf}{"CF}{"CF}%
2375 \dBar{^^d0}{"D1}{"D0}%
2376 \DBar{^^d1}{"D1}{"D0}%
2377 \Ecircumflex{^^d2}{"D2}{"88}%
2378 \Edieresis{^^d3}{"D3}{"89}%
2379 \Egrave{^^d4}{"D4}{"8A}%
2380 \powerone{^^d5}{"D5}{"D5}%
2381 \Iacute{^^d6}{"D6}{"A1}%
2382 \Icircumflex{^^d7}{"D7}{"8C}%
2383 \Idieresis{^^d8}{"D8}{"8B}%
2384 \splitbar{^^dd}{"DD}{"DD}%
2385 \Igrave{^^de}{"DE}{"8D}%
2386 \Oacute{^^e0}{"E0}{"A2}%
2387 \beta{^^e1}{"E1}{"E1}%
2388 \Ocircumflex{^^e2}{"E2}{"93}%
2389 \Ograve{^^e3}{"E3}{"95}%
2390 \otilde{^^e4}{"E5}{"E4}%
2391 \Otilde{^^e5}{"E5}{"E4}%
2392 \mu{^^e6}{"E6}{"E6}%
2393 \thorn{^^e7}{"E8}{"E7}%
2394 \Thorn{^^e8}{"E8}{"E7}%
2395 \Uacute{^^e9}{"E9}{"A3}%
2396 \Ucircumflex{^^ea}{"EA}{"96}%
2397 \Ugrave{^^eb}{"EB}{"97}%
2398 \yacute{^^ec}{"ED}{"EC}%
2399 \Yacute{^^ed}{"ED}{"EC}%
2400 \pm{^^f1}{"F1}{"F1}%
2401 \threequarter{^^f3}{"F3}{"F3}%
2402 \ParagraphSign{^^f4}{"F4}{"F4}%
2403 \section{^^f5}{"F5}{"F5}%
2404 \div{^^f6}{"F6}{"F6}%
2405 \cedilla{^^f7}{"F7}{"F7}%
2406 \degree{^^f8}{"F8}{"F8}%
2407 \dieresis{^^f9}{"F9}{"F9}%
2408 \bullet{^^fa}{"FA}{"FA}%
2409 \powerone{^^fb}{"FB}{"FB}%
2410 \powerthree{^^fc}{"FC}{"FC}%
2411 \powertwo{^^fd}{"FD}{"FD}%
2412 \endgroup
2413 % \end{macrocode}
2414 %
2415 % \DescribeMacro{\@MakeHyphenation850}
2416 %\Comm{@MakeHyphenationEightFiveZero} prepare a letter given as parameter
2417 %to do a letter for hyphenation exception.
2418 %
2419 % The algorithm to build the exception hyphenation pattern put all the characters
2420 % to lower case before setting up the hyphenation tables. When a string should be broken
2421 % it is transformed in lowercase and then compared with the hyphenation pattern.
2422 %
2423 % Since these two transformations are performed on two different characters (the first, before
2424 % a character from a code page was translated, the second after), a match could never occur.
2425 %
2426 % The aim of this macro is to adapt the value of the \Comm{lccode} of a character to be used
2427 % in the \Comm{hyphenation} to permit a match when this character will be translated in something
2428 % else.
2429 %
2430 %\textbf{Examples:}\\
2431 % ``e grave'' (character hexa 8a) in code page 850 will be translated in \textsc{Dc}
2432 % encoding scheme to character hexa (E8). In code page 850,
2433 % the character hexa
2434 % E8 will have a lowercase character hexa E7 (in code page 850). When the translated
2435 % character ``e grave'' will be put in lowercase, his value will be hexa E7.
2436 % From that we can deduce that to
2437 % use \Comm{hyphenation} with ``e grave'' (character hexa 8a in code page 850), ``e grave'' should
2438 % have \Comm{lccode="E7}.
2439 %
2440 % ``n tilde'' (character hexa A4 in code page 850) will be translated
2441 % to character hexa F1 in \textsc{Dc} encoding. Character hexa F1 in code page
2442 % 850 is ``plus-minus'' sign which has lowercase hexa F1 thus
2443 % the \Comm{lccode} for ``n tilde'' for use with the \Comm{hyphenation} command
2444 % should be hexa F1.
2445 %
2446 % This macro is meaningless with the \textsc{Cm} encoding !
2447 % \begin{macrocode}
2448 \ifnum\CurrentEncoding=\DC\relax
2449 \def\@MakeHyphenationEightFiveZero#1{%
2450 \catcode`#1=12% make character given in parameter other which is
2451 % a legal catcode for \hyphenation
2452 \ifnum`#1="80
2453 %C cedilla translated in DC encoding to "D7 (which is A tilde)
2454 %with a tilde ("d6) as lowercase
2455 \lccode`#1="D6%
2456 \else\ifnum`#1="81
2457 %u dieresis --> "FC
2458 \lccode`#1="FC%
2459 \else\ifnum`#1="82
2460 %e acute --> "E9 (U acute) --> u acute
2461 \lccode`#1="A3%
2462 \else\ifnum`#1="83
2463 %a circumflex --> "E2 O circumflex --> o circumflex
2464 \lccode`#1="93%
2465 \else\ifnum`#1="84
2466 %a dieresis --> "E4 o tilde
2467 \lccode`#1="E4%
2468 \@ConflictHyphenCarMsg{a dieresis ("84)}{a ring ("86)}
2469 \else\ifnum`#1="85
2470 %a grave --> "E O acute --> "A2 (o acute in code page 850)
2471 \lccode`#1="A2%
2472 \else\ifnum`#1="86
2473 %a ring --> "E5 O tilde --> "E4
2474 \lccode`#1="E4%
2475 \@ConflictHyphenCarMsg{a ring ("86)}{a dieresis ("84)}
2476 \else\ifnum`#1="87
2477 %c cedilla --> "E7 --> "E7
2478 \lccode`#1="E7%
2479 \@ConflictHyphenCarMsg{c cedilla ("87)}{e grave ("8A)}
2480 \else\ifnum`#1="88
2481 %e circumflex --> "EA (U circumflex ---> "96
2482 \lccode`#1="96%
2483 \else\ifnum`#1="89
2484 %e dieresis --> "EB U grave --> "97
2485 \lccode`#1="97%
2486 \else\ifnum`#1="8A
2487 %e grave --> "E8 Thorn --> "E7
2488 \lccode`#1="E7%
2489 \@ConflictHyphenCarMsg{e grave ("8A)}{c cedilla ("87)}
2490 \else\ifnum`#1="8B
2491 %i dieresis --> "EF (acute accent)
2492 \lccode`#1="EF%
2493 \else\ifnum`#1="8C
2494 %i circumflex --> "EE (BAR Accent)
2495 \lccode`#1="EE%
2496 \else\ifnum`#1="8D
2497 %i grave --> "EC (y acute)
2498 \lccode`#1="EC%
2499 \@ConflictHyphenCarMsg{i grave ("8D)}{i acute ("A1)}
2500 \else\ifnum`#1="8E
2501 %A dieresis --> "C4 (semi graphical character)
2502 \lccode`#1="C4%
2503 \else\ifnum`#1="8F
2504 %A ring --> "C5 (semi graphical character)
2505 \lccode`#1="C5%
2506 \else\ifnum`#1="90
2507 %E acute --> "C9 (semi graphical character)
2508 \lccode`#1="C9%
2509 \else\ifnum`#1="91
2510 %ae ligature --> "E6 (mu sign)
2511 \lccode`#1="E6%
2512 \else\ifnum`#1="92
2513 %AE ligature --> "C6 (a tilde)
2514 \lccode`#1="C6%
2515 \else\ifnum`#1="93
2516 %o circumflex --> "F4 (Paragraph Sign)
2517 \lccode`#1="F4%
2518 \else\ifnum`#1="94
2519 %o dieresis --> "F6 (divide sign)
2520 \lccode`#1="F6%
2521 \else\ifnum`#1="95
2522 %O grave --> "F2 (equal sign)
2523 \lccode`#1="F2%
2524 \else\ifnum`#1="96
2525 %u circumflex --> "FB (Power one sign)
2526 \lccode`#1="FB%
2527 \else\ifnum`#1="97
2528 %u grave --> "F9 (dieresis accent)
2529 \lccode`#1="F9%
2530 \else\ifnum`#1="98
2531 %y dieresis --> "B8 (Copyright sign)
2532 \lccode`#1="B8%
2533 \else\ifnum`#1="99
2534 %O dieresis --> "D6 (I acute) --> i acute
2535 \lccode`#1="A1%
2536 \else\ifnum`#1="9A
2537 %U dieresis --> "DC (semi graphical sign)
2538 \lccode`#1="DC%
2539 \else\ifnum`#1="9B
2540 %o slash --> "F8 (Degree sign)
2541 \lccode`#1="F8%
2542 \else\ifnum`#1="9D
2543 %O slash --> "D8 (I dieresis) --> i dieresis
2544 \lccode`#1="8B%
2545 \else\ifnum`#1="A0
2546 %a acute --> "E1 (Beta sign)
2547 \lccode`#1="E1%
2548 \else\ifnum`#1="A1
2549 %i acute --> "ED (Y acute) --> y acute
2550 \lccode`#1="EC%
2551 \@ConflictHyphenCarMsg{i acute ("A1)}{i grave ("8D)}
2552 \else\ifnum`#1="A2
2553 %o acute --> "F3 (three quarter sign)
2554 \lccode`#1="F3%
2555 \else\ifnum`#1="A3
2556 %u acute --> "FA (Bullet sign)
2557 \lccode`#1="FA%
2558 \else\ifnum`#1="A4
2559 %n tilde --> "F1 (Plus minus sign)
2560 \lccode`#1="F1%
2561 \else\ifnum`#1="A5
2562 %N tilde --> "D1 (D bar) --> d bar
2563 \lccode`#1="D0%
2564 \@ConflictHyphenCarMsg{N tilde ("A5)}{D bar ("D1)}
2565 \else\ifnum`#1="B5
2566 %A acute --> "C1 (semi graphical sign)
2567 \lccode`#1="C1%
2568 \else\ifnum`#1="B6
2569 %A circumflex --> "C2 (semi graphical sign)
2570 \lccode`#1="C2%
2571 \else\ifnum`#1="B7
2572 %A grave --> "C0 (Semi graphical sign)
2573 \lccode`#1="C0%
2574 \else\ifnum`#1="D0
2575 %d bar --> "F0 (minus sign)
2576 \lccode`#1="F0%
2577 \else\ifnum`#1="D1
2578 %D bar --> "D0 (d bar)
2579 \lccode`#1="D0%
2580 \@ConflictHyphenCarMsg{D bar ("D1)}{N tilde ("A5}
2581 \else\ifnum`#1="D2
2582 %E circumflex --> "CA (semi-graphical sign)
2583 \lccode`#1="CA%
2584 \else\ifnum`#1="D3
2585 %E dieresis --> "CB (semi graphical sign)
2586 \lccode`#1="CB%
2587 \else\ifnum`#1="D4
2588 %E grave --> "C8 (semi graphical sign)
2589 \lccode`#1="C8%
2590 \else\ifnum`#1="D6
2591 %I acute --> "CD (semi graphical sign)
2592 \lccode`#1="CD%
2593 \else\ifnum`#1="D7
2594 %I circumflex --> "CE (semi-graphical sign)
2595 \lccode`#1="CE%
2596 \else\ifnum`#1="D8
2597 %I dieresis --> "CF (currency sign)
2598 \lccode`#1="CF%
2599 \else\ifnum`#1="E0
2600 %O acute --> "D3 (E dieresis) --> e dieresis
2601 \lccode`#1="89%
2602 \else\ifnum`#1="E2
2603 %O circumflex --> "D4 (E grave) --> e grave
2604 \lccode`#1="8A%
2605 \else\ifnum`#1="E3
2606 %O grave --> "D2 (E circumflex) --> e circumflex
2607 \lccode`#1="88%
2608 \else\ifnum`#1="E4
2609 %o tilde --> "F5 (End of flow sign)
2610 \lccode`#1="F5%
2611 \else\ifnum`#1="E5
2612 %O tilde --> "D5 (Power One sign)
2613 \lccode`#1="D5%
2614 \else\ifnum`#1="E7
2615 %thorn --> "FE (semi graphical sign)
2616 \lccode`#1="FE%
2617 \else\ifnum`#1="E8
2618 %P like letter --> "DE (I acute) --> i acute
2619 \lccode`#1="8D%
2620 \else\ifnum`#1="E9
2621 %U acute --> "DA (semi graphical sign)
2622 \lccode`#1="DA%
2623 \else\ifnum`#1="EA
2624 %U circumflex --> "DB (semi graphical sign)
2625 \lccode`#1="DB%
2626 \else\ifnum`#1="EB
2627 %U grave --> "D9 (semi graphical sign)
2628 \lccode`#1="D9%
2629 \else\ifnum`#1="EC
2630 %y acute --> "FD (Power two sign)
2631 \lccode`#1="FD%
2632 \else\ifnum`#1="ED
2633 %Y acute --> "DD (Slit vertical bar sign)
2634 \lccode`#1="DD%
2635 \else
2636 %we don't have a letter (a character to form word)
2637 \@BadHyphenCarMsg{#1}
2638 \catcode`#1=15% make this character invalid
2639 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2640 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2641 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2642 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2643 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2644 \fi\fi\fi\fi\fi\fi\fi\fi
2645 % We must have same count of \fi than \ifnum (58)
2646 }%\@MakeHyphenationEightFiveZero
2647 \fi % \ifx\CurrentEncoding...
2648 \catcode`\@=\atcatcode \let\atcatcode\relax
2649 %</codepage850>
2650 % \end{macrocode}
2651 % \subsection{Table for the code page 437 (file: \Fich{code437.tex})}
2652 % \DescribeMacro{\@FourThreeSeven}
2653 % \begin{macrocode}
2654 %<*codepage437>
2655 \chardef\atcatcode=\catcode`\@
2656 \catcode`\@=11\relax
2657 \begingroup
2658 \catcode`\A=\active
2659 \catcode`\E=\active
2660 \catcode`\I=\active
2661 \catcode`\O=\active
2662 \catcode`\U=\active
2663 \catcode`\Y=\active
2664 \gdef A{\string A}%
2665 \gdef E{\string E}%
2666 \gdef I{\string I}%
2667 \gdef O{\string O}%
2668 \gdef U{\string U}%
2669 \gdef Y{\string Y}%
2670 \endgroup
2671 \input initcar %
2672 \begingroup
2673 \ifcase\CurrentEncoding
2674 \input shapecm %
2675 \or
2676 \input shapedc %
2677 \fi
2678 \Ccedilla{^^80}{"80}{"87}%
2679 \Adieresis{^^8e}{"8E}{"84}%
2680 \Aring{^^8f}{"8F}{"86}%
2681 \Eacute{^^90}{"90}{"82}%
2682 \AE{^^92}{"92}{"91}%
2683 \Odieresis{^^99}{"99}{"94}%
2684 \Udieresis{^^9a}{"9A}{"81}%
2685 \Ntilde{^^a5}{"A5}{"A4}%
2686 \udieresis{^^81}{"9A}{"81}%
2687 \eacute{^^82}{"90}{"82}%
2688 \acircumflex{^^83}{"41}{"83}%
2689 \adieresis{^^84}{"8E}{"84}%
2690 \agrave{^^85}{"41}{"85}%
2691 \aring{^^86}{"8F}{"86}%
2692 \ccedilla{^^87}{"80}{"87}%
2693 \ecircumflex{^^88}{"45}{"88}%
2694 \edieresis{^^89}{"45}{"89}%
2695 \egrave{^^8a}{"45}{"8A}%
2696 \idieresis{^^8b}{"49}{"8B}%
2697 \icircumflex{^^8c}{"49}{"8C}%
2698 \igrave{^^8d}{"49}{"8D}%
2699 \ae{^^91}{"92}{"91}%
2700 \ocircumflex{^^93}{"4F}{"93}%
2701 \odieresis{^^94}{"99}{"94}%
2702 \ograve{^^95}{"4F}{"95}%
2703 \ucircumflex{^^96}{"55}{"96}%
2704 \ugrave{^^97}{"55}{"97}%
2705 \ydieresis{^^98}{"59}{"98}%
2706 \pounds{^^9c}{"9C}{"9C}%
2707 \florin{^^9f}{"9F}{"9F}%
2708 \aacute{^^a0}{"41}{"A0}%
2709 \iacute{^^a1}{"49}{"A1}%
2710 \oacute{^^a2}{"4F}{"A2}%
2711 \uacute{^^a3}{"55}{"A3}%
2712 \ntilde{^^a4}{"A5}{"A4}%
2713 \questiondown{^^a8}{"A8}{"A8}%
2714 \exclamdown{^^ad}{"AD}{"AD}%
2715 \guilletmotleft{^^ae}{"AE}{"AE}%
2716 \guillemeotright{^^af}{"AF}{"AF}%
2717 \alpha{^^e0}{"E0}{"E0}%
2718 \beta{^^e1}{"E1}{"E1}%
2719 \Gamma{^^e2}{"E2}{"E2}%
2720 \pi{^^e3}{"E3}{"E3}%
2721 \Sigma{^^e4}{"E4}{"E4}%
2722 \sigma{^^e5}{"E5}{"E5}%
2723 \mu{^^e6}{"E6}{"E6}%
2724 \tau{^^e7}{"E7}{"E7}%
2725 \Phi{^^e8}{"E8}{"E8}%
2726 \ThetaSign{^^e9}{"E9}{"E9}%
2727 \Omega{^^ea}{"EA}{"EA}%
2728 \delta{^^eb}{"EB}{"EB}%
2729 \infty{^^ec}{"EC}{"EC}%
2730 \emptysetSign{^^ed}{"ED}{"ED}%
2731 \epsilon{^^ee}{"EE}{"EE}%
2732 \cap{^^ef}{"EF}{"EF}%
2733 \equiv{^^f0}{"F0}{"F0}%
2734 \pm{^^f1}{"F1}{"F1}%
2735 \geq{^^f2}{"F2}{"F2}%
2736 \leq{^^f3}{"F3}{"F3}%
2737 \div{^^f6}{"F6}{"F6}%
2738 \approx{^^f7}{"F7}{"F7}%
2739 \bullet{^^f9}{"F9}{"F9}%
2740 \endgroup
2741 % \end{macrocode}
2742 % \DescribeMacro{\@MakeHyphenation437}
2743 % \begin{macrocode}
2744 \ifnum\CurrentEncoding=\DC\relax
2745 \def\@MakeHyphenationFourThreeSeven#1{%
2746 \catcode`#1=12%
2747 \ifnum`#1="80
2748 % C cedilla translated in DC encoding to "D7 (which is a semi graphical
2749 % sign in code page 437)
2750 \lccode`#1="D7%
2751 \else\ifnum`#1="81
2752 %u dieresis --> "FC
2753 \lccode`#1="FC%
2754 \else\ifnum`#1="82
2755 %e acute --> "E9 (Theta sign)
2756 \lccode`#1="E9%
2757 \else\ifnum`#1="83
2758 %a circumflex --> "E2 (Gamma sign)
2759 \lccode`#1="E2%
2760 \else\ifnum`#1="84
2761 %a dieresis --> "E4 o tilde
2762 \lccode`#1="E4%
2763 \else\ifnum`#1="85
2764 %a grave --> "E0 (alpha sign)
2765 \lccode`#1="E0%
2766 \else\ifnum`#1="86
2767 %a ring --> "E5 (sigma sign)
2768 \lccode`#1="E5%
2769 \else\ifnum`#1="87
2770 %c cedilla --> "E7 (tau sign)
2771 \lccode`#1="E7%
2772 \else\ifnum`#1="88
2773 %e circumflex --> "EA (Omega sign)
2774 \lccode`#1="EA%
2775 \else\ifnum`#1="89
2776 %e dieresis --> "EB (delta sign)
2777 \lccode`#1="EB%
2778 \else\ifnum`#1="8A
2779 %e grave --> "E8 (Phi sign)
2780 \lccode`#1="E8%
2781 \else\ifnum`#1="8B
2782 %i dieresis --> "EF (set intersection sign)
2783 \lccode`#1="EF%
2784 \else\ifnum`#1="8C
2785 %i circumflex --> "EE (epsilon sign)
2786 \lccode`#1="EE%
2787 \else\ifnum`#1="8D
2788 %i grave --> "EC (infinity sign)
2789 \lccode`#1="EC%
2790 \else\ifnum`#1="8E
2791 %A dieresis --> "C4 (semi graphical character)
2792 \lccode`#1="C4%
2793 \else\ifnum`#1="8F
2794 %A ring --> "C5 (semi graphical character)
2795 \lccode`#1="C5%
2796 \else\ifnum`#1="90
2797 %E acute --> "C9 (semi graphical character)
2798 \lccode`#1="C9%
2799 \else\ifnum`#1="91
2800 %ae ligature --> "E6 (mu sign)
2801 \lccode`#1="E6%
2802 \else\ifnum`#1="92
2803 %AE ligature --> "C6 (semi graphical character)
2804 \lccode`#1="C6%
2805 \else\ifnum`#1="93
2806 %o circumflex --> "F4 (upper part of integral sign)
2807 \lccode`#1="F4%
2808 \else\ifnum`#1="94
2809 %o dieresis --> "F6 (divide sign)
2810 \lccode`#1="F6%
2811 \else\ifnum`#1="95
2812 %O grave --> "F2 (greater or equal sign)
2813 \lccode`#1="F2%
2814 \else\ifnum`#1="96
2815 %u circumflex --> "FB (square sign)
2816 \lccode`#1="FB%
2817 \else\ifnum`#1="97
2818 %u grave --> "F9 (big bullet sign)
2819 \lccode`#1="F9%
2820 \else\ifnum`#1="98
2821 %y dieresis --> "B8 (semi graphical character)
2822 \lccode`#1="B8%
2823 \else\ifnum`#1="99
2824 %O dieresis --> "D6 (semi graphical character)
2825 \lccode`#1="D6%
2826 \else\ifnum`#1="9A
2827 %U dieresis --> "DC (semi graphical sign)
2828 \lccode`#1="DC%
2829 \else\ifnum`#1="A0
2830 %a acute --> "E1 (Beta sign)
2831 \lccode`#1="E1%
2832 \else\ifnum`#1="A1
2833 %i acute --> "ED (empty set sign)
2834 \lccode`#1="ED%
2835 \else\ifnum`#1="A2
2836 %o acute --> "F3 (less or equal sign)
2837 \lccode`#1="F3%
2838 \else\ifnum`#1="A3
2839 %u acute --> "FA (Bullet sign)
2840 \lccode`#1="FA%
2841 \else\ifnum`#1="A4
2842 %n tilde --> "F1 (Plus minus sign)
2843 \lccode`#1="F1%
2844 \else\ifnum`#1="A5
2845 %N tilde --> "D1 (semi graphical character)
2846 \lccode`#1="D1%
2847 \else
2848 %we don't have a letter (a character to form word)
2849 \@BadHyphenCarMsg{#1}
2850 \catcode`#1=15% make this character invalid
2851 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2852 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2853 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
2854 \fi\fi\fi
2855 % We must have same count of \fi than \ifnum (33)
2856 }%
2857 \fi %\ifx\CurrentEncoding...
2858 \catcode`\@=\atcatcode \let\atcatcode\relax
2859 %</codepage437>
2860 % \end{macrocode}
2861 % \subsection{Table for the code page of {\normalfont\textsc{Mc Intosh}} (file: \Fich{codemac.tex})}
2862 % \DescribeMacro{\@CodeMac}
2863 % \begin{macrocode}
2864 %<*codepagemac>
2865 \chardef\atcatcode=\catcode`\@
2866 \catcode`\@=11\relax
2867 {%
2868 \catcode`\Y=\active
2869 \gdef Y{\string Y}%
2870 }%
2871 \begingroup
2872 \input initcar %
2873 \ifcase\CurrentEncoding
2874 \input shapecm %
2875 \or
2876 \input shapedc %
2877 \fi
2878 \Adieresis{^^80}{"80}{"8A}%
2879 \Aring{^^81}{"81}{"8C}%
2880 \Ccedilla{^^82}{"82}{"8D}%
2881 \Eacute{^^83}{"83}{"8E}%
2882 \Ntilde{^^84}{"84}{"96}%
2883 \Odieresis{^^85}{"85}{"9A}%
2884 \Udieresis{^^86}{"86}{"9F}%
2885 \aacute{^^87}{"E7}{"87}%
2886 \agrave{^^88}{"CB}{"88}%
2887 \acircumflex{^^89}{"E5}{"89}%
2888 \adieresis{^^8a}{"80}{"8A}%
2889 \atilde{^^8b}{"CC}{"8B}%
2890 \aring{^^8c}{"81}{"8C}%
2891 \ccedilla{^^8d}{"82}{"8D}%
2892 \eacute{^^8e}{"83}{"8E}%
2893 \egrave{^^8f}{"E9}{"8F}%
2894 \ecircumflex{^^90}{"E6}{"90}%
2895 \edieresis{^^91}{"E8}{"91}%
2896 \iacute{^^92}{"EA}{"92}%
2897 \igrave{^^93}{"ED}{"93}%
2898 \icircumflex{^^94}{"EB}{"94}%
2899 \idieresis{^^95}{"EC}{"95}%
2900 \ntilde{^^96}{"84}{"96}%
2901 \oacute{^^97}{"EE}{"97}%
2902 \ograve{^^98}{"F1}{"98}%
2903 \ocircumflex{^^99}{"EF}{"99}%
2904 \odieresis{^^9a}{"85}{"9A}%
2905 \otilde{^^9b}{"CD}{"9B}%
2906 \uacute{^^9c}{"F2}{"9C}%
2907 \ugrave{^^9d}{"F4}{"9D}%
2908 \ucircumflex{^^9e}{"F3}{"9E}%
2909 \udieresis{^^9f}{"86}{"9F}%
2910 \dag{^^a0}{"A0}{"A0}%
2911 \degree{^^a1}{"A1}{"A1}%
2912 \cent{^^a2}{"A2}{"A2}%
2913 \pounds{^^a3}{"A3}{"A3}%
2914 \section{^^a4}{"A4}{"A4}%
2915 \bullet{^^a5}{"A5}{"A5}%
2916 \ParagraphSign{^^a6}{"A6}{"A6}%
2917 \beta{^^a7}{"A7}{"A7}%
2918 \register{^^a8}{"A8}{"A8}%
2919 \copyright{^^a9}{"A9}{"A9}%
2920 \trademark{^^aa}{"AA}{"AA}%
2921 \acute{^^ab}{"AB}{"AB}%
2922 \dieresis{^^ac}{"AC}{"AC}%
2923 \neq{^^ad}{"AD}{"AD}%
2924 \AE{^^ae}{"AE}{"BE}%
2925 \Oslash{^^af}{"AF}{"BF}%
2926 \pm{^^b1}{"B1}{"B1}%
2927 \leq{^^b2}{"B2}{"B2}%
2928 \geq{^^b3}{"B3}{"B3}%
2929 \yen{^^b4}{"B4}{"B4}%
2930 \mu{^^b5}{"B5}{"B5}%
2931 \delta{^^b6}{"B6}{"B6}%
2932 \Sigma{^^b7}{"B7}{"B7}%
2933 \Pi{^^b8}{"B8}{"B8}%
2934 \pi{^^b9}{"B9}{"B9}%
2935 \florin{^^ba}{"BA}{"BA}%
2936 \ordfeminine{^^bb}{"BB}{"BB}%
2937 \ordmasculine{^^bc}{"BC}{"BC}%
2938 \Omega{^^bd}{"BD}{"BD}%
2939 \ae{^^be}{"AE}{"BE}%
2940 \oslash{^^bf}{"AF}{"BF}%
2941 \questiondown{^^c0}{"C0}{"C0}%
2942 \exclamdown{^^c1}{"C1}{"C1}%
2943 \neg{^^c2}{"C2}{"C2}%
2944 \approx{^^c5}{"C5}{"C5}%
2945 \partial{^^c6}{"C6}{"C6}%
2946 \guilletmotleft{^^c7}{"C7}{"C7}%
2947 \guillemeotright{^^c8}{"C8}{"C8}%
2948 \ellipsis{^^c9}{"C9}{"C9}%
2949 \unbreakablespace{^^ca}{"CA}{"CA}%
2950 \Agrave{^^cb}{"CB}{"88}%
2951 \Atilde{^^cc}{"CC}{"8B}%
2952 \Otilde{^^cd}{"CD}{"9B}%
2953 \OE{^^ce}{"CE}{"CF}%
2954 \oe{^^cf}{"CE}{"CF}%
2955 \emdash{^^d1}{"D1}{"D1}%
2956 \quotedblleft{^^d2}{"D2}{"D2}%
2957 \quotedblright{^^d3}{"D3}{"D3}%
2958 \quoteleft{^^d4}{"D4}{"D4}%
2959 \quoteright{^^d5}{"D5}{"D5}%
2960 \div{^^d6}{"D6}{"D6}%
2961 \diamond{^^d7}{"D7}{"D7}%
2962 \ydieresis{^^d8}{"D9}{"D8}%
2963 \Ydieresis{^^d9}{"D9}{"D8}%
2964 \currency{^^db}{"DB}{"DB}%
2965 \fiLigature{^^de}{"DE}{"DE}%
2966 \flLigature{^^df}{"DF}{"DF}%
2967 \ddag{^^e0}{"E0}{"E0}%
2968 \cedilla{^^e2}{"E2}{"E2}%
2969 \perthousand{^^e4}{"E4}{"E4}%
2970 \Acircumflex{^^e5}{"E5}{"89}%
2971 \Ecircumflex{^^e6}{"E6}{"90}%
2972 \Aacute{^^e7}{"E7}{"87}%
2973 \Edieresis{^^e8}{"E8}{"91}%
2974 \Egrave{^^e9}{"E9}{"8F}%
2975 \Iacute{^^ea}{"EA}{"92}%
2976 \Icircumflex{^^eb}{"EB}{"94}%
2977 \Idieresis{^^ec}{"EC}{"95}%
2978 \Igrave{^^ed}{"ED}{"93}%
2979 \Oacute{^^ee}{"EE}{"97}%
2980 \Ocircumflex{^^ef}{"EF}{"99}%
2981 \Ograve{^^f1}{"F1}{"98}%
2982 \Uacute{^^f2}{"F2}{"9C}%
2983 \Ucircumflex{^^f3}{"F3}{"9E}%
2984 \Ugrave{^^f4}{"F4}{"9D}%
2985 \powerone{^^f5}{"F5}{"F5}%
2986 \endgroup
2987 % \end{macrocode}
2988 %
2989 % \DescribeMacro{\@MakeHyphenationMac}
2990 % \begin{macrocode}
2991 \ifnum\CurrentEncoding=\DC\relax
2992 \def\@MakeHyphenationMac#1{%
2993 \catcode`#1=12%Legal value for \hyphenation
2994 \ifnum`#1="80
2995 % A dieresis --> C4 (graphical symbol)
2996 \lccode`#1="C4%
2997 \else\ifnum`#1="81
2998 %A ring --> "C5 (approx sign)
2999 \lccode`#1="C5%
3000 \else\ifnum`#1="82
3001 %C cedilla --> "C7 (french opening guillemet)
3002 \lccode`#1="C7%
3003 \else\ifnum`#1="83
3004 %E acute --> "C9 (three dot sign)
3005 \lccode`#1="C9%
3006 \else\ifnum`#1="84
3007 %N tilde --> "D1 (long dash)
3008 \lccode`#1="D1%
3009 \else\ifnum`#1="85
3010 %O dieresis --> "D6 (divide sign)
3011 \lccode`#1="D6%
3012 \else\ifnum`#1="86
3013 %U dieresis --> "DC (graphical symbol)
3014 \lccode`#1="DC%
3015 \else\ifnum`#1="87
3016 %a acute --> "E1 (graphical symbol)
3017 \lccode`#1="E1%
3018 \else\ifnum`#1="88
3019 %a grave --> "E0 (double dag sign)
3020 \lccode`#1="E0%
3021 \else\ifnum`#1="89
3022 %a circumflex --> "E2 (cedilla accent)
3023 \lccode`#1="E2%
3024 \else\ifnum`#1="8A
3025 %a dieresis --> "E4 (graphical symbol)
3026 \lccode`#1="E4%
3027 \else\ifnum`#1="8B
3028 %a tilde --> "E3 (graphical symbol)
3029 \lccode`#1="E3%
3030 \else\ifnum`#1="8C
3031 %a ring --> "E5 (A circumflex) --> a circumflex
3032 \lccode`#1="89%
3033 \else\ifnum`#1="8D
3034 %c cedilla --> "E7 (A acute) --> a acute
3035 \lccode`#1="87%
3036 \else\ifnum`#1="8E
3037 %e acute --> "E9 (E grave) --> e grave
3038 \lccode`#1="8F%
3039 \else\ifnum`#1="8F
3040 %e grave --> "E8 (E dieresis) --> e dieresis
3041 \lccode`#1="91%
3042 \else\ifnum`#1="90
3043 %e circumflex --> "EA (I acute) --> i acute
3044 \lccode`#1="92%
3045 \else\ifnum`#1="91
3046 %e dieresis --> "EB (I circumflex) --> i circumflex
3047 \lccode`#1="94%
3048 \else\ifnum`#1="92
3049 %i acute --> "ED (I grave) --> i grave
3050 \lccode`#1="93%
3051 \else\ifnum`#1="93
3052 %i grave --> "EC (I dieresis) --> i dieresis
3053 \lccode`#1="95%
3054 \else\ifnum`#1="94
3055 %i circumflex --> "EE (O acute) --> o acute
3056 \lccode`#1="97%
3057 \else\ifnum`#1="95
3058 %i dieresis --> "EF (O circumflex) --> o circumflex
3059 \lccode`#1="99%
3060 \else\ifnum`#1="96
3061 %n tilde --> "F1 (O grave) --> o grave
3062 \lccode`#1="98%
3063 \else\ifnum`#1="97
3064 %o acute --> "F3 (U circumflex) --> u circumflex
3065 \lccode`#1="9E%
3066 \else\ifnum`#1="98
3067 %o grave --> "F2 (U acute) --> u acute
3068 \lccode`#1="9C%
3069 \else\ifnum`#1="99
3070 %o circumflex --> "F4 (U grave) --> u grave
3071 \lccode`#1="9D%
3072 \else\ifnum`#1="9A
3073 %o dieresis --> "F6 (graphical sign)
3074 \lccode`#1="F6%
3075 \else\ifnum`#1="9B
3076 %o tilde --> "F5 (power one sign)
3077 \lccode`#1="F5%
3078 \else\ifnum`#1="9C
3079 %u acute --> "FA (graphical sign)
3080 \lccode`#1="FA%
3081 \else\ifnum`#1="9D
3082 %u grave --> "F9 (graphical sign)
3083 \lccode`#1="F9%
3084 \else\ifnum`#1="9E
3085 %u circumflex --> "FB (graphical sign)
3086 \lccode`#1="FB%
3087 \else\ifnum`#1="9F
3088 %u dieresis --> "FC (graphical sign)
3089 \lccode`#1="FC%
3090 \else\ifnum`#1="AE
3091 %AE ligature --> "C6 (differential sign)
3092 \lccode`#1="C6%
3093 \else\ifnum`#1="BE
3094 %ae ligature --> "E6 (E circumflex) --> e circumflex
3095 \lccode`#1="90%
3096 \else\ifnum`#1="CB
3097 %A grave --> "C0 (Interrogation down sign)
3098 \lccode`#1="C0%
3099 \else\ifnum`#1="CC
3100 %A tilde --> "C3 (graphical sign)
3101 \lccode`#1="C3%
3102 \else\ifnum`#1="CD
3103 %O tilde --> "D5 (closing american quote)
3104 \lccode`#1="D5%
3105 \else\ifnum`#1="CE
3106 %OE ligature --> "D7 (diamond sign)
3107 \lccode`#1="D7%
3108 \else\ifnum`#1="CF
3109 %oe ligature --> "F7 (graphical sign)
3110 \lccode`#1="F7%
3111 \else\ifnum`#1="D8
3112 %y dieresis --> "B8 (Pi sign)
3113 \lccode`#1="B8%
3114 \else\ifnum`#1="E5
3115 %A circumflex --> "C2 (neg sign)
3116 \lccode`#1="C2%
3117 \else\ifnum`#1="E6
3118 %E circumflex --> "CA (graphical sign)
3119 \lccode`#1="CA%
3120 \else\ifnum`#1="E7
3121 %A acute --> "C1 (Exclam down sign)
3122 \lccode`#1="C1%
3123 \else\ifnum`#1="E8
3124 %E dieresis --> "CB (A acute) --> a acute
3125 \lccode`#1="88%
3126 \else\ifnum`#1="E9
3127 %E grave --> "C8 (closing french guillemet)
3128 \lccode`#1="C8%
3129 \else\ifnum`#1="EA
3130 %I acute --> "CD (O tilde) --> o tilde
3131 \lccode`#1="9B%
3132 \else\ifnum`#1="EB
3133 %I circumflex --> "CE (OE ligature) --> oe ligature
3134 \lccode`#1="EF%
3135 \@ConflictHyphenCarMsg{I circumflex ("EB)}{I dieresis ("EC)}%
3136 \else\ifnum`#1="EC
3137 %I dieresis --> "CF (oe ligature)
3138 \lccode`#1="EF%
3139 \@ConflictHyphenCarMsg{I dieresis ("EC)}{I circumflex ("EB)}%
3140 \else\ifnum`#1="ED
3141 %I acute --> "CC (A tilde) --> a tilde
3142 \lccode`#1="8B%
3143 \else\ifnum`#1="EE%
3144 %O acute --> "D3 (closing us guillemet)
3145 \lccode`#1="D3%
3146 \else\ifnum`#1="EF%
3147 %O circumflex --> "D4 (opening quote)
3148 \lccode`#1="D4%
3149 \else\ifnum`#1="F1%
3150 %O grave --> "D2 (Opening US guillemets)
3151 \lccode`#1="D2%
3152 \else\ifnum`#1="F2%
3153 %U acute --> "DA (graphical character)
3154 \lccode`#1="DA%
3155 \else\ifnum`#1="F3%
3156 %U circumflex --> "DB (graphical character)
3157 \lccode`#1="DB%
3158 \else\ifnum`#1="F4%
3159 %U grave --> "D9 (Y dieresis) --> y dieresis
3160 \lccode`#1="D8%
3161 \else
3162 %we don't have a letter (a character to form word)
3163 \@BadHyphenCarMsg{#1}
3164 \catcode`#1=15% make this character invalid
3165 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
3166 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
3167 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
3168 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
3169 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
3170 \fi\fi\fi\fi\fi
3171 % We must have same count of \fi than \ifnum (55)
3172 }%
3173 \fi %\ifx\CurrentEncoding...
3174 \catcode`\@=\atcatcode \let\atcatcode\relax
3175 %</codepagemac>
3176 % \end{macrocode}
3177 % \subsection{Table for the code page of {\normalfont\textsc{Iso Latin set One}} (file: \Fich{codeiso1.tex})}
3178 % \DescribeMacro{\@IsoLatinSetOne}
3179 % \begin{macrocode}
3180 %<*codepageiso1>
3181 \chardef\atcatcode=\catcode`\@
3182 \catcode`\@=11\relax
3183 {%
3184 \catcode`\Y=\active
3185 \gdef Y{\string Y}%
3186 }%
3187 \begingroup
3188 \input initcar %
3189 \ifcase\CurrentEncoding
3190 \input shapecm %
3191 \Agrave{^^c0}{"C0}{"E0}%
3192 \Aacute{^^c1}{"C1}{"E1}%
3193 \Acircumflex{^^c2}{"C2}{"E2}%
3194 \Atilde{^^c3}{"C3}{"E3}%
3195 \Adieresis{^^c4}{"C4}{"E4}%
3196 \Aring{^^c5}{"C5}{"E5}%
3197 \AE{^^c6}{"C6}{"E6}%
3198 \Ccedilla{^^c7}{"C7}{"E7}%
3199 \Egrave{^^c8}{"C8}{"E8}%
3200 \Eacute{^^c9}{"C9}{"E9}%
3201 \Ecircumflex{^^ca}{"CA}{"EA}%
3202 \Edieresis{^^cb}{"CB}{"EB}%
3203 \Igrave{^^cc}{"CC}{"EC}%
3204 \Iacute{^^cd}{"CD}{"ED}%
3205 \Icircumflex{^^ce}{"CE}{"EE}%
3206 \Idieresis{^^cf}{"CF}{"EF}%
3207 \DBar{^^d0}{"D0}{"F0}%
3208 \Ntilde{^^d1}{"D1}{"F1}%
3209 \Ograve{^^d2}{"D2}{"F2}%
3210 \Oacute{^^d3}{"D3}{"F3}%
3211 \Ocircumflex{^^d4}{"D4}{"F4}%
3212 \Otilde{^^d5}{"D5}{"F5}%
3213 \Odieresis{^^d6}{"D6}{"F6}%
3214 \times{^^d7}{"D7}{"D7}%
3215 \Oslash{^^d8}{"D8}{"F8}%
3216 \Ugrave{^^d9}{"D9}{"F9}%
3217 \Uacute{^^da}{"DA}{"FA}%
3218 \Ucircumflex{^^db}{"DB}{"FB}%
3219 \Udieresis{^^dc}{"DC}{"FC}%
3220 \Yacute{^^dd}{"DD}{"FD}%
3221 \thorn{^^de}{"FE}{"DE}%
3222 \beta{^^df}{"DF}{"DF}%
3223 \agrave{^^e0}{"C0}{"E0}%
3224 \aacute{^^e1}{"C1}{"E1}%
3225 \acircumflex{^^e2}{"C2}{"E2}%
3226 \atilde{^^e3}{"C3}{"E3}%
3227 \adieresis{^^e4}{"C4}{"E4}%
3228 \aring{^^e5}{"C5}{"E5}%
3229 \ae{^^e6}{"C6}{"E6}%
3230 \ccedilla{^^e7}{"C7}{"E7}%
3231 \egrave{^^e8}{"C8}{"E8}%
3232 \eacute{^^e9}{"C9}{"E9}%
3233 \ecircumflex{^^ea}{"CA}{"EA}%
3234 \edieresis{^^eb}{"CB}{"EB}%
3235 \igrave{^^ec}{"CC}{"EC}%
3236 \iacute{^^ed}{"CD}{"ED}%
3237 \icircumflex{^^ee}{"CE}{"EE}%
3238 \idieresis{^^ef}{"CF}{"EF}%
3239 \dBar{^^f0}{"D0}{"F0}%
3240 \ntilde{^^f1}{"D1}{"F1}%
3241 \ograve{^^f2}{"D2}{"F2}%
3242 \oacute{^^f3}{"D3}{"F3}%
3243 \ocircumflex{^^f4}{"D4}{"F4}%
3244 \otilde{^^f5}{"D5}{"F5}%
3245 \odieresis{^^f6}{"D6}{"F6}%
3246 \div{^^f7}{"F7}{"F7}%
3247 \oslash{^^f8}{"D8}{"F8}%
3248 \ugrave{^^f9}{"D9}{"F9}%
3249 \uacute{^^fa}{"DA}{"FA}%
3250 \ucircumflex{^^fb}{"DB}{"FB}%
3251 \udieresis{^^fc}{"DC}{"FC}%
3252 \yacute{^^fd}{"DD}{"FD}%
3253 \Thorn{^^fe}{"DE}{"FE}%
3254 \ydieresis{^^ff}{"59}{"FF}%
3255 \or
3256 \input shapedc %
3257 % \end{macrocode}
3258 % The following characters are in the same place in both
3259 % (\textsc{Iso1} and \textsc{Dc}) encodings. Thus the only
3260 % thing to do is to change the \emph{catcode} to transform
3261 % the character in letter (can be used in control sequence, but
3262 % this is not recommended if one want have portable documents) and
3263 % to define good values for uppercase and lowercase characters.
3264 % \begin{macrocode}
3265 %Agrave
3266 \global\catcode"C0=11\global\uccode"C0="C0\global\lccode"C0="E0%
3267 %Aacute
3268 \global\catcode"C1=11\global\uccode"C1="C1\global\lccode"C1="E1%
3269 %Acircumflex
3270 \global\catcode"C2=11\global\uccode"C2="C2\global\lccode"C2="E2%
3271 %Atilde
3272 \global\catcode"C3=11\global\uccode"C3="C3\global\lccode"C3="E3%
3273 %Adieresis
3274 \global\catcode"C4=11\global\uccode"C4="C4\global\lccode"C4="E4%
3275 %Aring
3276 \global\catcode"C5=11\global\uccode"C5="C5\global\lccode"C5="E5%
3277 %AE
3278 \global\catcode"C6=11\global\uccode"C6="C6\global\lccode"C6="E6%
3279 %Ccedilla
3280 \global\catcode"C7=11\global\uccode"C7="C7\global\lccode"C7="E7
3281 %Egrave
3282 \global\catcode"C8=11\global\uccode"C8="C8\global\lccode"C8="E8%
3283 %Eacute
3284 \global\catcode"C9=11\global\uccode"C9="C9\global\lccode"C9="E9%
3285 %Ecircumflex
3286 \global\catcode"CA=11\global\uccode"CA="CA\global\lccode"CA="EA%
3287 %Edieresis
3288 \global\catcode"CB=11\global\uccode"CB="CB\global\lccode"CB="EB%
3289 %Igrave
3290 \global\catcode"CC=11\global\uccode"CC="CC\global\lccode"CC="EC%
3291 %Iacute
3292 \global\catcode"CD=11\global\uccode"CD="CD\global\lccode"CD="ED%
3293 %Icircumflex
3294 \global\catcode"CE=11\global\uccode"CE="CE\global\lccode"CE="EE%
3295 %Idieresis
3296 \global\catcode"CF=11\global\uccode"CF="CF\global\lccode"CF="EF%
3297 %DBar
3298 \global\catcode"D0=11\global\uccode"D0="D0\global\lccode"D0="F0%
3299 %Ntilde
3300 \global\catcode"D1=11\global\uccode"D1="D1\global\lccode"D1="F1%
3301 %Ograve
3302 \global\catcode"D2=11\global\uccode"D2="D2\global\lccode"D2="F2%
3303 %Oacute
3304 \global\catcode"D3=11\global\uccode"D3="D3\global\lccode"D3="F3%
3305 %Ocircumflex
3306 \global\catcode"D4=11\global\uccode"D4="D4\global\lccode"D4="F4%
3307 %Otilde
3308 \global\catcode"D5=11\global\uccode"D5="D5\global\lccode"D5="F5%
3309 %Odieresis
3310 \global\catcode"D6=11\global\uccode"D6="D6\global\lccode"D6="F6%
3311 \times{^^d7}{"D7}{"D7}%
3312 %Oslash
3313 \global\catcode"D8=11\global\uccode"D8="D8\global\lccode"D8="F8%
3314 %Ugrave
3315 \global\catcode"D9=11\global\uccode"D9="D9\global\lccode"D9="F9%
3316 %Uacute
3317 \global\catcode"DA=11\global\uccode"DA="DA\global\lccode"DA="FA%
3318 %Ucircumflex
3319 \global\catcode"DB=11\global\uccode"DB="DB\global\lccode"DB="FB%
3320 %Udieresis
3321 \global\catcode"DC=11\global\uccode"DC="DC\global\lccode"DC="FC%
3322 %Yacute
3323 \global\catcode"DD=11\global\uccode"DD="DD\global\lccode"DD="FD%
3324 %thorn
3325 \global\catcode"DE=11\global\uccode"DE="FE\global\lccode"DE="DE%
3326 \beta{^^df}{"DF}{"DF}%
3327 %agrave
3328 \global\catcode"E0=11\global\uccode"E0="C0\global\lccode"E0="E0%
3329 %aacute
3330 \global\catcode"E1=11\global\uccode"E1="C1\global\lccode"E1="E1%
3331 %acircumflex
3332 \global\catcode"E2=11\global\uccode"E2="C2\global\lccode"E2="E2%
3333 %atilde
3334 \global\catcode"E3=11\global\uccode"E3="C3\global\lccode"E3="E3%
3335 %adieresis
3336 \global\catcode"E4=11\global\uccode"E4="C4\global\lccode"E4="E4%
3337 %aring
3338 \global\catcode"E5=11\global\uccode"E5="C5\global\lccode"E5="E5%
3339 %ae
3340 \global\catcode"E6=11\global\uccode"E6="C6\global\lccode"E6="E6%
3341 %ccedilla
3342 \global\catcode"E7=11\global\uccode"E7="C7\global\lccode"E7="E7%
3343 %egrave
3344 \global\catcode"E8=11\global\uccode"E8="C8\global\lccode"E8="E8%
3345 %eacute
3346 \global\catcode"E9=11\global\uccode"E9="C9\global\lccode"E9="E9%
3347 %ecircumflex
3348 \global\catcode"EA=11\global\uccode"EA="CA\global\lccode"EA="EA%
3349 %edieresis
3350 \global\catcode"EB=11\global\uccode"EB="CB\global\lccode"EB="EB%
3351 %igrave
3352 \global\catcode"EC=11\global\uccode"EC="CC\global\lccode"EC="EC%
3353 %iacute
3354 \global\catcode"ED=11\global\uccode"ED="CD\global\lccode"ED="ED%
3355 %icircumflex
3356 \global\catcode"EE=11\global\uccode"EE="CE\global\lccode"EE="EE%
3357 %idieresis
3358 \global\catcode"EF=11\global\uccode"EF="CF\global\lccode"EF="EF%
3359 %dBar
3360 \global\catcode"F0=11\global\uccode"F0="D0\global\lccode"F0="F0%
3361 %ntilde
3362 \global\catcode"F1=11\global\uccode"F1="D1\global\lccode"F1="F1%
3363 %ograve
3364 \global\catcode"F2=11\global\uccode"F2="D2\global\lccode"F2="F2%
3365 %oacute
3366 \global\catcode"F3=11\global\uccode"F3="D3\global\lccode"F3="F3%
3367 %ocircumflex
3368 \global\catcode"F4=11\global\uccode"F4="D4\global\lccode"F4="F4%
3369 %otilde
3370 \global\catcode"F5=11\global\uccode"F5="D5\global\lccode"F5="F5%
3371 %odieresis
3372 \global\catcode"F6=11\global\uccode"F6="D6\global\lccode"F6="F6%
3373 \div{^^f7}{"F7}{"F7}%
3374 %oslash
3375 \global\catcode"F8=11\global\uccode"F8="D8\global\lccode"F8="F8%
3376 %ugrave
3377 \global\catcode"F9=11\global\uccode"F9="D9\global\lccode"F9="F9%
3378 %uacute
3379 \global\catcode"FA=11\global\uccode"FA="DA\global\lccode"FA="FA%
3380 %ucircumflex
3381 \global\catcode"FB=11\global\uccode"FB="DB\global\lccode"FB="FB%
3382 %udieresis
3383 \global\catcode"FC=11\global\uccode"FC="DC\global\lccode"FC="FC%
3384 %yacute
3385 \global\catcode"FD=11\global\uccode"FD="DD\global\lccode"FD="FD%
3386 %Thorn
3387 \global\catcode"FE=11\global\uccode"FE="DE\global\lccode"FE="FE%
3388 %ydieresis
3389 \global\catcode"FF=11\global\uccode"FF="59\global\lccode"FF="FF%
3390 \fi %\ifcase
3391 % \end{macrocode}
3392 % These symbols are drawn with mathematical commands and thus are aleways
3393 % ``active'' in both encoding
3394 % \begin{macrocode}
3395 \exclamdown{^^a1}{"A1}{"A1}%
3396 \cent{^^a2}{"A2}{"A2}%
3397 \pounds{^^a3}{"A3}{"A3}%
3398 \currency{^^a4}{"A4}{"A4}%
3399 \yen{^^a5}{"A5}{"A5}%
3400 \splitbar{^^a6}{"A6}{"A6}%
3401 \section{^^a7}{"A7}{"A7}%
3402 \dieresis{^^a8}{"A8}{"A8}%
3403 \copyright{^^a9}{"A9}{"A9}%
3404 \ordfeminine{^^aa}{"AA}{"AA}%
3405 \guilletmotleft{^^ab}{"AB}{"AB}%
3406 \neg{^^ac}{"AC}{"AC}%
3407 \register{^^ad}{"AD}{"AD}%
3408 \degree{^^b0}{"B0}{"B0}%
3409 \pm{^^b1}{"B1}{"B1}%
3410 \powertwo{^^b2}{"B2}{"B2}%
3411 \powerthree{^^b3}{"B3}{"B3}%
3412 \mu{^^b5}{"B5}{"B5}%
3413 \ParagraphSign{^^b6}{"B6}{"B6}%
3414 \bullet{^^b7}{"B7}{"B7}%
3415 \cedilla{^^b8}{"B8}{"B8}%
3416 \powerone{^^b9}{"B9}{"B9}%
3417 \ordmasculine{^^ba}{"BA}{"BA}%
3418 \guillemeotright{^^bb}{"BB}{"BB}%
3419 \OneQuarter{^^bc}{"BC}{"BC}%
3420 \OneHalf{^^bd}{"BD}{"BD}%
3421 \threequarter{^^be}{"BE}{"BE}%
3422 \questiondown{^^bf}{"BF}{"BF}%
3423 \endgroup
3424 % \end{macrocode}
3425 % \DescribeMacro{\@MakeHyphenationLatin1}
3426 % \begin{macrocode}
3427 \ifnum\CurrentEncoding=\DC
3428 \def\@MakeHyphenationLatinOne#1{%
3429 % Here we have not too much work since the character from Iso Latin set one and
3430 % from DC encoding are the same. We just do the verification that the character
3431 % is a letter.
3432 \catcode`#1=12%
3433 \ifnum`#1>"C0%
3434 \ifnum`#1="D7% Times sign
3435 \@BadHyphenCarMsg{#1}%
3436 \fi
3437 \ifnum`#1="DF% beta sign
3438 \@BadHyphenCarMsg{#1}%
3439 \fi
3440 \ifnum`#1="F7% Divide sign
3441 \@BadHyphenCarMsg{#1}%
3442 \fi
3443 \else
3444 \@BadHyphenCarMsg{#1}%
3445 \fi
3446 }%
3447 \fi %\ifnum\CurrentEncoding...
3448 \catcode`\@=\atcatcode \let\atcatcode\relax
3449 %</codepageiso1>
3450 % \end{macrocode}
3451 % \subsection{Default value for each character (file: \Fich{initcar.tex})}
3452 %
3453 % The file when inputting give a default value to each character above
3454 % 127, and set the value for
3455 % \Comm{lccode} and \Comm{uccode} to the character itself.
3456 % This convention doesn't follow the normal \TeX{} convention
3457 % (where a character without uppercase or lowercase has value zero for both code) but it
3458 % is necessary to be able to declare hyphenation exception
3459 % (containing character above 127) with the command \Comm{hyphenation}.
3460 % \begin{macrocode}
3461 %<*initcar>
3462 \gdef^^80{\@DefaultValue{80}}\global\uccode"80="80\global\lccode"80="80%
3463 \gdef^^81{\@DefaultValue{81}}\global\uccode"81="81\global\lccode"81="81%
3464 \gdef^^82{\@DefaultValue{82}}\global\uccode"82="82\global\lccode"82="82%
3465 \gdef^^83{\@DefaultValue{83}}\global\uccode"83="83\global\lccode"83="83%
3466 \gdef^^84{\@DefaultValue{84}}\global\uccode"84="84\global\lccode"84="84%
3467 \gdef^^85{\@DefaultValue{85}}\global\uccode"85="85\global\lccode"85="85%
3468 \gdef^^86{\@DefaultValue{86}}\global\uccode"86="86\global\lccode"86="86%
3469 \gdef^^87{\@DefaultValue{87}}\global\uccode"87="87\global\lccode"87="87%
3470 \gdef^^88{\@DefaultValue{88}}\global\uccode"88="88\global\lccode"88="88%
3471 \gdef^^89{\@DefaultValue{89}}\global\uccode"89="89\global\lccode"89="89%
3472 \gdef^^8a{\@DefaultValue{8a}}\global\uccode"8A="8A\global\lccode"8A="8A%
3473 \gdef^^8b{\@DefaultValue{8b}}\global\uccode"8B="8B\global\lccode"8B="8B%
3474 \gdef^^8c{\@DefaultValue{8c}}\global\uccode"8C="8C\global\lccode"8C="8C%
3475 \gdef^^8d{\@DefaultValue{8d}}\global\uccode"8D="8D\global\lccode"8D="8D%
3476 \gdef^^8e{\@DefaultValue{8e}}\global\uccode"8E="8E\global\lccode"8E="8E%
3477 \gdef^^8f{\@DefaultValue{8f}}\global\uccode"8F="8F\global\lccode"8F="8F%
3478 \gdef^^90{\@DefaultValue{90}}\global\uccode"90="90\global\lccode"90="90%
3479 \gdef^^91{\@DefaultValue{91}}\global\uccode"91="91\global\lccode"91="91%
3480 \gdef^^92{\@DefaultValue{92}}\global\uccode"92="92\global\lccode"92="92%
3481 \gdef^^93{\@DefaultValue{93}}\global\uccode"93="93\global\lccode"93="93%
3482 \gdef^^94{\@DefaultValue{94}}\global\uccode"94="94\global\lccode"94="94%
3483 \gdef^^95{\@DefaultValue{95}}\global\uccode"95="95\global\lccode"95="95%
3484 \gdef^^96{\@DefaultValue{96}}\global\uccode"96="96\global\lccode"96="96%
3485 \gdef^^97{\@DefaultValue{97}}\global\uccode"97="97\global\lccode"97="97%
3486 \gdef^^98{\@DefaultValue{98}}\global\uccode"98="98\global\lccode"98="98%
3487 \gdef^^99{\@DefaultValue{99}}\global\uccode"99="99\global\lccode"99="99%
3488 \gdef^^9a{\@DefaultValue{9a}}\global\uccode"9A="9A\global\lccode"9A="9A%
3489 \gdef^^9b{\@DefaultValue{9b}}\global\uccode"9B="9B\global\lccode"9B="9B%
3490 \gdef^^9c{\@DefaultValue{9c}}\global\uccode"9C="9C\global\lccode"9C="9C%
3491 \gdef^^9d{\@DefaultValue{9d}}\global\uccode"9D="9D\global\lccode"9D="9D%
3492 \gdef^^9e{\@DefaultValue{9e}}\global\uccode"9E="9E\global\lccode"9E="9E%
3493 \gdef^^9f{\@DefaultValue{9f}}\global\uccode"9F="9F\global\lccode"9F="9F%
3494 \gdef^^a0{\@DefaultValue{a0}}\global\uccode"A0="A0\global\lccode"A0="A0%
3495 \gdef^^a1{\@DefaultValue{a1}}\global\uccode"A1="A1\global\lccode"A1="A1%
3496 \gdef^^a2{\@DefaultValue{a2}}\global\uccode"A2="A2\global\lccode"A2="A2%
3497 \gdef^^a3{\@DefaultValue{a3}}\global\uccode"A3="A3\global\lccode"A3="A3%
3498 \gdef^^a4{\@DefaultValue{a4}}\global\uccode"A4="A4\global\lccode"A4="A4%
3499 \gdef^^a5{\@DefaultValue{a5}}\global\uccode"A5="A5\global\lccode"A5="A5%
3500 \gdef^^a6{\@DefaultValue{a6}}\global\uccode"A6="A6\global\lccode"A6="A6%
3501 \gdef^^a7{\@DefaultValue{a7}}\global\uccode"A7="A7\global\lccode"A7="A7%
3502 \gdef^^a8{\@DefaultValue{a8}}\global\uccode"A8="A8\global\lccode"A8="A8%
3503 \gdef^^a9{\@DefaultValue{a9}}\global\uccode"A9="A9\global\lccode"A9="A9%
3504 \gdef^^aa{\@DefaultValue{aa}}\global\uccode"AA="AA\global\lccode"AA="AA%
3505 \gdef^^ab{\@DefaultValue{ab}}\global\uccode"AB="AB\global\lccode"AB="AB%
3506 \gdef^^ac{\@DefaultValue{ac}}\global\uccode"AC="AC\global\lccode"AC="AC%
3507 \gdef^^ad{\@DefaultValue{ad}}\global\uccode"AD="AD\global\lccode"AD="AD%
3508 \gdef^^ae{\@DefaultValue{ae}}\global\uccode"AE="AE\global\lccode"AE="AE%
3509 \gdef^^af{\@DefaultValue{af}}\global\uccode"AF="AF\global\lccode"AF="AF%
3510 \gdef^^b0{\@DefaultValue{b0}}\global\uccode"B0="B0\global\lccode"B0="B0%
3511 \gdef^^b1{\@DefaultValue{b1}}\global\uccode"B1="B1\global\lccode"B1="B1%
3512 \gdef^^b2{\@DefaultValue{b2}}\global\uccode"B2="B2\global\lccode"B2="B2%
3513 \gdef^^b3{\@DefaultValue{b3}}\global\uccode"B3="B3\global\lccode"B3="B3%
3514 \gdef^^b4{\@DefaultValue{b4}}\global\uccode"B4="B4\global\lccode"B4="B4%
3515 \gdef^^b5{\@DefaultValue{b5}}\global\uccode"B5="B5\global\lccode"B5="B5%
3516 \gdef^^b6{\@DefaultValue{b6}}\global\uccode"B6="B6\global\lccode"B6="B6%
3517 \gdef^^b7{\@DefaultValue{b7}}\global\uccode"B7="B7\global\lccode"B7="B7%
3518 \gdef^^b8{\@DefaultValue{b8}}\global\uccode"B8="B8\global\lccode"B8="B8%
3519 \gdef^^b9{\@DefaultValue{b9}}\global\uccode"B9="B9\global\lccode"B9="B9%
3520 \gdef^^ba{\@DefaultValue{ba}}\global\uccode"BA="BA\global\lccode"BA="BA%
3521 \gdef^^bb{\@DefaultValue{bb}}\global\uccode"BB="BB\global\lccode"BB="BB%
3522 \gdef^^bc{\@DefaultValue{bc}}\global\uccode"BC="BC\global\lccode"BC="BC%
3523 \gdef^^bd{\@DefaultValue{bd}}\global\uccode"BD="BD\global\lccode"BD="BD%
3524 \gdef^^be{\@DefaultValue{be}}\global\uccode"BE="BE\global\lccode"BE="BE%
3525 \gdef^^bf{\@DefaultValue{bf}}\global\uccode"BF="BF\global\lccode"BF="BF%
3526 \gdef^^c0{\@DefaultValue{c0}}\global\uccode"C0="C0\global\lccode"C0="C0%
3527 \gdef^^c1{\@DefaultValue{c1}}\global\uccode"C1="C1\global\lccode"C1="C1%
3528 \gdef^^c2{\@DefaultValue{c2}}\global\uccode"C2="C2\global\lccode"C2="C2%
3529 \gdef^^c3{\@DefaultValue{c3}}\global\uccode"C3="C3\global\lccode"C3="C3%
3530 \gdef^^c4{\@DefaultValue{c4}}\global\uccode"C4="C4\global\lccode"C4="C4%
3531 \gdef^^c5{\@DefaultValue{c5}}\global\uccode"C5="C5\global\lccode"C5="C5%
3532 \gdef^^c6{\@DefaultValue{c6}}\global\uccode"C6="C6\global\lccode"C6="C6%
3533 \gdef^^c7{\@DefaultValue{c7}}\global\uccode"C7="C7\global\lccode"C7="C7%
3534 \gdef^^c8{\@DefaultValue{c8}}\global\uccode"C8="C8\global\lccode"C8="C8%
3535 \gdef^^c9{\@DefaultValue{c9}}\global\uccode"C9="C9\global\lccode"C9="C9%
3536 \gdef^^ca{\@DefaultValue{ca}}\global\uccode"CA="CA\global\lccode"CA="CA%
3537 \gdef^^cb{\@DefaultValue{cb}}\global\uccode"CB="CB\global\lccode"CB="CB%
3538 \gdef^^cc{\@DefaultValue{cc}}\global\uccode"CC="CC\global\lccode"CC="CC%
3539 \gdef^^cd{\@DefaultValue{cd}}\global\uccode"CD="CD\global\lccode"CD="CD%
3540 \gdef^^ce{\@DefaultValue{ce}}\global\uccode"CE="CE\global\lccode"CE="CE%
3541 \gdef^^cf{\@DefaultValue{cf}}\global\uccode"CF="CF\global\lccode"CF="CF%
3542 \gdef^^d0{\@DefaultValue{d0}}\global\uccode"D0="D0\global\lccode"D0="D0%
3543 \gdef^^d1{\@DefaultValue{d1}}\global\uccode"D1="D1\global\lccode"D1="D1%
3544 \gdef^^d2{\@DefaultValue{d2}}\global\uccode"D2="D2\global\lccode"D2="D2%
3545 \gdef^^d3{\@DefaultValue{d3}}\global\uccode"D3="D3\global\lccode"D3="D3%
3546 \gdef^^d4{\@DefaultValue{d4}}\global\uccode"D4="D4\global\lccode"D4="D4%
3547 \gdef^^d5{\@DefaultValue{d5}}\global\uccode"D5="D5\global\lccode"D5="D5%
3548 \gdef^^d6{\@DefaultValue{d6}}\global\uccode"D6="D6\global\lccode"D6="D6%
3549 \gdef^^d7{\@DefaultValue{d7}}\global\uccode"D7="D7\global\lccode"D7="D7%
3550 \gdef^^d8{\@DefaultValue{d8}}\global\uccode"D8="D8\global\lccode"D8="D8%
3551 \gdef^^d9{\@DefaultValue{d9}}\global\uccode"D9="D9\global\lccode"D9="D9%
3552 \gdef^^da{\@DefaultValue{da}}\global\uccode"DA="DA\global\lccode"DA="DA%
3553 \gdef^^db{\@DefaultValue{db}}\global\uccode"DB="DB\global\lccode"DB="DB%
3554 \gdef^^dc{\@DefaultValue{dc}}\global\uccode"DC="DC\global\lccode"DC="DC%
3555 \gdef^^dd{\@DefaultValue{dd}}\global\uccode"DD="DD\global\lccode"DD="DD%
3556 \gdef^^de{\@DefaultValue{de}}\global\uccode"DE="DE\global\lccode"DE="DE%
3557 \gdef^^df{\@DefaultValue{df}}\global\uccode"DF="DF\global\lccode"DF="DF%
3558 \gdef^^e0{\@DefaultValue{e0}}\global\uccode"E0="E0\global\lccode"E0="E0%
3559 \gdef^^e1{\@DefaultValue{e1}}\global\uccode"E1="E1\global\lccode"E1="E1%
3560 \gdef^^e2{\@DefaultValue{e2}}\global\uccode"E2="E2\global\lccode"E2="E2%
3561 \gdef^^e3{\@DefaultValue{e3}}\global\uccode"E3="E3\global\lccode"E3="E3%
3562 \gdef^^e4{\@DefaultValue{e4}}\global\uccode"E4="E4\global\lccode"E4="E4%
3563 \gdef^^e5{\@DefaultValue{e5}}\global\uccode"E5="E5\global\lccode"E5="E5%
3564 \gdef^^e6{\@DefaultValue{e6}}\global\uccode"E6="E6\global\lccode"E6="E6%
3565 \gdef^^e7{\@DefaultValue{e7}}\global\uccode"E7="E7\global\lccode"E7="E7%
3566 \gdef^^e8{\@DefaultValue{e8}}\global\uccode"E8="E8\global\lccode"E8="E8%
3567 \gdef^^e9{\@DefaultValue{e9}}\global\uccode"E9="E9\global\lccode"E9="E9%
3568 \gdef^^ea{\@DefaultValue{ea}}\global\uccode"EA="EA\global\lccode"EA="EA%
3569 \gdef^^eb{\@DefaultValue{eb}}\global\uccode"EB="EB\global\lccode"EB="EB%
3570 \gdef^^ec{\@DefaultValue{ec}}\global\uccode"EC="EC\global\lccode"EC="EC%
3571 \gdef^^ed{\@DefaultValue{ed}}\global\uccode"ED="ED\global\lccode"ED="ED%
3572 \gdef^^ee{\@DefaultValue{ee}}\global\uccode"EE="EE\global\lccode"EE="EE%
3573 \gdef^^ef{\@DefaultValue{ef}}\global\uccode"EF="EF\global\lccode"EF="EF%
3574 \gdef^^f0{\@DefaultValue{f0}}\global\uccode"F0="F0\global\lccode"F0="F0%
3575 \gdef^^f1{\@DefaultValue{f1}}\global\uccode"F1="F1\global\lccode"F1="F1%
3576 \gdef^^f2{\@DefaultValue{f2}}\global\uccode"F2="F2\global\lccode"F2="F2%
3577 \gdef^^f3{\@DefaultValue{f3}}\global\uccode"F3="F3\global\lccode"F3="F3%
3578 \gdef^^f4{\@DefaultValue{f4}}\global\uccode"F4="F4\global\lccode"F4="F4%
3579 \gdef^^f5{\@DefaultValue{f5}}\global\uccode"F5="F5\global\lccode"F5="F5%
3580 \gdef^^f6{\@DefaultValue{f6}}\global\uccode"F6="F6\global\lccode"F6="F6%
3581 \gdef^^f7{\@DefaultValue{f7}}\global\uccode"F7="F7\global\lccode"F7="F7%
3582 \gdef^^f8{\@DefaultValue{f8}}\global\uccode"F8="F8\global\lccode"F8="F8%
3583 \gdef^^f9{\@DefaultValue{f9}}\global\uccode"F9="F9\global\lccode"F9="F9%
3584 \gdef^^fa{\@DefaultValue{fa}}\global\uccode"FA="FA\global\lccode"FA="FA%
3585 \gdef^^fb{\@DefaultValue{fb}}\global\uccode"FB="FB\global\lccode"FB="FB%
3586 \gdef^^fc{\@DefaultValue{fc}}\global\uccode"FC="FC\global\lccode"FC="FC%
3587 \gdef^^fd{\@DefaultValue{fd}}\global\uccode"FD="FD\global\lccode"FD="FD%
3588 \gdef^^fe{\@DefaultValue{fe}}\global\uccode"FE="FE\global\lccode"FE="FE%
3589 \gdef^^ff{\@DefaultValue{ff}}\global\uccode"FF="FF\global\lccode"FF="FF%
3590 %</initcar>
3591 % \end{macrocode}
3592 %\Finale
3593