% utf8.kbc for utf8 part of unicode An idea of Bernard Gaulle 2003/06/05 % last mods: 2005/12/25 % Copyright Bernard Gaulle as in french.doc % (you are allowed instead to modifiy it % and give it another name) % 8bits binary file! % (is called by kbconfig.tex before patterns loading at INITEX time) % (might be called at any time by the keyboard package) % (might be called at any time by kb2lex.tex to produce .lex files) % % This is an internal mapping (targeting EC) addon to allow utf8 input with % (La)TeX; you can add your own macro codes in relation with the key you want. % First line for lower caps and second for their ucs code. % Third for their hexa. codes in T1 fonts. % Fourth line begins upper caps and fift gives their ucs code. % Sixth provides for their hexa. codes in T1 fontrs. % A dot is inserted in any non-applicable case. % % Check keyboard.dat and the documentation for more informations. % %------ Tableau des caracteres accentues (Latin-9 ==> utf-8 [ucs]) ------------ % \_______________________________________________________/ % |___1__|___2__|___3__|___4__|___5__|___6__|___7__|___8__|%%%%%comments%% \ac[ \` | \' | \" | \^ | {\c} | {} | {} | {\r} ]%<== acc.7 bits %------------------------------------------------------------------------------ [a | à | . | ä | â | . | . | . | å |% no \'a in f. \ucs| 00E0 | . | 00E4 | 00E2 | . | . | . | 00E5 ]% \hex| ^^e0 | . | ^^e4 | ^^e2 | . | . | . | ^^e5 ]% + angstroem [A | À | . | Ä | Â | . | . | . | Å |% no \'A in f. \ucs| 00C0 | . | 00C4 | 00C2 | . | . | . | 00C5 ]% \hex| ^^c0 | . | ^^c4 | ^^c2 | . | . | . | ^^c5 ]% %------------------------------------------------------------------------------ [e | è | é | ë | ê | . | . | . | . |% \ucs| 00E8 | 00E9 | 00EB | 00EA | . | . | . | . ]% \hex| ^^e8 | ^^e9 | ^^eb | ^^ea | . | . | . | . ]% [E | È | É | Ë | Ê | . | . | . | . |% \ucs| 00C8 | 00C9 | 00CB | 00CA | . | . | . | . ]% \hex| ^^c8 | ^^c9 | ^^cb | ^^ca | . | . | . | . ]% %------------------------------------------------------------------------------ [{\i{}} | . | . | ï | î | . | . | . | . |% no \`i \'i \ucs| . | . | 00EF | 00EE | . | . | . | . ]% \hex| . | . | ^^ef | ^^ee | . | . | . | . ]% [{\I{}} | . | . | Ï | Î | . | . | . | . |% no \`I \'I \ucs| . | . | 00CF | 00CE | . | . | . | . ]% \hex| . | . | ^^cf | ^^ce | . | . | . | . ]% %------------------------------------------------------------------------------ [o | . | . | ö | ô | . | . | . | . |% no \`o \'o \ucs| . | . | 00F6 | 00F4 | . | . | . | . ]% \hex| . | . | ^^f6 | ^^f4 | . | . | . | . ]% [O | . | . | Ö | Ô | . | . | . | . |% no \`O \'O \ucs| . | . | 00D6 | 00D4 | . | . | . | . ]% \hex| . | . | ^^d6 | ^^d4 | . | . | . | . ]% %------------------------------------------------------------------------------ [u | ù | . | ü | û | . | . | . | . |% no \'u \ucs| 00F9 | . | 00FC | 00FB | . | . | . | . ]% \hex| ^^f9 | . | ^^fc | ^^fb | . | . | . | . ]% [U | Ù | . | Ü | Û | . | . | . | . |% pas de \'U \ucs| 00D9 | . | 00DC | 00DB | . | . | . | . ]% \hex| ^^d9 | . | ^^dc | ^^db | . | . | . | . ]% %------------------------------------------------------------------------------ [c | . | . | . | . | ç | . | . | . |% c cedille \ucs| . | . | . | . | 00E7 | . | . | . ]% \hex| . | . | . | . | ^^e7 | . | . | . ]% [C | . | . | . | . | Ç | . | . | . |% C cedille \ucs| . | . | . | . | 00C7 | . | . | . ]% \hex| . | . | . | . | ^^c7 | . | . | . ]% %------------------------------------------------------------------------------ \ACTIVEtrue% necessaire en T1 (caracteres non Cork doivent etre actifs) %------------------------------------------------------------------------------ [y | . | . | ÿ | . | . | . | . | . |% y trema \ucs| . | . | 00FF | . | . | . | . | . ]% \hex| . | . | ^^b8 | . | . | . | . | . ]% [Y | . | . | ¾ | . | . | . | . | . |% Y trema \ucs| . | . | 0178 | . | . | . | . | . ]% \hex| . | . | ^^98 | . | . | . | . | . ]% %------------------------------------------------------------------------------ % Ci-dessous les caracteres speciaux qui sont des \chardef (cad 1 car de fonte) % A noter que depuis LaTeX2e ce ne sont plus des \chardef mais des macros. %------------------------------------------------------------------------------ \MACROtrue% depuis LaTeX2e %------------------------------------------------------------------------------ [{\oe{}} | . | . | . | . | . | ½ | . | . |% e dans l'o \ucs| . | . | . | . | . | 0153 | . | . ]% \hex| . | . | . | . | . | ^^f7 | . | . ]% [{\OE{}} | . | . | . | . | . | ¼ | . | . |% E dans l'O \ucs| . | . | . | . | . | 0152 | . | . ]% \hex| . | . | . | . | . | ^^d7 | . | . ]% %------------------------------------------------------------------------------ [{\ae{}} | . | . | . | . | . | æ | . | . |% e dans l'a \ucs| . | . | . | . | . | 00E6 | . | . ]% \hex| . | . | . | . | . | ^^e6 | . | . ]% [{\AE{}} | . | . | . | . | . | Æ | . | . |% E dans l'A \ucs| . | . | . | . | . | 00C6 | . | . ]% \hex| . | . | . | . | . | ^^c6 | . | . ]% %------------------------------------------------------------------------------ [{\o{}} | . | . | . | . | . | ø | . | . |% o scandinave \ucs| . | . | . | . | . | 00F8 | . | . ]% \hex| . | . | . | . | . | ^^f8 | . | . ]% [{\O{}} | . | . | . | . | . | Ø | . | . |% \ucs| . | . | . | . | . | 00D8 | . | . ]% \hex| . | . | . | . | . | ^^d8 | . | . ]% %------------------------------------------------------------------------------ \MACROfalse% depuis LaTeX2e %------------------------------------------------------------------------------ % Ci-dessous les caracteres speciaux qui sont en fait des ligatures % (ne pas en rajouter) %------------------------------------------------------------------------------ \LIGStrue %------------------------------------------------------------------------------ [{!`} | . | . | . | . | . | ¡ | . | . |% ! espagnol \ucs| . | . | . | . | . | 00A1 | . | . ]% \hex| . | . | . | . | . | ^^bd | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ [{?`} | . | . | . | . | . | ¿ | . | . |% ? espagnol \ucs| . | . | . | . | . | 00BF | . | . ]% \hex| . | . | . | . | . | ^^be | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ \LIGSfalse %------------------------------------------------------------------------------ % Ci-dessous les caracteres speciaux qui sont en fait des macros-instructions %------------------------------------------------------------------------------ \MACROtrue %------------------------------------------------------------------------------ [{\guillemotleft\dGs} % % guillemets | . | . | . | . | . | « | . | . |% ouvrants \ucs| . | . | . | . | . | 00AB | . | . ]% francais \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ [{\guillemotright{}} % % guillemets | . | . | . | . | . | » | . | . |% fermants \ucs| . | . | . | . | . | 00BB | . | . ]% francais \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ [{\r{}} % | . | . | . | . | . | ° | . | . |% degre \ucs| . | . | . | . | . | 00BA | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ [{\csname texteuro\endcsname} % | . | . | . | . | . | ¤ | . | . |% euro \ucs| . | . | . | . | . | 20AC | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% currency \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ % Ci-dessous des macro-caracteres speciaux qui peuvent etre % des caracteres mathematiques. %------------------------------------------------------------------------------ [{\ss{}} | . | . | . | . | . | ß | . | . |% es-zet \ucs| . | . | . | . | . | 00DF | . | . ]% \hex| . | . | . | . | . | ^^ff | . | . ]% % obviously kb7to8 will not contain target {{SS}} [{\SS{}} | . | . | . | . | . | {{SS}} | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | ^^df | . | . ]% %------------------------------------------------------------------------------ [{\pounds{}} | . | . | . | . | . | £ | . | . |%sterling pound \ucs| . | . | . | . | . | 00A3 | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ [{\copyright{}} | . | . | . | . | . | © | . | . |% copyright \ucs| . | . | . | . | . | 00A9 | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ [{\P{}} | . | . | . | . | . | ¶ | . | . |% "pilcrow" \ucs| . | . | . | . | . | 00B6 | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ [{\S{}} | . | . | . | . | . | § | . | . |% "section" \ucs| . | . | . | . | . | 00A7 | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ \gdef\diviser{\ESC\bgroup\ESC\ifmmode\ESC\div\ESC% % \else\ESC\string /\ESC\fi\ESC\egroup}% [{\diviser} | . | . | . | . | . | ÷ | . | . |% divide \ucs| . | . | . | . | . | 00F7 | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ \gdef\multiplier{\ESC\bgroup\ESC\ifmmode\ESC\times\ESC% % \else\ESC\string *\ESC\fi\ESC\egroup}% [{\multiplier} | . | . | . | . | . | × | . | . |% multiply \ucs| . | . | . | . | . | 00D7 | . | . ]% \hex| . | . | . | . | . | . | . | . ]% [. | . | . | . | . | . | . | . | . |% \ucs| . | . | . | . | . | . | . | . ]% \hex| . | . | . | . | . | . | . | . ]% %------------------------------------------------------------------------------ \ACTIVEfalse% fin du jeu hors standard \MACROfalse% fin du jeu de macros-instructions \global\let\flowercase\lowercaseORI% we don't have any \lowercase patch. \endinput %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%