summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/luainputenc/lutf8.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-23 00:18:01 +0000
committerKarl Berry <karl@freefriends.org>2009-06-23 00:18:01 +0000
commitc5eb42407f4dca7e0651d9f78eac32007261407b (patch)
treea6cc17dd8fccf0a6ba67dcb4b3b1cbf21019a12c /Master/texmf-dist/tex/lualatex/luainputenc/lutf8.def
parenta6f953f4816835c3e6460c8623361f6cc7978ee5 (diff)
new lualatex package luainputenc
git-svn-id: svn://tug.org/texlive/trunk@13903 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/luainputenc/lutf8.def')
-rw-r--r--Master/texmf-dist/tex/lualatex/luainputenc/lutf8.def114
1 files changed, 114 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/lualatex/luainputenc/lutf8.def b/Master/texmf-dist/tex/lualatex/luainputenc/lutf8.def
new file mode 100644
index 00000000000..a8883724276
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/luainputenc/lutf8.def
@@ -0,0 +1,114 @@
+%%
+%% This is file `lutf8.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% luainputenc.dtx (with options: `def')
+%% This is a generated file.
+%%
+%% Copyright (C) 2009 by Elie Roux <elie.roux@telecom-bretagne.eu>
+%%
+%% This work is under the CC0 license. As an exception, the files
+%% luainputenc.sty, lutf8.def and lutf8x.def have more restrictions.
+%% See these file for more details.
+%%
+%% People who helped on this package:
+%% Javier Bezos
+%% Will Robertson
+%% Hans Hagen
+%% Heiko Oberdiek
+%% Javier Mugica
+%%
+%% This work consists of the main source file luainputenc.dtx
+%% and the derived files
+%% luainputenc.sty, luainputenc.lua, lutf8.def, lutf8x.def,
+%% eu2enc.def, eu2lmr.fd and luainputenc.pdf
+%%
+%% This file was adapted from utf8.def, which copyright is:
+%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003
+%% 2004 2005 2006 The LaTeX3 Project.
+%%
+%% utf8.def is under the lppl version 1.3c or later, and can be found
+%% in the base LaTeX system.
+%%
+%% The lppl can be found at http://www.latex-project.org/lppl.txt
+%%
+%% The changes to utf8.def are Copyright 2009 Elie Roux, and are under
+%% the CC0 license.
+%%
+%% The changes are LuaTeX support.
+%%
+%% This file is distributed under the CC0 license, with clause 6 of the
+%% lppl as additional restrictions.
+
+
+\ProvidesFile{lutf8.def}
+ [2009/04/15 v0.93 UTF-8 support for luainputenc]
+
+\makeatletter
+\catcode`\ \saved@space@catcode
+
+\@inpenc@test
+
+\ifx\@begindocumenthook\@undefined
+ \makeatother
+ \endinput \fi
+
+
+\gdef\DeclareUnicodeCharacter#1#2{%
+ \@tempcnta"#1%
+ \catcode\@tempcnta\active %
+ \DeclareInputText{\the\@tempcnta}{#2}%
+}
+
+\@onlypreamble\DeclareUnicodeCharacter
+
+\def\cdp@elt#1#2#3#4{%
+ \wlog{Now handling font encoding #1 ...}%
+ \lowercase{%
+ \InputIfFileExists{#1enc.dfu}}%
+ {\wlog{... processing UTF-8 mapping file for font encoding
+ #1}%
+ \catcode`\ 9\relax}%
+ {\wlog{... no UTF-8 mapping file for font encoding #1}}%
+}
+\cdp@list
+
+\def\DeclareFontEncoding@#1#2#3{%
+ \expandafter %
+ \ifx\csname T@#1\endcsname\relax %
+ \def\cdp@elt{\noexpand\cdp@elt}%
+ \xdef\cdp@list{\cdp@list\cdp@elt{#1}%
+ {\default@family}{\default@series}%
+ {\default@shape}}%
+ \expandafter\let\csname#1-cmd\endcsname\@changed@cmd %
+ \begingroup %
+ \wlog{Now handling font encoding #1 ...}%
+ \lowercase{%
+ \InputIfFileExists{#1enc.dfu}}%
+ {\wlog{... processing UTF-8 mapping file for font encoding #1}}%
+ {\wlog{... no UTF-8 mapping file for font encoding #1}}%
+ \endgroup
+ \else
+ \@font@info{Redeclaring font encoding #1}%
+ \fi
+ \global\@namedef{T@#1}{#2}%
+ \global\@namedef{M@#1}{\default@M#3}%
+ \xdef\LastDeclaredEncoding{#1}%
+}
+
+\DeclareUnicodeCharacter{00A9}{\textcopyright}
+\DeclareUnicodeCharacter{00AA}{\textordfeminine}
+\DeclareUnicodeCharacter{00AE}{\textregistered}
+\DeclareUnicodeCharacter{00BA}{\textordmasculine}
+\DeclareUnicodeCharacter{02C6}{\textasciicircum}
+\DeclareUnicodeCharacter{02DC}{\textasciitilde}
+\DeclareUnicodeCharacter{200C}{\textcompwordmark}
+\DeclareUnicodeCharacter{2026}{\textellipsis}
+\DeclareUnicodeCharacter{2122}{\texttrademark}
+\DeclareUnicodeCharacter{2423}{\textvisiblespace}
+
+\endinput
+%%
+%% End of file `lutf8.def'.