diff options
author | Karl Berry <karl@freefriends.org> | 2014-09-08 22:09:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-09-08 22:09:04 +0000 |
commit | f2cbccb4cb819d91c65147f969322bcaa9977e49 (patch) | |
tree | af27c0cae74c1adbcd4294c5b3b91f659cbb75f9 /Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def | |
parent | 49901f331ab8e1cbb2810b3722c00d67da253ce5 (diff) |
greek-fontenc (8sep14)
git-svn-id: svn://tug.org/texlive/trunk@35130 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def | 154 |
1 files changed, 82 insertions, 72 deletions
diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def b/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def index 3b22ce4742a..8df1b65c748 100644 --- a/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def +++ b/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def @@ -1,6 +1,8 @@ -% greek-euenc.def: Greek LICR definitions for XeTeX and LuaTeX -% *************************************************************** -% +% greek-euenc.def +% +++++++++++++++ +% Greek LICR definitions for XeTeX and LuaTeX +% ******************************************* +% % :Copyright: © 2013 Günter Milde % :Licence: This work may be distributed and/or modified under the % conditions of the `LaTeX Project Public License`_, either @@ -9,14 +11,15 @@ % :: \ProvidesFile{greek-euenc.def} -[2013/12/02 0.11.1 Greek LICRs for XeTeX and LuaTeX] +[2014/09/08 0.11.2 Greek LICRs for XeTeX and LuaTeX] -% Experimental support for Greek LICR macros with XeTeX and LuaTeX. -% Based on `lgrenc.def` and `lgrenc.dfu`. -% -% Changelog: +% :abstract: +% Experimental support for Greek LICR macros with XeTeX and LuaTeX. +% Extends euenc_. Used by babel-greek_ and textalpha_. +% +% History: % .. class:: borderless -% +% % ========== ====== ======================================================== % 2013-07-16 0.1 initial version % 2013-07-18 0.1.1 bugfix: wrong breathings psilioxia -> dasiaoxia @@ -24,35 +27,45 @@ % .. fix "hiatus" handling. % 2013-07-24 0.1.3 fix "input" path. % 2013-10-01 0.1.4 remove clashing defs for legacy characters with oxia, -% .. fix upcasing of ``\finalsigma``. -% 2013/12/01 0.11.1 fix identification. +% .. fix upcasing of ``\finalsigma``. +% 2013-12-01 0.11.1 fix identification. +% 2014-09-08 0.11.2 ``\textKoppa`` macro +% .. (Capital Koppa is not defined in LGR but Unicode). % ========== ====== ======================================================== -% -% Requires XeTeX or LuaTeX and a font with Greek characters. See -% `<test-euenc.tex>`_ and `<test-euenc.pdf>`_ for usage details and -% example. -% -% `xunicode.sty` defines several commands for the declaration of UTF -% characters, composites and accents. These are (sparsely) documented in the -% source. Unfortunately, they do not work seamless with the standard NFSS -% commands described in the fntguide. -% -% This file sets up LaTeX Internal Character Representaction (LICR) macros -% based on standard LaTeX commands. It should work independed of `xunicode`. -% (Currently, it only works if `fontspec` is loaded. TODO: Why?) -% -% +% +% Motivation +% ========== +% +% LICR macro definitions for the Greek script are missing in both, xunicode_ +% and euenc_. +% +% This file expands the font encoding definition files ``eu1enc.def`` rsp. +% ``eu2enc.def`` from euenc_ defining `LaTeX Internal Character +% Representaction` (LICR) macros for Greek letters and symbols. It works +% independed of xunicode_ using the standard commands for `LaTeX2e font +% selection`_. +% +% Requirements +% ============ +% +% Requires XeTeX or LuaTeX, euenc_ (usually loaded via fontspec_), and a font +% with Greek characters. +% +% See `<greek-euenc-doc.tex>`_ and `<greek-euenc-doc.pdf>`_ for setup and +% usage examples. +% +% % Greek Diacritics % ================ -% +% % Define "named macros" for simple and combined diacritics. -% +% % * Named accent macros can be used instead of the ``\@tabacckludge`` by % to-LaTeX converters to ensure working also inside the tabbing environment. -% +% % * Named macros are required for upcasing according to Greek typesetting % conventions and in the definition of composite commands. -% +% % Greek alias names for standard accents:: \DeclareTextCommand{\acctonos}{\LastDeclaredEncoding}{\@tabacckludge'} @@ -61,7 +74,7 @@ \DeclareTextCommand{\accperispomeni}{\LastDeclaredEncoding}{\@tabacckludge~} % Breathings: -% +% % (The COMBINING GREEK KORONIS is a legacy character, discarded in favour of % COMBINING COMMA ABOVE) :: @@ -71,14 +84,8 @@ \DeclareTextCommand{\<}{\LastDeclaredEncoding}{\accdasia} -%% TODO: how to pass the char nr. to DeclareTextCommand? -% \providecommand*{\DeclareTextAccentCombined}[3]{% -% \DeclareTextCommand{#1}{#2}[1]{##1\char"#3 }% -% } -% \DeclareTextAccentCombined{\accypogegrammeni}{\LastDeclaredEncoding}{0837} - % Sub-iota: -% +% % ``\ypogegrammeni`` is a postfix accent (ligature in LGR) :: \DeclareTextSymbol{\ypogegrammeni}{\LastDeclaredEncoding}{0837} % COMBINING GREEK YPOGEGRAMMENI @@ -99,9 +106,9 @@ \DeclareTextCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}[1]{#1\char"0342 \char"0313 } -% Composite Diacritics -% ==================== -% +% Common Definitions +% ================== +% % Use the `common Greek font encoding definitions`_:: \input{greek-fontenc.def} @@ -109,14 +116,17 @@ % Character Definitions % ===================== -% -% -% \DeclareTextSymbol{\textcompwordmark}{\LastDeclaredEncoding}{8204} -% -% +% +% General Punctuation +% ~~~~~~~~~~~~~~~~~~~ +% +% Ligature break up with ZERO WIDTH NON-JOINER:: + +\DeclareTextCommand{\textcompwordmark}{\LastDeclaredEncoding}{\char"200C} + % Greek and Coptic % ~~~~~~~~~~~~~~~~ -% +% % :: % NR Unicode Name % babel name, % PU name @@ -221,18 +231,18 @@ \DeclareTextCommand{\textstigma}{\LastDeclaredEncoding}{ϛ} \DeclareTextCommand{\textDigamma}{\LastDeclaredEncoding}{Ϝ} \DeclareTextCommand{\textdigamma}{\LastDeclaredEncoding}{ϝ} -%03DE GREEK LETTER KOPPA % Ϟ \textKoppa +\DeclareTextCommand{\textKoppa}{\LastDeclaredEncoding}{Ϟ} % not defined in LGR \DeclareTextCommand{\textkoppa}{\LastDeclaredEncoding}{ϟ} % \koppa, \textqoppa [sic!] \DeclareTextCommand{\textSampi}{\LastDeclaredEncoding}{Ϡ} \DeclareTextCommand{\textsampi}{\LastDeclaredEncoding}{ϡ} % Greek Extended % ~~~~~~~~~~~~~~ -% +% % We skip definitions for characters "... WITH OXIA", because they would % overwrite the defintions for "... WITH TONOS" in the `Greek and Coptic` % block. -% +% % :: \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textalpha}{ἀ} @@ -486,10 +496,10 @@ % ~~~~~~~~~~~~~~~~~~~~~ % TODO: map other chars to corresponding Greek letters. % See also the grnumalt_ package. -% +% % Definition with literal Unicode characters, because the code-point has 5 % hexadecimal digits: -% +% % :: \DeclareTextCommand{\textpentedeka}{\LastDeclaredEncoding}{𐅄} % GREEK ACROPHONIC ATTIC FIFTY @@ -499,22 +509,12 @@ % UPPERCASE -% ~~~~~~~~~ -% -% The `common Greek font encoding definitions`_ in ``greek-fontenc.def`` extend -% the `uclclist` with Greek LICR macros. Here, we add EU1 specific "hiatus" -% handling. -% -% Mark hiatus -% """"""""""" -% -% Tonos and dasia mark a hiatus if placed on the -% first vowel of a diphthong (ΑΙ, ΑΥ, ΕΙ). A dialytika must be placed on the -% second vowel if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ, -% ἀυπνία → ΑΫΠΝΙΑ). -% -% Look ahead and place a diaeresis on Ι or Υ -% (copied from lgrenc.def and changed Latin transcription to Unicode literals):: +% ========= +% +% The common Greek font encoding definitions in greek-fontenc.def_ extend the +% `uclclist` with Greek LICR macros. Here, we add Unicode-specific "hiatus_" +% handling (copied from lgrenc.def_ and changed Latin transcription to Unicode +% literals):: \DeclareTextCommand{\LGR@A@hiatus}{\LastDeclaredEncoding}{% @@ -537,10 +537,20 @@ } % .. References -% +% % .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt -% .. _inputenc: http://www.ctan.org/pkg/inputenc +% .. _babel-greek: http://www.ctan.org/pkg/babel-greek +% .. _euenc: http://www.ctan.org/pkg/euenc +% .. _fontspec: http://www.ctan.org/pkg/fontspec % .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc % .. _grnumalt: http://www.ctan.org/pkg/grnumalt -% -% .. _common Greek font encoding definitions: greek-fontenc.def.html +% .. _inputenc: http://www.ctan.org/pkg/inputenc +% .. _textalpha: textalpha.sty.html +% .. _xunicode: http://www.ctan.org/pkg/xunicode +% +% .. _LaTeX2e font selection: +% http://mirror.ctan.org/macros/latex/doc/fntguide.pdf +% .. _common Greek font encoding definitions: +% .. _greek-fontenc.def: greek-fontenc.def.html +% .. _lgrenc.def: lgrenc.def.html +% .. _hiatus: greek-fontenc.def.html#mark-hiatus |