summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig
diff options
context:
space:
mode:
authorJonathan Kew <jfkthame@googlemail.com>2008-06-19 09:55:32 +0000
committerJonathan Kew <jfkthame@googlemail.com>2008-06-19 09:55:32 +0000
commitdbb352aee22320019fd2a7c33ee019d90ae0cf87 (patch)
tree7d5cd0a6b9036bf055ae80b43b5ece2faab02b19 /Master/texmf-dist/tex/latex/latexconfig
parentcb32643b38ffb0d152c393dfbb85dc93b027fe58 (diff)
override latex's T1 codes with Unicode settings
git-svn-id: svn://tug.org/texlive/trunk@8875 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/latexconfig')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/xelatex.ini87
1 files changed, 86 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
index a4d7ecd4622..6a2b7efebd7 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
+++ b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
@@ -1,8 +1,93 @@
% xelatex.ini
% jonathan kew
-% updated: 18 May 2006
+% updated: 16 June 2008
% Public domain
\XeTeXuseglyphmetrics=1
\input unicode-letters
+% disable the \dump in latex.ltx
+\expandafter\let\csname saved-dump-cs\endcsname\dump
+\let\dump=\relax
\input latex.ltx
+% Because latex.ltx sets up character code tables for T1 encoding by default,
+% we need to reset values from unicode-letters that may have been overridden
+\begingroup
+\catcode`\@=11 \count@=128 % reset chars "80-"FF to category "other", no case mapping
+\loop \ifnum\count@<256
+ \global\uccode\count@=0 \global\lccode\count@=0
+ \global\catcode\count@=12 \global\sfcode\count@=1000
+ \advance\count@ by 1 \repeat
+\def\C #1 #2 #3 {\global\uccode"#1="#2 \global\lccode"#1="#3 } % case mappings (non-letter)
+\def\L #1 #2 #3 {\global\catcode"#1=11 % category: letter
+ \C #1 #2 #3 % with case mappings
+ \ifnum"#1="#3 \else \global\sfcode"#1=999 \fi % uppercase letters have sfcode=999
+ \global\XeTeXmathcode"#1="7"01"#1 % BMP letters default to class 7 (var), fam 1
+ }
+\def\l #1 {\L #1 #1 #1 } % letter without case mappings
+\l 00AA
+\L 00B5 039C 00B5
+\l 00BA
+\L 00C0 00C0 00E0
+\L 00C1 00C1 00E1
+\L 00C2 00C2 00E2
+\L 00C3 00C3 00E3
+\L 00C4 00C4 00E4
+\L 00C5 00C5 00E5
+\L 00C6 00C6 00E6
+\L 00C7 00C7 00E7
+\L 00C8 00C8 00E8
+\L 00C9 00C9 00E9
+\L 00CA 00CA 00EA
+\L 00CB 00CB 00EB
+\L 00CC 00CC 00EC
+\L 00CD 00CD 00ED
+\L 00CE 00CE 00EE
+\L 00CF 00CF 00EF
+\L 00D0 00D0 00F0
+\L 00D1 00D1 00F1
+\L 00D2 00D2 00F2
+\L 00D3 00D3 00F3
+\L 00D4 00D4 00F4
+\L 00D5 00D5 00F5
+\L 00D6 00D6 00F6
+\L 00D8 00D8 00F8
+\L 00D9 00D9 00F9
+\L 00DA 00DA 00FA
+\L 00DB 00DB 00FB
+\L 00DC 00DC 00FC
+\L 00DD 00DD 00FD
+\L 00DE 00DE 00FE
+\l 00DF
+\L 00E0 00C0 00E0
+\L 00E1 00C1 00E1
+\L 00E2 00C2 00E2
+\L 00E3 00C3 00E3
+\L 00E4 00C4 00E4
+\L 00E5 00C5 00E5
+\L 00E6 00C6 00E6
+\L 00E7 00C7 00E7
+\L 00E8 00C8 00E8
+\L 00E9 00C9 00E9
+\L 00EA 00CA 00EA
+\L 00EB 00CB 00EB
+\L 00EC 00CC 00EC
+\L 00ED 00CD 00ED
+\L 00EE 00CE 00EE
+\L 00EF 00CF 00EF
+\L 00F0 00D0 00F0
+\L 00F1 00D1 00F1
+\L 00F2 00D2 00F2
+\L 00F3 00D3 00F3
+\L 00F4 00D4 00F4
+\L 00F5 00D5 00F5
+\L 00F6 00D6 00F6
+\L 00F8 00D8 00F8
+\L 00F9 00D9 00F9
+\L 00FA 00DA 00FA
+\L 00FB 00DB 00FB
+\L 00FC 00DC 00FC
+\L 00FD 00DD 00FD
+\L 00FE 00DE 00FE
+\L 00FF 0178 00FF
+\endgroup
+\expandafter\let\expandafter\dump\csname saved-dump-cs\endcsname
\dump