From a6ec28cf6cd2ed79a5c54601237cb3681d30dcfb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 27 Sep 2020 21:25:37 +0000 Subject: greek-fontenc (27sep20) git-svn-id: svn://tug.org/texlive/trunk@56449 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/greek-fontenc/README | 50 +- .../texmf-dist/doc/latex/greek-fontenc/README.html | 1180 ------------------- .../doc/latex/greek-fontenc/alphabeta-doc.pdf | Bin 429772 -> 429754 bytes .../doc/latex/greek-fontenc/alphabeta-lgr.def.html | 351 +++--- .../latex/greek-fontenc/alphabeta-tuenc.def.html | 95 +- .../doc/latex/greek-fontenc/alphabeta-tuenc.html | 78 +- .../doc/latex/greek-fontenc/alphabeta.sty.html | 118 +- .../doc/latex/greek-fontenc/diacritics.pdf | Bin 307222 -> 307307 bytes .../doc/latex/greek-fontenc/greek-fontenc.def.html | 154 +-- .../doc/latex/greek-fontenc/greek-fontenc.html | 1208 ++++++++++++++++++++ .../doc/latex/greek-fontenc/greekhyperref.pdf | Bin 220718 -> 221120 bytes .../doc/latex/greek-fontenc/lgrenc-test.pdf | Bin 306863 -> 318675 bytes .../doc/latex/greek-fontenc/lgrenc-test.tex | 56 +- .../doc/latex/greek-fontenc/lgrenc.def.html | 466 ++++---- .../doc/latex/greek-fontenc/textalpha-doc.pdf | Bin 470128 -> 473143 bytes .../doc/latex/greek-fontenc/textalpha.sty.html | 143 ++- .../doc/latex/greek-fontenc/tuenc-greek-doc.pdf | Bin 84395 -> 83201 bytes .../doc/latex/greek-fontenc/tuenc-greek-doc.tex | 2 +- .../doc/latex/greek-fontenc/tuenc-greek.def.html | 144 +-- 19 files changed, 2157 insertions(+), 1888 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/greek-fontenc/README.html create mode 100644 Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.html (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README b/Master/texmf-dist/doc/latex/greek-fontenc/README index d6488da1972..fe1ffd9a64c 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README +++ b/Master/texmf-dist/doc/latex/greek-fontenc/README @@ -4,7 +4,6 @@ Greek font encoding definition files ************************************ :Author: Günter Milde -:Date: 2019-07-10 :Copyright: © 2013 Günter Milde :Licence: This work may be distributed and/or modified under the conditions of the `LaTeX Project Public License`_, either @@ -70,6 +69,10 @@ Changelog 0.14 2020-02-28 Update test for Unicode fonts. Rename ``greek-euenc`` to ``tuenc-greek``. .. Use ``\UTFencoding`` instead of ``\LastDeclaredEncoding``. +1.0 2020-09-25 Bugfix in textalpha_: Let ``\greekscript`` set + ``\encodingdefault``. +.. ``\textKoppa`` as alias for ``\textkoppa`` in LGR. +.. Update URLs. ====== =========== ========================================================== __ http://tex.stackexchange.com/questions/281631/greek-small-rho-with-dasia-and-also-psili-problem-with-accent-and-lgr-encodin @@ -92,19 +95,24 @@ TeX files `LGR Greek font encoding definitions `_. This file is the successor of the basic LGR encoding definition file which - comes with babel_'s Greek support and of ``lgrxenc.def`` from the now - obsolete lgrx_ bundle. + comes with babel_'s Greek support and the now obsolete lgrx_ bundle. .. _textalpha: ``_ `Greek symbols in text `_ - independent of font encoding and TeX engine. + + Use ``\textalpha`` ... ``\textOmega`` independent of font encoding and TeX + engine. .. _alphabeta: ``_ - Generic macros for `Greek symbols in text and math `_. + `Greek symbols in text and math `_. + + Use ``\alpha`` ... ``\Omega`` independent of text/math mode, font + encoding, and TeX engine. + ``_ `Composite definitions with XeTeX/LuaTeX. `_. @@ -121,21 +129,20 @@ with Docutils_ to the HTML documentation. Documentation and test documents ================================ -``__, ``_ - `The textalpha package`. +`textalpha` package documentation: + ``__, ``_ -``__ ``_ - `The alphabeta package`. +`alphabeta` package documentation: + ``__ ``_ -``_, ``_ - Test and usage example. +Test and usage example + ``_, ``_ -``_, ``_ - Example for use of the Greek LICR definitions with XeTeX or - LuaTeX. +Font setup for Greek with XeTeX/LuaTeX + ``_, ``_ -``_, ``_ - `Greek script in PDF metadata`. +Greek script in PDF metadata + ``_, ``_ The package hyperref_ defines the PU font encoding which also supports (monotonic) Greek. @@ -178,8 +185,8 @@ for Debian `bug 858987`_ for details and the `arabi workaround`_ below. Usage ===== -There are many alternatives to set up the support for a Greek font encoding -provided by this package, e.g.: +There are several alternatives to set up the support for a Greek font +encoding provided by this package, e.g.: textalpha_: Ensure support for Greek characters in text mode:: @@ -338,7 +345,8 @@ Greek characters. EU1, EU2 -------- -Legacy Unicode font encodings for XeTeX and LuaTeX respectively. +Legacy Unicode font encodings for XeTeX and LuaTeX respectively. Superseded +by TU_. Greek LICR macros @@ -504,10 +512,10 @@ as-is). .. [fntguide] LaTeX3 Project Team, `LaTeX2ε font selection`, 2005. - http://mirror.ctan.org/macros/latex/doc/fntguide.pdf + http://mirror.ctan.org/macros/latex/base/fntguide.pdf .. [encguide] Frank Mittelbach, Robin Fairbairns, Werner Lemberg, LaTeX3 Project Team, `LaTeX font encodings`, 2006. - http://mirror.ctan.org/macros/latex/doc/encguide.pdf + http://mirror.ctan.org/macros/latex/base/encguide.pdf .. [greek-usage] Apostolos Syropoulos, `Writing Greek with the greek option of the babel package`, 1997. http://mirrors.ctan.org/language/babel/contrib/greek/usage.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README.html b/Master/texmf-dist/doc/latex/greek-fontenc/README.html deleted file mode 100644 index b326583200f..00000000000 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README.html +++ /dev/null @@ -1,1180 +0,0 @@ - - - - - -greek-fontenc - - - - - - - - -
-

greek-fontenc

-

Greek font encoding definition files

-
-
Author
-

Günter Milde

-
Date
-
2019-07-10
- - -
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.

-
-
-
-

Abstract

-

LaTeX internal character representation (LICR) macros are a -verbose but failsafe 7-bit ASCII encoding that works unaltered -under both, 8-bit TeX and XeTeX/LuaTeX. Use cases are macro -definitions and generated text

-

This package provides Greek LICR macros and encoding -definition files for Greek text font encodings for use with -fontenc (8-bit TeX) or fontspec (XeTeX/LuaTeX).

-

Included are also the LaTeX packages textalpha and alphabeta.

-
-
-

Note

-

The LICR macro names for Greek symbols are chosen pending -endorsement by the TeX community and related packages.

-

Names for archaic characters, accents/diacritics, and -punctuation may change in future versions.

-
-
-

Changelog

- ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

0.9

2013-07-03

greek-fontenc.def “outsourced” from lgrxenc.def

-

experimental files xunicode-greek.sty and -greek-euenc.def: LICRs for XeTeX/LuaTeX.

0.9.1

2013-07-18

Bugfix: wrong breathings psilioxia -> dasiaoxia.

0.9.2

2013-07-19

Bugfix: Disable composite defs starting with char macro,

-

fix “hiatus” handling.

0.9.3

2013-07-24

Fix “input” path in xunicode-greek and greek-euenc.def.

0.9.4

2013-09-10

greek-fontenc.sty: Greek text font encoding setup package,

-

remove xunicode-greek.sty.

0.10

2013-09-13

textalpha.sty and alphabeta.sty moved here from lgrx and -updated to work with XeTeX/LuaTeX.

-

greek-fontenc.sty removed (obsoleted by textalpha.sty).

0.10.1

2013-10-01

Bugfix in greek-euenc.def and alphabeta-euenc.def.

0.11

2013-11-28

Compatibility with Xe/LuaTeX in 8-bit mode,

-

\greekscript TextCommand.

0.11.1

2013-12-01

Fix identification of greek-euenc.def.

0.11.2

2014-09-04

Documentation update, remove duplicate code.

0.12

2014-12-25

Fix auxiliary macro names in textalpha.

-

Conservative naming: move definition of \< and \> -from greek-fontenc.def to textalpha.sty -(Bugreport David Kastrup). -Documentation update.

0.13

2015-09-04

Support for symbol variants,

-

keep-semicolon option in textalpha,

-

\lccode/\uccode corrections for Unicode -(from Apostolos Syropoulos’ xgreek) in greek-euenc,

-

Do not convert \ypogegrammeni to \prosgegrammeni -with \MakeUppercase.

0.13.1

2015-12-07

Fix rho with dasia bug in lgrenc.def (Linus Romer).

0.13.2

2016-02-05

Support for standard Unicode text font encoding “TU” -(new in fontspec v2.5a).

0.13.3

2019-07-10

Drop error font declaration (cf. ltxbugs 4399).

0.13.4

2019-07-11

@uclclist entry for \prosgegrammeni.

-

Documentation update.

0.14

2020-02-28

Update test for Unicode fonts. -Rename greek-euenc to tuenc-greek.

-

Use \UTFencoding instead of \LastDeclaredEncoding.

-
-
-

TeX files

-
-
greek-fontenc.def
-

Common Greek font encoding definitions.

-
-
greek-euenc.def
-

Backwards compatibility file loading tuenc-greek.

-
-
-
-
lgrenc.def
-

LGR Greek font encoding definitions.

-

This file is the successor of the basic LGR encoding definition file which -comes with babel’s Greek support and of lgrxenc.def from the now -obsolete lgrx bundle.

-
-
textalpha.sty
-

Greek symbols in text -independent of font encoding and TeX engine.

-
-
alphabeta.sty
-

Generic macros for Greek symbols in text and math.

-
-
alphabeta-tuenc.def
-

Composite definitions with XeTeX/LuaTeX..

-
-
tuenc-greek.def
-

Font setup for Greek with XeTeX/LuaTeX.

-
-
-

Literate source files were converted with PyLit to reStructuredText and -with Docutils to the HTML documentation.

-
-
-

Documentation and test documents

-
-
textalpha-doc.tex, textalpha-doc.pdf
-

The textalpha package.

-
-
alphabeta-doc.tex alphabeta-doc.pdf
-

The alphabeta package.

-
-
lgrenc-test.tex, lgrenc-test.pdf
-

Test and usage example.

-
-
tuenc-greek-doc.tex, tuenc-greek-doc.pdf
-

Example for use of the Greek LICR definitions with XeTeX or -LuaTeX.

-
-
greekhyperref.tex, greekhyperref.pdf
-

Greek script in PDF metadata.

-

The package hyperref defines the PU font encoding which also supports -(monotonic) Greek.

-
-
-
-
-

Experimental files

-

These files are still in development and will eventually be moved to/merged -with other packages or removed in future versions:

-
-
lgr2licr.lua
-

LGR Transcription to Greek LICR transformation

-
-
-
-
-

Installation

-

If possible, get this package from your distribution using its installation -manager.

-

Otherwise, make sure LaTeX can find the package and definition files:

-
    -
  • Download and unpack greek-fontenc.zip.

  • -
  • Copy/Move/Link files ending in .def or .sty to a suitable place in -the “TeX Directory Structure” (TDS) and run texhash, or place them in -the current working directory (e.g. for testing).

  • -
-
-
-

Conflicts

-

The arabi package provides the Babel arabic option which loads -arabicfnt.sty for font setup. This package overwrites the LICR macros -\omega and \textomega with font selecting commands. See the report -for Debian bug 858987 for details and the arabi workaround below.

-
-
-

Usage

-

There are many alternatives to set up the support for a Greek font encoding -provided by this package, e.g.:

-
-
textalpha:
-

Ensure support for Greek characters in text mode:

-
\usepackage{textalpha}
-

eventually with the normalize-symbols option to handle symbol -variants

-
\usepackage[normalize-symbols]{textalpha}
-

and/or the keep-semicolon option to use the semicolon as erotimatiko -also in LGR

-
\usepackage[normalize-symbols,keep-semicolon]{textalpha}
-

This sets up LICR macros for Greek text charactes under both, 8-bit TeX -and Xe-/LuaTeX. -For details see textalpha-doc.tex and textalpha-doc.pdf (8-bit -TeX) as well as tuenc-greek-doc.tex and tuenc-greek-doc.pdf -(XeTeX/LuaTeX).

-
-
alphabeta:
-

To use the short macro names (\alpha\Omega) known from math -mode in both, text and math mode, write

-
\usepackage{alphabeta}
-

For details see alphabeta-doc.tex and alphabeta-doc.pdf.

-
-
Babel:
-

Use the greek option with Babel:

-
\usepackage[greek]{babel}
-

This automatically loads lgrenc.def with 8-bit TeX and -tuenc-greek.def with XeTeX/LuaTeX and provides localized auto-strings, -hyphenation and other localizations (see babel-greek).

-

Babel can be used together with textalpha or alphabeta.

-
-
fontenc:
-

Declare LGR via fontenc. For example, specify T1 (8-bit -Latin) as default font encoding and LGR for Greek with

-
\usepackage[LGR,T1]{fontenc}
-

Note that without textalpha or alphabeta, Greek text macros work -only if the current font encoding supports Greek. See [fntguide] for -details and lgrenc-test.tex for an example.

-

It is possible to use 8-bit Greek text fonts in the LGR TeX font encoding -also with XeTeX/LuaTeX, if the fontenc package is loaded before -fontspec and textalpha or alphabeta, e.g.

-
\usepackage[LGR]{fontenc}
-\usepackage{fontspec}
-\setmainfont{Linux Libertine O} % Latin Modern does not support Greek
-\setsansfont{Linux Biolinum O}
-\usepackage{textalpha}
-

See tuenc-greek-doc.tex, tuenc-greek-doc.pdf and -lgrenc-test.tex, lgrenc-test.pdf.

-
-
-

To work around the conflict with arabi, it may suffice to ensure greek -is loaded after arabic:

-
\usepackage[arabic,greek,english]{babel}
-

More secure is an explicit reverse-definition, e.g.

-
% save original \omega
-\let\mathomega\omega
-
-\usepackage[utf8]{inputenc}
-\usepackage[LAE,LGR,T1]{fontenc}
-\usepackage[arabic,greek,english]{babel}
-
-% fix arabtex:
-\DeclareTextSymbol{\textomega}{LGR}{119}
-\renewcommand{\omega}{\mathomega}
-
-
-

Greek text font encodings

-

Greek TeX font encodings are the envisaged T7, LGR, and LGI. -Greek letters and symbols are also defined in the Unicode-based font -encodings TU, EU1, EU2, and PU (hyperref).

-
-

T7

-

The [encguide] reserves the name T7 for a Greek standard font encoding. -However, up to now, there is no agreement on an implementation because the -restrictions for general text encodings are too severe for typesetting -polytonic Greek.

-
-
-

LGR

-

The LGR font encoding is the de-facto standard for typesetting Greek with -(8-bit) LaTeX. greek-fontenc provides a comprehensive LGR font -encoding definition file.

-

Fonts in this encoding include the CB fonts (matching CM), grtimes -(Greek Times), Kerkis (matching URW Bookman), DejaVu, Libertine GC, and -the GFS fonts. Setup of these fonts as Greek variant to -matching Latin fonts is facilitated by the substitutefont package.

-

The LGR font encoding allows to access Greek characters via an ASCII -transliteration. This enables simple input with a Latin keyboard. -Characters with diacritics can be selected by ligature definitions in the -font (see [greek-usage], [teubner-doc], [cbfonts]).

-

A major drawback of the transliteration is, that you cannot access Latin -letters if LGR is the active font encoding (e.g. in documents or parts of -documents given the Babel language greek or polutionikogreek). -This means that for every Latin-written word or acronym an explicit -language-switch is required. This problem can only be solved via a -font-encoding comprising Latin and Greek like the envisaged T7 or -Unicode (with XeTeX or LuaTeX).

-
-
-

LGI

-

The ‘Ibycus’ fonts from the package ibygrk implement an alternative -transliteration scheme (also explained in [babel-patch]). -It is currently not supported by greek-fontenc.

-

The font encoding file lgienc.def from ibycus-babel provides a basic -setup (without any LICR macros or composite definitions).

-
-
-

TU

-

Standard Unicode font encoding for XeTeX and LuaTeX loaded by fontspec -(since v2.5a). greek-fontenc adds support for the Greek script (see -tuenc-greek).

-

Xe/LuaTeX works with any system-wide installed OpenType font. Suitable -fonts supporting Greek include CM Unicode, Deja Vu, EB Garamond, -the GFS fonts, Libertine OTF, Libertinus, Old Standard, -Tempora, and UM Typewriter (all available on CTAN) but also many commercial -fonts. Unfortunately, the fontspec default, Latin Modern misses most -Greek characters.

-
-
-

EU1, EU2

-

Legacy Unicode font encodings for XeTeX and LuaTeX respectively.

-
-
-
-

Greek LICR macros

-

This package provides LaTeX internal character representations (LICR macros) -for Greek letters and diacritics. Macro names were selected based on the -following considerations:

-
-

letters and symbols

-
    -
  • The fntguide (section 6.4 Naming conventions) recommends:

    -
    -

    Where possible, text symbols should be named as \text followed -by the Adobe glyph name: for example \textonequarter or -\textsterling. Similarly, math symbols should be named as -\math followed by the glyph name, for example -\mathonequarter or \mathsterling.

    -
    -
    -
    Problem:
    -

    The Adobe Glyph List For New Fonts has names for many glyphs in the -Greek and Coptic Unicode block, but not for Greek extended. The -Adobe Glyph List (for existing fonts) lists additional glyph names -used in older fonts. However, these are not intended for active use.

    -
    -
    -
  • -
  • If there exists a math-mode macro for a symbol, the corresponding text -macro could be formed by prepending text.

    -
    -
    Example:
    -

    The glyph name for the GREEK SMALL LETTER FINAL SIGMA is sigma1, -the corresponding math-macro is \varsigma. The text symbol is -made available as \textvarsigma.

    -
    -
    Problem:
    -

    The math macros for the symbol variants \varepsilon and -\varphi map to characters named “GREEK SMALL LETTER …”, while -\vartheta, \varkappa, \varrho, and \varpi map to “GREEK -… SYMBOL” Unicode characters. (See also section 5.5.3 of the -unicode-math documentation.)

    -
    -
    -
  • -
  • The Unicode names list provides standardized descriptive names for all -Unicode characters that use only capital letters of the Latin alphabet. -While not suited for direct use in LICR macros, they can be either

    -
      -
    1. used as inspiration for new LICR macro names or

    2. -
    3. converted to LICR macro names via a defined set of transformation rules.

    4. -
    -
    -
    Example:
    -

    \textfinalsigma is a descriptive alias for -GREEK SMALL LETTER FINAL SIGMA derived via the rules:

    -
      -
    • drop “LETTER” if the name remains unique,

    • -
    • drop “GREEK” if the name remains unique,

    • -
    • use capitalized name for capital letters, lowercase for “SMALL” letters -and drop “SMALL”,

    • -
    • concatenate

    • -
    -
    -
    -
  • -
  • Omit the “text” prefix for macros that do not have a math counterpart?

    -
    -
    Pro:
    -
      -
    • Simpler,

    • -
    • ease of use (less typing, better readability of source text),

    • -
    • many established text macro names without “text”,

    • -
    • text prefix does not mark a macro as encoding-specific or -“inserting a glyph”. There are e.g. font-changing macros (\textbf, -\textit) and encoding-changing macros (\textgreek, -\textcyr).

    • -
    • There are examples of encoding-specific macros -without the text-prefix, especially for letters, see encguide.

    • -
    -
    -
    Contra:
    -
      -
    • Less consistent,

    • -
    • possible name clashes

    • -
    • text prefix marks a macro as confined to text (as opposed to math) -mode,

    • -
    -
    -
    -

    The font encoding definition files use the text prefix for symbols. -Aliases (short forms, compatibility defs, etc.) are defined in -additional packages (e.g. alphabeta.sty, babel-greek, or teubner)

    -
  • -
-
-
-

accent macros

-
    -
  • standard accent macros (\DeclareTextAccent definitions in -latex/base/...) are one-symbol macros (\' \" ... \u \v ...) .

  • -
  • tipa.sty, xunicode, and ucs use the “text” prefix also for accents.

    -

    However, the Adobe Glyph List For New Fonts maps, e.g., “tonos” and -“dieresistonos” to the spacing characters GREEK TONOS and GREEK DIALYTIKA -TONOS, hence texttonos and textdiaresistonos should be spacing -characters.

    -
  • -
  • textcomp (ts1enc.def) defines \capital... accents (i.e. without -text prefix).

  • -
-

Currently, greek-fontenc uses for diacritics:

-
    -
  • Greek names like in Unicode, and ucsencs.def, and

  • -
  • the prefix \acc to distinguish the macros as TextAaccent and reduce -the risc of name clashes (cf. \@tabacckludge).

  • -
-

For the end-user “symbol macros” (\~ \' \` \" \< \> \"' ...) are -provided. (The non-standard macros \< and \> only with -textalpha or alphabeta.)

-
-
-

symbol variants

-

See also http://en.wikipedia.org/wiki/Greek_alphabet#Glyph_variants

-

Mathematical notation distinguishes variant shapes for beta (β|ϐ), theta -(θ|ϑ), phi (φ|ϕ), pi (π|ϖ), kappa (κ|ϰ), rho (ρ|ϱ), Theta (Θ|ϴ), and epsilon -(ε|ϵ). The variations have no syntactic meaning in Greek text and Greek -text fonts use the shape variants indiscriminately.

-

Unicode defines separate code points for the symbol variants for use in -mathematical context. However, they are sometimes also used in place of the -corresponding letter characters in Unicode-encoded text.

-

The variant shapes are not given separate code-points in the LGR font -encoding.

-

In mathematical mode, TeX supports the distinction between θ|ϑ, π|ϖ, φ|ϕ, -ρ|ϱ, and ε|ϵ with \var<lettername> macros. However, the mapping of -letter/symbol in Unicode to “normal”/variant in TeX is inconsistent -and variant macros for ϴ ϐ, and ϰ are not available without additional -packages (e.g. amssymb provides ϰ as \varkappa).

-

greek-fontenc provides \text<lettername>symbol LICR macros for these -characters:

-
    -
  • With Unicode fonts, the macros select the GREEK -<lettername> SYMBOL``.

  • -
  • With LGR encoded fonts, they report an error by default and are mapped to -the corresponding letter with the normalize-symbols option of -textalpha and alphabeta (loosing the distinction between the shape -variants).

  • -
-
-
-

References

-

An alternative, more complete set of short mnemonic character names is -the XML Entity Definitions for Characters W3C Recommendation from -01 April 2010.

-

For glyph names of the LGR encoding see, e.g., CB.enc by Apostolos -Syropoulos and xl-lgr.enc from the libertine (legacy) package. -lgr.cmap provides a mapping to Unicode characters.

-

A full set of \text* symbol macros is defined in ucsencs.def -from the ucs package.

-

Aliases from puenc.def ensure that the hyperref package can convert -Greek text in “LICR encoding” to a PDF-string (utf-8 encoded input is used -as-is).

-
-
fntguide
-

LaTeX3 Project Team, LaTeX2ε font selection, 2005. -http://mirror.ctan.org/macros/latex/doc/fntguide.pdf

-
-
encguide
-

Frank Mittelbach, Robin Fairbairns, Werner Lemberg, -LaTeX3 Project Team, LaTeX font encodings, 2006. -http://mirror.ctan.org/macros/latex/doc/encguide.pdf

-
-
greek-usage
-

Apostolos Syropoulos, Writing Greek with the greek option -of the babel package, 1997. -http://mirrors.ctan.org/language/babel/contrib/greek/usage.pdf

-
-
cbfonts
-

Claudio Beccari, The CB Greek fonts, Εὔτυπον, τεῦχος № 21, 2008. -http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf

-
-
teubner-doc
-

Claudio Beccari, teubner.sty -An extension to the greek option of the babel package, 2011. -http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf

-
-
babel-patch
-

Werner Lemberg, Unicode support for the Greek LGR -encoding Εὔτυπον, τεῦχος № 20, 2008. -http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf

-
-
-
-
-
- - diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf index 4bfc21010e0..a696c0ca3a8 100644 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-lgr.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-lgr.def.html index e324cc3bdd8..4ce4aa4208f 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-lgr.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-lgr.def.html @@ -1,15 +1,17 @@ - - + + alphabeta-lgr.def + + -
+

alphabeta-lgr.def

-

Composite definitions for 8-bit TeX

@@ -551,7 +620,7 @@ version 1.3 of this license or any later version.

Identification
\ProvidesFile{alphabeta-lgr}
-[2014/09/04 0.11.2 Composite definitions for 8-bit TeX]
+[2014/09/04 1.0 Composite definitions for 8-bit TeX]
Changelog
@@ -724,6 +793,6 @@ composite commands for use with 8-bit TeX fonts. It is sourced by \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Alpha}{\LGR@A@hiatus} \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Epsilon}{\LGR@E@hiatus} - + diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.def.html index f10b6088adf..9978e53b826 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.def.html @@ -3,9 +3,9 @@ -alphabeta-euenc.def +alphabeta-tuenc.def - + -
-

alphabeta-euenc.def

+
+

alphabeta-tuenc.def

Composite definitions for XeTeX and LuaTeX

@@ -605,8 +619,8 @@ conditions of the Identification -
\ProvidesFile{alphabeta-euenc}
-[2014/09/04 0.11.2 Composite definitions for XeTeX and LuaTeX]
+
\ProvidesFile{alphabeta-tuenc}
+[2020/02/28 1.0 Composite definitions for XeTeX and LuaTeX]

Composite definitions for alphabeta.sty with XeTeX and LuaTeX.

@@ -631,6 +645,11 @@ version 1.3 of this license or any later version.

+ + + +

0.11.2

documentation update

2020/02/28

0.14

rename to alphabeta-tuenc.def, +use \UTFencname instead of \LastDeclaredEncoding

@@ -641,11 +660,11 @@ the established command names in text, too.

The NFSS TextComposite mechanism looks for the next token without expanding it. In order to let compositions like \>"\alpha work as expected we define TextComposites with the letter name commands.

-

This file expands the font encoding definitions in greek-euenc.def with +

This file expands the font encoding definitions in tuenc-greek.def with composite commands for use with Unicode fonts. It is sourced by alphabeta under XeTeX/LuaTeX.

-

Greek and Coptic

+

Greek and Coptic

\DeclareTextCompositeCommand{\'}{\UTFencname}{\Alpha}{Ά}
 \DeclareTextCompositeCommand{\'}{\UTFencname}{\Epsilon}{Έ}
 \DeclareTextCompositeCommand{\'}{\UTFencname}{\Eta}{Ή}
@@ -670,7 +689,7 @@ under XeTeX/LuaTeX.

\DeclareTextCompositeCommand{\'}{\UTFencname}{\omega}{ώ}
-

Greek Extended

+

Greek Extended

Postfix ypogegrammeni cannot be second part of composite defs.

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\alpha}{ἀ}
 \DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\alpha}{ἁ}
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.html b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.html
index 569c2f99cf1..1e2857bca31 100644
--- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.html
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-tuenc.html
@@ -5,7 +5,7 @@
 
 alphabeta-tuenc.def
 
-
+
 
+
+
+
+
+

greek-fontenc

+

Greek font encoding definition files

+
+
Author
+

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.

+
+
+
+

Abstract

+

LaTeX internal character representation (LICR) macros are a +verbose but failsafe 7-bit ASCII encoding that works unaltered +under both, 8-bit TeX and XeTeX/LuaTeX. Use cases are macro +definitions and generated text

+

This package provides Greek LICR macros and encoding +definition files for Greek text font encodings for use with +fontenc (8-bit TeX) or fontspec (XeTeX/LuaTeX).

+

Included are also the LaTeX packages textalpha and alphabeta.

+
+
+

Note

+

The LICR macro names for Greek symbols are chosen pending +endorsement by the TeX community and related packages.

+

Names for archaic characters, accents/diacritics, and +punctuation may change in future versions.

+
+
+

Changelog

+ +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

0.9

2013-07-03

greek-fontenc.def “outsourced” from lgrxenc.def

+

experimental files xunicode-greek.sty and +greek-euenc.def: LICRs for XeTeX/LuaTeX.

0.9.1

2013-07-18

Bugfix: wrong breathings psilioxia -> dasiaoxia.

0.9.2

2013-07-19

Bugfix: Disable composite defs starting with char macro,

+

fix “hiatus” handling.

0.9.3

2013-07-24

Fix “input” path in xunicode-greek and greek-euenc.def.

0.9.4

2013-09-10

greek-fontenc.sty: Greek text font encoding setup package,

+

remove xunicode-greek.sty.

0.10

2013-09-13

textalpha.sty and alphabeta.sty moved here from lgrx and +updated to work with XeTeX/LuaTeX.

+

greek-fontenc.sty removed (obsoleted by textalpha.sty).

0.10.1

2013-10-01

Bugfix in greek-euenc.def and alphabeta-euenc.def.

0.11

2013-11-28

Compatibility with Xe/LuaTeX in 8-bit mode,

+

\greekscript TextCommand.

0.11.1

2013-12-01

Fix identification of greek-euenc.def.

0.11.2

2014-09-04

Documentation update, remove duplicate code.

0.12

2014-12-25

Fix auxiliary macro names in textalpha.

+

Conservative naming: move definition of \< and \> +from greek-fontenc.def to textalpha.sty +(Bugreport David Kastrup). +Documentation update.

0.13

2015-09-04

Support for symbol variants,

+

keep-semicolon option in textalpha,

+

\lccode/\uccode corrections for Unicode +(from Apostolos Syropoulos’ xgreek) in greek-euenc,

+

Do not convert \ypogegrammeni to \prosgegrammeni +with \MakeUppercase.

0.13.1

2015-12-07

Fix rho with dasia bug in lgrenc.def (Linus Romer).

0.13.2

2016-02-05

Support for standard Unicode text font encoding “TU” +(new in fontspec v2.5a).

0.13.3

2019-07-10

Drop error font declaration (cf. ltxbugs 4399).

0.13.4

2019-07-11

@uclclist entry for \prosgegrammeni.

+

Documentation update.

0.14

2020-02-28

Update test for Unicode fonts. +Rename greek-euenc to tuenc-greek.

+

Use \UTFencoding instead of \LastDeclaredEncoding.

1.0

2020-09-25

Bugfix in textalpha: Let \greekscript set +\encodingdefault.

+

\textKoppa as alias for \textkoppa in LGR.

+

Update URLs.

+
+
+

TeX files

+
+
greek-fontenc.def
+

Common Greek font encoding definitions.

+
+
greek-euenc.def
+

Backwards compatibility file loading tuenc-greek.

+
+
+
+
lgrenc.def
+

LGR Greek font encoding definitions.

+

This file is the successor of the basic LGR encoding definition file which +comes with babel’s Greek support and the now obsolete lgrx bundle.

+
+
textalpha.sty
+

Greek symbols in text

+

Use \textalpha\textOmega independent of font encoding and TeX +engine.

+
+
alphabeta.sty
+

Greek symbols in text and math.

+

Use \alpha\Omega independent of text/math mode, font +encoding, and TeX engine.

+
+
alphabeta-tuenc.def
+

Composite definitions with XeTeX/LuaTeX..

+
+
tuenc-greek.def
+

Font setup for Greek with XeTeX/LuaTeX.

+
+
+

Literate source files were converted with PyLit to reStructuredText and +with Docutils to the HTML documentation.

+
+
+

Documentation and test documents

+
+
textalpha package documentation:
+

textalpha-doc.tex, textalpha-doc.pdf

+
+
alphabeta package documentation:
+

alphabeta-doc.tex alphabeta-doc.pdf

+
+
Test and usage example
+

lgrenc-test.tex, lgrenc-test.pdf

+
+
Font setup for Greek with XeTeX/LuaTeX
+

tuenc-greek-doc.tex, tuenc-greek-doc.pdf

+
+
Greek script in PDF metadata
+

greekhyperref.tex, greekhyperref.pdf

+

The package hyperref defines the PU font encoding which also supports +(monotonic) Greek.

+
+
+
+
+

Experimental files

+

These files are still in development and will eventually be moved to/merged +with other packages or removed in future versions:

+
+
lgr2licr.lua
+

LGR Transcription to Greek LICR transformation

+
+
+
+
+

Installation

+

If possible, get this package from your distribution using its installation +manager.

+

Otherwise, make sure LaTeX can find the package and definition files:

+
    +
  • Download and unpack greek-fontenc.zip.

  • +
  • Copy/Move/Link files ending in .def or .sty to a suitable place in +the “TeX Directory Structure” (TDS) and run texhash, or place them in +the current working directory (e.g. for testing).

  • +
+
+
+

Conflicts

+

The arabi package provides the Babel arabic option which loads +arabicfnt.sty for font setup. This package overwrites the LICR macros +\omega and \textomega with font selecting commands. See the report +for Debian bug 858987 for details and the arabi workaround below.

+
+
+

Usage

+

There are several alternatives to set up the support for a Greek font +encoding provided by this package, e.g.:

+
+
textalpha:
+

Ensure support for Greek characters in text mode:

+
\usepackage{textalpha}
+

eventually with the normalize-symbols option to handle symbol +variants

+
\usepackage[normalize-symbols]{textalpha}
+

and/or the keep-semicolon option to use the semicolon as erotimatiko +also in LGR

+
\usepackage[normalize-symbols,keep-semicolon]{textalpha}
+

This sets up LICR macros for Greek text charactes under both, 8-bit TeX +and Xe-/LuaTeX. +For details see textalpha-doc.tex and textalpha-doc.pdf (8-bit +TeX) as well as tuenc-greek-doc.tex and tuenc-greek-doc.pdf +(XeTeX/LuaTeX).

+
+
alphabeta:
+

To use the short macro names (\alpha\Omega) known from math +mode in both, text and math mode, write

+
\usepackage{alphabeta}
+

For details see alphabeta-doc.tex and alphabeta-doc.pdf.

+
+
Babel:
+

Use the greek option with Babel:

+
\usepackage[greek]{babel}
+

This automatically loads lgrenc.def with 8-bit TeX and +tuenc-greek.def with XeTeX/LuaTeX and provides localized auto-strings, +hyphenation and other localizations (see babel-greek).

+

Babel can be used together with textalpha or alphabeta.

+
+
fontenc:
+

Declare LGR via fontenc. For example, specify T1 (8-bit +Latin) as default font encoding and LGR for Greek with

+
\usepackage[LGR,T1]{fontenc}
+

Note that without textalpha or alphabeta, Greek text macros work +only if the current font encoding supports Greek. See [fntguide] for +details and lgrenc-test.tex for an example.

+

It is possible to use 8-bit Greek text fonts in the LGR TeX font encoding +also with XeTeX/LuaTeX, if the fontenc package is loaded before +fontspec and textalpha or alphabeta, e.g.

+
\usepackage[LGR]{fontenc}
+\usepackage{fontspec}
+\setmainfont{Linux Libertine O} % Latin Modern does not support Greek
+\setsansfont{Linux Biolinum O}
+\usepackage{textalpha}
+

See tuenc-greek-doc.tex, tuenc-greek-doc.pdf and +lgrenc-test.tex, lgrenc-test.pdf.

+
+
+

To work around the conflict with arabi, it may suffice to ensure greek +is loaded after arabic:

+
\usepackage[arabic,greek,english]{babel}
+

More secure is an explicit reverse-definition, e.g.

+
% save original \omega
+\let\mathomega\omega
+
+\usepackage[utf8]{inputenc}
+\usepackage[LAE,LGR,T1]{fontenc}
+\usepackage[arabic,greek,english]{babel}
+
+% fix arabtex:
+\DeclareTextSymbol{\textomega}{LGR}{119}
+\renewcommand{\omega}{\mathomega}
+
+
+

Greek text font encodings

+

Greek TeX font encodings are the envisaged T7, LGR, and LGI. +Greek letters and symbols are also defined in the Unicode-based font +encodings TU, EU1, EU2, and PU (hyperref).

+
+

T7

+

The [encguide] reserves the name T7 for a Greek standard font encoding. +However, up to now, there is no agreement on an implementation because the +restrictions for general text encodings are too severe for typesetting +polytonic Greek.

+
+
+

LGR

+

The LGR font encoding is the de-facto standard for typesetting Greek with +(8-bit) LaTeX. greek-fontenc provides a comprehensive LGR font +encoding definition file.

+

Fonts in this encoding include the CB fonts (matching CM), grtimes +(Greek Times), Kerkis (matching URW Bookman), DejaVu, Libertine GC, and +the GFS fonts. Setup of these fonts as Greek variant to +matching Latin fonts is facilitated by the substitutefont package.

+

The LGR font encoding allows to access Greek characters via an ASCII +transliteration. This enables simple input with a Latin keyboard. +Characters with diacritics can be selected by ligature definitions in the +font (see [greek-usage], [teubner-doc], [cbfonts]).

+

A major drawback of the transliteration is, that you cannot access Latin +letters if LGR is the active font encoding (e.g. in documents or parts of +documents given the Babel language greek or polutionikogreek). +This means that for every Latin-written word or acronym an explicit +language-switch is required. This problem can only be solved via a +font-encoding comprising Latin and Greek like the envisaged T7 or +Unicode (with XeTeX or LuaTeX).

+
+
+

LGI

+

The ‘Ibycus’ fonts from the package ibygrk implement an alternative +transliteration scheme (also explained in [babel-patch]). +It is currently not supported by greek-fontenc.

+

The font encoding file lgienc.def from ibycus-babel provides a basic +setup (without any LICR macros or composite definitions).

+
+
+

TU

+

Standard Unicode font encoding for XeTeX and LuaTeX loaded by fontspec +(since v2.5a). greek-fontenc adds support for the Greek script (see +tuenc-greek).

+

Xe/LuaTeX works with any system-wide installed OpenType font. Suitable +fonts supporting Greek include CM Unicode, Deja Vu, EB Garamond, +the GFS fonts, Libertine OTF, Libertinus, Old Standard, +Tempora, and UM Typewriter (all available on CTAN) but also many commercial +fonts. Unfortunately, the fontspec default, Latin Modern misses most +Greek characters.

+
+
+

EU1, EU2

+

Legacy Unicode font encodings for XeTeX and LuaTeX respectively. Superseded +by TU.

+
+
+
+

Greek LICR macros

+

This package provides LaTeX internal character representations (LICR macros) +for Greek letters and diacritics. Macro names were selected based on the +following considerations:

+
+

letters and symbols

+
    +
  • The fntguide (section 6.4 Naming conventions) recommends:

    +
    +

    Where possible, text symbols should be named as \text followed +by the Adobe glyph name: for example \textonequarter or +\textsterling. Similarly, math symbols should be named as +\math followed by the glyph name, for example +\mathonequarter or \mathsterling.

    +
    +
    +
    Problem:
    +

    The Adobe Glyph List For New Fonts has names for many glyphs in the +Greek and Coptic Unicode block, but not for Greek extended. The +Adobe Glyph List (for existing fonts) lists additional glyph names +used in older fonts. However, these are not intended for active use.

    +
    +
    +
  • +
  • If there exists a math-mode macro for a symbol, the corresponding text +macro could be formed by prepending text.

    +
    +
    Example:
    +

    The glyph name for the GREEK SMALL LETTER FINAL SIGMA is sigma1, +the corresponding math-macro is \varsigma. The text symbol is +made available as \textvarsigma.

    +
    +
    Problem:
    +

    The math macros for the symbol variants \varepsilon and +\varphi map to characters named “GREEK SMALL LETTER …”, while +\vartheta, \varkappa, \varrho, and \varpi map to “GREEK +… SYMBOL” Unicode characters. (See also section 5.5.3 of the +unicode-math documentation.)

    +
    +
    +
  • +
  • The Unicode names list provides standardized descriptive names for all +Unicode characters that use only capital letters of the Latin alphabet. +While not suited for direct use in LICR macros, they can be either

    +
      +
    1. used as inspiration for new LICR macro names or

    2. +
    3. converted to LICR macro names via a defined set of transformation rules.

    4. +
    +
    +
    Example:
    +

    \textfinalsigma is a descriptive alias for +GREEK SMALL LETTER FINAL SIGMA derived via the rules:

    +
      +
    • drop “LETTER” if the name remains unique,

    • +
    • drop “GREEK” if the name remains unique,

    • +
    • use capitalized name for capital letters, lowercase for “SMALL” letters +and drop “SMALL”,

    • +
    • concatenate

    • +
    +
    +
    +
  • +
  • Omit the “text” prefix for macros that do not have a math counterpart?

    +
    +
    Pro:
    +
      +
    • Simpler,

    • +
    • ease of use (less typing, better readability of source text),

    • +
    • many established text macro names without “text”,

    • +
    • text prefix does not mark a macro as encoding-specific or +“inserting a glyph”. There are e.g. font-changing macros (\textbf, +\textit) and encoding-changing macros (\textgreek, +\textcyr).

    • +
    • There are examples of encoding-specific macros +without the text-prefix, especially for letters, see encguide.

    • +
    +
    +
    Contra:
    +
      +
    • Less consistent,

    • +
    • possible name clashes

    • +
    • text prefix marks a macro as confined to text (as opposed to math) +mode,

    • +
    +
    +
    +

    The font encoding definition files use the text prefix for symbols. +Aliases (short forms, compatibility defs, etc.) are defined in +additional packages (e.g. alphabeta.sty, babel-greek, or teubner)

    +
  • +
+
+
+

accent macros

+
    +
  • standard accent macros (\DeclareTextAccent definitions in +latex/base/...) are one-symbol macros (\' \" ... \u \v ...) .

  • +
  • tipa.sty, xunicode, and ucs use the “text” prefix also for accents.

    +

    However, the Adobe Glyph List For New Fonts maps, e.g., “tonos” and +“dieresistonos” to the spacing characters GREEK TONOS and GREEK DIALYTIKA +TONOS, hence texttonos and textdiaresistonos should be spacing +characters.

    +
  • +
  • textcomp (ts1enc.def) defines \capital... accents (i.e. without +text prefix).

  • +
+

Currently, greek-fontenc uses for diacritics:

+
    +
  • Greek names like in Unicode, and ucsencs.def, and

  • +
  • the prefix \acc to distinguish the macros as TextAaccent and reduce +the risc of name clashes (cf. \@tabacckludge).

  • +
+

For the end-user “symbol macros” (\~ \' \` \" \< \> \"' ...) are +provided. (The non-standard macros \< and \> only with +textalpha or alphabeta.)

+
+
+

symbol variants

+

See also http://en.wikipedia.org/wiki/Greek_alphabet#Glyph_variants

+

Mathematical notation distinguishes variant shapes for beta (β|ϐ), theta +(θ|ϑ), phi (φ|ϕ), pi (π|ϖ), kappa (κ|ϰ), rho (ρ|ϱ), Theta (Θ|ϴ), and epsilon +(ε|ϵ). The variations have no syntactic meaning in Greek text and Greek +text fonts use the shape variants indiscriminately.

+

Unicode defines separate code points for the symbol variants for use in +mathematical context. However, they are sometimes also used in place of the +corresponding letter characters in Unicode-encoded text.

+

The variant shapes are not given separate code-points in the LGR font +encoding.

+

In mathematical mode, TeX supports the distinction between θ|ϑ, π|ϖ, φ|ϕ, +ρ|ϱ, and ε|ϵ with \var<lettername> macros. However, the mapping of +letter/symbol in Unicode to “normal”/variant in TeX is inconsistent +and variant macros for ϴ ϐ, and ϰ are not available without additional +packages (e.g. amssymb provides ϰ as \varkappa).

+

greek-fontenc provides \text<lettername>symbol LICR macros for these +characters:

+
    +
  • With Unicode fonts, the macros select the GREEK +<lettername> SYMBOL``.

  • +
  • With LGR encoded fonts, they report an error by default and are mapped to +the corresponding letter with the normalize-symbols option of +textalpha and alphabeta (loosing the distinction between the shape +variants).

  • +
+
+
+

References

+

An alternative, more complete set of short mnemonic character names is +the XML Entity Definitions for Characters W3C Recommendation from +01 April 2010.

+

For glyph names of the LGR encoding see, e.g., CB.enc by Apostolos +Syropoulos and xl-lgr.enc from the libertine (legacy) package. +lgr.cmap provides a mapping to Unicode characters.

+

A full set of \text* symbol macros is defined in ucsencs.def +from the ucs package.

+

Aliases from puenc.def ensure that the hyperref package can convert +Greek text in “LICR encoding” to a PDF-string (utf-8 encoded input is used +as-is).

+
+
fntguide
+

LaTeX3 Project Team, LaTeX2ε font selection, 2005. +http://mirror.ctan.org/macros/latex/base/fntguide.pdf

+
+
encguide
+

Frank Mittelbach, Robin Fairbairns, Werner Lemberg, +LaTeX3 Project Team, LaTeX font encodings, 2006. +http://mirror.ctan.org/macros/latex/base/encguide.pdf

+
+
greek-usage
+

Apostolos Syropoulos, Writing Greek with the greek option +of the babel package, 1997. +http://mirrors.ctan.org/language/babel/contrib/greek/usage.pdf

+
+
cbfonts
+

Claudio Beccari, The CB Greek fonts, Εὔτυπον, τεῦχος № 21, 2008. +http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf

+
+
teubner-doc
+

Claudio Beccari, teubner.sty +An extension to the greek option of the babel package, 2011. +http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf

+
+
babel-patch
+

Werner Lemberg, Unicode support for the Greek LGR +encoding Εὔτυπον, τεῦχος № 20, 2008. +http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf

+
+
+
+
+
+ + diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf index 00db9f151da..3d5f0494611 100644 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf index e288403d29b..48be697a748 100644 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex index 76425b1b1f1..861c981c61e 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex @@ -184,27 +184,17 @@ Ligature break up: AY fi \LGR AU "i $\mapsto$ \LGR \textschwa{}, \texteuro{} \Latin -Some symbol definitions expect a Latin font.\emph{ babel-greek} redefines -them with \verb|\latintext|, however this macro is not guaranteed to be -defined, so it should not be used in a font encoding definition file. The -textcomp.sty package provides coyright, registered, and trademark symbols -for use with any font encodings. (Like any other Latin character, the -``sharp s'' (\ss) is not save to use when LGR is the active font encoding.) -Latin: -\textcopyright{} -\textregistered{} -\texttrademark{} -\SS{} (uppercase of \ss). +Some ASCII symbols are replaced by other symbols in LGR encoding: +\emph{babel-greek} redefines some with \verb|\latintext|, however this macro +is not guaranteed to be defined, so it cannot be used in a font encoding +definition file. -LGR (with textcomp): -\LGR -\textcopyright{} -\textregistered{} -\texttrademark{} -\SS{} (\Latin uppercase of \LGR \ss). +Avoid: \texttt{"\#\&';<>?@} because it becomes +\LGR \ \texttt{"\#\&';<>?@}. \Latin + \subsection{Greek alphabet} Greek letters via Latin transcription and LICR macros: @@ -238,13 +228,37 @@ The small sigma is set with a different glyph if it ends a word: In the Latin transcription, the letter `s' stands for \verb|\textautosigma| which automatically chooses the glyph according to the position. +The textcomp.sty package provides coyright, registered, and trademark +symbols for use with any font encodings. (Like any other Latin character, +the ``sharp s'' (\ss) is not save to use when LGR is the active font +encoding.) + +Latin: +\textcopyright{} +\textregistered{} +\texttrademark{} +\SS{} (uppercase of \ss). + +LGR (with textcomp): +\LGR +\textcopyright{} +\textregistered{} +\texttrademark{} +\SS{} (\Latin uppercase of \LGR \ss). +\Latin + \subsection{Additional Greek symbols} \begin{quote} - \LGR \textkoppa{} \Latin textkoppa \\ % ϟ - \LGR \textqoppa{} \Latin textqoppa (archaic koppa) \\ % ϙ - \LGR \textQoppa{} \Latin textQoppa (archaic Koppa) \\ % Ϙ - \LGR \textstigma{} \Latin textstigma \\ % ϛ + \LGR \textkoppa{} \Latin textkoppa (numeral koppa = 90) \\ % ϟ + \LGR \textKoppa{} \Latin textKoppa (numeral Koppa = 90)% + \footnote{Modern typographical practice normally does not observe a + contrast between uppercase and lowercase forms for numeric koppa. + % https://en.wikipedia.org/wiki/Koppa_(letter) + In LGR, there is ony one slot for Koppa and koppa.} \\ % Ϟ + \LGR \textqoppa{} \Latin textqoppa (archaic koppa) \\ % ϙ + \LGR \textQoppa{} \Latin textQoppa (archaic Koppa) \\ % Ϙ + \LGR \textstigma{} \Latin textstigma \\ % ϛ \LGR \textvarstigma{} \Latin textvarstigma \\ % no separate Unicode character \LGR \textStigma{} \Latin textStigma (Sigma-Tau-Ligature in CB-fonts)% \footnote{the name ``stigma'' originally applied to a medieval sigma-tau diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html index a326fd105a4..0cc52306632 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html @@ -2,10 +2,10 @@ - + lgrenc.def - + -
+

lgrenc.def

LGR Greek font encoding definitions

@@ -572,7 +620,7 @@ version 1.3 of this license or any later version.

-

Abstract

+

Abstract

The LGR font encoding is the de-facto standard for Greek typesetting with LaTeX. This file provides a comprehensive set of macros to typeset Greek with LGR encoded fonts. It works for @@ -580,7 +628,7 @@ both, monotonic and polytonic Greek, independent of the babel package.

-

Contents

+

Contents

-
-

Changelog

+
+

Changelog

Development of this file started under the name “lgrxenc.def” as part of the -lgrx bundle. With version 0.8, it moved to greek-fontenc/lgrx.def.

+lgrx bundle. With version 0.8, it moved to greek-fontenc/lgrx.def.

@@ -687,7 +735,7 @@ package.

- + @@ -757,13 +805,18 @@ package.

+ + + +

0.8

2013-05-13

rename to lgrenc.def (superseding the babel version),

rename to lgrenc.def (superseding the babel version),

2019-07-09

Drop error font declaration (cf. ltxbugs 4399).

1.0

2020/09/25

\textKoppa as alias for \textkoppa +(there is no capital Koppa in LGR).

-
-
-

Usage

-

Load this file by calling fontenc with the LGR option -or indirectly via the babel, textalpha or alphabeta packages.

+
+
+

Usage

+

Load this file by calling fontenc with the LGR option +or indirectly via the babel, textalpha or alphabeta packages.

Example:

Select font encodings T1 (as default) and LGR (for Greek):

@@ -772,11 +825,11 @@ or indirectly via the -

Implementation

-
+
+

Implementation

+
+

Read this file only once

Note

The use of \@ifundefined has the side-effect that the tested @@ -791,11 +844,11 @@ anyway.

{\message{LGR font encoding definitions already loaded} \expandafter\endinput % "return" } -
-
+
+

Identification

\ProvidesFile{lgrenc.def}
-[2019/07/09 v0.13.3 LGR Greek font encoding definitions]
+[2020/09/25 1.0 LGR Greek font encoding definitions]
 % Copyright © 2010 Günter Milde
 % This file is part of the "greek-fontenc" package.
 % It may be distributed and/or modified under the
@@ -803,25 +856,25 @@ anyway.

% version 1.3 of this license or any later version.

You can test the version date using

\@ifl@ter {extension}{filename}{date}{YES}{NO}
-

or using ltxcmds\@iffilelater.

-
-
-

Base setup

+

or using ltxcmds\@iffilelater.

+ +
+

Base setup

Declare the LGR font encoding and base substitutions:

\DeclareFontEncoding{LGR}{}{}
 \DeclareFontSubstitution{LGR}{cmr}{m}{n}
-
-
-

Text symbols

-
-

Greek Alphabet

+ +
+

Text symbols

+
+

Greek Alphabet

Greek letters are accessible by the Latin transcription, but the mapping is specific to the LGR font encoding.

The LICR macros provide a way to access the symbols independent of the specific font encoding, in any font encoding supporting Greek. An -alternative Greek font encodings is LGI (ibycus). Greek script is also +alternative Greek font encodings is LGI (ibycus). Greek script is also supported by the Unicode-based font encodings PU (PDF Unicode used by -hyperref for PDF metadata), TU, EU1 (XeTeX) and EU2 (LuaTeX). The textalpha +hyperref for PDF metadata), TU, EU1 (XeTeX) and EU2 (LuaTeX). The textalpha package makes these macros available independent of the current font encoding.

\DeclareTextSymbol{\textAlpha}{LGR}{65}
@@ -876,24 +929,25 @@ encoding.

\DeclareTextSymbol{\textchi}{LGR}{113} \DeclareTextSymbol{\textpsi}{LGR}{121} \DeclareTextSymbol{\textomega}{LGR}{119}
-
-
-

Additional Greek symbols

-
-

Ancient Greek Numbers (Athenian Numerals)

-

Names from ucs (ucsencs.def) + +

+

Additional Greek symbols

+
+
Ancient Greek Numbers (Athenian Numerals)
+

Names from ucs (ucsencs.def) (In ucs, five hundred is (wrongly?) named textpentehkaton.)

\DeclareTextSymbol{\textpentedeka}{LGR}{2}    % GREEK ACROPHONIC ATTIC FIFTY
 \DeclareTextSymbol{\textpentehekaton}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
 \DeclareTextSymbol{\textpenteqilioi}{LGR}{4}  % GREEK ACROPHONIC ATTIC FIVE THOUSAND
 \DeclareTextSymbol{\textpentemuria}{LGR}{5}  % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-
-
-

Archaic letters

-

Names after teubner and ucs:

+ +
+
Archaic letters
+

Names after teubner and ucs:

\DeclareTextSymbol{\textstigma}{LGR}{6}       % ϛ
 \DeclareTextSymbol{\textvarstigma}{LGR}{7}    % stigma variant (CB.enc, teubner)
 \DeclareTextSymbol{\textkoppa}{LGR}{18}       % ϟ (greek small letter koppa)
+\DeclareTextSymbol{\textKoppa}{LGR}{18}       % ϟ (capital numerical koppa) not distinct in LGR
 \DeclareTextSymbol{\textqoppa}{LGR}{19}       % ϙ (archaic koppa)
 \DeclareTextSymbol{\textQoppa}{LGR}{21}       % Ϙ (archaic Koppa)
 \DeclareTextSymbol{\textStigma}{LGR}{22}      % Ϛ in some fonts ϹΤ ligature
@@ -903,16 +957,16 @@ encoding.

\DeclareTextSymbol{\texterotimatiko}{LGR}{63} % ; \DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ (ucs) \digamma used by amsmath for math-macro \DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ (ucs)
-
-
-

Numeral signs

+ +
+
Numeral signs

See also http://en.wikipedia.org/wiki/Greek_numerals

-

Names from ucs:

+

Names from ucs:

\DeclareTextSymbol{\textdexiakeraia}{LGR}{254}      % ʹ (Dexia keraia)
 \DeclareTextSymbol{\textaristerikeraia}{LGR}{255}   % ͵ (Aristeri keraia)
-
-
-

variant symbols

+ +
+
variant symbols

Mathematical notation distinguishes variant shapes for pi, phi, rho, theta (small and capital), beta, and kappa (characters for the latter three symbols are not included in TeX’s math fonts). These variations have no @@ -947,10 +1001,10 @@ provide fallback LICR macros with detailed error reporting:

\ProvideTextCommand{\textpisymbol} {LGR}{\LGR@TextSymbolOnlyMath{ϖ pi symbol}{$\varpi$}} \ProvideTextCommand{\textrhosymbol} {LGR}{\LGR@TextSymbolOnlyMath{ϱ rho symbol}{$\varrho$}} \ProvideTextCommand{\textepsilonsymbol}{LGR}{\LGR@TextSymbolOnlyMath{ϵ lunate epsilon symbol}{$\epsilon$}} -
-
-
-

Other

+ + +
+

Other

Characters that also exist in other font encodings:

  • define them for LGR if there is a matching glyph,

  • @@ -1002,7 +1056,7 @@ to the Greek letters:

    tipa uses the macro names \textepsilon, \textgamma, \textiota, \textphi, and \textupsilon for the Latin characters. This is no problem with 8-bit fonts (set the font encoding to T3 vs. LGR to -disambiguate), but leads to ambiguity with Unicode fonts. xunicode uses the +disambiguate), but leads to ambiguity with Unicode fonts. xunicode uses the gr infix and alias names to disambiguate:

    • 03B3 \textgrgamma

    • @@ -1021,11 +1075,11 @@ systematical basis:

    • 0269 \textiotalatin

    • 028A \textscupsilon % TIPA-U

    -
-
-

Not implemented

+ +
+

Not implemented

The characters at position 16 and 17 are used in the \nexus macro -of the teubner package to form an extensible, hat-like bracket. In +of the teubner package to form an extensible, hat-like bracket. In CB.enc, they are mapped to

16–MODIFIER LETTER LOW ACUTE ACCENT @@ -1038,10 +1092,10 @@ SHELL BRACKET.

macros that expect a Latin script. These definitions are problematic in a font-encoding definition file as they require \textlatin which is defined in babel.def. They were moved to greek.ldf.

-
-
-
-

Diacritics

+ + +
+

Diacritics

This section defines named macros for Greek diacritics and standard symbol macros as alias for simple diacritics. Convenient input conventions for composite diacritics are defined as composite @@ -1059,13 +1113,13 @@ working also inside the tabbing environment.

  • Named macros are required for upcasing according to Greek typesetting conventions (cf. UPPERCASE below) and for composite diacritics.

  • -
    -

    Named macros

    -

    Definitions are based on the teubner package by Claudio Beccari, the ucs +

    +

    Named macros

    +

    Definitions are based on the teubner package by Claudio Beccari, the ucs package, and the babel patch by Werner Lemberg. Names are derived from the Unicode name with the prefix “acc” (cf. How to name accent macros? in the README) reducing the probability of incompatibilities compared to the -two-letter teubner diacritic macros or the “text” prefix used by ucs.

    +two-letter teubner diacritic macros or the “text” prefix used by ucs.

    Simple Greek diacritics:

    \DeclareTextAccent{\accdialytika}{LGR}{34} % διαλυτικά (diaeresis/trema)
     \DeclareTextAccent{\acctonos}{LGR}{39} % τόνος/ὀξεῖα tonos/oxia (acute)
    @@ -1098,39 +1152,39 @@ of additional diacritic symbols:

    \DeclareTextAccent{\accbrevebelow}{LGR}{20} % BREVE BELOW \DeclareTextAccent{\u}{LGR}{30} % BREVE (Greek vrachy) \DeclareTextAccent{\=}{LGR}{31} % MACRON
    -
    -
    +
    +

    Aliases

    The standard symbol macros are exclusively used for Greek diacritics in LGR:

    \DeclareTextCommand{\"}{LGR}{\accdialytika}
     \DeclareTextCommand{\'}{LGR}{\acctonos}
     \DeclareTextCommand{\`}{LGR}{\accvaria}
     \DeclareTextCommand{\~}{LGR}{\accperispomeni}
    -
    - -
    -

    Common Greek font encoding definitions

    + + +
    +

    Common Greek font encoding definitions

    The file greek-fontenc.def contains font encoding definitions that are shared by font encodings providing Greek characters:

    \input{greek-fontenc.def}
    -
    -
    -

    Composite definitions

    -
    -

    Composite diacritics

    + +
    +

    Composite definitions

    +
    +

    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. \accdialytica\accvaria\textalpha, \"\'\textalpha, \"'\textalpha, or \'"\textalpha.

    The actual declarations are part of the common Greek font encoding definitions.

    -
    -
    -

    Pre-composed letters

    -
    -

    Small letters with diacritics

    -

    (from teubner with changed names of the composite accents):

    + +
    +

    Pre-composed letters

    +
    +
    Small letters with diacritics
    +

    (from teubner with changed names of the composite accents):

    \DeclareTextComposite{\accvaria}{LGR}{a}{128}
     \DeclareTextComposite{\accdasia}{LGR}{a}{129}
     \DeclareTextComposite{\accpsili}{LGR}{a}{130}
    @@ -1294,9 +1348,9 @@ definitions.

    \DeclareTextComposite{\accpsilivaria}{LGR}{\textomicron}{239} \DeclareTextComposite{\accdasia}{LGR}{\textrho}{251} \DeclareTextComposite{\accpsili}{LGR}{\textrho}{252}
    -
    -
    -

    Capital letters with diacritics

    + +
    +
    Capital letters with diacritics

    In Greek, diacritics are omitted in all-uppercase words, but kept as part of an uppercase initial (written before rather than above the letter).

    @@ -1452,11 +1506,11 @@ in cases where they are not needed when writing in lowercase)

    Except for the dialytika:

    \DeclareTextComposite{\accdialytika}{LGR}{\textIota}{219}
     \DeclareTextComposite{\accdialytika}{LGR}{\textUpsilon}{223}
    -
    -
    -
    -
    -

    UPPERCASE

    + + + +
    +

    UPPERCASE

    The common Greek font encoding definitions in greek-fontenc.def extend the uclclist with Greek LICR macros. Here, we add LGR specific “hiatus” handling.

    @@ -1508,8 +1562,8 @@ not require kerning anyway.

    -
    - - + + + diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf index f7d3d021f9f..940651d0e2d 100644 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html index 6ad667468cd..48021df494c 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html @@ -5,7 +5,7 @@ textalpha.sty - +