summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-12-29 23:24:17 +0000
committerKarl Berry <karl@freefriends.org>2014-12-29 23:24:17 +0000
commit9a0f0d057b7f36dcc8f060ed5efdcdf0408ad201 (patch)
treefc17e9fd17d0395d4b5b7b6b0a77803cf38824d1 /Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
parente8520f340f5558c580fc5f6cc601cc4361ad5970 (diff)
greek-fontenc (25dec14)
git-svn-id: svn://tug.org/texlive/trunk@35920 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def')
-rw-r--r--Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def114
1 files changed, 61 insertions, 53 deletions
diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def b/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
index 06d591d6272..c7128dc3684 100644
--- a/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
+++ b/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
@@ -1,48 +1,49 @@
% greek-fontenc.def
% *****************
-%
+%
% Common Greek font encoding definitions
% ======================================
-%
+%
% :Copyright: © 2013 Günter Milde
% :Licence: This work may be distributed and/or modified under the
% conditions of the `LaTeX Project Public License`_, either
% version 1.3 of this license or any later version.
% :Identification:
% ::
-
+
\ProvidesFile{greek-fontenc.def}
-[2013/11/28 v0.11 Common Greek font encoding definitions]
+[2014/12/12 v0.12 Common Greek font encoding definitions]
% :Abstract: This file provides definitions that are shared between
% font encodings providing Greek characters.
-%
+%
% Changelog:
% .. class:: borderless
-%
+%
% ===== ============ ========================================================
% 0.9 2013-07-03 code "outsourced" from lgrxenc.def
% 0.9.1 2013-07-17 composite definitions starting with standard accent cmds
% 0.11 2013-11-28 ``\greekscript`` TextCommand
+% 0.12 2014-12-12 Remove symbol macros for breathing accents.
% ===== ============ ========================================================
-%
+%
% Usage
% -----
-%
+%
% This file is input by the font encoding definition files lgrenc.def_. and
% greek-euenc.def_.
-%
+%
% Implementation
% --------------
-%
+%
% ensuregreek, greekscript
% ~~~~~~~~~~~~~~~~~~~~~~~~
-%
+%
% Provide "empty" encoding-specific definitions for ``\ensuregreek`` and
% ``\greekscript``. The definitions in this file make the font encoding fit
% for use with the Greek script. (See ``textalpha.sty`` for default
% definitions.)
-%
+%
% The ``\ensuregreek`` macro can be used to ensure that its argument is set
% in a font encoding with support for Greek. If the active font encoding
% supports it, kerning between adjacent command calls (e.g.
@@ -60,10 +61,10 @@
% Aliases
% ~~~~~~~
-%
+%
% Aliases are defined via `DeclareTextCommand` so that up/downcasing works
% without the need for additional uclclist_ entries.
-%
+%
% Compatibility aliases for hyperref_'s puenc.def::
\DeclareTextCommand{\textstigmagreek}{\LastDeclaredEncoding}{\textstigma}
@@ -82,47 +83,60 @@
\DeclareTextCommand{\accoxia}{\LastDeclaredEncoding}{\acctonos}
\DeclareTextCommand{\acckoronis}{\LastDeclaredEncoding}{\accpsili}
-% Symbol macros for the breathings::
-
-\DeclareTextCommand{\<}{\LastDeclaredEncoding}{\accdasia}
-\DeclareTextCommand{\>}{\LastDeclaredEncoding}{\accpsili}
-
+% Symbol macros for the breathings:
+%
+% Moved to ``textalpha.sty`` to avoid clashes with local definitions
+% of ``\<`` and ``\>`` in documents using LGR or babel-greek.
+% (Bugreport David Kastrup). If you want to use the short macros without
+% loading `textalpha`, you can define them in the document preamble like
+%
+% .. code:: latex
+%
+% \DeclareTextCommand{\<}{LGR}{\accdasia}
+% \DeclareTextCommand{\>}{LGR}{\accpsili}
+% \DeclareTextCompositeCommand{\>}{LGR}{'}{\accpsilioxia}
+% \DeclareTextCompositeCommand{\>}{LGR}{`}{\accpsilivaria}
+% \DeclareTextCompositeCommand{\>}{LGR}{~}{\accpsiliperispomeni}
+% \DeclareTextCompositeCommand{\<}{LGR}{'}{\accdasiaoxia}
+% \DeclareTextCompositeCommand{\<}{LGR}{`}{\accdasiavaria}
+% \DeclareTextCompositeCommand{\<}{LGR}{~}{\accdasiaperispomeni}
+%
% TODO: do we also want alternative symbols for the breathings (cf. X compose
% table, LCI encoding)?
-%
+%
% .. code:: latex
-%
+%
% \DeclareTextCommand{\(}{\LastDeclaredEncoding}{\accdasia}
% \DeclareTextCommand{\)}{\LastDeclaredEncoding}{\accpsili}
-%
+%
% Names from babel_ and teubner_ (do we want to define them here as alias?)
-%
+%
% .. code:: latex
-%
+%
% \DeclareTextCommand{\anwtonos}{\LastDeclaredEncoding}{\textdexiakeraia} % ʹ
% \DeclareTextCommand{\katwtonos}{\LastDeclaredEncoding}{\textaristerikeraia} % ͵
-%
-%
+%
+%
% Composite diacritics
% ~~~~~~~~~~~~~~~~~~~~
-%
+%
% Composite accents can be input as sequence of simple diacritics (in
% arbitrary order) via named macro, symbol macro and "transcription
% characters", e.g. one of
-%
+%
% .. code:: latex
-%
+%
% \accdialytica\accvaria\textalpha,
% \"\'\textalpha,
% \"'\textalpha, or
% \'"\textalpha.
-%
+%
% Separate definitions for the supported variants of the second input token
% are required as composition is based on the non-expanded input
-%
+%
% The composition with simple "transcription characters" must also be defined
% for the symbol macros, otherwise it fails with ``\Makeuppercase``.
-%
+%
% For Unicode encodings (where they do not resolve to Greek named macros,
% composite definitions starting with standard macros are requried::
@@ -197,47 +211,41 @@
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\acctonos}{\accpsilioxia}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\'}{\accpsilioxia}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{'}{\accpsilioxia}
-\DeclareTextCompositeCommand{\>}{\LastDeclaredEncoding}{'}{\accpsilioxia}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\accvaria}{\accpsilivaria}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\`}{\accpsilivaria}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{`}{\accpsilivaria}
-\DeclareTextCompositeCommand{\>}{\LastDeclaredEncoding}{`}{\accpsilivaria}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\accperispomeni}{\accpsiliperispomeni}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\~}{\accpsiliperispomeni}
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{~}{\accpsiliperispomeni}
-\DeclareTextCompositeCommand{\>}{\LastDeclaredEncoding}{~}{\accpsiliperispomeni}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\acctonos}{\accdasiaoxia}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\'}{\accdasiaoxia}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{'}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\<}{\LastDeclaredEncoding}{'}{\accdasiaoxia}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\accvaria}{\accdasiavaria}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\`}{\accdasiavaria}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{`}{\accdasiavaria}
-\DeclareTextCompositeCommand{\<}{\LastDeclaredEncoding}{`}{\accdasiavaria}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\accperispomeni}{\accdasiaperispomeni}
\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\~}{\accdasiaperispomeni}
-\DeclareTextCompositeCommand{\<}{\LastDeclaredEncoding}{~}{\accdasiaperispomeni}
-% .. _uclclist:
-%
+% .. _uclclist:
+%
% UPPERCASE
% ~~~~~~~~~
-%
+%
% If UPPERCASE (all-caps) is generated with ``\MakeUppercase``, macro
% substitutions in the ``\@uclclist`` apply. This can be used to drop the
% diacritics (except dialytika and sub-iota). Different conventions exist for
% the `treatment of sub-iota with uppercase letters`__. In the CB Fonts, an
% "index" iota is used.
-%
+%
% __ http://www.tlg.uci.edu/~opoudjis/unicode/unicode_adscript.html
-%
-%
+%
+%
% @uclclist extension
% """""""""""""""""""
-%
+%
% Based on the `babel patch`_ and ``fontenc.sty``.
-%
+%
% The definition of an auxiliary, self-restting macro makes this idempotent
% (only the first use of this function will expand the ``@uclclist``).
% The second and third lines are TeX' way of writing ``uclclist += …``::
@@ -302,7 +310,7 @@
% Substitution macros
% """""""""""""""""""
-%
+%
% Drop diacritics (The argument passing ensures that kerning is preserved) ::
\DeclareTextCommand{\LGR@accdropped}{\LastDeclaredEncoding}[1]{#1}
@@ -319,7 +327,7 @@
% 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 (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ,
@@ -333,14 +341,14 @@
% The font encoding file must define the ``\LGR@hiatus`` TextCommand. See
% ``lgrenc.def`` for an example.
-%
+%
% The following macro can be used to test if the next character is an Alpha or
% Epsilon. As ``\@ifnextchar`` gobbles spaces the lookahead macro definition
% from ``amsgen.sty`` is used:
-%
+%
% This macro is a new version of LaTeX’s ``\@ifnextchar``, macro
% that does not skip over spaces.
-%
+%
% ::
\providecommand*{\LGR@ifnextchar}[3]{%
@@ -357,7 +365,7 @@
% .. References
% ----------
-%
+%
% .. _alphabeta: alphabeta.sty.html
% .. _athnum: http://www.ctan.org/pkg/athnum
% .. _Babel: http://www.ctan.org/pkg/babel
@@ -374,6 +382,6 @@
% http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf
% .. _textalpha: textalpha.sty.html
% .. _ucs: http://www.ctan.org/pkg/unicode
-%
+%
% .. _lgrenc.def: lgrenc.def.html
% .. _greek-euenc.def: greek-euenc.def.html