diff options
Diffstat (limited to 'Master/texmf-dist/doc')
23 files changed, 7419 insertions, 6252 deletions
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README b/Master/texmf-dist/doc/latex/greek-fontenc/README index 784744d2720..ac269077d6e 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README +++ b/Master/texmf-dist/doc/latex/greek-fontenc/README @@ -15,9 +15,11 @@ Greek font encoding definition files under both, 8-bit TeX and XeTeX/LuaTeX. Use cases are macro definitions and generated text - This package provides Greek LICR macro definitions and encoding + This package provides `Greek LICR macros`_ and encoding definition files for `Greek text font encodings`_ for use with - fontenc_. + 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. @@ -53,6 +55,12 @@ News 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``. ====== =========== ========================================================== @@ -62,26 +70,33 @@ TeX files `<greek-fontenc.def>`_ `Common Greek font encoding definitions <greek-fontenc.def.html>`_. +.. _LGR font encoding definition file: + `<lgrenc.def>`_ `LGR Greek font encoding definitions <lgrenc.def.html>`_. This file is the successor of the basic LGR encoding definition file which - comes with babel_'s Greek support and ``lgrxenc.def`` from the lgrx_ - bundle. + comes with babel_'s Greek support and of ``lgrxenc.def`` from the now + obsolete lgrx_ bundle. + + .. _textalpha: `<textalpha.sty>`_ `Greek symbols in text <textalpha.sty.html>`_ independent of font encoding and TeX engine. + .. _alphabeta: + `<alphabeta.sty>`_ Generic macros for `Greek symbols in text and math <alphabeta.sty.html>`_. `<alphabeta-euenc.def>`_ - `Composite defintions for alphabeta.sty_ with XeTeX/LuaTeX. - <alphabeta-euenc.def.html>`_ + `Composite definitions with XeTeX/LuaTeX. <alphabeta-euenc.def.html>`_. + .. _greek-euenc: + `<greek-euenc.def>`_ - `Greek LICR definitions for XeTeX and LuaTeX <greek-euenc.def.html>`_. + `Font setup for Greek with XeTeX/LuaTeX <greek-euenc.def.html>`_. Requires euenc_. Literate source files were converted with PyLit_ to reStructuredText_ and @@ -101,7 +116,7 @@ Documentation and test documents Test and usage example. `<greek-euenc-doc.tex>`_, `<greek-euenc-doc.pdf>`_ - Example for use of the experimental Greek LICR definitions with XeTeX or + Example for use of the Greek LICR definitions with XeTeX or LuaTeX. `<greekhyperref.tex>`_, `<greekhyperref.pdf>`_ @@ -129,25 +144,42 @@ manager. Otherwise, make sure LaTeX can find the package and definition files: -* Download and unpack ``greek-fontenc.zip``. +* Download and unpack greek-fontenc.zip_. * Copy/Move/Link files ending in ``.def`` or ``.sty`` to a suitable place in - the TDS_ and run ``texhash``, or place them in the current working - directory (e.g. for testing). + the “TeX Directory Structure” (TDS_) and run ``texhash``, or place them in + the current working directory (e.g. for testing). + Usage ===== There are many alternatives to use the Greek font encoding setup -provided by this package/bundle, e.g.: +provided by this package, e.g.: -* Ensure Greek support in text mode with `textalpha`:: +* Ensure support for Greek characters in text mode with textalpha_ :: \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 `<greek-euenc-doc.tex>`_ and `<greek-euenc-doc.pdf>`_ (XeTeX/LuaTeX). + + .. _normalize-symbols: textalpha.sty.html#normalize-symbols + .. _keep-semicolon: textalpha.sty.html#keep-semicolon + .. _semicolon as erotimatiko: textalpha.sty.html#semicolon-as-erotimatiko * To use the short macro names (``\alpha`` ... ``\Omega``) known from math mode in both, text and math mode, write :: @@ -156,31 +188,44 @@ provided by this package/bundle, e.g.: For details see `<alphabeta-doc.tex>`_ and `<alphabeta-doc.pdf>`_. -* Use the ``greek`` option with Babel_ (requires babel-greek_):: +* Use the ``greek`` option with Babel_:: \usepackage[greek]{babel} + This automatically loads ``lgrenc.def`` with 8-bit TeX and + ``greek-euenc.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_. + * 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 + 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. -* LGR encoded fonts can also be used alongside Unicode fonts with - XeTeX/LuaTeX to enable the input of Greek letters via the Latin - transcription provided by this font encoding. - See `<greek-euenc-doc.tex>`_ -> `<greek-euenc-doc.pdf>`_ and - `<lgrenc-test.tex>`_ -> `<lgrenc-test.pdf>`_. +* 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 `<greek-euenc-doc.tex>`_, `<greek-euenc-doc.pdf>`_ and + `<lgrenc-test.tex>`_, `<lgrenc-test.pdf>`_. 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 EU1 (XeTeX), EU2 (LuaTeX) and PU (hyperref_). +encodings EU1_ , EU2_ and PU (hyperref_). T7 -- @@ -195,11 +240,15 @@ LGR --- The LGR font encoding is the de-facto standard for typesetting Greek with -(8-bit) LaTeX. Fonts in this encoding include the `CB fonts`_ (matching CM), +(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), and the `GFS font collection`_. 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 @@ -223,63 +272,69 @@ 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). +EU1 +--- + +Unicode font encoding set up by euenc_ for XeTeX and indirectly loaded by +fontspec_. `greek-fontenc` adds support for the Greek script (see +greek-euenc_). + +EU2 +--- + +Unicode font encoding set up by euenc_ for XeTeX and indirectly loaded by +fontspec_. `greek-fontenc` adds support for the Greek script (see +greek-euenc_). -Greek LICR macro names -====================== +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: -The fntguide_ (section 6.4 Naming conventions) recommends: +letters and symbols +------------------- - 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``. +* The fntguide_ (section 6.4 Naming conventions) recommends: -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. As these are not intened for further active use, the latter are not -considered in the name choice. + 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``. -Proposals ---------- + 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, form the corresponding text - macro by prepending ``text``? +* 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 could be - made available as ``\textvarsigma``. - - Problems: - ``\varepsilon`` and ``\varphi`` math macros map to characters named - "GREEK SMALL **LETTER** ...", while ``\\vartheta``, ``\\varkappa``, - ``\\varrho``, and ``\\varpi`` math macros map to "GREEK ... **SYMBOL**" - Unicode characters. - - In Greek text, these variants are interchangeable. The LGR font encoding - does not contain slots for "symbol" glyph variants. In some Greek fonts, - GREEK SMALL LETTERS use glyph variants resembling the corresponding - GREEK SYMBOL Unicode character's reference glyph. - -* Derive macro names from Unicode names? - - The `Unicode names list`_ provides standardized descriptive names for all + 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 a LICR macros, they can be either - - a) used as inspiration for new LICR macro names or + While not suited for direct use in LICR macros, they can be either - b) converted to LICR macro names via a defined set of transformation rules. + i. used as inspiration for new LICR macro names or + ii. converted to LICR macro names via a defined set of transformation rules. Example: - ``\textfinalsigma`` or just ``\finalsigma`` as a more descriptive name - for GREEK SMALL LETTER FINAL SIGMA derived via the rules: + ``\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, @@ -291,41 +346,28 @@ Proposals Pro: + Simpler, - + ease of use (less typing, better readability of source text), - + many established text macro names without "text", - - + there are examples of encoding-specific macros - without the ``text``-prefix, especially for letters, - - :T1: ``\AE \DH \DJ \L \NG \OE \O \SS \TH \ae \dh \dj \guillemotleft`` - ``\guillemotright \guilsinglleft \guilsinglright \i \j \l \ng`` - ``\oe \o \quotedblbase \quotesinglbase \ss \th`` (also in OT1) - :T2*: ``\CYR*`` and ``\cyr*`` - :HE8: ``\heb*`` or no prefix - :PU: short descriptive names in the arabic part (``puarenc.def``) - + ``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. - + - Less consistent, + - possible name clashes - ``text`` prefix marks a macro as confined to text (as opposed to math) - mode. + mode, - Conclusion: - To avoid name clashes, the font encoding definition files use the - ``text`` prefix for symbols. Aliases (short forms, compatibility defs, - etc.) can be defined locally or in additional packages (see - alphabeta.sty_, `babel-greek`_, or teubner_) + 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_) -How to name *accent macros*? ----------------------------- +accent macros +------------- * standard accent macros (``\DeclareTextAccent`` definitions in ``latex/base/...``) are one-symbol macros (``\' \" ... \u \v ...``) . @@ -333,24 +375,58 @@ How to name *accent macros*? * ``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 0384 GREEK TONOS and 0385 GREEK DIALYTIKA TONOS, hence - `\texttonos` and `\textdiaresistonos` should be spacing characters. + "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). -* Use a common prefix ``\textaccent...``, ``\accent...``, - or just ``\acc...`` (cf. ``\@tabacckludge``)? - Currently, `greek-fontenc` uses for diacritics: -- Greek names like in Unicode, and ucsencs.def +- 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``). -- The prefix "acc" to distinguish the macros as `TextAaccent` and reduce the - risc of name clashes. +For the end-user "symbol macros" (``\~ \' \` \" \< \> \"' ...``) are +provided. (The non-standard macros ``\<`` and ``\>`` only with +textalpha_ or alphabeta_.) -- For the end-user "symbol macros" (``\~ \' \` \" \< \>``) are provided. - (The non-standard macros ``\<`` and ``\>`` only with textalpha.sty_.) + +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 @@ -360,7 +436,7 @@ 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 +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. @@ -391,26 +467,28 @@ as-is). http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt -.. _PyLit: http://pylit.berlios.de +.. _PyLit: http://repo.or.cz/pylit.git .. _reStructuredText: http://docutils.sourceforge.net/rst.html .. _Docutils: http://docutils.sourceforge.net/rst.html .. _TDS: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds .. _Adobe Glyph List For New Fonts: - http://www.adobe.com/devnet-archive/opentype/archives/aglfn.txt + http://raw.githubusercontent.com/adobe-type-tools/agl-aglfn/master/aglfn.txt .. _Adobe Glyph List: - http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt + http://raw.githubusercontent.com/adobe-type-tools/agl-aglfn/master/glyphlist.txt .. _Unicode names list: http://www.unicode.org/Public/UNIDATA/NamesList.txt .. _XML Entity Definitions for Characters: http://www.w3.org/TR/xml-entity-names/ - .. _CB Fonts: http://www.ctan.org/pkg/cbgreek-complete .. _GFS font collection: http://www.ctan.org/pkg/gfs .. _Kerkis: http://www.ctan.org/pkg/kerkis +.. _amssymb: http://www.ctan.org/pkg/amsfonts .. _babel: http://www.ctan.org/pkg/babel .. _babel-greek: http://www.ctan.org/pkg/babel-greek .. _euenc: http://www.ctan.org/pkg/euenc .. _fontenc: http://www.ctan.org/pkg/fontenc +.. _fontspec: http://www.ctan.org/pkg/fontspec +.. _greek-fontenc.zip: http://mirrors.ctan.org/language/greek/greek-fontenc.zip .. _grtimes: http://www.ctan.org/pkg/grtimes .. _hyperref: http://www.ctan.org/pkg/hyperref .. _ibycus-babel: http://www.ctan.org/pkg/ibycus-babel @@ -419,5 +497,7 @@ as-is). .. _libertine: http://www.ctan.org/pkg/libertine-legacy .. _substitutefont: http://www.ctan.org/pkg/substitutefont .. _teubner: http://www.ctan.org/pkg/teubner +.. _unicode-math: http://www.ctan.org/pkg/unicode-math .. _ucs: http://www.ctan.org/pkg/unicode +.. _xgreek: http://www.ctan.org/pkg/xgreek .. _xunicode: http://www.ctan.org/pkg/xunicode diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README.html b/Master/texmf-dist/doc/latex/greek-fontenc/README.html index dffe4bdd3b5..d186fdc698b 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/README.html @@ -1,646 +1,410 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>greek-fontenc</title> <meta name="author" content="Günter Milde" /> -<meta name="date" content="2014-12-25" /> -<meta name="copyright" content="© 2013 Günter Milde <milde@users.sf.net>" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; +} +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } - -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +div.align-right { text-align: inherit } + +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; -} -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; } - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} - -/* docinfo */ +/* Bibliographic Fields */ -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ -} - -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; + margin-left: 20%; } -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; -} -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} - -/* lists nested in definition list */ -dd > ul, dd > ol { - padding-left: 0pt; -} +/* Tables */ +/* ====== */ -/* TODO: prefix, suffix? */ - -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ - - -/* Tables */ -/* ====== */ - -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; -} - -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} - -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -649,7 +413,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -658,79 +421,138 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ + +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ -span.sectnum { - padding-right: 1ex; +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ + +/* Hyperlink References */ +a { text-decoration: none; } -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> <body> <div class="document" id="greek-fontenc"> <h1 class="title">greek-fontenc</h1> -<h2 class="subtitle" id="greek-font-encoding-definition-files">Greek font encoding definition files</h2> +<p class="subtitle" id="greek-font-encoding-definition-files">Greek font encoding definition files</p> <dl class="docinfo simple"> <dt class="author">Author</dt> -<dd class="author">Günter Milde</dd> +<dd class="author"><p>Günter Milde</p></dd> <dt class="date">Date</dt> <dd class="date">2014-12-25</dd> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2013 Günter Milde <<a class="reference external" href="mailto:milde@users.sf.net">milde@users.sf.net</a>></dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> </dl> <div class="abstract topic"> @@ -739,11 +561,12 @@ version 1.3 of this license or any later version.</p> 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</p> -<p>This package provides Greek LICR macro definitions and encoding +<p>This package provides <a class="reference internal" href="#greek-licr-macros">Greek LICR macros</a> and encoding definition files for <a class="reference internal" href="#greek-text-font-encodings">Greek text font encodings</a> for use with -<a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>.</p> +<a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> (8-bit TeX) or <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> (XeTeX/LuaTeX).</p> +<p>Included are also the LaTeX packages <a class="reference internal" href="#textalpha">textalpha</a> and <a class="reference internal" href="#alphabeta">alphabeta</a>.</p> </div> -<div class="note"> +<div class="admonition note"> <p class="admonition-title">Note</p> <p>The LICR macro names for Greek symbols are chosen pending endorsement by the TeX community and related packages.</p> @@ -754,9 +577,9 @@ punctuation may change in future versions.</p> <h1>News</h1> <table class="borderless"> <colgroup> -<col width="8%" /> -<col width="15%" /> -<col width="77%" /> +<col style="width: 8%" /> +<col style="width: 15%" /> +<col style="width: 77%" /> </colgroup> <tbody> <tr><td><p>0.9</p></td> @@ -765,7 +588,7 @@ punctuation may change in future versions.</p> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>experimental files xunicode-greek.sty and <a class="reference external" href="greek-euenc.def">greek-euenc.def</a>: LICRs for XeTeX/LuaTeX.</p></td> </tr> @@ -779,7 +602,7 @@ punctuation may change in future versions.</p> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>fix “hiatus” handling.</p></td> </tr> <tr><td><p>0.9.3</p></td> @@ -792,7 +615,7 @@ punctuation may change in future versions.</p> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>remove xunicode-greek.sty.</p></td> </tr> <tr><td><p>0.10</p></td> @@ -802,7 +625,7 @@ updated to work with XeTeX/LuaTeX.</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>greek-fontenc.sty removed (obsoleted by textalpha.sty).</p></td> </tr> <tr><td><p>0.10.1</p></td> @@ -815,12 +638,12 @@ updated to work with XeTeX/LuaTeX.</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> -<td><p><tt class="literal">\greekscript</tt> TextCommand.</p></td> +<td></td> +<td><p><span class="docutils literal">\greekscript</span> TextCommand.</p></td> </tr> <tr><td><p>0.11.1</p></td> <td><p>2013-12-01</p></td> -<td><p>Fix identification of <tt class="literal"><span class="pre">greek-euenc.def</span></tt>.</p></td> +<td><p>Fix identification of <span class="docutils literal"><span class="pre">greek-euenc.def</span></span>.</p></td> </tr> <tr><td><p>0.11.2</p></td> <td><p>2014-09-04</p></td> @@ -832,48 +655,71 @@ updated to work with XeTeX/LuaTeX.</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> -<td><p>Conservative naming: move definition of <tt class="literal">\<</tt> and <tt class="literal">\></tt> -from <tt class="literal"><span class="pre">greek-fontenc.def</span></tt> to <tt class="literal">textalpha.sty</tt> +<td></td> +<td><p>Conservative naming: move definition of <span class="docutils literal">\<</span> and <span class="docutils literal">\></span> +from <span class="docutils literal"><span class="pre">greek-fontenc.def</span></span> to <span class="docutils literal">textalpha.sty</span> (Bugreport David Kastrup). Documentation update.</p></td> </tr> +<tr><td><p>0.13</p></td> +<td><p>2015-09-04</p></td> +<td><p>Support for <a class="reference internal" href="#symbol-variants">symbol variants</a>,</p></td> +</tr> +<tr><td><!-- --> +</td> +<td></td> +<td><p><span class="docutils literal"><span class="pre">keep-semicolon</span></span> option in <a class="reference internal" href="#textalpha">textalpha</a>,</p></td> +</tr> +<tr><td><!-- --> +</td> +<td></td> +<td><p><span class="docutils literal">\lccode</span>/<span class="docutils literal">\uccode</span> corrections for Unicode +(from Apostolos Syropoulos’ <a class="reference external" href="http://www.ctan.org/pkg/xgreek">xgreek</a>) in <a class="reference internal" href="#greek-euenc">greek-euenc</a>,</p></td> +</tr> +<tr><td><!-- --> +</td> +<td></td> +<td><p>Do not convert <span class="docutils literal">\ypogegrammeni</span> to <span class="docutils literal">\prosgegrammeni</span> +with <span class="docutils literal">\MakeUppercase</span>.</p></td> +</tr> </tbody> </table> </div> <div class="section" id="tex-files"> <h1>TeX files</h1> -<dl class="docutils"> +<dl class="simple"> <dt><a class="reference external" href="greek-fontenc.def">greek-fontenc.def</a></dt> <dd><p><a class="reference external" href="greek-fontenc.def.html">Common Greek font encoding definitions</a>.</p> </dd> +</dl> +<dl id="lgr-font-encoding-definition-file"> <dt><a class="reference external" href="lgrenc.def">lgrenc.def</a></dt> <dd><p><a class="reference external" href="lgrenc.def.html">LGR Greek font encoding definitions</a>.</p> <p>This file is the successor of the basic LGR encoding definition file which -comes with <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a>’s Greek support and <tt class="literal">lgrxenc.def</tt> from the <a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a> -bundle.</p> +comes with <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a>’s Greek support and of <span class="docutils literal">lgrxenc.def</span> from the now +obsolete <a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a> bundle.</p> </dd> -<dt><a class="reference external" href="textalpha.sty">textalpha.sty</a></dt> +<dt id="textalpha"><a class="reference external" href="textalpha.sty">textalpha.sty</a></dt> <dd><p><a class="reference external" href="textalpha.sty.html">Greek symbols in text</a> independent of font encoding and TeX engine.</p> </dd> -<dt><a class="reference external" href="alphabeta.sty">alphabeta.sty</a></dt> +<dt id="alphabeta"><a class="reference external" href="alphabeta.sty">alphabeta.sty</a></dt> <dd><p>Generic macros for <a class="reference external" href="alphabeta.sty.html">Greek symbols in text and math</a>.</p> </dd> <dt><a class="reference external" href="alphabeta-euenc.def">alphabeta-euenc.def</a></dt> -<dd><p><a class="reference external" href="alphabeta-euenc.def.html">Composite defintions for alphabeta.sty_ with XeTeX/LuaTeX.</a></p> +<dd><p><a class="reference external" href="alphabeta-euenc.def.html">Composite definitions with XeTeX/LuaTeX.</a>.</p> </dd> -<dt><a class="reference external" href="greek-euenc.def">greek-euenc.def</a></dt> -<dd><p><a class="reference external" href="greek-euenc.def.html">Greek LICR definitions for XeTeX and LuaTeX</a>. +<dt id="greek-euenc"><a class="reference external" href="greek-euenc.def">greek-euenc.def</a></dt> +<dd><p><a class="reference external" href="greek-euenc.def.html">Font setup for Greek with XeTeX/LuaTeX</a>. Requires <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a>.</p> </dd> </dl> -<p>Literate source files were converted with <a class="reference external" href="http://pylit.berlios.de">PyLit</a> to <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> and +<p>Literate source files were converted with <a class="reference external" href="http://repo.or.cz/pylit.git">PyLit</a> to <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> and with <a class="reference external" href="http://docutils.sourceforge.net/rst.html">Docutils</a> to the HTML documentation.</p> </div> <div class="section" id="documentation-and-test-documents"> <h1>Documentation and test documents</h1> -<dl class="docutils"> +<dl> <dt><a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a>, <a class="reference external" href="textalpha-doc.pdf">textalpha-doc.pdf</a></dt> <dd><p><cite>The textalpha package</cite>.</p> </dd> @@ -884,7 +730,7 @@ with <a class="reference external" href="http://docutils.sourceforge.net/rst.htm <dd><p>Test and usage example.</p> </dd> <dt><a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a>, <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a></dt> -<dd><p>Example for use of the experimental Greek LICR definitions with XeTeX or +<dd><p>Example for use of the Greek LICR definitions with XeTeX or LuaTeX.</p> </dd> <dt><a class="reference external" href="greekhyperref.tex">greekhyperref.tex</a>, <a class="reference external" href="greekhyperref.pdf">greekhyperref.pdf</a></dt> @@ -898,7 +744,7 @@ LuaTeX.</p> <h1>Experimental files</h1> <p>These files are still in development and will eventually be moved to/merged with other packages or removed in future versions:</p> -<dl class="docutils"> +<dl class="simple"> <dt><a class="reference external" href="lgr2licr.lua">lgr2licr.lua</a></dt> <dd><p><a class="reference external" href="lgr2licr.lua.html">LGR Transcription to Greek LICR transformation</a></p> </dd> @@ -910,54 +756,68 @@ with other packages or removed in future versions:</p> manager.</p> <p>Otherwise, make sure LaTeX can find the package and definition files:</p> <ul class="simple"> -<li><p>Download and unpack <tt class="literal"><span class="pre">greek-fontenc.zip</span></tt>.</p></li> -<li><p>Copy/Move/Link files ending in <tt class="literal">.def</tt> or <tt class="literal">.sty</tt> to a suitable place in -the <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds">TDS</a> and run <tt class="literal">texhash</tt>, or place them in the current working -directory (e.g. for testing).</p></li> +<li><p>Download and unpack <a class="reference external" href="http://mirrors.ctan.org/language/greek/greek-fontenc.zip">greek-fontenc.zip</a>.</p></li> +<li><p>Copy/Move/Link files ending in <span class="docutils literal">.def</span> or <span class="docutils literal">.sty</span> to a suitable place in +the “TeX Directory Structure” (<a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds">TDS</a>) and run <span class="docutils literal">texhash</span>, or place them in +the current working directory (e.g. for testing).</p></li> </ul> </div> <div class="section" id="usage"> <h1>Usage</h1> <p>There are many alternatives to use the Greek font encoding setup -provided by this package/bundle, e.g.:</p> +provided by this package, e.g.:</p> <ul> -<li><p>Ensure Greek support in text mode with <cite>textalpha</cite>:</p> -<pre class="literal-block">\usepackage{textalpha} -</pre> -<p>For details see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a> and <a class="reference external" href="textalpha-doc.pdf">textalpha-doc.pdf</a> (8-bit +<li><p>Ensure support for Greek characters in text mode with <a class="reference internal" href="#textalpha">textalpha</a></p> +<pre class="literal-block">\usepackage{textalpha}</pre> +<p>eventually with the <a class="reference external" href="textalpha.sty.html#normalize-symbols">normalize-symbols</a> option to handle <a class="reference internal" href="#symbol-variants">symbol +variants</a></p> +<pre class="literal-block">\usepackage[normalize-symbols]{textalpha}</pre> +<p>and/or the <a class="reference external" href="textalpha.sty.html#keep-semicolon">keep-semicolon</a> option to use the <a class="reference external" href="textalpha.sty.html#semicolon-as-erotimatiko">semicolon as erotimatiko</a> +also in LGR</p> +<pre class="literal-block">\usepackage[normalize-symbols,keep-semicolon]{textalpha}</pre> +<p>This sets up LICR macros for Greek text charactes under both, 8-bit TeX +and Xe-/LuaTeX. +For details see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a> and <a class="reference external" href="textalpha-doc.pdf">textalpha-doc.pdf</a> (8-bit TeX) as well as <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a> and <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a> (XeTeX/LuaTeX).</p> </li> -<li><p>To use the short macro names (<tt class="literal">\alpha</tt> … <tt class="literal">\Omega</tt>) known from math +<li><p>To use the short macro names (<span class="docutils literal">\alpha</span> … <span class="docutils literal">\Omega</span>) known from math mode in both, text and math mode, write</p> -<pre class="literal-block">\usepackage{alphabeta} -</pre> +<pre class="literal-block">\usepackage{alphabeta}</pre> <p>For details see <a class="reference external" href="alphabeta-doc.tex">alphabeta-doc.tex</a> and <a class="reference external" href="alphabeta-doc.pdf">alphabeta-doc.pdf</a>.</p> </li> -<li><p>Use the <tt class="literal">greek</tt> option with <a class="reference external" href="http://www.ctan.org/pkg/babel">Babel</a> (requires <a class="reference external" href="http://www.ctan.org/pkg/babel-greek">babel-greek</a>):</p> -<pre class="literal-block">\usepackage[greek]{babel} -</pre> +<li><p>Use the <span class="docutils literal">greek</span> option with <a class="reference external" href="http://www.ctan.org/pkg/babel">Babel</a>:</p> +<pre class="literal-block">\usepackage[greek]{babel}</pre> +<p>This automatically loads <span class="docutils literal">lgrenc.def</span> with 8-bit TeX and +<span class="docutils literal"><span class="pre">greek-euenc.def</span></span> with XeTeX/LuaTeX and provides localized auto-strings, +hyphenation and other localizations (see <a class="reference external" href="http://www.ctan.org/pkg/babel-greek">babel-greek</a>).</p> +<p>Babel can be used together with <a class="reference internal" href="#textalpha">textalpha</a> or <a class="reference internal" href="#alphabeta">alphabeta</a>.</p> </li> <li><p>Declare LGR via <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>. For example, specify T1 (8-bit Latin) as default font encoding and LGR for Greek with</p> -<pre class="literal-block">\usepackage[LGR,T1]{fontenc} -</pre> -<p>Note that without <tt class="literal">textalpha</tt> or <tt class="literal">alphabeta</tt>, Greek text macros work +<pre class="literal-block">\usepackage[LGR,T1]{fontenc}</pre> +<p>Note that without <a class="reference internal" href="#textalpha">textalpha</a> or <a class="reference internal" href="#alphabeta">alphabeta</a>, Greek text macros work only if the current font encoding supports Greek. See <a class="citation-reference" href="#fntguide" id="id5">[fntguide]</a> for details and <a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a> for an example.</p> </li> -<li><p>LGR encoded fonts can also be used alongside Unicode fonts with -XeTeX/LuaTeX to enable the input of Greek letters via the Latin -transcription provided by this font encoding. -See <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a> -> <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a> and -<a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a> -> <a class="reference external" href="lgrenc-test.pdf">lgrenc-test.pdf</a>.</p></li> +<li><p>It is possible to use 8-bit Greek text fonts in the LGR TeX font encoding +also with XeTeX/LuaTeX, if the <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> package is loaded before +<a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> and <a class="reference internal" href="#textalpha">textalpha</a> or <a class="reference internal" href="#alphabeta">alphabeta</a>, e.g.</p> +<pre class="literal-block">\usepackage[LGR]{fontenc} +\usepackage{fontspec} +\setmainfont{Linux Libertine O} % Latin Modern does not support Greek +\setsansfont{Linux Biolinum O} +\usepackage{textalpha}</pre> +<p>See <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a>, <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a> and +<a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a>, <a class="reference external" href="lgrenc-test.pdf">lgrenc-test.pdf</a>.</p> +</li> </ul> </div> <div class="section" id="greek-text-font-encodings"> <h1>Greek text font encodings</h1> <p>Greek TeX font encodings are the envisaged <a class="reference internal" href="#t7">T7</a>, <a class="reference internal" href="#lgr">LGR</a>, and <a class="reference internal" href="#lgi">LGI</a>. Greek letters and symbols are also defined in the Unicode-based font -encodings EU1 (XeTeX), EU2 (LuaTeX) and PU (<a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a>).</p> +encodings <a class="reference internal" href="#eu1">EU1</a> , <a class="reference internal" href="#eu2">EU2</a> and PU (<a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a>).</p> <div class="section" id="t7"> <h2>T7</h2> <p>The <a class="citation-reference" href="#encguide" id="id11">[encguide]</a> reserves the name T7 for a Greek <cite>standard font encoding</cite>. @@ -968,7 +828,9 @@ polytonic Greek.</p> <div class="section" id="lgr"> <h2>LGR</h2> <p>The LGR font encoding is the de-facto standard for typesetting Greek with -(8-bit) LaTeX. Fonts in this encoding include the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a> (matching CM), +(8-bit) LaTeX. <cite>greek-fontenc</cite> provides a comprehensive <a class="reference internal" href="#lgr-font-encoding-definition-file">LGR font +encoding definition file</a>.</p> +<p>Fonts in this encoding include the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a> (matching CM), <a class="reference external" href="http://www.ctan.org/pkg/grtimes">grtimes</a> (Greek Times), <a class="reference external" href="http://www.ctan.org/pkg/kerkis">Kerkis</a> (matching URW Bookman), and the <a class="reference external" href="http://www.ctan.org/pkg/gfs">GFS font collection</a>. Setup of these fonts as Greek variant to matching Latin fonts is facilitated by the <a class="reference external" href="http://www.ctan.org/pkg/substitutefont">substitutefont</a> package.</p> @@ -978,7 +840,7 @@ Characters with diacritics can be selected by ligature definitions in the font (see <a class="citation-reference" href="#greek-usage" id="id12">[greek-usage]</a>, <a class="citation-reference" href="#teubner-doc" id="id13">[teubner-doc]</a>, <a class="citation-reference" href="#cbfonts" id="id14">[cbfonts]</a>).</p> <p>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 <cite>Babel</cite> language <tt class="literal">greek</tt> or <tt class="literal">polutionikogreek</tt>). +documents given the <cite>Babel</cite> language <span class="docutils literal">greek</span> or <span class="docutils literal">polutionikogreek</span>). 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 <a class="reference internal" href="#t7">T7</a> or @@ -989,63 +851,75 @@ Unicode (with XeTeX or LuaTeX).</p> <p>The ‘Ibycus’ fonts from the package <a class="reference external" href="http://www.ctan.org/pkg/ibygrk">ibygrk</a> implement an alternative transliteration scheme (also explained in <a class="citation-reference" href="#babel-patch" id="id15">[babel-patch]</a>). It is currently not supported by <cite>greek-fontenc</cite>.</p> -<p>The font encoding file <tt class="literal">lgienc.def</tt> from <a class="reference external" href="http://www.ctan.org/pkg/ibycus-babel">ibycus-babel</a> provides a basic +<p>The font encoding file <span class="docutils literal">lgienc.def</span> from <a class="reference external" href="http://www.ctan.org/pkg/ibycus-babel">ibycus-babel</a> provides a basic setup (without any LICR macros or composite definitions).</p> </div> +<div class="section" id="eu1"> +<h2>EU1</h2> +<p>Unicode font encoding set up by <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> for XeTeX and indirectly loaded by +<a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a>. <cite>greek-fontenc</cite> adds support for the Greek script (see +<a class="reference internal" href="#greek-euenc">greek-euenc</a>).</p> +</div> +<div class="section" id="eu2"> +<h2>EU2</h2> +<p>Unicode font encoding set up by <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> for XeTeX and indirectly loaded by +<a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a>. <cite>greek-fontenc</cite> adds support for the Greek script (see +<a class="reference internal" href="#greek-euenc">greek-euenc</a>).</p> </div> -<div class="section" id="greek-licr-macro-names"> -<h1>Greek LICR macro names</h1> +</div> +<div class="section" id="greek-licr-macros"> +<h1>Greek LICR macros</h1> <p>This package provides LaTeX internal character representations (LICR macros) for Greek letters and diacritics. Macro names were selected based on the following considerations:</p> -<p>The <a class="reference internal" href="#fntguide">fntguide</a> (section 6.4 Naming conventions) recommends:</p> +<div class="section" id="letters-and-symbols"> +<h2>letters and symbols</h2> +<ul> +<li><p>The <a class="reference internal" href="#fntguide">fntguide</a> (section 6.4 Naming conventions) recommends:</p> <blockquote> -<p>Where possible, text symbols should be named as <tt class="literal">\text</tt> followed -by the Adobe glyph name: for example <tt class="literal">\textonequarter</tt> or -<tt class="literal">\textsterling</tt>. Similarly, math symbols should be named as -<tt class="literal">\math</tt> followed by the glyph name, for example -<tt class="literal">\mathonequarter</tt> or <tt class="literal">\mathsterling</tt>.</p> +<p>Where possible, text symbols should be named as <span class="docutils literal">\text</span> followed +by the <strong>Adobe glyph name</strong>: for example <span class="docutils literal">\textonequarter</span> or +<span class="docutils literal">\textsterling</span>. Similarly, math symbols should be named as +<span class="docutils literal">\math</span> followed by the glyph name, for example +<span class="docutils literal">\mathonequarter</span> or <span class="docutils literal">\mathsterling</span>.</p> </blockquote> -<p>The <a class="reference external" href="http://www.adobe.com/devnet-archive/opentype/archives/aglfn.txt">Adobe Glyph List For New Fonts</a> has names for many glyphs in the -<cite>Greek and Coptic</cite> Unicode block, but not for <cite>Greek extended</cite>. The <a class="reference external" href="http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt">Adobe -Glyph List</a> (for existing fonts) lists additional glyph names used in older -fonts. As these are not intened for further active use, the latter are not -considered in the name choice.</p> -<div class="section" id="proposals"> -<h2>Proposals</h2> -<ul> -<li><p>If there exists a math-mode macro for a symbol, form the corresponding text -macro by prepending <tt class="literal">text</tt>?</p> -<dl class="docutils"> +<dl class="simple"> +<dt>Problem:</dt> +<dd><p>The <a class="reference external" href="http://raw.githubusercontent.com/adobe-type-tools/agl-aglfn/master/aglfn.txt">Adobe Glyph List For New Fonts</a> has names for many glyphs in the +<cite>Greek and Coptic</cite> Unicode block, but not for <cite>Greek extended</cite>. The +<a class="reference external" href="http://raw.githubusercontent.com/adobe-type-tools/agl-aglfn/master/glyphlist.txt">Adobe Glyph List</a> (for existing fonts) lists additional glyph names +used in older fonts. However, these are not intended for active use.</p> +</dd> +</dl> +</li> +<li><p>If there exists a <strong>math-mode macro</strong> for a symbol, the corresponding text +macro could be formed by prepending <span class="docutils literal">text</span>.</p> +<dl class="simple"> <dt>Example:</dt> -<dd><p>The glyph name for the GREEK SMALL LETTER FINAL SIGMA is <tt class="literal">sigma1</tt>, -the corresponding math-macro is <tt class="literal">\varsigma</tt>. The text symbol could be -made available as <tt class="literal">\textvarsigma</tt>.</p> +<dd><p>The glyph name for the GREEK SMALL LETTER FINAL SIGMA is <span class="docutils literal">sigma1</span>, +the corresponding math-macro is <span class="docutils literal">\varsigma</span>. The text symbol is +made available as <span class="docutils literal">\textvarsigma</span>.</p> </dd> -<dt>Problems:</dt> -<dd><p><tt class="literal">\varepsilon</tt> and <tt class="literal">\varphi</tt> math macros map to characters named -“GREEK SMALL <strong>LETTER</strong> …”, while <tt class="literal">\\vartheta</tt>, <tt class="literal">\\varkappa</tt>, -<tt class="literal">\\varrho</tt>, and <tt class="literal">\\varpi</tt> math macros map to “GREEK … <strong>SYMBOL</strong>” -Unicode characters.</p> -<p>In Greek text, these variants are interchangeable. The LGR font encoding -does not contain slots for “symbol” glyph variants. In some Greek fonts, -GREEK SMALL LETTERS use glyph variants resembling the corresponding -GREEK SYMBOL Unicode character’s reference glyph.</p> +<dt>Problem:</dt> +<dd><p>The math macros for the <a class="reference internal" href="#symbol-variants">symbol variants</a> <span class="docutils literal">\varepsilon</span> and +<span class="docutils literal">\varphi</span> map to characters named “GREEK SMALL <em>LETTER</em> …”, while +<span class="docutils literal">\vartheta</span>, <span class="docutils literal">\varkappa</span>, <span class="docutils literal">\varrho</span>, and <span class="docutils literal">\varpi</span> map to “GREEK +… <em>SYMBOL</em>” Unicode characters. (See also section 5.5.3 of the +<a class="reference external" href="http://www.ctan.org/pkg/unicode-math">unicode-math</a> documentation.)</p> </dd> </dl> </li> -<li><p>Derive macro names from Unicode names?</p> -<p>The <a class="reference external" href="http://www.unicode.org/Public/UNIDATA/NamesList.txt">Unicode names list</a> provides standardized descriptive names for all +<li><p>The <a class="reference external" href="http://www.unicode.org/Public/UNIDATA/NamesList.txt">Unicode names list</a> provides standardized descriptive names for all Unicode characters that use only capital letters of the Latin alphabet. -While not suited for direct use in a LICR macros, they can be either</p> -<ol class="loweralpha simple"> +While not suited for direct use in LICR macros, they can be either</p> +<ol class="lowerroman simple"> <li><p>used as inspiration for new LICR macro names or</p></li> <li><p>converted to LICR macro names via a defined set of transformation rules.</p></li> </ol> -<dl class="docutils"> +<dl class="simple"> <dt>Example:</dt> -<dd><p><tt class="literal">\textfinalsigma</tt> or just <tt class="literal">\finalsigma</tt> as a more descriptive name -for GREEK SMALL LETTER FINAL SIGMA derived via the rules:</p> +<dd><p><span class="docutils literal">\textfinalsigma</span> is a descriptive alias for +GREEK SMALL LETTER FINAL SIGMA derived via the rules:</p> <ul class="simple"> <li><p>drop “LETTER” if the name remains unique,</p></li> <li><p>drop “GREEK” if the name remains unique,</p></li> @@ -1057,76 +931,85 @@ and drop “SMALL”,</p></li> </dl> </li> <li><p>Omit the “text” prefix for macros that do not have a math counterpart?</p> -<dl class="docutils"> +<dl class="simple"> <dt>Pro:</dt> <dd><ul class="simple"> <li><p>Simpler,</p></li> <li><p>ease of use (less typing, better readability of source text),</p></li> <li><p>many established text macro names without “text”,</p></li> -<li><p>there are examples of encoding-specific macros -without the <tt class="literal">text</tt>-prefix, especially for letters,</p> -<dl class="field-list simple"> -<dt>T1</dt> -<dd><p><tt class="literal">\AE \DH \DJ \L \NG \OE \O \SS \TH \ae \dh \dj \guillemotleft</tt> -<tt class="literal">\guillemotright \guilsinglleft \guilsinglright \i \j \l \ng</tt> -<tt class="literal">\oe \o \quotedblbase \quotesinglbase \ss \th</tt> (also in OT1)</p> -</dd> -<dt>T2*</dt> -<dd><p><tt class="literal">\CYR*</tt> and <tt class="literal">\cyr*</tt></p> -</dd> -<dt>HE8</dt> -<dd><p><tt class="literal">\heb*</tt> or no prefix</p> -</dd> -<dt>PU</dt> -<dd><p>short descriptive names in the arabic part (<tt class="literal">puarenc.def</tt>)</p> -</dd> -</dl> -</li> -<li><p><tt class="literal">text</tt> prefix does <strong>not</strong> mark a macro as encoding-specific or -“inserting a glyph”. There are e.g. font-changing macros (<tt class="literal">\textbf</tt>, -<tt class="literal">\textit</tt>) and encoding-changing macros (<tt class="literal">\textgreek</tt>, -<tt class="literal">\textcyr</tt>).</p></li> +<li><p><span class="docutils literal">text</span> prefix does <strong>not</strong> mark a macro as encoding-specific or +“inserting a glyph”. There are e.g. font-changing macros (<span class="docutils literal">\textbf</span>, +<span class="docutils literal">\textit</span>) and encoding-changing macros (<span class="docutils literal">\textgreek</span>, +<span class="docutils literal">\textcyr</span>).</p></li> +<li><p>There are examples of encoding-specific macros +without the <span class="docutils literal">text</span>-prefix, especially for letters, see <a class="reference internal" href="#encguide">encguide</a>.</p></li> </ul> </dd> <dt>Contra:</dt> <dd><ul class="simple"> -<li><p>Less consistent.</p></li> -<li><p><tt class="literal">text</tt> prefix marks a macro as confined to text (as opposed to math) -mode.</p></li> +<li><p>Less consistent,</p></li> +<li><p>possible name clashes</p></li> +<li><p><span class="docutils literal">text</span> prefix marks a macro as confined to text (as opposed to math) +mode,</p></li> </ul> </dd> -<dt>Conclusion:</dt> -<dd><p>To avoid name clashes, the font encoding definition files use the -<tt class="literal">text</tt> prefix for symbols. Aliases (short forms, compatibility defs, -etc.) can be defined locally or in additional packages (see -<a class="reference external" href="alphabeta.sty">alphabeta.sty</a>, <a class="reference external" href="http://www.ctan.org/pkg/babel-greek">babel-greek</a>, or <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a>)</p> -</dd> </dl> +<p>The font encoding definition files use the <span class="docutils literal">text</span> prefix for symbols. +Aliases (short forms, compatibility defs, etc.) are defined in +additional packages (e.g. <a class="reference external" href="alphabeta.sty">alphabeta.sty</a>, <a class="reference external" href="http://www.ctan.org/pkg/babel-greek">babel-greek</a>, or <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a>)</p> </li> </ul> </div> -<div class="section" id="how-to-name-accent-macros"> -<h2>How to name <em>accent macros</em>?</h2> +<div class="section" id="accent-macros"> +<h2>accent macros</h2> <ul> -<li><p>standard accent macros (<tt class="literal">\DeclareTextAccent</tt> definitions in -<tt class="literal"><span class="pre">latex/base/...</span></tt>) are one-symbol macros (<tt class="literal">\' \" ... \u \v ...</tt>) .</p></li> -<li><p><tt class="literal">tipa.sty</tt>, <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a>, and <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a> use the “text” prefix also for accents.</p> -<p>However, the <a class="reference external" href="http://www.adobe.com/devnet-archive/opentype/archives/aglfn.txt">Adobe Glyph List For New Fonts</a> maps, e.g., “tonos” and -“dieresistonos” to 0384 GREEK TONOS and 0385 GREEK DIALYTIKA TONOS, hence -<cite>texttonos</cite> and <cite>textdiaresistonos</cite> should be spacing characters.</p> +<li><p>standard accent macros (<span class="docutils literal">\DeclareTextAccent</span> definitions in +<span class="docutils literal"><span class="pre">latex/base/...</span></span>) are one-symbol macros (<span class="docutils literal">\' \" ... \u \v ...</span>) .</p></li> +<li><p><span class="docutils literal">tipa.sty</span>, <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a>, and <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a> use the “text” prefix also for accents.</p> +<p>However, the <a class="reference external" href="http://raw.githubusercontent.com/adobe-type-tools/agl-aglfn/master/aglfn.txt">Adobe Glyph List For New Fonts</a> maps, e.g., “tonos” and +“dieresistonos” to the spacing characters GREEK TONOS and GREEK DIALYTIKA +TONOS, hence <cite>texttonos</cite> and <cite>textdiaresistonos</cite> should be spacing +characters.</p> </li> -<li><p>textcomp (ts1enc.def) defines <tt class="literal"><span class="pre">\capital...</span></tt> accents (i.e. without -<tt class="literal">text</tt> prefix).</p></li> -<li><p>Use a common prefix <tt class="literal"><span class="pre">\textaccent...</span></tt>, <tt class="literal"><span class="pre">\accent...</span></tt>, -or just <tt class="literal"><span class="pre">\acc...</span></tt> (cf. <tt class="literal">\@tabacckludge</tt>)?</p></li> +<li><p>textcomp (ts1enc.def) defines <span class="docutils literal"><span class="pre">\capital...</span></span> accents (i.e. without +<span class="docutils literal">text</span> prefix).</p></li> </ul> <p>Currently, <cite>greek-fontenc</cite> uses for diacritics:</p> <ul class="simple"> -<li><p>Greek names like in Unicode, and ucsencs.def</p></li> -<li><p>The prefix “acc” to distinguish the macros as <cite>TextAaccent</cite> and reduce the -risc of name clashes.</p></li> -<li><p>For the end-user “symbol macros” (<tt class="literal">\~ \' \` \" \< \></tt>) are provided. -(The non-standard macros <tt class="literal">\<</tt> and <tt class="literal">\></tt> only with <a class="reference external" href="textalpha.sty">textalpha.sty</a>.)</p></li> +<li><p>Greek names like in Unicode, and <span class="docutils literal">ucsencs.def</span>, and</p></li> +<li><p>the prefix <span class="docutils literal">\acc</span> to distinguish the macros as <cite>TextAaccent</cite> and reduce +the risc of name clashes (cf. <span class="docutils literal">\@tabacckludge</span>).</p></li> +</ul> +<p>For the end-user “symbol macros” (<span class="docutils literal">\~ \' \` \" \< \> \"' ...</span>) are +provided. (The non-standard macros <span class="docutils literal">\<</span> and <span class="docutils literal">\></span> only with +<a class="reference internal" href="#textalpha">textalpha</a> or <a class="reference internal" href="#alphabeta">alphabeta</a>.)</p> +</div> +<div class="section" id="symbol-variants"> +<h2>symbol variants</h2> +<p>See also <a class="reference external" href="http://en.wikipedia.org/wiki/Greek_alphabet#Glyph_variants">http://en.wikipedia.org/wiki/Greek_alphabet#Glyph_variants</a></p> +<p>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.</p> +<p>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.</p> +<p>The variant shapes are not given separate code-points in the <a class="reference internal" href="#lgr">LGR</a> font +encoding.</p> +<p>In mathematical mode, TeX supports the distinction between θ|ϑ, π|ϖ, φ|ϕ, +ρ|ϱ, and ε|ϵ with <span class="docutils literal">\var<lettername></span> 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. <a class="reference external" href="http://www.ctan.org/pkg/amsfonts">amssymb</a> provides ϰ as <span class="docutils literal">\varkappa</span>).</p> +<p><cite>greek-fontenc</cite> provides <span class="docutils literal">\text<lettername>symbol</span> LICR macros for these +characters:</p> +<ul class="simple"> +<li><p>With Unicode fonts, the macros select the GREEK +<lettername> SYMBOL“.</p></li> +<li><p>With LGR encoded fonts, they report an error by default and are mapped to +the corresponding letter with the <span class="docutils literal"><span class="pre">normalize-symbols</span></span> option of +<a class="reference internal" href="#textalpha">textalpha</a> and <a class="reference internal" href="#alphabeta">alphabeta</a> (loosing the distinction between the shape +variants).</p></li> </ul> </div> <div class="section" id="references"> @@ -1134,50 +1017,40 @@ risc of name clashes.</p></li> <p>An alternative, more complete set of short mnemonic character names is the <a class="reference external" href="http://www.w3.org/TR/xml-entity-names/">XML Entity Definitions for Characters</a> W3C Recommendation from 01 April 2010.</p> -<p>For glyph names of the LGR encoding see e.g. <tt class="literal">CB.enc</tt> by Apostolos -Syropoulos and <tt class="literal"><span class="pre">xl-lgr.enc</span></tt> from the <a class="reference external" href="http://www.ctan.org/pkg/libertine-legacy">libertine</a> (legacy) package. -<tt class="literal">lgr.cmap</tt> provides a mapping to Unicode characters.</p> -<p>A full set of <tt class="literal">\text*</tt> symbol macros is defined in <tt class="literal">ucsencs.def</tt> +<p>For glyph names of the LGR encoding see, e.g., <span class="docutils literal">CB.enc</span> by Apostolos +Syropoulos and <span class="docutils literal"><span class="pre">xl-lgr.enc</span></span> from the <a class="reference external" href="http://www.ctan.org/pkg/libertine-legacy">libertine</a> (legacy) package. +<span class="docutils literal">lgr.cmap</span> provides a mapping to Unicode characters.</p> +<p>A full set of <span class="docutils literal">\text*</span> symbol macros is defined in <span class="docutils literal">ucsencs.def</span> from the <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a> package.</p> -<p>Aliases from <tt class="literal">puenc.def</tt> ensure that the <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> package can convert +<p>Aliases from <span class="docutils literal">puenc.def</span> ensure that the <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> package can convert Greek text in “LICR encoding” to a PDF-string (utf-8 encoded input is used as-is).</p> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id5">[fntguide]</a></dt> -<dd id="fntguide"> -<p class="first last">LaTeX3 Project Team, <cite>LaTeX2ε font selection</cite>, 2005. +<dl class="citation"> +<dt class="label" id="fntguide"><a class="fn-backref" href="#id5">[fntguide]</a></dt> +<dd><p>LaTeX3 Project Team, <cite>LaTeX2ε font selection</cite>, 2005. <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">http://mirror.ctan.org/macros/latex/doc/fntguide.pdf</a></p> </dd> -</dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id11">[encguide]</a></dt> -<dd id="encguide"> -<p class="first last">Frank Mittelbach, Robin Fairbairns, Werner Lemberg, +<dt class="label" id="encguide"><a class="fn-backref" href="#id11">[encguide]</a></dt> +<dd><p>Frank Mittelbach, Robin Fairbairns, Werner Lemberg, LaTeX3 Project Team, <cite>LaTeX font encodings</cite>, 2006. <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/encguide.pdf">http://mirror.ctan.org/macros/latex/doc/encguide.pdf</a></p> </dd> -</dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id12">[greek-usage]</a></dt> -<dd id="greek-usage"> -<p class="first last">Apostolos Syropoulos, <cite>Writing Greek with the greek option +<dt class="label" id="greek-usage"><a class="fn-backref" href="#id12">[greek-usage]</a></dt> +<dd><p>Apostolos Syropoulos, <cite>Writing Greek with the greek option of the babel package</cite>, 1997. <a class="reference external" href="http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf">http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf</a></p> </dd> -</dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id14">[cbfonts]</a></dt> -<dd id="cbfonts"> -<p class="first last">Claudio Beccari, <cite>The CB Greek fonts</cite>, Εὔτυπον, τεῦχος № 21, 2008. +<dt class="label" id="cbfonts"><a class="fn-backref" href="#id14">[cbfonts]</a></dt> +<dd><p>Claudio Beccari, <cite>The CB Greek fonts</cite>, Εὔτυπον, τεῦχος № 21, 2008. <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf">http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf</a></p> </dd> -</dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id13">[teubner-doc]</a></dt> -<dd id="teubner-doc"> -<p class="first last">Claudio Beccari, <tt class="literal">teubner.sty</tt> +<dt class="label" id="teubner-doc"><a class="fn-backref" href="#id13">[teubner-doc]</a></dt> +<dd><p>Claudio Beccari, <span class="docutils literal">teubner.sty</span> <cite>An extension to the greek option of the babel package</cite>, 2011. <a class="reference external" href="http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf">http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf</a></p> </dd> -</dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id15">[babel-patch]</a></dt> -<dd id="babel-patch"> -<p class="first last">Werner Lemberg, <cite>Unicode support for the Greek LGR +<dt class="label" id="babel-patch"><a class="fn-backref" href="#id15">[babel-patch]</a></dt> +<dd><p>Werner Lemberg, <cite>Unicode support for the Greek LGR encoding</cite> Εὔτυπον, τεῦχος № 20, 2008. <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf</a></p> </dd> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf Binary files differindex 2395f5248f2..4e8295c0557 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex index 0dc26a63bfc..d110bb65552 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex @@ -9,38 +9,49 @@ \ifdefined\XeTeXrevision \usepackage[no-math]{fontspec} \setmainfont{Linux Libertine O} + \setsansfont{Linux Biolinum O} + \setmonofont{Inconsolata}[Scale=MatchLowercase] \usepackage[libertine,slantedGreek]{newtxmath} - \providecommand*{\varstigma}{$\oslash$} + % \usepackage{unicode-math} \else\ifdefined\luatexversion \usepackage{fontspec} \setmainfont{Linux Libertine O} + \setsansfont{Linux Biolinum O} + \setmonofont{Inconsolata}[Scale=MatchLowercase] \usepackage[libertine,slantedGreek]{newtxmath} - \providecommand*{\varstigma}{$\oslash$} \else \usepackage[utf8]{inputenc} \usepackage[LGR,T1]{fontenc} \usepackage{textcomp} - % \usepackage{lmodern} + \usepackage{lmodern} + % \usepackage{libertine} % \usepackage{gfsdidot} % \usepackage{kerkis} - \usepackage{newtxtext,newtxmath} - \usepackage{substitutefont} - \substitutefont{LGR}{\rmdefault}{artemisia} + % \usepackage{newtxtext,newtxmath} + % \usepackage{substitutefont} + % \substitutefont{LGR}{\rmdefault}{artemisia} \usepackage{isomath} \fi\fi % No section numbers but PDF bookmarks for sections -\setcounter{secnumdepth}{0} +% \setcounter{secnumdepth}{0} % load alphabeta after math setup and encoding setup! -\usepackage{alphabeta} +% \usepackage{alphabeta} +\usepackage[normalize-symbols]{alphabeta} % Avoid warnigns with PDF string generation for "alphabeta" commands: % let \TextOrMath (from fixltx2e) return the "text" argument: -\pdfstringdefDisableCommands{% - \let\TextOrMath\@firstoftwo% -} +\pdfstringdefDisableCommands{\let\TextOrMath\@firstoftwo} + +% varstigma only defined with 8-bit LGR fonts +\providecommand*{\varstigma}{$\oslash$} + +% varkappa, only defined with newtxmath, other var... only with unicode-math +\providecommand*{\varkappa}{\oslash} +\providecommand*{\varbeta}{\oslash} +\providecommand*{\varTheta}{\oslash} \begin{document} @@ -66,26 +77,50 @@ math mode (capital letters upright without \emph{fixmath} or This makes it easy to write a single Greek symbol (like \Psi{} or \mu{}) or a \lambda\omicron\gamma\omicron\varsigma{} in non-Greek text as well as ISO-conforming formulas with upright symbols for constants like $A = -\text{\pi} r^2$ instead of $A = \pi r^2$.\footnote{% +\text{\pi} r^2$ (instead of $A = \pi r^2$).\footnote{% The \emph{\href{http://www.ctan.org/pkg/isomath}{isomath}} package documentation describes more alternatives for upright Greek symbols in math mode.} -See the source of this document \url{alphabeta-doc.tex} for a setup and -usage example. +\section{Usage} -\section{Tests and examples} +Load this package in the preamble of your document (after font and math +setup) with +\begin{verbatim} + \usepackage{alphabeta} +\end{verbatim} +or, if you want to merge symbol variants, with the +\texttt{normalize-symbols} option: +\begin{verbatim} + \usepackage[normalize-symbols]{alphabeta} +\end{verbatim} -\subsection{Greek alphabet} +See the source of this document \url{alphabeta-doc.tex} for a setup and +usage example. -Greek letters via Latin transscription in LGR font encoding: +\subsection{option normalize-symbols} +The \texttt{normalize-symbols} option is passed to the +\href{alphabeta-doc.pdf}{\emph{alphabeta}} package. It +merges ``letters'' and ``symbol`` variants of some Greek +letters to the ``letter'' character (but is ignored with Unicode fonts): \begin{quote} - \ensuregreek{A B G D E Z H J I K L M N X O P R S T U F Q Y W}\\ - \ensuregreek{a b g d e z h j i k l m n x o p r s c t u f q y w} + This text uses both variants for beta (β|ϐ), theta (θ|ϑ), phi (φ|ϕ), pi + (π|ϖ), kappa (κ|ϰ), rho (ρ|ϱ), Theta (Θ|ϴ), and epsilon (ε|ϵ) in the LaTeX + source. \end{quote} -Greek letters via default macros without language/font-encoding switch: +\textbf{Attention}: Be careful in cases where the distinction between the +symbol variants may be important (e.g. in a mathematical or scientific +context). Use XeTeX/LuaTeX with Unicode fonts or the respective characters +in math mode (e.g. $π$ vs. $ϖ$). + +\section{Tests and examples} + +\subsection{Greek alphabet} + +Greek letters via generic ``name'' macros without language/font-encoding +switch: \begin{quote} \Alpha{} \Beta{} \Gamma{} \Delta{} \Epsilon{} \Zeta{} \Eta{} \Theta{} @@ -97,7 +132,7 @@ Greek letters via default macros without language/font-encoding switch: \sigma{} \varsigma{} \tau{} \upsilon{} \phi{} \chi{} \psi{} \omega{} \\ \digamma{} \Digamma{} \stigma{} \varstigma{}% - \footnote{\texttt{\textbackslash varstigma} is not defined with + \footnote{\texttt{\textbackslash varstigma} is not defined with Xe/LuaTeX and similar to \texttt{\textbackslash stigma} in some fonts.} \koppa{} \qoppa{} \Qoppa{} \Stigma{} \Sampi{} \sampi{} @@ -111,6 +146,77 @@ Greek letters via Unicode input without language/font-encoding switch: ϝ Ϝ ϛ ϟ ϙ Ϙ Ϛ Ϡ ϡ \end{quote} +\subsubsection{symbol variants} + +Mathematical notation uses variant shapes of some Greek letters as +additional symbols. The variations have no syntactic meaning in Greek text +and text fonts may use the variant shapes in place of the “regular” ones as +a stylistic choice. + +Unicode defines separate code points for the symbol variants. TeX supports +some of the variant shape symbols in mathematical mode, but its concept of +“standard” vs. “variant” symbols differs from the distinction between +“GREEK LETTER ...” vs. “GREEK ... SYMBOL” in the Unicode standard +See \href{greek-euenc-doc.pdf}{greek-euenc-doc}. + +The \emph{alphabeta} package defines generic macros for these variants that +are short forms of the set defined in \texttt{greek-euenc.def}: +\begin{quote} + \verb|\<name>| selects the Unicode GREEK LETTER ... variant, + + \verb|\<name>symbol| selects the Unicode + GREEK ... SYMBOL variant, + + \verb|\var<name>| selects the variant + shape according to TeX' mathematical mode +\end{quote} +See Table \ref{tab:symbol-variant-macros} for the full list. +\begin{table}[tbp] + \centering + \begin{tabular}{lcc} + \hline + macro & text & math \\ + \hline + \verb$\pi$ & \pi & $\pi$ \\ + \verb$\varpi$ & \varpi & $\varpi$ \\ + \verb$\pisymbol$ & \pisymbol & $\pisymbol$ \\ + \hline + \verb$\rho$ & \rho & $\rho$ \\ + \verb$\varrho$ & \varrho & $\varrho$ \\ + \verb$\rhosymbol$ & \rhosymbol & $\rhosymbol$ \\ + \hline + \verb$\theta$ & \theta & $\theta$ \\ + \verb$\vartheta$ & \vartheta & $\vartheta$ \\ + \verb$\thetasymbol$ & \thetasymbol & $\thetasymbol$ \\ + \hline + \verb$\epsilon$ & \epsilon & $\epsilon$ \\ + \verb$\varepsilon$ & \varepsilon & $\varepsilon$ \\ + \verb$\epsilonsymbol$ & \epsilonsymbol & $\epsilonsymbol$ \\ + \hline + \verb$\phi$ & \phi & $\phi$ \\ + \verb$\varphi$ & \varphi & $\varphi$ \\ + \verb$\phisymbol$ & \phisymbol & $\phisymbol$ \\ + \hline + \verb$\beta$ & \beta & $\beta$ \\ + \verb$\varbeta$ & \varbeta & $\varbeta$ \\ + \verb$\betasymbol$ & \betasymbol & $\betasymbol$ \\ + \hline + \verb$\kappa$ & \kappa & $\kappa$ \\ + \verb$\varkappa$ & \varkappa & $\varkappa$ \\ + \verb$\kappasymbol$ & \kappasymbol & $\kappasymbol$\\ + \hline + \verb$\Theta$ & \Theta & $\Theta$ \\ + \verb$\varTheta$ & & $\varTheta$ \\ + \verb$\Thetasymbol$ & \Thetasymbol & \\ + \hline + \end{tabular} + \caption{Macros for Greek symbol variants. With 8-bit TeX and the + \texttt{normalize-symbols} option, the output for both variants in text + mode is the same, as 8-bit Greek text fonts contain only one symbol + variant.} \label{tab:symbol-variant-macros} +\end{table} + + \subsection{\ensuregreek{% Ἑλληνικά (\<\Epsilon\lambda\lambda\eta\nu\iota\kappa\'\alpha{})} @@ -131,9 +237,7 @@ Warnings like \texttt{Token not allowed in a PDF string can be ignored or avoided with the preamble code: \begin{verbatim} -\pdfstringdefDisableCommands{% - \let\TextOrMath\@firstoftwo% -} + \pdfstringdefDisableCommands{\let\TextOrMath\@firstoftwo} \end{verbatim} @@ -150,7 +254,7 @@ mathematical mode (for XeTeX/LuaTeX use unicode-math): \[ Γ = \frac{\sin α}{\cos{β}}. \] -Greek letters in math (there are no math macros for Greek letters wich exist +Greek letters and symbols in math (there are no math macros for Greek letters wich exist with similar shape in the Latin alphabet): Input as macro: @@ -179,16 +283,22 @@ Input as macro: % \omicron{} \pi{} \rho{} \sigma{} \varsigma{} \tau{} \upsilon{} \phi{} \chi{} \psi{} \omega{} - \, \digamma{} +\\& + \vartheta \varphi \varpi \digamma{} \varrho \varepsilon \end{align*} Input as Unicode literals (with XeTeX/LuaTeX, this requires the unicode-math package): \begin{align*} & Γ ΔΘΛΞΠΣΥ ΦΨ Ω \\ - & αβγδεζηθικλμνξπρσςτ υφχψω \, ϝ + & αβγδεζηθικλμνξπρσςτυφχψω \\ + & ϑϕϖϝϱϵ \end{align*} +The "normal" vs. "variant" shape of phi and epsilon is inverted when using +traditional makros or Unicode letter vs. symbol characters respectively. +This is to keep backwards compatibility of the math macros as well +as consistent input-output mapping for Unicode in text and math. PDF strings do not know math mode. The content of a formula or equation is evaluated in text mode with non-valid commands discarded (and warnings @@ -205,6 +315,7 @@ Accent macros are set up for use with the generic macros by definition of Diacritics (except the dialytika) should placed before capital letters and dropped with MakeUppercase: +\begin{quote} \ensuregreek{ \<{\alpha} \>{\epsilon} \"'{\iota} \>`{\eta} \'<{\omicron} \~<{\upsilon} \~>{\omega} @@ -216,6 +327,7 @@ before capital letters and dropped with MakeUppercase: \<{\alpha} \>{\epsilon} \"'{\iota} \>`\eta{} \'<{\omicron} \~<{\upsilon} \~>{\omega} }} +\end{quote} \subsection{Limitations} @@ -252,8 +364,8 @@ encoding is not LGR: The \verb+\ensuregreek+ macro ensures that the argument is typeset with a font encoding supporting Greek. This keeps kerning (if the kerning pair is -inside the argument, \ensuregreek{\Alpha\Upsilon\Alpha}), and allows -iterative accent macros where pre-composed characters are selected +inside the argument, \ensuregreek{\Alpha\"\Upsilon\Alpha}), and allows +combining of accent macros where pre-composed characters are selected (\ensuregreek{\<'\alpha}). \end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.html index 569d66dd99c..099cd4ad011 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.html @@ -1,644 +1,409 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>alphabeta-euenc.def</title> -<meta name="copyright" content="© 2013 Günter Milde" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; +} + +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; } +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ - -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } +div.align-right { text-align: inherit } -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; -} -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; } - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} - -/* docinfo */ +/* Bibliographic Fields */ -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ + margin-left: 20%; } -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; -} -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; -} -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} - -/* lists nested in definition list */ - -dd > ul, dd > ol { - padding-left: 0pt; -} - -/* TODO: prefix, suffix? */ - -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ - - -/* Tables */ -/* ====== */ - -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; -} +/* Tables */ +/* ====== */ -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} - -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -647,7 +412,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -656,90 +420,148 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em +} +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ -span.sectnum { - padding-right: 1ex; +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ + +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ + +/* Hyperlink References */ +a { text-decoration: none; } + +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> <body> <div class="document" id="alphabeta-euenc-def"> <h1 class="title">alphabeta-euenc.def</h1> -<h2 class="subtitle" id="composite-definitions-for-xetex-and-luatex">Composite definitions for XeTeX and LuaTeX</h2> +<p class="subtitle" id="composite-definitions-for-xetex-and-luatex">Composite definitions for XeTeX and LuaTeX</p> <dl class="docinfo"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2013 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> -<dt>Identification</dt> -<dd><pre class="literal-block">\ProvidesFile{alphabeta-euenc} -[2014/09/04 0.11.2 Composite definitions for XeTeX and LuaTeX] -</pre> +<dt class="identification">Identification</dt> +<dd class="identification"><pre class="literal-block">\ProvidesFile{alphabeta-euenc} +[2014/09/04 0.11.2 Composite definitions for XeTeX and LuaTeX]</pre> </dd> </dl> -<p>Composite definitions for <tt class="literal">alphabeta.sty</tt> with XeTeX and LuaTeX.</p> -<dl class="docutils"> +<p>Composite definitions for <span class="docutils literal">alphabeta.sty</span> with XeTeX and LuaTeX.</p> +<dl> <dt>Changelog:</dt> <dd><table class="borderless"> <colgroup> -<col width="14%" /> -<col width="8%" /> -<col width="78%" /> +<col style="width: 14%" /> +<col style="width: 8%" /> +<col style="width: 78%" /> </colgroup> <tbody> <tr><td><p>2013-09-12</p></td> @@ -762,7 +584,7 @@ version 1.3 of this license or any later version.</p> in both, text and math mode, so that Greek letters can be specified with the established command names in text, too.</p> <p>The NFSS TextComposite mechanism looks for the next token without expanding -it. In order to let compositions like <tt class="literal"><span class="pre">\>"\alpha</span></tt> work as expected we +it. In order to let compositions like <span class="docutils literal"><span class="pre">\>"\alpha</span></span> work as expected we define TextComposites with the <cite>letter name commands</cite>.</p> <p>This file expands the font encoding definitions in <a class="reference external" href="greek-euenc.def.html">greek-euenc.def</a> with composite commands for use with Unicode fonts. It is sourced by <a class="reference external" href="alphabeta.sty.html">alphabeta</a> @@ -790,11 +612,11 @@ under XeTeX/LuaTeX.</p> \DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\upsilon}{ϋ} \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omicron}{ό} \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\upsilon}{ύ} -\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega}{ώ} -</pre> +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega}{ώ}</pre> </div> <div class="section" id="greek-extended"> <h1>Greek Extended</h1> +<p>Postfix ypogegrammeni cannot be second part of composite defs.</p> <pre class="literal-block">\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\alpha}{ἀ} \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\alpha}{ἁ} \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\alpha}{ἂ} @@ -910,84 +732,21 @@ under XeTeX/LuaTeX.</p> \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\upsilon}{ὺ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omega}{ὼ} -%% postfix ypogegrammeni cannot be second part of composite defs. -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾀ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾁ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾂ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾃ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾄ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾅ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾆ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾇ} -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾈ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾉ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾊ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾋ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾌ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾍ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾎ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾏ} -% -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾐ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾑ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾒ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾓ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾔ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾕ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾖ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾗ} -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾘ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾙ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾚ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾛ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾜ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾝ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾞ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾟ} -% -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾠ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾡ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾢ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾣ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾤ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾥ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾦ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾧ} -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾨ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾩ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾪ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾫ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾬ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾭ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾮ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾯ} - \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\alpha}{ᾰ} \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\alpha}{ᾱ} -% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾲ} -% \DeclareTextCompositeCommand{\alpha}{\LastDeclaredEncoding}{\ypogegrammeni}{ᾳ} -% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾴ} \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\alpha}{ᾶ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\alpha}{ᾶ} -% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾷ} \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\Alpha}{Ᾰ} \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\Alpha}{Ᾱ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Alpha}{Ὰ} \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Alpha}{Ὰ} -% \DeclareTextCompositeCommand{\Alpha}{\LastDeclaredEncoding}{\prosgegrammeni}{ᾼ} -% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῂ} -% \DeclareTextCompositeCommand{\eta}{\LastDeclaredEncoding}{\ypogegrammeni}{ῃ} -% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῄ} \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\eta}{ῆ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\eta}{ῆ} -% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῇ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Epsilon}{Ὲ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Eta}{Ὴ} \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Epsilon}{Ὲ} \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Eta}{Ὴ} -% \DeclareTextCompositeCommand{\Eta}{\LastDeclaredEncoding}{\prosgegrammeni}{ῌ} - \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\iota}{ῐ} \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\iota}{ῑ} @@ -1016,18 +775,12 @@ under XeTeX/LuaTeX.</p> \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Upsilon}{Ὺ} \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Rho}{Ῥ} -% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῲ} -% \DeclareTextCompositeCommand{\omega}{\LastDeclaredEncoding}{\ypogegrammeni}{ῳ} -% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῴ} \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\omega}{ῶ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\omega}{ῶ} -% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῷ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omicron}{Ὸ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omega}{Ὼ} \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omicron}{Ὸ} -\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omega}{Ὼ} -% \DeclareTextCompositeCommand{\Omega}{\LastDeclaredEncoding}{\prosgegrammeni}{ῼ} -</pre> +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omega}{Ὼ}</pre> <!-- References --> </div> </div> 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 471125a414d..e324cc3bdd8 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,644 +1,409 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" /> +<meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>alphabeta-lgr.def</title> -<meta name="copyright" content="© 2014 Günter Milde" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; +} + +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; } +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ - -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } +div.align-right { text-align: inherit } -span.pre { - white-space: pre } - -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; -} -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; } - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} - -/* docinfo */ +/* Bibliographic Fields */ -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ -} - -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; -} -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; -} -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} - -/* lists nested in definition list */ - -dd > ul, dd > ol { - padding-left: 0pt; -} - -/* TODO: prefix, suffix? */ - -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ - - -/* Tables */ -/* ====== */ - -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; + margin-left: 20%; } -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} +/* Tables */ +/* ====== */ -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -647,7 +412,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -656,92 +420,150 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ + +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ -span.sectnum { - padding-right: 1ex; +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ + +/* Hyperlink References */ +a { text-decoration: none; } -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> <body> <div class="document" id="alphabeta-lgr-def"> <h1 class="title">alphabeta-lgr.def</h1> -<h2 class="subtitle" id="composite-definitions-for-8-bit-tex">Composite definitions for 8-bit TeX</h2> +<p class="subtitle" id="composite-definitions-for-8-bit-tex">Composite definitions for 8-bit TeX</p> <dl class="docinfo"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2014 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> -<dt>Identification</dt> -<dd><pre class="literal-block">\ProvidesFile{alphabeta-lgr} -[2014/09/04 0.11.2 Composite definitions for 8-bit TeX] -</pre> +<dt class="identification">Identification</dt> +<dd class="identification"><pre class="literal-block">\ProvidesFile{alphabeta-lgr} +[2014/09/04 0.11.2 Composite definitions for 8-bit TeX]</pre> </dd> -<dt>Changelog</dt> -<dd><table class="borderless"> +<dt class="changelog">Changelog</dt> +<dd class="changelog"><table class="borderless"> <colgroup> -<col width="14%" /> -<col width="8%" /> -<col width="77%" /> +<col style="width: 14%" /> +<col style="width: 8%" /> +<col style="width: 77%" /> </colgroup> <tbody> <tr><td><p>2014-09-04</p></td> <td><p>0.11.2</p></td> -<td><p>outsourced from <tt class="literal">alphabeta.sty</tt>.</p></td> +<td><p>outsourced from <span class="docutils literal">alphabeta.sty</span>.</p></td> </tr> </tbody> </table> @@ -751,7 +573,7 @@ version 1.3 of this license or any later version.</p> in both, text and math mode, so that Greek letters can be specified with the established command names in text, too.</p> <p>The NFSS TextComposite mechanism looks for the next token without expanding -it. In order to let compositions like <tt class="literal"><span class="pre">\>"\alpha</span></tt> work as expected we +it. In order to let compositions like <span class="docutils literal"><span class="pre">\>"\alpha</span></span> work as expected we define TextComposites with the <cite>letter name commands</cite>.</p> <p>This file expands the font encoding definitions in <a class="reference external" href="lgrenc.def.html">lgrenc.def</a> with composite commands for use with 8-bit TeX fonts. It is sourced by @@ -900,8 +722,7 @@ composite commands for use with 8-bit TeX fonts. It is sourced by \DeclareTextComposite{\accdialytika}{LGR}{\Iota}{219} \DeclareTextComposite{\accdialytika}{LGR}{\Upsilon}{223} \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Alpha}{\LGR@A@hiatus} -\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Epsilon}{\LGR@E@hiatus} -</pre> +\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Epsilon}{\LGR@E@hiatus}</pre> <!-- References --> </div> </body> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html index 7016c24694a..d5d476a0d2b 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html @@ -1,644 +1,409 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>alphabeta: Greek symbols in text and math</title> -<meta name="copyright" content="© 2010 Günter Milde" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; +} + +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; } +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ - -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } - -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } +div.align-right { text-align: inherit } -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; -} -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; } - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} - -/* docinfo */ +/* Bibliographic Fields */ -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ + margin-left: 20%; } -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; -} -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; -} -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} +/* Tables */ +/* ====== */ -/* lists nested in definition list */ - -dd > ul, dd > ol { - padding-left: 0pt; -} - -/* TODO: prefix, suffix? */ - -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ - - -/* Tables */ -/* ====== */ - -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; -} - -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} - -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -647,7 +412,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -656,60 +420,119 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ + +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ + +/* Document Header and Footer */ -span.sectnum { - padding-right: 1ex; +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ + +/* Hyperlink References */ +a { text-decoration: none; } -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> @@ -720,30 +543,29 @@ div.hint, div.important, div.note, div.tip, div.warning { <dl class="docinfo"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2010 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> -<dt>Identification</dt> -<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} +<dt class="identification">Identification</dt> +<dd class="identification"><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{alphabeta} -[2013/09/11 v0.4 macros for Greek letters in text and math] -</pre> +[2015/08/08 v0.13 macros for Greek letters in text and math]</pre> </dd> </dl> <div class="abstract topic"> <p class="topic-title first">Abstract</p> -<p>Use <tt class="literal">\alpha, \beta, ...</tt> for Greek letters in text and math +<p>Use <span class="docutils literal">\alpha, \beta, ...</span> for Greek letters in text and math mode.</p> </div> -<dl class="docutils"> +<dl> <dt>Changelog:</dt> <dd><table class="borderless"> <colgroup> -<col width="14%" /> -<col width="7%" /> -<col width="79%" /> +<col style="width: 14%" /> +<col style="width: 7%" /> +<col style="width: 79%" /> </colgroup> <tbody> <tr><td><p>2012-06-26</p></td> @@ -752,74 +574,79 @@ mode.</p> </tr> <tr><td><p>2013-05-03</p></td> <td><p>0.2</p></td> -<td><p>new accent macro names with <tt class="literal">lgrxenc.def</tt> 0.7</p></td> +<td><p>new accent macro names with <span class="docutils literal">lgrxenc.def</span> 0.7</p></td> </tr> <tr><td><p>2013-05-28</p></td> <td><p>0.3</p></td> -<td><p>use <tt class="literal">lgrenc.def</tt> from greek-fontenc,</p></td> +<td><p>use <span class="docutils literal">lgrenc.def</span> from greek-fontenc,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>enable Unicode input in math mode.</p></td> </tr> <tr><td><p>2013-09-11</p></td> <td><p>0.4</p></td> <td><p>move to <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>, support XeTeX/LuaTeX.</p></td> </tr> +<tr><td><p>2015-09-04</p></td> +<td><p>0.13</p></td> +<td><p>Support for <cite>variant symbols</cite>.</p></td> +</tr> </tbody> </table> </dd> </dl> <div class="section" id="motivation"> <h1>Motivation</h1> -<p>By default, the <tt class="literal">\alpha, \beta, ...</tt> macros for Greek letters +<p>By default, the <span class="docutils literal">\alpha, \beta, ...</span> macros for Greek letters are only valid in mathematical mode.</p> <p>With this package, the math macros are redefined to work in both, text and math mode, so that Greek letters can be specified with the established command names in text, too.</p> -<p>If used together with the <tt class="literal">utf8</tt> option of <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a>, literal Unicode +<p>If used together with the <span class="docutils literal">utf8</span> option of <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a>, literal Unicode characters can be used for Greek symbols in mathematical formulas.</p> -<div class="attention"> +<div class="admonition attention"> <p class="admonition-title">Attention!</p> <p>The macros work well in any font encoding for single symbols. However, with 8-bit TeX, the automatic font-encoding switches behind the doors interfere with kerning between letters and replacement of accent+character with a pre-composed character.</p> <p>Therefore, Greek text should be written with the help of <a class="reference external" href="http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel">babel</a> or -<a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <tt class="literal">greek</tt>) or wrapped in the -provided <tt class="literal">ensuregreek</tt> macro. Using <a class="reference external" href="http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel">babel</a> or <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> also helps +<a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <span class="docutils literal">greek</span>) or wrapped in the +provided <span class="docutils literal">ensuregreek</span> macro. Using <a class="reference external" href="http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel">babel</a> or <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> also helps to ensure proper hyphenation.</p> </div> </div> <div class="section" id="usage"> <h1>Usage</h1> -<pre class="code latex literal-block"><span class="keyword">\usepackage</span><span class="name builtin">{</span>alphabeta<span class="name builtin">}</span> -</pre> +<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name builtin">{</span>alphabeta<span class="name builtin">}</span></code></pre> +<p>The <a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a> package provides support for Unicode (utf-8) input +of Greek characters with 8-bit TeX and the <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a> package:</p> +<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name attribute">[utf-8]</span><span class="name builtin">{</span>inputenc<span class="name builtin">}</span> +<span class="keyword">\usepackage</span><span class="name builtin">{</span>alphabeta<span class="name builtin">}</span></code></pre> <p>For details see <a class="reference external" href="alphabeta-doc.tex">alphabeta-doc.tex</a> and <a class="reference external" href="alphabeta-doc.pdf">alphabeta-doc.pdf</a>.</p> </div> <div class="section" id="implementation"> <h1>Implementation</h1> <div class="section" id="requirements"> <h2>Requirements</h2> -<p>This package extends the <a class="reference external" href="textalpha.sty.html">textalpha</a> package:</p> -<pre class="literal-block">\RequirePackage{textalpha} -</pre> -<p><cite>textalpha</cite> depends on <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a> and (with 8-bit TeX) recommends -<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a>.</p> +<p>This package extends the <a class="reference external" href="textalpha.sty.html">textalpha</a> package. +Package options are passed on to <cite>textalpha</cite>:</p> +<pre class="literal-block">\RequirePackageWithOptions{textalpha}</pre> +<p>Just like <cite>alphabeta</cite>, <cite>textalpha</cite> is part of <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>.</p> <p>This package requires the <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex">e-TeX</a> extensions (i.e. a not too old TeX -distribution) for the <tt class="literal">\ifdefined</tt> test.</p> -<p>It uses the <tt class="literal">\TextOrMath</tt> test from the <a class="reference external" href="http://www.ctan.org/pkg/fixltx2e">fixltx2e</a> standard LaTeX +distribution) for the <span class="docutils literal">\ifdefined</span> test.</p> +<p>It uses the <span class="docutils literal">\TextOrMath</span> test from the <a class="reference external" href="http://www.ctan.org/pkg/fixltx2e">fixltx2e</a> standard LaTeX package:</p> -<pre class="literal-block">\RequirePackage{fixltx2e} -</pre> +<pre class="literal-block">% fixltx2e is not required with releases after 2015 +%\RequirePackage{fixltx2e}</pre> </div> <div class="section" id="postpone-the-re-definitions"> <h2>Postpone the re-definitions</h2> <p>To prevent other packages overwriting the re-defined commands we postpone the next steps until the start of the document body:</p> -<pre class="literal-block">\AtBeginDocument{ -</pre> +<pre class="literal-block">\AtBeginDocument{</pre> </div> <div class="section" id="save-math-macros"> <h2>Save math macros</h2> @@ -841,9 +668,11 @@ the next steps until the start of the document body:</p> \let\mathgamma\gamma \let\mathdelta\delta \let\mathepsilon\epsilon +\let\mathvarepsilon\varepsilon \let\mathzeta\zeta \let\matheta\eta \let\maththeta\theta +\let\mathvartheta\vartheta \let\mathiota\iota \let\mathkappa\kappa \let\mathlambda\lambda @@ -851,27 +680,50 @@ the next steps until the start of the document body:</p> \let\mathnu\nu \let\mathxi\xi \let\mathpi\pi +\let\mathvarpi\varpi \let\mathrho\rho +\let\mathvarrho\varrho \let\mathsigma\sigma \let\mathvarsigma\varsigma +\let\mathfinalsigma\varsigma \let\mathtau\tau \let\mathupsilon\upsilon \let\mathphi\phi +\let\mathvarphi\varphi \let\mathchi\chi \let\mathpsi\psi \let\mathomega\omega % ``\digamma`` is defined by amsmath, provide a fallback \providecommand*{\digamma}{\textit{\textdigamma}} \let\mathdigamma\digamma -</pre> + +% \varkappa and \varbeta are defined by some math packages +\ifdefined\varbeta + \let\mathvarbeta\varbeta +\fi +\ifdefined\varkappa % e.g. with newtxmath + \let\mathvarkappa\varkappa +\fi</pre> </div> <div class="section" id="commands-to-access-greek-letters-by-name"> <h2>Commands to access Greek letters by name</h2> <p>For letters defined in math mode, the commands work in both, text and math.</p> <p>Some Greek letters look identical to Latin letters and can therefore not be used as variable symbols in math formulas. These letters are not defined in -TeX’s math mode, we provide an alias to the corrsponding <tt class="literal"><span class="pre">\text...</span></tt> +TeX’s math mode, we provide an alias to the corrsponding <span class="docutils literal"><span class="pre">\text...</span></span> command.</p> +<p>Mathematical notation distinguishes <a class="reference internal" href="#variant-shape-symbols">variant shape symbols</a> 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 syntactic meaning in Greek text and are not given code-points in the LGR +encoding while Unicode defines separate code points for the symbol variants.</p> +<p>Greek Alphabet:</p> +<p>Macros keep their meaning in mathematical mode (i.e. use the same shape as +without this package) and refer to GREEK LETTER … in text. For +<span class="docutils literal">\epsilon</span> and <span class="docutils literal">phi</span>, this means that the selected symbol variant +differs in text vs. math mode. Use <span class="docutils literal">\varepsilon</span> and <span class="docutils literal">\varphi</span> (see +section <a href="#id1"><span class="problematic" id="id2">`variant symbols`_</span></a> below) to select the GREEK LETTER …” in both, +text and math mode.</p> <pre class="literal-block">\providecommand*{\Alpha}{\textAlpha} \providecommand*{\Beta}{\textBeta} \renewcommand*{\Gamma}{\TextOrMath{\textGamma}{\mathGamma}} @@ -901,7 +753,7 @@ command.</p> \renewcommand*{\beta}{\TextOrMath{\textbeta}{\mathbeta}} \renewcommand*{\gamma}{\TextOrMath{\textgamma}{\mathgamma}} \renewcommand*{\delta}{\TextOrMath{\textdelta}{\mathdelta}} -\renewcommand*{\epsilon}{\TextOrMath{\textepsilon}{\mathepsilon}} +\renewcommand*{\epsilon}{\TextOrMath{\textepsilon}{\mathepsilon}} % ε/ϵ \renewcommand*{\zeta}{\TextOrMath{\textzeta}{\mathzeta}} \renewcommand*{\eta}{\TextOrMath{\texteta}{\matheta}} \renewcommand*{\theta}{\TextOrMath{\texttheta}{\maththeta}} @@ -919,11 +771,10 @@ command.</p> \providecommand*{\finalsigma}{\varsigma} \renewcommand*{\tau}{\TextOrMath{\texttau}{\mathtau}} \renewcommand*{\upsilon}{\TextOrMath{\textupsilon}{\mathupsilon}} -\renewcommand*{\phi}{\TextOrMath{\textphi}{\mathphi}} +\renewcommand*{\phi}{\TextOrMath{\textphi}{\mathphi}} % ϕ/φ \renewcommand*{\chi}{\TextOrMath{\textchi}{\mathchi}} \renewcommand*{\psi}{\TextOrMath{\textpsi}{\mathpsi}} -\renewcommand*{\omega}{\TextOrMath{\textomega}{\mathomega}} -</pre> +\renewcommand*{\omega}{\TextOrMath{\textomega}{\mathomega}}</pre> <div class="section" id="archaic-letters"> <h3>Archaic letters</h3> <pre class="literal-block">\renewcommand*{\digamma}{\TextOrMath{\textdigamma}{\mathdigamma}} % ϝ @@ -935,15 +786,51 @@ command.</p> \providecommand*{\Qoppa}{\textQoppa} % Ϙ (archaic Koppa) \providecommand*{\Stigma}{\textStigma} % Ϛ (in some fonts ϹΤ ligature) \providecommand*{\Sampi}{\textSampi} % Ϡ -\providecommand*{\sampi}{\textsampi} % ϡ -</pre> +\providecommand*{\sampi}{\textsampi} % ϡ</pre> +</div> +<div class="section" id="variant-shape-symbols"> +<h3>Variant shape symbols</h3> +<p>TeX’s concept of “standard” vs. “variant” math symbols does not map to the +distinction between GREEK LETTER … vs. GREEK … SYMBOL in the Unicode +standard (see <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a>).</p> +<p>The <span class="docutils literal"><span class="pre">\...symbol</span></span> macros select the GREEK … SYMBOL in both, text and +math mode. For <span class="docutils literal">\epsilonsymbol</span> and <span class="docutils literal">\phisymbol</span> this is the default +shape in math mode. The <span class="docutils literal"><span class="pre">\var...</span></span> macros select the shape used by TeX +math (or, if not supported, the SYMBOL shape):</p> +<pre class="literal-block">% ..symbol == var.. +\renewcommand*{\varpi}{\TextOrMath{\textpisymbol}{\mathvarpi}} % ϖ +\providecommand*{\pisymbol}{\varpi} % ϖ +\renewcommand*{\varrho}{\TextOrMath{\textrhosymbol}{\mathvarrho}} % ϱ +\providecommand*{\rhosymbol}{\TextOrMath{\textrhosymbol}{\mathvarrho}} % ϱ +\renewcommand*{\vartheta}{\TextOrMath{\textthetasymbol}{\mathvartheta}} % ϑ +\providecommand*{\thetasymbol}{\vartheta} % ϑ +% ..symbol != var.. +\renewcommand*{\varepsilon}{\TextOrMath{\textepsilon}{\mathvarepsilon}} % ε +\providecommand*{\epsilonsymbol}{\TextOrMath{\textepsilonsymbol}{\mathepsilon}} % ϵ +\renewcommand*{\varphi}{\TextOrMath{\textphi}{\mathvarphi}} % φ +\providecommand*{\phisymbol}{\TextOrMath{\textphisymbol}{\mathphi}} % ϕ +% only text (in standard 8-bit TeX, may be defined with additional packages): +\ifdefined\mathvarbeta + \renewcommand*{\varbeta}{\TextOrMath{\textbetasymbol}{\mathvarbeta}} % ϐ +\else + \providecommand*{\varbeta}{\textbetasymbol} +\fi +\providecommand*{\betasymbol}{\varbeta} +\ifdefined\mathvarkappa % ϰ + \renewcommand*{\varkappa}{\TextOrMath{\textkappasymbol}{\mathvarkappa}} +\else + \providecommand*{\varkappa}{\textkappasymbol} +\fi +\providecommand*{\kappasymbol}{\varkappa} +% \Theta/\varTheta are not a symbol variants but upright/italic shape of Theta +\providecommand*{\Thetasymbol}{\textThetasymbol} % ϴ</pre> </div> </div> <div class="section" id="textcompositecommands-for-the-generic-macros"> <h2>TextCompositeCommands for the generic macros</h2> <p>The NFSS TextComposite mechanism looks for the next token without expanding -it. In order to let compositions like <tt class="literal"><span class="pre">\ensuregreek{\'\Alpha}</span></tt> or -<tt class="literal"><span class="pre">\ensuregreek{\>"\alpha}</span></tt> work as expected we define TextComposites with the +it. In order to let compositions like <span class="docutils literal"><span class="pre">\ensuregreek{\'\Alpha}</span></span> or +<span class="docutils literal"><span class="pre">\ensuregreek{\>"\alpha}</span></span> work as expected we define TextComposites with the <cite>letter name commands</cite>. (Composition only works if the active font encoding is LGR).</p> <pre class="literal-block">\ifdefined\XeTeXrevision @@ -954,64 +841,74 @@ is LGR).</p> % \expandafter\endinput % "return" \else % 8-bit TeX \input{alphabeta-lgr.def} -\fi\fi -</pre> +\fi\fi</pre> </div> <div class="section" id="re-definition-for-greek-unicode-input-in-math-mode"> <h2>Re-definition for Greek Unicode input in math mode</h2> -<p>Check with <tt class="literal">\ifdefined</tt> for the definition of -<tt class="literal">\DeclareUnicodeCharacter</tt>. In contrast to <tt class="literal">\@ifdefined</tt>, this works +<p>Check with <span class="docutils literal">\ifdefined</span> for the definition of +<span class="docutils literal">\DeclareUnicodeCharacter</span>. In contrast to <span class="docutils literal">\@ifdefined</span>, this works without side-effects. It makes the package dependent on the <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex">e-TeX</a> -extensions but theses are standard in all current TeX distributions anyway.</p> +extensions but these are standard in all current TeX distributions anyway.</p> <p>Map Greek characters that are also defined in math mode to the generic macros:</p> <pre class="literal-block">\ifdefined\DeclareUnicodeCharacter - \DeclareUnicodeCharacter{0393}{\Gamma} % Γ - \DeclareUnicodeCharacter{0394}{\Delta} % Δ - \DeclareUnicodeCharacter{0398}{\Theta} % Θ - \DeclareUnicodeCharacter{039B}{\Lambda} % Λ - \DeclareUnicodeCharacter{039E}{\Xi} % Ξ - \DeclareUnicodeCharacter{03A0}{\Pi} % Π - \DeclareUnicodeCharacter{03A3}{\Sigma} % Σ - \DeclareUnicodeCharacter{03A5}{\Upsilon} % Υ - \DeclareUnicodeCharacter{03A6}{\Phi} % Φ - \DeclareUnicodeCharacter{03A8}{\Psi} % Ψ - \DeclareUnicodeCharacter{03A9}{\Omega} % Ω - - \DeclareUnicodeCharacter{03B1}{\alpha} % α - \DeclareUnicodeCharacter{03B2}{\beta} % β - \DeclareUnicodeCharacter{03B3}{\gamma} % γ - \DeclareUnicodeCharacter{03B4}{\delta} % δ - \DeclareUnicodeCharacter{03B5}{\epsilon} % ε - \DeclareUnicodeCharacter{03B6}{\zeta} % ζ - \DeclareUnicodeCharacter{03B7}{\eta} % η - \DeclareUnicodeCharacter{03B8}{\theta} % θ - \DeclareUnicodeCharacter{03B9}{\iota} % ι - \DeclareUnicodeCharacter{03BA}{\kappa} % κ - \DeclareUnicodeCharacter{03BB}{\lambda} % λ - \DeclareUnicodeCharacter{03BC}{\mu} % μ - \DeclareUnicodeCharacter{03BD}{\nu} % ν - \DeclareUnicodeCharacter{03BE}{\xi} % ξ - \DeclareUnicodeCharacter{03C0}{\pi} % π - \DeclareUnicodeCharacter{03C1}{\rho} % ρ - \DeclareUnicodeCharacter{03C2}{\varsigma} % ς - \DeclareUnicodeCharacter{03C3}{\sigma} % σ - \DeclareUnicodeCharacter{03C4}{\tau} % τ - \DeclareUnicodeCharacter{03C5}{\upsilon} % υ - \DeclareUnicodeCharacter{03C6}{\phi} % φ - \DeclareUnicodeCharacter{03C7}{\chi} % χ - \DeclareUnicodeCharacter{03C8}{\psi} % ψ - \DeclareUnicodeCharacter{03C9}{\omega} % ω - - \DeclareUnicodeCharacter{03DD}{\digamma} % ϝ -\fi -</pre> -<pre class="literal-block">} % close the \AtBeginDocument macro -</pre> + \DeclareUnicodeCharacter{0393}{\Gamma} % Γ + \DeclareUnicodeCharacter{0394}{\Delta} % Δ + \DeclareUnicodeCharacter{0398}{\Theta} % Θ + \DeclareUnicodeCharacter{039B}{\Lambda} % Λ + \DeclareUnicodeCharacter{039E}{\Xi} % Ξ + \DeclareUnicodeCharacter{03A0}{\Pi} % Π + \DeclareUnicodeCharacter{03A3}{\Sigma} % Σ + \DeclareUnicodeCharacter{03A5}{\Upsilon} % Υ + \DeclareUnicodeCharacter{03A6}{\Phi} % Φ + \DeclareUnicodeCharacter{03A8}{\Psi} % Ψ + \DeclareUnicodeCharacter{03A9}{\Omega} % Ω + + \DeclareUnicodeCharacter{03B1}{\alpha} % α + \DeclareUnicodeCharacter{03B2}{\beta} % β + \DeclareUnicodeCharacter{03B3}{\gamma} % γ + \DeclareUnicodeCharacter{03B4}{\delta} % δ + \DeclareUnicodeCharacter{03B5}{\varepsilon} % ε textepsilon/varepsilon + \DeclareUnicodeCharacter{03B6}{\zeta} % ζ + \DeclareUnicodeCharacter{03B7}{\eta} % η + \DeclareUnicodeCharacter{03B8}{\theta} % θ + \DeclareUnicodeCharacter{03B9}{\iota} % ι + \DeclareUnicodeCharacter{03BA}{\kappa} % κ + \DeclareUnicodeCharacter{03BB}{\lambda} % λ + \DeclareUnicodeCharacter{03BC}{\mu} % μ + \DeclareUnicodeCharacter{03BD}{\nu} % ν + \DeclareUnicodeCharacter{03BE}{\xi} % ξ + \DeclareUnicodeCharacter{03C0}{\pi} % π + \DeclareUnicodeCharacter{03C1}{\rho} % ρ + \DeclareUnicodeCharacter{03C2}{\varsigma} % ς + \DeclareUnicodeCharacter{03C3}{\sigma} % σ + \DeclareUnicodeCharacter{03C4}{\tau} % τ + \DeclareUnicodeCharacter{03C5}{\upsilon} % υ + \DeclareUnicodeCharacter{03C6}{\varphi} % φ textphi/varphi + \DeclareUnicodeCharacter{03C7}{\chi} % χ + \DeclareUnicodeCharacter{03C8}{\psi} % ψ + \DeclareUnicodeCharacter{03C9}{\omega} % ω + + \DeclareUnicodeCharacter{03D1}{\thetasymbol} % ϑ + \DeclareUnicodeCharacter{03D5}{\phisymbol} % ϕ $\phi$ + \DeclareUnicodeCharacter{03D6}{\pisymbol} % ϖ + \DeclareUnicodeCharacter{03DD}{\digamma} % ϝ + \DeclareUnicodeCharacter{03F1}{\rhosymbol} % ϱ + \DeclareUnicodeCharacter{03F5}{\epsilonsymbol} % ϵ $\epsilon$ + +\fi</pre> +<pre class="literal-block">} % close the \AtBeginDocument macro</pre> <!-- References - - - - - - - - - - --> </div> </div> +<div class="system-messages section"> +<h1>Docutils System Messages</h1> +<div class="system-message" id="id1"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">alphabeta.sty.txt</span>, line 182); <em><a href="#id2">backlink</a></em></p> +<p>Unknown target name: "variant symbols".</p> +</div> +</div> </div> </body> </html> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf Binary files differindex 6a8b12701de..4690e1f9418 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.pdf Binary files differindex a8c5d5fc1f5..4fc64178b6b 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex index 99a728573f2..8cc2fad5403 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex @@ -2,8 +2,8 @@ % \usepackage{textcomp} \usepackage[unicode,colorlinks=true,linkcolor=blue]{hyperref} \usepackage{bookmark} -\usepackage{parskip} -% \usepackage{booktabs} +% \usepackage{parskip} +\usepackage{booktabs} % 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 @@ -15,177 +15,139 @@ % \setmainfont{DejaVu Serif} % \setsansfont{DejaVu Sans} % \usepackage{libertineotf} -\setmainfont{Linux Libertine O} +% \setmainfont{Linux Libertine O} \setsansfont{Linux Biolinum O} -% \setmainfont{FreeSerif}% +\setmainfont{FreeSerif}% % \setmainfont{Droid Sans} % Declare the font encoding and Greek LICR definitions: \usepackage{textalpha} -% Accent+Unicode character: proof of concept: -\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{α}{ἆ} - - \begin{document} -\title{Greek LICR definitions with XeTeX/LuaTeX} +\title{Font setup for Greek with XeTeX/LuaTeX} \author{Günter Milde} \maketitle +\noindent The file \href{greek-euenc.def.html}{greek-euenc.def} provides support for -Greek LICR macros with XeTeX and LuaTeX. It is automatically loaded by the -\href{textalpha-doc.pdf}{textalpha} and \href{alphabeta-doc.pdf}{alphabeta} -packages as well as \href{http://www.ctan.org/pkg/babel-greek}{babel-greek}, -if the font encoding is set to one of the Unicode font encodings EU1 or EU2 -(usually via the \href{http://www.ctan.org/pkg/fontspec}{fontspec} package -for font setup with LuaTeX and XeTeX). +Greek LICR macros and upcasing of text with XeTeX and LuaTeX. It is +automatically loaded by the \href{textalpha-doc.pdf}{\emph{textalpha}} and +\href{alphabeta-doc.pdf}{\emph{alphabeta}} packages as well as +\href{http://www.ctan.org/pkg/babel-greek}{\emph{babel-greek}}, if the font +encoding is set to one of the Unicode font encodings EU1 or EU2 (usually via +the \href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}} package for +font setup with LuaTeX and XeTeX). + +\tableofcontents + +\section{Requirements} + +\subsection{euenc} + The \href{http://www.ctan.org/pkg/euenc}{\emph{euenc}} package sets up the + EU1 and EU2 unicode font encodings for XeTeX and LuaTeX respectively. + However, it does not include support for the Greek script. It is normally + loaded by \href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}}. +\subsection{suitable Unicode fonts} With the XeTeX or LuaTeX engines, the user must ensure that the selected font contains Greek glyphs (the default Latin Modern fonts have only capital -Greek letters) --- there are no warnings for missing glyphs but empty spaces -in the output document. Examples for suitable fonts are the “Deja Vu” or the -“Linux Libertine” OpenType fonts. +Greek letters). +There are no errors for missing glyphs, just warnings in the log file (but +not the console output) and empty spaces in the output document. -See the source of this document \url{greek-euenc-doc.tex} for a setup and -usage example. +Examples for suitable fonts are the \emph{Deja Vu}, \emph{Free Serif} or +\emph{Linux Libertine} OpenType fonts. -\section{LICR input} +\section{Usage} -LICR macros are a verbose but fail-safe 7-bit ASCII encoding that works -unaltered under both, 8-bit TeX and XeTeX/LuaTeX. Use cases are macro -definitions and generated text. +\texttt{greek-euenc.def} is usually not loaded directly, but by one of +\href{textalpha-doc.pdf}{\emph{textalpha}}, +\href{alphabeta-doc.pdf}{\emph{alphabeta}}, or \emph{babel} (with the +language option \href{http://www.ctan.org/pkg/babel-greek}{greek}). If these +packages are loaded after +\href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}}, Unicode font setup +is amended for use of the Greek script. -The example from \texttt{usage.tex} in \emph{babel-greek} input -using LICR macros: +\section{LICR input} -\begin{quote} - \textTau\'\textiota{} - \textphi\'\texteta\textiota\textfinalsigma\texterotimatiko{} - \<\textIota\textdelta\`\textomega\textnu{} - \>\textepsilon\textnu\texttheta\'\textepsilon\textdelta\textepsilon{} - \textpi\textalpha\~\textiota\textdelta\'\' - \>\textepsilon\textlambda\textepsilon\textupsilon\texttheta\'\textepsilon\textrho\textalpha\textnu\\ - \texttau\`\textalpha\textfinalsigma{} - \textpi\textlambda\texteta\textsigma\'\textiota\textomicron\textnu{} - \textNu\'\textupsilon\textmu\textphi\textalpha\textfinalsigma{} - \textsigma\texttau\textepsilon\textphi\textalpha\textnu\textomicron\~\textupsilon\textsigma\textalpha\textnu{}, - \textSigma\'\textomega\textsigma\texttau\textrho\textalpha\texttau\textepsilon{},\\ - \>\textepsilon\textrho\~\textomega\textnu{} - \'\textalpha\textpi\~\texteta\textlambda\texttheta\textepsilon\textfinalsigma{} - \textepsilon\>\textupsilon\texttheta\'\textupsilon\textfinalsigma\texterotimatiko{} -\end{quote} +The LaTeX internal character representation (LICR) is a verbose but +fail-safe 7-bit ASCII encoding that can be used unaltered under both, 8-bit +TeX and XeTeX/LuaTeX. Use cases are macro definitions and generated text. + +See the source of this document, +\href{greek-euenc-doc.tex}{\texttt{greek-euenc-doc.tex}} for the input used +in the examples below. \subsection{Greek alphabet} Greek letters via LICR macros: +\begin{quote} + \textAlpha{} \textBeta{} \textGamma{} \textDelta{} \textEpsilon{} + \textZeta{} \textEta{} \textTheta{} \textIota{} \textKappa{} + \textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \textPi{} + \textRho{} \textSigma{} \textTau{} \textUpsilon{} \textPhi{} + \textChi{} \textPsi{} \textOmega{} + + \textalpha{} \textbeta{} \textgamma{} \textdelta{} \textepsilon{} + \textzeta{} \texteta{} \texttheta{} \textiota{} \textkappa{} + \textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \textpi{} + \textrho{} \textsigma{} \texttau{} \textupsilon{} + \textphi{} \textchi{} \textpsi{} \textomega{} +\end{quote} +The small sigma is set with a different +glyph if it ends a word: +\begin{quote} + \textsigma{} textsigma\\ + \textfinalsigma{} textfinalsigma or textvarsigma +\end{quote} +The \verb|\textautosigma| macro/feature, which automatically chooses the +glyph according to the position, is not implemented for Unicode fonts. -\textAlpha{} \textBeta{} \textGamma{} \textDelta{} \textEpsilon{} -\textZeta{} \textEta{} \textTheta{} \textIota{} \textKappa{} -\textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \textPi{} -\textRho{} \textSigma{} \textTau{} \textUpsilon{} \textPhi{} -\textChi{} \textPsi{} \textOmega{} +\subsection{Diacritics} -\textalpha{} \textbeta{} \textgamma{} \textdelta{} \textepsilon{} -\textzeta{} \texteta{} \texttheta{} \textiota{} \textkappa{} -\textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \textpi{} -\textrho{} \textsigma{} \texttau{} \textupsilon{} -\textphi{} \textchi{} \textpsi{} \textomega{} +Greek diacritics can be input by named macro or symbol macro: +\begin{quote} + \acctonos\textalpha \'\textalpha{} \acctonos x\'x + \accvaria\textalpha \`\textalpha{} \accvaria x\`x + \accdialytika\textiota \"\textiota{} \accdialytika x\"x + \accperispomeni\textalpha \~\textalpha{} \accperispomeni x\~x + \accpsili\textalpha \>\textalpha{} \accpsili x\>x + \accdasia\textalpha \<\textalpha{} \accdasia x\<x +\end{quote} +Up-to-date XeTeX/LuaTeX (or fontspec?) normalizes base letter and +combining diacritics to the corresponding pre-composed character if such a +mapping is defined in the Unicode standard: -The small sigma is set with a different -glyph if it ends a word: +\begin{quote} + \acctonos α \'α + \accvaria α \`α + \accdialytika ι \"ι + \accperispomeni α \~α + \accpsili α \>α + \accdasia α \<α +\end{quote} -\begin{itemize} - \item[\textsigma] textsigma - \item[\textfinalsigma] textfinalsigma or textvarsigma -\end{itemize} -In the Latin transcription defined by the 8-bit LGR font encoding, the -letter `s' stands for \verb|\textautosigma| which automatically chooses the -glyph according to the position. This macro/feature is not implemented for -Unicode fonts. +\subsubsection{perispomeni vs. tilde} -\subsection{Additional Greek symbols} +The ``named'' \verb|\accperispomeni| macro uses COMBINING GREEK PERISPOMENI, +while the standard tilde-accent macro \verb|\~| uses the COMBINING TILDE +which is not normalized to GREEK LETTER ... WITH PERISPOMENI +characters. -\textKoppa{} textKoppa \\ % Ϟ -\textkoppa{} textkoppa \\ % ϟ -\textqoppa{} textqoppa (archaic koppa) \\ % ϙ -\textQoppa{} textQoppa (archaic Koppa) \\ % Ϙ -\textstigma{} textstigma \\ % ϛ -% \textvarstigma{} textvarstigma \\ % no separate Unicode character -\textStigma{} textStigma (Sigma-Tau-Ligature in CB-fonts)% -\footnote{the name “stigma” originally applied to a medieval sigma-tau - ligature, whose shape was confusingly similar to the cursive - digamma} \\ % Ϛ -\textsampi{} textsampi \\ % ϡ -\textSampi{} textSampi \\ % Ϡ -\textdigamma{} textdigamma \\ % ϝ (\digamma used by amsmath!) -\textDigamma{} textDigamma \\ % Ϝ -% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals -\textdexiakeraia{} textdexiakeraia \\ % ʹ -\textaristerikeraia{} textaristerikeraia \\ % ͵ +Composite definitions for \verb|\~| select the pre-composed character: + +\begin{quote} + \~α = ᾶ, \~η = ῆ, \~ι = ῖ, \~υ = ῦ, \~ω = ῶ +\end{quote} -Mathematical notation uses variant shapes for pi, rho, theta, epsilon, phi, -beta, kappa, and Theta as additional symbols. These variations have no -syntactic meaning in Greek text and are not given separate code-points in -the LGR text encoding. Some text fonts use the variant shapes in place of -the “regular” ones as a stylistic choice. - -TeX's concept of “standard” vs. “variant” symbols does not map to the -distinction between “Greek Letter ...” vs. “Greek Symbol ...” in the -Unicode standard: - -\begin{tabular}{cccc} -\hline -\multicolumn{2}{c}{TeX math} & \multicolumn{2}{c}{Unicode} \\ -symbol & var symbol & “letter” & “symbol” \\ -\hline -$\pi$ & $\varpi$ & π & ϖ \\ -$\rho$ & $\varrho$ & ρ & ϱ \\ -$\theta$ & $\vartheta$ & θ & ϑ \\ -\hline -$\epsilon$ & $\varepsilon$ & ε & ϵ \\ -$\phi$ & $\varphi$ & φ & ϕ \\ -\hline -$\beta$ & \emph{missing} & β & ϐ \\ -$\kappa$ & \emph{missing} & κ & ϰ \\ -$\Theta$ & \emph{missing} & Θ & ϴ \\ -\hline -\end{tabular} -\subsection{Diacritics} +\subsubsection{combined diacritics} -Greek diacritics can be input by named macro or symbol macro. Named macros -are defined in xunicode-greek.sty for \verb|\LastDeclaredEncoding| (here -\LastDeclaredEncoding). - -\acctonos\textalpha \'\textalpha{} \acctonos x \'x -\accvaria\textalpha \`\textalpha{} \accvaria x \`x -\accdialytika\textiota \"\textiota{} \accdialytika x \"x -\accperispomeni\textalpha \~\textalpha{} \accperispomeni x \~x -\accpsili\textalpha \>\textalpha{} \accpsili x \>x -\accdasia\textalpha \<\textalpha{} \accdasia x \<x - -There are currently no definitions for accent macros combined with literal -Unicode characters. Combining diacritical characters are used in the output. - -\acctonos α \'α -\accvaria α \`α -\accdialytika ι \"ι -\accperispomeni α \~α -\accpsili α \>α -\accdasia α \<α - -Please mail a feature request if there is demand for definitions selecting -precomposed characters. -As proof of concept, this document defines a composite command for -alpha with psili and perispomeni. Compare \<~α with \>~α. - -Composite commands for combined diacritics are defined in -“greek-fontenc.def”, also for the \verb|\LastDeclaredEncoding|. There are -composite definitions for all precomposed characters, the fallback -definition uses combining characters: +Combined accents are defined using combining diacritical characters. +\begin{quote} \accdialytikatonos\textiota{} \"'\textiota{} \"\'\textiota{} \accdialytikatonos x \"'x \"\'x \accdialytikavaria\textiota{} \"`\textiota{} \"\`\textiota{} @@ -206,182 +168,414 @@ definition uses combining characters: \accpsilivaria x \>`x \>\`x \accpsiliperispomeni\textiota{} \~>\textiota{} \~\>\textiota{} \accpsiliperispomeni x \~>x \~\>x +\end{quote} +Composite diacritics overlap when they are not normalized to a pre-composed +character. However, this is not a major problem in the real world, as +pre-composed characters exist in Unicode for all letters that are actually +used in (ancient, polytonic or monotonoc) Greek. -Problems: Composite diacritics with breathings overlap when set using two -combining characters (in the tested fonts). -Upcasing with \verb|\MakeUppercase| drops diacritics (except -dialytika and sub-iota): +\subsubsection{sub-iota} -\MakeUppercase{ -\accdialytikatonos\textiota \"'\textiota{} \accdialytikatonos x \"'x -\accdialytikavaria\textiota \"`\textiota{} \accdialytikavaria x \"`x -\accdialytikaperispomeni\textiota \~"\textiota{} \accdialytikaperispomeni x \~"x -} +The sub-iota (ypogegrammeni/prosgegrammeni) is input after the base letter. -\MakeUppercase{ -\accdasiaoxia\textiota \<'\textiota{} \accdasiaoxia x \<'x -\accdasiavaria\textiota \<`\textiota{} \accdasiavaria x \<`x -\accdasiaperispomeni\textiota \~<\textiota{} \accdasiaperispomeni x \~<x -} -\MakeUppercase{ -\accpsilioxia\textiota \>'\textiota{} \accpsilioxia x \>'x -\accpsilivaria\textiota \>`\textiota{} \accpsilivaria x \>`x -\accpsiliperispomeni\textiota \~>\textiota{} \accpsiliperispomeni x \~>x +\begin{quote} +\verb|\prosgegrammeni| sets a (spacing) GREEK PROSGEGRAMMENI:\\ + \textAlpha\prosgegrammeni{} K\prosgegrammeni{} + +\verb|\ypogegrammeni| sets a COMBINING GREEK YPOGEGRAMMENI. A +Greek capital letter followed by COMBINING GREEK YPOGEGRAMMENI is normalized +to the corresponding GREEK CAPITAL LETTER ... WITH [.. AND] PROSGEGRAMMENI), +if a mapping exists in the Unicode standard: + \textalpha\ypogegrammeni{} k\ypogegrammeni{} + \textAlpha\ypogegrammeni{} K\ypogegrammeni{} +\end{quote} + +\subsection{Additional Greek symbols} + +\subsubsection{symbols for Greek numbers} + +\begin{quote} +\textkoppa{} textkoppa \\ % ϟ +\textKoppa{} textKoppa \\ % Ϟ +\textqoppa{} textqoppa (archaic koppa) \\ % ϙ +\textQoppa{} textQoppa (archaic Koppa) \\ % Ϙ +\textstigma{} textstigma \\ % ϛ +% \textvarstigma{} textvarstigma \\ % no separate Unicode character +\textStigma{} textStigma (Sigma-Tau-Ligature in CB-fonts)% +\footnote{the name “stigma” originally applied to a medieval sigma-tau + ligature, whose shape was confusingly similar to the cursive + digamma} \\ % Ϛ +\textsampi{} textsampi \\ % ϡ +\textSampi{} textSampi \\ % Ϡ +\textdigamma{} textdigamma \\ % ϝ (\digamma used by amsmath!) +\textDigamma{} textDigamma \\ % Ϝ +% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals +\textdexiakeraia{} textdexiakeraia \\ % ʹ +\textaristerikeraia{} textaristerikeraia \\ % ͵ +\end{quote} + +\subsubsection{symbol variants} + +Mathematical notation uses variant shapes of some Greek letters as +additional symbols. The variations have no syntactic meaning in Greek text +and text fonts may use the variant shapes in place of the “regular” ones as +a stylistic choice. + +Unicode defines separate code points for the symbol variants. TeX supports +some of the variant shape symbols in mathematical mode, but its concept of +“standard” vs. “variant” symbols differs from the distinction between +“GREEK LETTER ...” vs. “GREEK ... SYMBOL” in the Unicode standard (see +Table \ref{tab:symbol-variants}). + +\begin{table}[tbp] + \centering + \begin{tabular}{cccc} + \hline + \multicolumn{2}{c}{TeX math} & \multicolumn{2}{c}{Unicode} \\ + symbol & var symbol & “letter” & “symbol” \\ + \hline + $\pi$ & $\varpi$ & π & ϖ \\ + $\rho$ & $\varrho$ & ρ & ϱ \\ + $\theta$ & $\vartheta$ & θ & ϑ \\ + \hline + $\epsilon$ & $\varepsilon$ & ε & ϵ \\ + $\phi$ & $\varphi$ & φ & ϕ \\ + \hline + $\beta$ & \emph{missing} & β & ϐ \\ + $\kappa$ & \emph{missing} & κ & ϰ \\ + $\Theta$ & \emph{missing} & Θ & ϴ \\ + \hline + \end{tabular} + \caption{Greek symbol variants in TeX and Unicode} + \label{tab:symbol-variants} +\end{table} + +\texttt{greek-euenc.def} defines three TextCommands for each of these +letters: +\begin{quote} + \verb|\text<name>| selects the Unicode GREEK LETTER ... variant, + + \verb|\text<name>symbol| selects the Unicode + GREEK ... SYMBOL variant, + + \verb|\textvar<name>| selects the variant + shape according to TeX' mathematical mode +\end{quote} +See Table \ref{tab:symbol-variant-macros} for the full list. The +\href{alphabeta-doc.pdf}{\emph{alphabeta}} package defines short macros that +work in text and math mode. + +\begin{table}[tbp] + \centering + \begin{tabular}{lclc} + \hline + \multicolumn{2}{c}{text} & \multicolumn{2}{c}{mathematics} \\ + macro & output & macro & output \\ + \hline + \verb$\textpi$ & \textpi & \verb$\pi$ & $\pi$ \\ + \verb$\textvarpi$ & \textvarpi & \verb$\varpi$ & $\varpi$ \\ + \verb$\textpisymbol$ & \textpisymbol & & \\ + \hline + \verb$\textrho$ & \textrho & \verb$\rho$ & $\rho$ \\ + \verb$\textvarrho$ & \textvarrho & \verb$\varrho$ & $\varrho$ \\ + \verb$\textrhosymbol$ & \textrhosymbol & & \\ + \hline + \verb$\texttheta$ & \texttheta & \verb$\theta$ & $\theta$ \\ + \verb$\textvartheta$ & \textvartheta & \verb$\vartheta$ & $\vartheta$ \\ + \verb$\textthetasymbol$ & \textthetasymbol & & \\ + \hline + \verb$\textepsilon$ & \textepsilon & \verb$\epsilon$ & $\epsilon$ \\ + \verb$\textvarepsilon$ & \textvarepsilon & \verb$\varepsilon$ & $\varepsilon$ \\ + \verb$\textepsilonsymbol$ & \textepsilonsymbol & & \\ + \hline + \verb$\textphi$ & \textphi & \verb$\phi$ & $\phi$ \\ + \verb$\textvarphi$ & \textvarphi & \verb$\varphi$ & $\varphi$ \\ + \verb$\textphisymbol$ & \textphisymbol & & \\ + \hline + \verb$\textbeta$ & \textbeta & \verb$\beta$ & $\beta$ \\ + \verb$\textvarbeta$ & \textvarbeta & \emph{missing} & \\ + \verb$\textbetasymbol$ & \textbetasymbol & & \\ + \hline + \verb$\textkappa$ & \textkappa & \verb$\kappa$ & $\kappa$ \\ + \verb$\textvarkappa$ & \textvarkappa & \emph{missing} & \\ + \verb$\textkappasymbol$ & \textkappasymbol & & \\ + \hline + \verb$\textTheta$ & \textTheta & \verb$\Theta$ & $\Theta$ \\ + \verb$\textvarTheta$ & \textvarTheta & \emph{missing} & \\ + \verb$\textThetasymbol$ & \textThetasymbol & & \\ + \hline + \end{tabular} + \caption{Macros for Greek symbol variants} + \label{tab:symbol-variant-macros} +\end{table} + +\subsubsection{Ancient Greek Numbers} + +Ancient Greek Numbers are missing in most fonts (including Libertine and +Deja Vu). The “FreeSerif” font works fine: +\begin{quote} +\textpentedeka % GREEK ACROPHONIC ATTIC FIFTY +\textpentehekaton % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\textpenteqilioi % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +\end{quote} +If the LGR font encoding is loaded via «fontenc» in the document preamble, +Ancient Greek Numbers (as well as any other character) from LGR encoded +8-bit TeX fonts can be used after a font-encoding switch. babel-greek +defines the \verb|\textgreek| command for this purpose. +\providecommand*{\textgreek}[1]{\leavevmode{% + \fontfamily{cmr}\fontencoding{LGR}\selectfont#1}% +} +\begin{quote} +\textgreek{ +\textpentedeka % GREEK ACROPHONIC ATTIC FIFTY +\textpentehekaton % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\textpenteqilioi % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND } +\end{quote} + +\section{Latin transcription} + +The Latin transcription known from LGR encoded 8-bit fonts% +\footnote{ See the \href{http://www.ctan.org/pkg/teubner}{teubner} package +or the file usage.pdf from the +\href{http://www.ctan.org/pkg/babel-greek}{\emph{babel-greek}} package for a +description.} +does not work with Unicode fonts. + +Is is possible to set up LGR encoded fonts parallel to Unicode fonts (see +the preamble of the source file \url{greek-euenc-doc.tex} for an example). +The \verb|\textgreek| macro can then be used for the input of Greek letters +via the \emph{Latin transcription}, e.g. «logos» becomes «\textgreek{logos}» +and «\verb|\>aupn\'ia|» becomes «\textgreek{\>aupn\'ia}». + +Mark that you cannot use Unicode input with LGR encoded fonts except when +running in 8-bit compatibility mode. +LICR macros work in both, Unicode font encoding and LGR: compare + \>\textIota\textalpha\textnu\textomicron\textupsilon\textalpha + \textrho\acctonos\textiota\textomicron\textupsilon{} +(Unicode font set up via fontspec) vs. +\textgreek{\>\textIota\textalpha\textnu\textomicron\textupsilon\textalpha + \textrho\acctonos\textiota\textomicron\textupsilon} +(LGR-encoded 8-bit font set up via NFSS commands). + + +\section{UPPERCASE and lowercase} -However, when the tonos, varia, and perispomeni accents are input using the -symbol macros (\verb|\' \` \~|), they behave like standard accents with -XeTeX/LuaTeX. If these accents should be dropped by MakeUppercase, they must -be input as named macro: +Capital Greek letters have Greek diacritics (except the dialytika and +sub-iota) to the left (instead of above) and drop them if text is set in +UPPERCASE, e.g. +\ensuregreek{μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}}. +The uccode/lccode corrections (taken from Apostolos Syropoulos xgreek +package) ensure dropping of accents with \verb|\MakeUppercase| for literal +Unicode characters. + +@uclclist additions ensure that upcasing also drops Greek diacritics. +However, when the tonos, varia, and perispomeni accents +are input using the symbol macros (\verb|\' \` \~|), this does not work, as +they cannot be distinguished from Latin acute, grave, and tilde accents.% +\footnote{This might be fixed with \textbackslash accACUTE, + \textbackslash accGRAVE, and \textbackslash accTILDE definitions + with corresponding @uclclist entries and composite definitions.} +If these accents should be dropped by MakeUppercase, they must be input as +named macro: + +\begin{quote} +\acctonos\textalpha \'\textalpha{} \acctonos a\'a +\accvaria\textalpha \`\textalpha{} \accvaria a\`a +$\mapsto$ \MakeUppercase{ -\acctonos\textalpha \'\textalpha{} \acctonos x\'x -\accvaria\textalpha \`\textalpha{} \accvaria x\`x -\accperispomeni\textalpha \~\textalpha{} \accperispomeni x\~x +\acctonos\textalpha \'\textalpha{} \acctonos a\'a +\accvaria\textalpha \`\textalpha{} \accvaria a\`a } +\end{quote} + +\subsubsection{hiatus} + +Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if placed on +the first vowel of a diphtong (άι, άυ, έι, ἄι, ἄυ, ἔι). A dialytika must be +placed on the second vowel if they are dropped. + +The «hiatus» feature works with macro input: +\begin{quote} + % from teubner: άυλος/ΑΫΛΟΣ + \acctonos\textalpha\textupsilon λος $\mapsto$ + \MakeUppercase{\acctonos\textalpha\textupsilon λος}, + \accpsilioxia\textalpha\textupsilon λος $\mapsto$ + \MakeUppercase{\accpsilioxia\textalpha\textupsilon λος}, + + % from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ + m\acctonos\textalpha\textiota να $\mapsto$ + \MakeUppercase{m\acctonos\textalpha\textiota να}, + % from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema + % κέικ, ἀυπνία/αϋπνία + \textkappa\acctonos\textepsilon\textiota\textkappa $\mapsto$ + \MakeUppercase{\textkappa\acctonos\textepsilon\textiota\textkappa}, + \accpsili\textalpha\textupsilon πνία $\mapsto$ + \MakeUppercase{\accpsili\textalpha\textupsilon πνία}. +\end{quote} + +It does not work (yet?) with Unicode literals: +\begin{quote} + άι, άυ, έι, ἄι, ἄυ, ἔι $\mapsto$ \MakeUppercase{άι, άυ, έι, ἄι, ἄυ, ἔι} +\end{quote} + +\section{Character Tables} -The sub-iota is input after the base letter. -Ligature definitions in the 8-bit LGR fonts ensure that precomposed -characters are used. This does not work with Unicode fonts:\footnote{% - When copy/pasting generated output from the “evince” PDF - viewer, the COMBINING GREEK YPOGEGRAMMENI is merged with the base - character. A capital letter + combining ypogegrammeni results in GREEK - CAPITAL LETTER ... WITH [.. AND] PROSGEGRAMMENI). This indicates that - the combining \emph{ypogegrammeni} should also be used together with - capital base letters.} - -\textalpha\ypogegrammeni{} x\ypogegrammeni{} -\textAlpha\prosgegrammeni{} X\prosgegrammeni, -\textAlpha\ypogegrammeni{} X\ypogegrammeni, -see also the \emph{Greek extended} Unicode block below. - -Both, the standard LaTeX and the “xunicode” composite mechanism require -the first part of a composite definition to be a macro requiring one -argument. I.e. selecting pre-defined characters with sub-iota would require -prefix \verb|\accypogegrammeni| and \verb|\accprosgegrammeni| accent -macros and composite definitions for all combination of letters and letters -with diacritic and sub-iota. +The following tables list the Greek Unicode characters. In the input, the +LICR macro is followed by the corresponding literal Unicode character. \subsection{Greek and Coptic Unicode block} -Greek symbols from the Greek and Coptic Unicode block are fully supported: +Seldom used characters that are not part of LGR encoded TeX fonts have no +LICR definition: +\newcommand{\greekandcoptic}{ % NR Unicode Name % babel name, UCS name % 0370 GREEK CAPITAL LETTER HETA % Ͱ % 0371 GREEK SMALL LETTER HETA % ͱ % 0372 GREEK CAPITAL LETTER ARCHAIC SAMPI % Ͳ % 0373 GREEK SMALL LETTER ARCHAIC SAMPI % Ͳ -\textnumeralsigngreek{} % ʹ \anwtonos, \textdexiakeraia -\textnumeralsignlowergreek{} % ͵ \katwtonos, \textaristerikeraia, +\textnumeralsigngreek ʹ % \anwtonos, \textdexiakeraia +\textnumeralsignlowergreek ͵ % \katwtonos, \textaristerikeraia, % 0376 GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA % Ͷ % 0377 GREEK SMALL LETTER PAMPHYLIAN DIGAMMA % ͷ - -\textcompwordmark\ypogegrammeni{} % ͺ \textsubiota{\empty} +{ }\ypogegrammeni ͺ % \textsubiota{\empty} % 037B GREEK SMALL REVERSED LUNATE SIGMA SYMBOL % % 037C GREEK SMALL DOTTED LUNATE SIGMA SYMBOL % % 037D GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL % -\texterotimatiko{} % ; \textquestion - -\acctonos\textcompwordmark{} % ΄ -\"'\textcompwordmark{} % ΅ -\'\textAlpha{} % Ά -\textanoteleia{} % · \anoteleia -\'\textEpsilon{} % Έ -\'\textEta{} % Ή -\'\textIota{} % Ί -\'\textOmicron{} % Ό -\'\textUpsilon{} % Ύ -\'\textOmega{} % Ώ -\'"\textiota{} % ΐ - -\textAlpha{} % Α -\textBeta{} % Β -\textGamma{} % Γ -\textDelta{} % Δ -\textEpsilon{} % Ε -\textZeta{} % Ζ -\textEta{} % Η -\textTheta{} % Θ -\textIota{} % Ι -\textKappa{} % Κ -\textLambda{} % Λ -\textMu{} % Μ -\textNu{} % Ν -\textXi{} % Ξ -\textOmicron{} % Ο -\textPi{} % Π -\textRho{} % Ρ -\textSigma{} % Σ -\textTau{} % Τ -\textUpsilon{} % Υ -\textPhi{} % Φ -\textChi{} % Χ -\textPsi{} % Ψ -\textOmega{} % Ω - -\"\textIota{} % Ϊ -\"\textUpsilon{} % Ϋ -\'\textalpha{} % ά -\'\textepsilon{} % έ -\'\texteta{} % ή -\'\textiota{} % ί -\"'\textupsilon{} % ΰ - -\textalpha{} % α -\textbeta{} % β -\textgamma{} % γ -\textdelta{} % δ -\textepsilon{} % ε -\textzeta{} % ζ -\texteta{} % η -\texttheta{} % θ -\textiota{} % ι -\textkappa{} % κ -\textlambda{} % λ -\textmu{} % μ \textmugreek -\textnu{} % ν -\textxi{} % ξ -\textomicron{} % ο -\textpi{} % π -\textrho{} % ρ -\textvarsigma{} % ς -\textsigma{} % σ -\texttau{} % τ -\textupsilon{} % υ -\textphi{} % φ -\textchi{} % χ -\textpsi{} % ψ -\textomega{} % ω - -\"\textiota{} % ϊ -\"\textupsilon{} % ϋ -\'\textomicron{} % ό -\'\textupsilon{} % ύ -\'\textomega{} % ώ - -\textQoppa{} % Ϙ -\textqoppa{} % ϙ -\textStigma{} % Ϛ \Stigma -\textstigma{} % ϛ \stigma -\textDigamma{} % Ϝ \Digamma -\textdigamma{} % ϝ \ddigamma -%03DE GREEK LETTER KOPPA % Ϟ \textKoppagreek -\textkoppa{} % ϟ \koppa, \textqoppa [sic!] -\textSampi{} % Ϡ \Sampi -\textsampi{} % ϡ \sampi +\texterotimatiko ; % \textquestion + +\acctonos{ } % ΄ +\"'{ } % ΅ +\'\textAlpha Ά +\textanoteleia · % \anoteleia +\'\textEpsilon Έ +\'\textEta Ή +\'\textIota Ί +\'\textOmicron Ό +\'\textUpsilon Ύ +\'\textOmega Ώ + +\'"\textiota ΐ +\textAlpha Α +\textBeta Β +\textGamma Γ +\textDelta Δ +\textEpsilon Ε +\textZeta Ζ +\textEta Η +\textTheta Θ +\textIota Ι +\textKappa Κ +\textLambda Λ +\textMu Μ +\textNu Ν +\textXi Ξ +\textOmicron Ο + +\textPi Π +\textRho Ρ +\textSigma Σ +\textTau Τ +\textUpsilon Υ +\textPhi Φ +\textChi Χ +\textPsi Ψ +\textOmega Ω +\"\textIota Ϊ +\"\textUpsilon Ϋ +\'\textalpha ά +\'\textepsilon έ +\'\texteta ή +\'\textiota ί + +\"'\textupsilon ΰ +\textalpha α +\textbeta β +\textgamma γ +\textdelta δ +\textepsilon ε +\textzeta ζ +\texteta η +\texttheta θ +\textiota ι +\textkappa κ +\textlambda λ +\textmu μ % \textmugreek +\textnu ν +\textxi ξ +\textomicron ο + +\textpi π +\textrho ρ +\textvarsigma ς +\textsigma σ +\texttau τ +\textupsilon υ +\textphi φ +\textchi χ +\textpsi ψ +\textomega ω +\"\textiota ϊ +\"\textupsilon ϋ +\'\textomicron ό +\'\textupsilon ύ +\'\textomega ώ + +ϐ ϑ ϒ ϓ ϔ ϕ ϖ %ϗ +\textQoppa Ϙ +\textqoppa ϙ +\textStigma Ϛ +\textstigma ϛ +\textDigamma Ϝ +\textdigamma ϝ +\textKoppa Ϟ % \textKoppagreek +\textkoppa ϟ % \koppa, \textqoppa [sic!] + +\textSampi Ϡ +\textsampi ϡ + +% Ϣ ϣ Ϥ ϥ Ϧ ϧ Ϩ ϩ Ϫ ϫ Ϭ ϭ Ϯ ϯ + +ϰ ϱ ϲ +% ϳ +ϴ ϵ ϶ +% Ϸ ϸ +Ϲ +% Ϻ ϻ ϼ +Ͻ Ͼ Ͽ +} + +\greekandcoptic + +\noindent MakeUppercase: + +\MakeUppercase{\greekandcoptic} + +\noindent MakeLowercase: + +\MakeLowercase{\greekandcoptic} + +The lowercase of Σ is σ (GREEK SMALL LETTER SIGMA).\footnote{% +With LICRs, it is \texttt{\textbackslash textautosigma}.} +The lowercase of Ϛ (GREEK LETTER STIGMA) is \MakeLowercase{Ϛ}. + \subsection{Greek Extended Unicode block} -Characters from the Greek Extended Unicode block are only partially -supported, accented characters with sub-iota currently use a combining -prosgegrammeni or ypogegrammeni character. +There are no LICR definitions for spacing diacritical characters. + +% \accvaria\textalpha ὰ +% \accoxia\textalpha ά -For comparison, the LICR macro is followed by the corresponding literal -Unicode character: +\newcommand{\greekextended}{ \>\textalpha ἀ \<\textalpha ἁ \>`\textalpha ἂ @@ -489,20 +683,20 @@ Unicode character: \~>\textOmega Ὦ \~<\textOmega Ὧ -\`\textalpha ὰ -\'\textalpha ά -\`\textepsilon ὲ -\'\textepsilon έ -\`\texteta ὴ -\'\texteta ή -\`\textiota ὶ -\'\textiota ί -\`\textomicron ὸ -\'\textomicron ό -\`\textupsilon ὺ -\'\textupsilon ύ -\`\textomega ὼ -\'\textomega ώ +\accvaria\textalpha ὰ +\accoxia\textalpha ά +\accvaria\textepsilon ὲ +\accoxia\textepsilon έ +\accvaria\texteta ὴ +\accoxia\texteta ή +\accvaria\textiota ὶ +\accoxia\textiota ί +\accvaria\textomicron ὸ +\accoxia\textomicron ό +\accvaria\textupsilon ὺ +\accoxia\textupsilon ύ +\accvaria\textomega ὼ +\accoxia\textomega ώ \>\textalpha\ypogegrammeni ᾀ \<\textalpha\ypogegrammeni ᾁ @@ -512,14 +706,14 @@ Unicode character: \<'\textalpha\ypogegrammeni ᾅ \~>\textalpha\ypogegrammeni ᾆ \~<\textalpha\ypogegrammeni ᾇ -\>\textAlpha\prosgegrammeni ᾈ -\<\textAlpha\prosgegrammeni ᾉ -\>`\textAlpha\prosgegrammeni ᾊ -\<`\textAlpha\prosgegrammeni ᾋ -\>'\textAlpha\prosgegrammeni ᾌ -\<'\textAlpha\prosgegrammeni ᾍ -\~>\textAlpha\prosgegrammeni ᾎ -\~<\textAlpha\prosgegrammeni ᾏ +\>\textAlpha\ypogegrammeni ᾈ +\<\textAlpha\ypogegrammeni ᾉ +\>`\textAlpha\ypogegrammeni ᾊ +\<`\textAlpha\ypogegrammeni ᾋ +\>'\textAlpha\ypogegrammeni ᾌ +\<'\textAlpha\ypogegrammeni ᾍ +\~>\textAlpha\ypogegrammeni ᾎ +\~<\textAlpha\ypogegrammeni ᾏ \>\texteta\ypogegrammeni ᾐ \<\texteta\ypogegrammeni ᾑ @@ -529,14 +723,14 @@ Unicode character: \<'\texteta\ypogegrammeni ᾕ \~>\texteta\ypogegrammeni ᾖ \~<\texteta\ypogegrammeni ᾗ -\>\textEta\prosgegrammeni ᾘ -\<\textEta\prosgegrammeni ᾙ -\>`\textEta\prosgegrammeni ᾚ -\<`\textEta\prosgegrammeni ᾛ -\>'\textEta\prosgegrammeni ᾜ -\<'\textEta\prosgegrammeni ᾝ -\~>\textEta\prosgegrammeni ᾞ -\~<\textEta\prosgegrammeni ᾟ +\>\textEta\ypogegrammeni ᾘ +\<\textEta\ypogegrammeni ᾙ +\>`\textEta\ypogegrammeni ᾚ +\<`\textEta\ypogegrammeni ᾛ +\>'\textEta\ypogegrammeni ᾜ +\<'\textEta\ypogegrammeni ᾝ +\~>\textEta\ypogegrammeni ᾞ +\~<\textEta\ypogegrammeni ᾟ \>\textomega\ypogegrammeni ᾠ \<\textomega\ypogegrammeni ᾡ @@ -546,46 +740,46 @@ Unicode character: \<'\textomega\ypogegrammeni ᾥ \~>\textomega\ypogegrammeni ᾦ \~<\textomega\ypogegrammeni ᾧ -\>\textOmega\prosgegrammeni ᾨ -\<\textOmega\prosgegrammeni ᾩ -\>`\textOmega\prosgegrammeni ᾪ -\<`\textOmega\prosgegrammeni ᾫ -\>'\textOmega\prosgegrammeni ᾬ -\<'\textOmega\prosgegrammeni ᾭ -\~>\textOmega\prosgegrammeni ᾮ -\~<\textOmega\prosgegrammeni ᾯ +\>\textOmega\ypogegrammeni ᾨ +\<\textOmega\ypogegrammeni ᾩ +\>`\textOmega\ypogegrammeni ᾪ +\<`\textOmega\ypogegrammeni ᾫ +\>'\textOmega\ypogegrammeni ᾬ +\<'\textOmega\ypogegrammeni ᾭ +\~>\textOmega\ypogegrammeni ᾮ +\~<\textOmega\ypogegrammeni ᾯ \u\textalpha ᾰ \=\textalpha ᾱ -\`\textalpha\ypogegrammeni ᾲ +\accvaria\textalpha\ypogegrammeni ᾲ \textalpha\ypogegrammeni ᾳ -\'\textalpha\ypogegrammeni ᾴ +\accoxia\textalpha\ypogegrammeni ᾴ \~\textalpha ᾶ \~\textalpha\ypogegrammeni ᾷ \u\textAlpha Ᾰ \=\textAlpha Ᾱ -\`\textAlpha Ὰ -\'\textAlpha Ά -\textAlpha\prosgegrammeni ᾼ -\>\textcompwordmark ᾽ -\textcompwordmark\prosgegrammeni ι -\>\textcompwordmark ᾿ +\accvaria\textAlpha Ὰ +\accoxia\textAlpha Ά +\textAlpha\ypogegrammeni ᾼ +\>{ } ᾽ +{ }\prosgegrammeni ι +\>{ } ᾿ \accperispomeni\textcompwordmark ῀ -\"\~\textcompwordmark ῁ -\`\texteta\ypogegrammeni ῂ +\"\~{ } ῁ +\accvaria\texteta\ypogegrammeni ῂ \texteta\ypogegrammeni ῃ -\'\texteta\ypogegrammeni ῄ +\accoxia\texteta\ypogegrammeni ῄ \~\texteta ῆ \~\texteta\ypogegrammeni ῇ -\`\textEpsilon Ὲ -\'\textEpsilon Έ -\`\textEta Ὴ -\'\textEta Ή -\textEta\prosgegrammeni ῌ -\>`\textcompwordmark ῍ -\>'\textcompwordmark ῎ -\~>\textcompwordmark ῏ +\accvaria\textEpsilon Ὲ +\accoxia\textEpsilon Έ +\accvaria\textEta Ὴ +\accoxia\textEta Ή +\textEta\ypogegrammeni ῌ +\>`{ } ῍ +\>'{ } ῎ +\~>{ } ῏ \u\textiota ῐ \=\textiota ῑ @@ -595,11 +789,11 @@ Unicode character: \~"\textiota ῗ \u\textIota Ῐ \=\textIota Ῑ -\`\textIota Ὶ -\'\textIota Ί -\<`\textcompwordmark ῝ -\>'\textcompwordmark ῞ -\~<\textcompwordmark ῟ +\accvaria\textIota Ὶ +\accoxia\textIota Ί +\<`{ } ῝ +\>'{ } ῞ +\~<{ } ῟ \u\textupsilon ῠ \=\textupsilon ῡ @@ -611,73 +805,36 @@ Unicode character: \~"\textupsilon ῧ \u\textUpsilon Ῠ \=\textUpsilon Ῡ -\`\textUpsilon Ὺ -\'\textUpsilon Ύ +\accvaria\textUpsilon Ὺ +\accoxia\textUpsilon Ύ \<\textRho Ῥ -\`"\textcompwordmark ῭ -\'"\textcompwordmark ΅ -\accvaria\textcompwordmark ` +\`"{ } ῭ +\'"{ } ΅ +\accvaria{ } ` -\`\textomega\ypogegrammeni ῲ +\accvaria\textomega\ypogegrammeni ῲ \textomega\ypogegrammeni ῳ -\'\textomega\ypogegrammeni ῴ +\accoxia\textomega\ypogegrammeni ῴ \~\textomega ῶ \~\textomega\ypogegrammeni ῷ -\`\textOmicron Ὸ -\'\textOmicron Ό -\`\textOmega Ὼ -\'\textOmega Ώ -\textOmega\prosgegrammeni ῼ -\accoxia\textcompwordmark ´ -\<\textcompwordmark ῾ - -Ancient Greek Numbers are missing in most fonts (including Libertine and -Deja Vu). The “FreeSerif” font works fine. - -\textpentedeka % GREEK ACROPHONIC ATTIC FIFTY -\textpentehekaton % GREEK ACROPHONIC ATTIC FIVE HUNDRED -\textpenteqilioi % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +\accvaria\textOmicron Ὸ +\accoxia\textOmicron Ό +\accvaria\textOmega Ὼ +\accoxia\textOmega Ώ +\textOmega\ypogegrammeni ῼ +\accoxia{ } ´ +\<{ } ῾ +} -If the LGR font encoding is loaded via «fontenc» in the document preamble, -Ancient Greek Numbers (as well as any other character) from LGR encoded -8-bit TeX fonts can be used after a font-encoding switch. babel-greek -defines the \verb|\textgreek| command for this purpose: +\greekextended -\providecommand*{\textgreek}[1]{\leavevmode{% - \fontfamily{cmr}\fontencoding{LGR}\selectfont#1}% -} +\noindent MakeUppercase: -\textgreek{ -\textpentedeka % GREEK ACROPHONIC ATTIC FIFTY -\textpentehekaton % GREEK ACROPHONIC ATTIC FIVE HUNDRED -\textpenteqilioi % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND -} +\MakeUppercase{\greekextended} -\section{Latin transcription} +\noindent MakeLowercase: -The \verb|\textgreek| macro and LGR encoded fonts can also be used for the -input of Greek letters via the \emph{Latin transcription} provided by the LGR -font encoding% -\footnote{see \emph{The LaTeX font guide} [fntguide.pdf] for details about -font encodings.}, -e.g. «logos» becomes «\textgreek{logos}» and «\verb|\>aupn\'ia|» becomes -«\textgreek{\>aupn\'ia}» (capitalised -«\textgreek{\MakeUppercase{\>aupn\'ia}}»). For details of the Latin -transliteration see the teubner package or the file usage.pdf from the -babel-greek package. - -Mark, that you cannot use Unicode input with LGR encoded fonts except when -running in 8-bit compatibility mode because of the incompatibility between -Xe/LuaTeX and the inputenc package. +\MakeLowercase{\greekextended} -LICR macros work in both, Unicode font encoding and LGR: compare - \>\textIota\textalpha\textnu\textomicron\textupsilon\textalpha - \textrho\acctonos\textiota\textomicron\textupsilon{} -(Unicode font set up via fontspec) vs. -\textgreek{\>\textIota\textalpha\textnu\textomicron\textupsilon\textalpha - \textrho\acctonos\textiota\textomicron\textupsilon} -(LGR-encoded 8-bit font set up via NFSS commands). \end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html index e63aee31dc8..9a9c3060eef 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html @@ -1,644 +1,409 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>greek-euenc.def</title> -<meta name="copyright" content="© 2013 Günter Milde" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; +} +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } - -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +div.align-right { text-align: inherit } + +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; -} -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; } - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} - -/* docinfo */ +/* Bibliographic Fields */ -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ -} - -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; -} -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; -} -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} - -/* lists nested in definition list */ - -dd > ul, dd > ol { - padding-left: 0pt; + margin-left: 20%; } -/* TODO: prefix, suffix? */ +/* Tables */ +/* ====== */ -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ - - -/* Tables */ -/* ====== */ - -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; -} - -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} - -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -647,7 +412,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -656,80 +420,138 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } + +/* Sidebar */ -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ + +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ + +/* Document Header and Footer */ -span.sectnum { - padding-right: 1ex; +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* Hyperlink References */ +a { text-decoration: none; } + +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> <body> <div class="document" id="greek-euenc-def"> <h1 class="title">greek-euenc.def</h1> -<h2 class="subtitle" id="greek-licr-definitions-for-xetex-and-luatex">Greek LICR definitions for XeTeX and LuaTeX</h2> +<p class="subtitle" id="greek-licr-definitions-for-xetex-and-luatex">Greek LICR definitions for XeTeX and LuaTeX</p> <dl class="docinfo"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2013 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> -<dt>Identification</dt> -<dd><pre class="literal-block">\ProvidesFile{greek-euenc.def} -[2014/12/12 0.12 Greek LICRs for XeTeX and LuaTeX] -</pre> +<dt class="identification">Identification</dt> +<dd class="identification"><pre class="literal-block">\ProvidesFile{greek-euenc.def} +[2015/08/07 0.13 Greek LICRs for XeTeX and LuaTeX]</pre> </dd> </dl> <div class="abstract topic"> @@ -737,13 +559,13 @@ version 1.3 of this license or any later version.</p> <p>Experimental support for Greek LICR macros with XeTeX and LuaTeX. Extends <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a>. Used by <a class="reference external" href="http://www.ctan.org/pkg/babel-greek">babel-greek</a> and <a class="reference external" href="textalpha.sty.html">textalpha</a>.</p> </div> -<dl class="docutils"> -<dt>History:</dt> +<dl> +<dt><strong>History</strong>:</dt> <dd><table class="borderless"> <colgroup> -<col width="8%" /> -<col width="14%" /> -<col width="78%" /> +<col style="width: 8%" /> +<col style="width: 14%" /> +<col style="width: 78%" /> </colgroup> <tbody> <tr><td><p>0.1</p></td> @@ -768,7 +590,7 @@ fix “hiatus” handling.</p></td> <td><p>2013-10-01 ..</p></td> <td><p>remove clashing defs for legacy characters with oxia, -fix upcasing of <tt class="literal">\finalsigma</tt>.</p></td> +fix upcasing of <span class="docutils literal">\finalsigma</span>.</p></td> </tr> <tr><td><p>0.11.1</p></td> <td><p>2013-12-01</p></td> @@ -776,43 +598,76 @@ fix upcasing of <tt class="literal">\finalsigma</tt>.</p></td> </tr> <tr><td><p>0.11.2</p></td> <td><p>2014-09-08</p></td> -<td><p><tt class="literal">\textKoppa</tt> macro</p></td> +<td><p><span class="docutils literal">\textKoppa</span> macro</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>(Capital Koppa is not defined in LGR but Unicode).</p></td> </tr> <tr><td><p>0.12</p></td> <td><p>2014-12-12</p></td> <td><p>Remove symbol macros for breathing accents.</p></td> </tr> +<tr><td><p>0.13</p></td> +<td><p>2015-08-07</p></td> +<td><p><span class="docutils literal">\lccode</span>/<span class="docutils literal">\uccode</span> corrections from <a class="reference external" href="http://www.ctan.org/pkg/xgreek">xgreek</a>.</p></td> +</tr> +<tr><td><!-- --> +</td> +<td></td> +<td><p>LICR macros for symbol variants.</p></td> +</tr> </tbody> </table> </dd> </dl> +<div class="contents topic" id="contents"> +<p class="topic-title first">Contents</p> +<ul class="simple"> +<li><p><a class="reference internal" href="#motivation" id="id1">Motivation</a></p></li> +<li><p><a class="reference internal" href="#requirements" id="id2">Requirements</a></p></li> +<li><p><a class="reference internal" href="#greek-diacritics" id="id3">Greek Diacritics</a></p></li> +<li><p><a class="reference internal" href="#common-definitions" id="id4">Common Definitions</a></p></li> +<li><p><a class="reference internal" href="#character-definitions" id="id5">Character Definitions</a></p> +<ul> +<li><p><a class="reference internal" href="#general-punctuation" id="id6">General Punctuation</a></p></li> +<li><p><a class="reference internal" href="#greek-and-coptic" id="id7">Greek and Coptic</a></p></li> +<li><p><a class="reference internal" href="#greek-extended" id="id8">Greek Extended</a></p></li> +<li><p><a class="reference internal" href="#letterlike-symbols" id="id9">Letterlike Symbols</a></p></li> +<li><p><a class="reference internal" href="#ancient-greek-numbers" id="id10">Ancient Greek Numbers</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#uppercase" id="id11">UPPERCASE</a></p> +<ul> +<li><p><a class="reference internal" href="#uc-lc-values" id="id12">uc/lc values</a></p></li> +<li><p><a class="reference internal" href="#uclclist" id="id13">uclclist</a></p></li> +</ul> +</li> +</ul> +</div> <div class="section" id="motivation"> -<h1>Motivation</h1> +<h1><a class="toc-backref" href="#id1">Motivation</a></h1> <p>LICR macro definitions for the Greek script are missing in both, <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a> and <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a>.</p> -<p>This file expands the font encoding definition files <tt class="literal">eu1enc.def</tt> rsp. -<tt class="literal">eu2enc.def</tt> from <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> defining <cite>LaTeX Internal Character +<p>This file expands the font encoding definition files <span class="docutils literal">eu1enc.def</span> rsp. +<span class="docutils literal">eu2enc.def</span> from <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> defining <cite>LaTeX Internal Character Representaction</cite> (LICR) macros for Greek letters and symbols. It works independed of <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a> using the standard commands for <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">LaTeX2e font selection</a>.</p> </div> <div class="section" id="requirements"> -<h1>Requirements</h1> +<h1><a class="toc-backref" href="#id2">Requirements</a></h1> <p>Requires XeTeX or LuaTeX, <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> (usually loaded via <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a>), and a font with Greek characters.</p> <p>See <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a> and <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a> for setup and usage examples.</p> </div> <div class="section" id="greek-diacritics"> -<h1>Greek Diacritics</h1> +<h1><a class="toc-backref" href="#id3">Greek Diacritics</a></h1> <p>Define “named macros” for simple and combined diacritics.</p> <ul class="simple"> -<li><p>Named accent macros can be used instead of the <tt class="literal">\@tabacckludge</tt> by +<li><p>Named accent macros can be used instead of the <span class="docutils literal">\@tabacckludge</span> by to-LaTeX converters to ensure working also inside the tabbing environment.</p></li> <li><p>Named macros are required for upcasing according to Greek typesetting conventions and in the definition of composite commands.</p></li> @@ -820,21 +675,18 @@ conventions and in the definition of composite commands.</p></li> <p>Greek alias names for standard accents:</p> <pre class="literal-block">\DeclareTextCommand{\acctonos}{\LastDeclaredEncoding}{\@tabacckludge'} \DeclareTextCommand{\accvaria}{\LastDeclaredEncoding}{\@tabacckludge`} -\DeclareTextCommand{\accdialytika}{\LastDeclaredEncoding}{\@tabacckludge"} -\DeclareTextCommand{\accperispomeni}{\LastDeclaredEncoding}{\@tabacckludge~} -</pre> +\DeclareTextCommand{\accdialytika}{\LastDeclaredEncoding}{\@tabacckludge"}</pre> +<p>The combining perispomeni character is normalized with Greek base letters, +while the (standard) combining tilde is not:</p> +<pre class="literal-block">\DeclareTextCommand{\accperispomeni}{\LastDeclaredEncoding}[1]{#1\char"0342 }</pre> <p>Breathings:</p> <p>(The COMBINING GREEK KORONIS is a legacy character, discarded in favour of COMBINING COMMA ABOVE)</p> <pre class="literal-block">\DeclareTextCommand{\accpsili}{\LastDeclaredEncoding}[1]{#1\char"0313 } % ψιλή spiritus lenis (smooth breathing) -\DeclareTextCommand{\accdasia}{\LastDeclaredEncoding}[1]{#1\char"0314 } % δασεῖα spiritus asper (rough breathing) -% \DeclareTextCommand{\>}{\LastDeclaredEncoding}{\accpsili} -% \DeclareTextCommand{\<}{\LastDeclaredEncoding}{\accdasia} -</pre> +\DeclareTextCommand{\accdasia}{\LastDeclaredEncoding}[1]{#1\char"0314 } % δασεῖα spiritus asper (rough breathing)</pre> <p>Sub-iota:</p> -<p><tt class="literal">\ypogegrammeni</tt> is a postfix accent (ligature in LGR)</p> -<pre class="literal-block">\DeclareTextSymbol{\ypogegrammeni}{\LastDeclaredEncoding}{0837} % COMBINING GREEK YPOGEGRAMMENI -</pre> +<p><span class="docutils literal">\ypogegrammeni</span> is a postfix accent (ligature in LGR)</p> +<pre class="literal-block">\DeclareTextSymbol{\ypogegrammeni}{\LastDeclaredEncoding}{0837} % COMBINING GREEK YPOGEGRAMMENI</pre> <p>Combined diacritics:</p> <pre class="literal-block">% The COMBINING DIALYTIKA TONOS is discarded and not well supported by fonts: \DeclareTextCommand{\accdialytikatonos}{\LastDeclaredEncoding}[1]{#1\char"0308 \char"0301 } @@ -847,25 +699,22 @@ COMBINING COMMA ABOVE)</p> \DeclareTextCommand{\accpsilioxia}{\LastDeclaredEncoding}[1]{#1\char"0301 \char"0313 } \DeclareTextCommand{\accpsilivaria}{\LastDeclaredEncoding}[1]{#1\char"0300 \char"0313 } -\DeclareTextCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}[1]{#1\char"0342 \char"0313 } -</pre> +\DeclareTextCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}[1]{#1\char"0342 \char"0313 }</pre> </div> <div class="section" id="common-definitions"> -<h1>Common Definitions</h1> +<h1><a class="toc-backref" href="#id4">Common Definitions</a></h1> <p>Use the <a class="reference external" href="greek-fontenc.def.html">common Greek font encoding definitions</a>:</p> -<pre class="literal-block">\input{greek-fontenc.def} -</pre> +<pre class="literal-block">\input{greek-fontenc.def}</pre> </div> <div class="section" id="character-definitions"> -<h1>Character Definitions</h1> +<h1><a class="toc-backref" href="#id5">Character Definitions</a></h1> <div class="section" id="general-punctuation"> -<h2>General Punctuation</h2> +<h2><a class="toc-backref" href="#id6">General Punctuation</a></h2> <p>Ligature break up with ZERO WIDTH NON-JOINER:</p> -<pre class="literal-block">\DeclareTextCommand{\textcompwordmark}{\LastDeclaredEncoding}{\char"200C} -</pre> +<pre class="literal-block">\DeclareTextCommand{\textcompwordmark}{\LastDeclaredEncoding}{\char"200C}</pre> </div> <div class="section" id="greek-and-coptic"> -<h2>Greek and Coptic</h2> +<h2><a class="toc-backref" href="#id7">Greek and Coptic</a></h2> <pre class="literal-block">% NR Unicode Name % babel name, % PU name % 0370 GREEK CAPITAL LETTER HETA % Ͱ % 0371 GREEK SMALL LETTER HETA % ͱ @@ -880,7 +729,7 @@ COMBINING COMMA ABOVE)</p> % 037B GREEK SMALL REVERSED LUNATE SIGMA SYMBOL % 037C GREEK SMALL DOTTED LUNATE SIGMA SYMBOL % 037D GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL -\DeclareTextCommand{\texterotimatiko}{\LastDeclaredEncoding}{;} % \textquestion +\DeclareTextCommand{\texterotimatiko}{\LastDeclaredEncoding}{;} % 037E GREEK QUESTION MARK \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\textcompwordmark}{΄} \DeclareTextCompositeCommand{\accdialytikatonos}{\LastDeclaredEncoding}{\textcompwordmark}{΅} @@ -932,6 +781,7 @@ COMBINING COMMA ABOVE)</p> \DeclareTextCommand{\textgamma}{\LastDeclaredEncoding}{γ} \DeclareTextCommand{\textdelta}{\LastDeclaredEncoding}{δ} \DeclareTextCommand{\textepsilon}{\LastDeclaredEncoding}{ε} +\DeclareTextCommand{\textvarepsilon}{\LastDeclaredEncoding}{ε} % cf. $\varepsiolon$ \DeclareTextCommand{\textzeta}{\LastDeclaredEncoding}{ζ} \DeclareTextCommand{\texteta}{\LastDeclaredEncoding}{η} \DeclareTextCommand{\texttheta}{\LastDeclaredEncoding}{θ} @@ -952,6 +802,7 @@ COMBINING COMMA ABOVE)</p> \DeclareTextCommand{\texttau}{\LastDeclaredEncoding}{τ} \DeclareTextCommand{\textupsilon}{\LastDeclaredEncoding}{υ} \DeclareTextCommand{\textphi}{\LastDeclaredEncoding}{φ} +\DeclareTextCommand{\textvarphi}{\LastDeclaredEncoding}{φ} % cf. $\varphi$ \DeclareTextCommand{\textchi}{\LastDeclaredEncoding}{χ} \DeclareTextCommand{\textpsi}{\LastDeclaredEncoding}{ψ} \DeclareTextCommand{\textomega}{\LastDeclaredEncoding}{ω} @@ -969,13 +820,30 @@ COMBINING COMMA ABOVE)</p> \DeclareTextCommand{\textDigamma}{\LastDeclaredEncoding}{Ϝ} \DeclareTextCommand{\textdigamma}{\LastDeclaredEncoding}{ϝ} \DeclareTextCommand{\textKoppa}{\LastDeclaredEncoding}{Ϟ} % not defined in LGR -\DeclareTextCommand{\textkoppa}{\LastDeclaredEncoding}{ϟ} % \koppa, \textqoppa [sic!] +\DeclareTextCommand{\textkoppa}{\LastDeclaredEncoding}{ϟ} % \koppa, \textqoppa [sic!] \DeclareTextCommand{\textSampi}{\LastDeclaredEncoding}{Ϡ} \DeclareTextCommand{\textsampi}{\LastDeclaredEncoding}{ϡ} -</pre> + +% Symbol variants +\DeclareTextCommand{\textbetasymbol}{\LastDeclaredEncoding}{ϐ} +\DeclareTextCommand{\textkappasymbol}{\LastDeclaredEncoding}{ϰ} +\DeclareTextCommand{\textThetasymbol}{\LastDeclaredEncoding}{ϴ} +\DeclareTextCommand{\textthetasymbol}{\LastDeclaredEncoding}{ϑ} +\DeclareTextCommand{\textphisymbol}{\LastDeclaredEncoding}{ϕ} +\DeclareTextCommand{\textpisymbol}{\LastDeclaredEncoding}{ϖ} +\DeclareTextCommand{\textrhosymbol}{\LastDeclaredEncoding}{ϱ} +\DeclareTextCommand{\textepsilonsymbol}{\LastDeclaredEncoding}{ϵ} +% math compatibility aliases +% $\varphi$ and $\varepsilon$ refer to the letter characters (see above)! +\DeclareTextCommand{\textvarbeta}{\LastDeclaredEncoding}{\textbetasymbol} +\DeclareTextCommand{\textvarkappa}{\LastDeclaredEncoding}{ϰ} +\DeclareTextCommand{\textvarTheta}{\LastDeclaredEncoding}{ϴ} +\DeclareTextCommand{\textvartheta}{\LastDeclaredEncoding}{ϑ} +\DeclareTextCommand{\textvarpi}{\LastDeclaredEncoding}{ϖ} +\DeclareTextCommand{\textvarrho}{\LastDeclaredEncoding}{ϱ}</pre> </div> <div class="section" id="greek-extended"> -<h2>Greek Extended</h2> +<h2><a class="toc-backref" href="#id8">Greek Extended</a></h2> <p>We skip definitions for characters “… WITH OXIA”, because they would overwrite the defintions for “… WITH TONOS” in the <cite>Greek and Coptic</cite> block.</p> @@ -1094,86 +962,35 @@ block.</p> \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textupsilon}{ὺ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textomega}{ὼ} -%% postfix ypogegrammeni cannot be second part of composite defs. -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾀ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾁ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾂ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾃ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾄ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾅ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾆ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾇ} -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾈ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾉ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾊ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾋ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾌ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾍ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾎ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\textAlpha\prosgegrammeni}{ᾏ} -% -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾐ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾑ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾒ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾓ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾔ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾕ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾖ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ᾗ} -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾘ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾙ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾚ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾛ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾜ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾝ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾞ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\textEta\prosgegrammeni}{ᾟ} -% -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾠ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾡ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾢ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾣ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾤ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾥ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾦ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ᾧ} -% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾨ} -% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾩ} -% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾪ} -% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾫ} -% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾬ} -% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾭ} -% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾮ} -% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\textOmega\prosgegrammeni}{ᾯ} - \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\textalpha}{ᾰ} \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\textalpha}{ᾱ} -% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾲ} -% \DeclareTextCompositeCommand{\textalpha}{\LastDeclaredEncoding}{\ypogegrammeni}{ᾳ} -% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾴ} +% ᾲ +% ᾳ +% ᾴ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\textalpha}{ᾶ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{α}{ᾶ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\textalpha}{ᾶ} -% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\textalpha\ypogegrammeni}{ᾷ} +% ᾷ \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\textAlpha}{Ᾰ} \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\textAlpha}{Ᾱ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textAlpha}{Ὰ} -% \DeclareTextCompositeCommand{\textAlpha}{\LastDeclaredEncoding}{\prosgegrammeni}{ᾼ} +% ᾼ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textcompwordmark}{᾽} \DeclareTextCommand{\prosgegrammeni}{\LastDeclaredEncoding}{ι} \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textcompwordmark}{᾿} -\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\textcompwordmark}{῀} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\textcompwordmark}{῀} \DeclareTextCompositeCommand{\accdialytikaperispomeni}{\LastDeclaredEncoding}{\textcompwordmark}{῁} -% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ῂ} -% \DeclareTextCompositeCommand{\texteta}{\LastDeclaredEncoding}{\ypogegrammeni}{ῃ} -% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ῄ} +% ῂ +% ῃ +% ῄ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\texteta}{ῆ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{η}{ῆ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\texteta}{ῆ} -% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\texteta\ypogegrammeni}{ῇ} +% ῇ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textEpsilon}{Ὲ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textEta}{Ὴ} -% \DeclareTextCompositeCommand{\textEta}{\LastDeclaredEncoding}{\prosgegrammeni}{ῌ} +% ῌ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\textcompwordmark}{῍} \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\textcompwordmark}{῎} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\textcompwordmark}{῏} @@ -1183,6 +1000,7 @@ block.</p> \DeclareTextCompositeCommand{\accdialytikavaria}{\LastDeclaredEncoding}{\textiota}{ῒ} \DeclareTextCompositeCommand{\accdialytikaoxia}{\LastDeclaredEncoding}{\textiota}{ΐ} \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\textiota}{ῖ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{ι}{ῖ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\textiota}{ῖ} \DeclareTextCompositeCommand{\accdialytikaperispomeni}{\LastDeclaredEncoding}{\textiota}{ῗ} \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\textIota}{Ῐ} @@ -1199,6 +1017,7 @@ block.</p> \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\textrho}{ῤ} \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textrho}{ῥ} \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\textupsilon}{ῦ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{υ}{ῦ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\textupsilon}{ῦ} \DeclareTextCompositeCommand{\accdialytikaperispomeni}{\LastDeclaredEncoding}{\textupsilon}{ῧ} \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\textUpsilon}{Ῠ} @@ -1208,26 +1027,25 @@ block.</p> \DeclareTextCompositeCommand{\accdialytikavaria}{\LastDeclaredEncoding}{\textcompwordmark}{῭} \DeclareTextCompositeCommand{\accdialytikaoxia}{\LastDeclaredEncoding}{\textcompwordmark}{΅} -% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ῲ} -% \DeclareTextCompositeCommand{\textomega}{\LastDeclaredEncoding}{\ypogegrammeni}{ῳ} -% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ῴ} +% ῲ +% ῳ +% ῴ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\textomega}{ῶ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{ω}{ῶ} \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\textomega}{ῶ} -% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\textomega\ypogegrammeni}{ῷ} +% ῷ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textOmicron}{Ὸ} \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\textOmega}{Ὼ} -% \DeclareTextCompositeCommand{\textOmega}{\LastDeclaredEncoding}{\prosgegrammeni}{ῼ} +% ῼ \DeclareTextCompositeCommand{\accoxia}{\LastDeclaredEncoding}{\textcompwordmark}{´} -\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textcompwordmark}{῾} -</pre> +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\textcompwordmark}{῾}</pre> </div> <div class="section" id="letterlike-symbols"> -<h2>Letterlike Symbols</h2> -<pre class="literal-block">\DeclareTextCommand{\textohm}{\LastDeclaredEncoding}{Ω} % OHM SIGN -</pre> +<h2><a class="toc-backref" href="#id9">Letterlike Symbols</a></h2> +<pre class="literal-block">\DeclareTextCommand{\textohm}{\LastDeclaredEncoding}{Ω} % OHM SIGN</pre> </div> <div class="section" id="ancient-greek-numbers"> -<h2>Ancient Greek Numbers</h2> +<h2><a class="toc-backref" href="#id10">Ancient Greek Numbers</a></h2> <p>TODO: map other chars to corresponding Greek letters. See also the <a class="reference external" href="http://www.ctan.org/pkg/grnumalt">grnumalt</a> package.</p> <p>Definition with literal Unicode characters, because the code-point has 5 @@ -1235,16 +1053,351 @@ hexadecimal digits:</p> <pre class="literal-block">\DeclareTextCommand{\textpentedeka}{\LastDeclaredEncoding}{𐅄} % GREEK ACROPHONIC ATTIC FIFTY \DeclareTextCommand{\textpentehekaton}{\LastDeclaredEncoding}{𐅅} % GREEK ACROPHONIC ATTIC FIVE HUNDRED \DeclareTextCommand{\textpenteqilioi}{\LastDeclaredEncoding}{𐅆} % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\DeclareTextCommand{\textpentemuria}{\LastDeclaredEncoding}{𐅇} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND -</pre> +\DeclareTextCommand{\textpentemuria}{\LastDeclaredEncoding}{𐅇} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND</pre> </div> </div> <div class="section" id="uppercase"> -<h1>UPPERCASE</h1> +<h1><a class="toc-backref" href="#id11">UPPERCASE</a></h1> +<p>Greek letters drop diacritics (eccept dialytika and sub-iota) in UPPERCASE.</p> +<div class="section" id="uc-lc-values"> +<h2><a class="toc-backref" href="#id12">uc/lc values</a></h2> +<p><span class="docutils literal">\lccode</span> and <span class="docutils literal">\uccode</span> corrections from the <a class="reference external" href="http://www.ctan.org/pkg/xgreek">xgreek</a> package by Apostolos Syropoulos:</p> +<pre class="literal-block">\global\lccode"0370="0371 \global\uccode"0370="0370 +\global\lccode"0371="0371 \global\uccode"0371="0370 +\global\lccode"0372="0373 \global\uccode"0372="0372 +\global\lccode"0373="0373 \global\uccode"0373="0372 +\global\lccode"0376="0377 \global\uccode"0376="0376 +\global\lccode"0377="0377 \global\uccode"0377="0376 +\global\lccode"03FD="037B \global\uccode"03FD="03FD +\global\lccode"037B="037B \global\uccode"037B="03FD +\global\lccode"03FE="037C \global\uccode"03FE="03FE +\global\lccode"037C="037C \global\uccode"037C="03FE +\global\lccode"03FF="037D \global\uccode"03FF="03FF +\global\lccode"037D="037D \global\uccode"037D="03FF +\global\lccode"0386="03AC \global\uccode"0386="0391 +\global\lccode"0388="03AD \global\uccode"0388="0395 +\global\lccode"0389="03AC \global\uccode"0389="0397 +\global\lccode"038A="03AF \global\uccode"038A="0399 +\global\lccode"038C="03CC \global\uccode"038C="039F +\global\lccode"038E="03CD \global\uccode"038E="03A5 +\global\lccode"038F="03CE \global\uccode"038F="03A9 +\global\lccode"0390="0390 \global\uccode"0390="03AA +\global\lccode"0391="03B1 \global\uccode"0391="0391 +\global\lccode"0392="03B2 \global\uccode"0392="0392 +\global\lccode"0393="03B3 \global\uccode"0393="0393 +\global\lccode"0394="03B4 \global\uccode"0394="0394 +\global\lccode"0395="03B5 \global\uccode"0395="0395 +\global\lccode"0396="03B6 \global\uccode"0396="0396 +\global\lccode"0397="03B7 \global\uccode"0397="0397 +\global\lccode"0398="03B8 \global\uccode"0398="0398 +\global\lccode"0399="03B9 \global\uccode"0399="0399 +\global\lccode"039A="03BA \global\uccode"039A="039A +\global\lccode"039B="03BB \global\uccode"039B="039B +\global\lccode"039C="03BC \global\uccode"039C="039C +\global\lccode"039D="03BD \global\uccode"039D="039D +\global\lccode"039E="03BE \global\uccode"039E="039E +\global\lccode"039F="03BF \global\uccode"039F="039F +\global\lccode"03A0="03C0 \global\uccode"03A0="03A0 +\global\lccode"03A1="03C1 \global\uccode"03A1="03A1 +\global\lccode"03A3="03C3 \global\uccode"03A3="03A3 +\global\lccode"03A4="03C4 \global\uccode"03A4="03A4 +\global\lccode"03A5="03C5 \global\uccode"03A5="03A5 +\global\lccode"03A6="03C6 \global\uccode"03A6="03A6 +\global\lccode"03A7="03C7 \global\uccode"03A7="03A7 +\global\lccode"03A8="03C8 \global\uccode"03A8="03A8 +\global\lccode"03A9="03C9 \global\uccode"03A9="03A9 +\global\lccode"03AA="03CA \global\uccode"03AA="03AA +\global\lccode"03AB="03CB \global\uccode"03AB="03AB +\global\lccode"03AC="03AC \global\uccode"03AC="0391 +\global\lccode"03AD="03AD \global\uccode"03AD="0395 +\global\lccode"03AE="03AE \global\uccode"03AE="0397 +\global\lccode"03AF="03AF \global\uccode"03AF="0399 +\global\lccode"03B0="03B0 \global\uccode"03B0="03AB +\global\lccode"03B1="03B1 \global\uccode"03B1="0391 +\global\lccode"03B2="03B2 \global\uccode"03B2="0392 +\global\lccode"03B3="03B3 \global\uccode"03B3="0393 +\global\lccode"03B4="03B4 \global\uccode"03B4="0394 +\global\lccode"03B5="03B5 \global\uccode"03B5="0395 +\global\lccode"03B6="03B6 \global\uccode"03B6="0396 +\global\lccode"03B7="03B7 \global\uccode"03B7="0397 +\global\lccode"03B8="03B8 \global\uccode"03B8="0398 +\global\lccode"03B9="03B9 \global\uccode"03B9="0399 +\global\lccode"03BA="03BA \global\uccode"03BA="039A +\global\lccode"03BB="03BB \global\uccode"03BB="039B +\global\lccode"03BC="03BC \global\uccode"03BC="039C +\global\lccode"03BD="03BD \global\uccode"03BD="039D +\global\lccode"03BE="03BE \global\uccode"03BE="039E +\global\lccode"03BF="03BF \global\uccode"03BF="039F +\global\lccode"03C0="03C0 \global\uccode"03C0="03A0 +\global\lccode"03C1="03C1 \global\uccode"03C1="03A1 +\global\lccode"03C2="03C2 \global\uccode"03C2="03A3 +\global\lccode"03C3="03C3 \global\uccode"03C3="03A3 +\global\lccode"03C4="03C4 \global\uccode"03C4="03A4 +\global\lccode"03C5="03C5 \global\uccode"03C5="03A5 +\global\lccode"03C6="03C6 \global\uccode"03C6="03A6 +\global\lccode"03C7="03C7 \global\uccode"03C7="03A7 +\global\lccode"03C8="03C8 \global\uccode"03C8="03A8 +\global\lccode"03C9="03C9 \global\uccode"03C9="03A9 +\global\lccode"03CA="03CA \global\uccode"03CA="03AA +\global\lccode"03CB="03CB \global\uccode"03CB="03AB +\global\lccode"03CC="03CC \global\uccode"03CC="039F +\global\lccode"03CD="03CD \global\uccode"03CD="03A5 +\global\lccode"03CE="03CE \global\uccode"03CE="03A9 +\global\lccode"03D0="03D0 \global\uccode"03D0="0392 +\global\lccode"03D1="03D1 \global\uccode"03D1="0398 +\global\lccode"03D2="03C5 \global\uccode"03D2="03A5 +\global\lccode"03D3="03CD \global\uccode"03D3="03A5 +\global\lccode"03D4="03CB \global\uccode"03D4="03AB +\global\lccode"03D5="03C6 \global\uccode"03D5="03A6 +\global\lccode"03D6="03C0 \global\uccode"03D6="03A0 +\global\lccode"03DA="03DB \global\uccode"03DA="03DA +\global\lccode"03DB="03DB \global\uccode"03DB="03DA +\global\lccode"03DC="03DD \global\uccode"03DC="03DC +\global\lccode"03DD="03DD \global\uccode"03DD="03DC +\global\lccode"03DE="03DF \global\uccode"03DE="03DE +\global\lccode"03DF="03DF \global\uccode"03DF="03DE +\global\lccode"03E0="03E1 \global\uccode"03E0="03E0 +\global\lccode"03E1="03E1 \global\uccode"03E1="03E0 +\global\lccode"03F0="03BA \global\uccode"03F0="039A +\global\lccode"03F1="03C1 \global\uccode"03F1="03A1 +\global\lccode"03F2="03F2 \global\uccode"03F2="03F9 +\global\lccode"03F9="03F2 \global\uccode"03F9="03F9 +\global\lccode"1F00="1F00 \global\uccode"1F00="0391 +\global\lccode"1F01="1F01 \global\uccode"1F01="0391 +\global\lccode"1F02="1F02 \global\uccode"1F02="0391 +\global\lccode"1F03="1F03 \global\uccode"1F03="0391 +\global\lccode"1F04="1F04 \global\uccode"1F04="0391 +\global\lccode"1F05="1F05 \global\uccode"1F05="0391 +\global\lccode"1F06="1F06 \global\uccode"1F06="0391 +\global\lccode"1F07="1F07 \global\uccode"1F07="0391 +\global\lccode"1F08="1F00 \global\uccode"1F08="0391 +\global\lccode"1F09="1F01 \global\uccode"1F09="0391 +\global\lccode"1F0A="1F02 \global\uccode"1F0A="0391 +\global\lccode"1F0B="1F03 \global\uccode"1F0B="0391 +\global\lccode"1F0C="1F04 \global\uccode"1F0C="0391 +\global\lccode"1F0D="1F05 \global\uccode"1F0D="0391 +\global\lccode"1F0E="1F06 \global\uccode"1F0E="0391 +\global\lccode"1F0F="1F07 \global\uccode"1F0F="0391 +\global\lccode"1F10="1F10 \global\uccode"1F10="0395 +\global\lccode"1F11="1F11 \global\uccode"1F11="0395 +\global\lccode"1F12="1F12 \global\uccode"1F12="0395 +\global\lccode"1F13="1F13 \global\uccode"1F13="0395 +\global\lccode"1F14="1F14 \global\uccode"1F14="0395 +\global\lccode"1F15="1F15 \global\uccode"1F15="0395 +\global\lccode"1F18="1F10 \global\uccode"1F18="0395 +\global\lccode"1F19="1F11 \global\uccode"1F19="0395 +\global\lccode"1F1A="1F12 \global\uccode"1F1A="0395 +\global\lccode"1F1B="1F13 \global\uccode"1F1B="0395 +\global\lccode"1F1C="1F14 \global\uccode"1F1C="0395 +\global\lccode"1F1D="1F15 \global\uccode"1F1D="0395 +\global\lccode"1F20="1F20 \global\uccode"1F20="0397 +\global\lccode"1F21="1F21 \global\uccode"1F21="0397 +\global\lccode"1F22="1F22 \global\uccode"1F22="0397 +\global\lccode"1F23="1F23 \global\uccode"1F23="0397 +\global\lccode"1F24="1F24 \global\uccode"1F24="0397 +\global\lccode"1F25="1F25 \global\uccode"1F25="0397 +\global\lccode"1F26="1F26 \global\uccode"1F26="0397 +\global\lccode"1F27="1F27 \global\uccode"1F27="0397 +\global\lccode"1F28="1F20 \global\uccode"1F28="0397 +\global\lccode"1F29="1F21 \global\uccode"1F29="0397 +\global\lccode"1F2A="1F22 \global\uccode"1F2A="0397 +\global\lccode"1F2B="1F23 \global\uccode"1F2B="0397 +\global\lccode"1F2C="1F24 \global\uccode"1F2C="0397 +\global\lccode"1F2D="1F25 \global\uccode"1F2D="0397 +\global\lccode"1F2E="1F26 \global\uccode"1F2E="0397 +\global\lccode"1F2F="1F27 \global\uccode"1F2F="0397 +\global\lccode"1F30="1F30 \global\uccode"1F30="0399 +\global\lccode"1F31="1F31 \global\uccode"1F31="0399 +\global\lccode"1F32="1F32 \global\uccode"1F32="0399 +\global\lccode"1F33="1F33 \global\uccode"1F33="0399 +\global\lccode"1F34="1F34 \global\uccode"1F34="0399 +\global\lccode"1F35="1F35 \global\uccode"1F35="0399 +\global\lccode"1F36="1F36 \global\uccode"1F36="0399 +\global\lccode"1F37="1F37 \global\uccode"1F37="0399 +\global\lccode"1F38="1F30 \global\uccode"1F38="0399 +\global\lccode"1F39="1F31 \global\uccode"1F39="0399 +\global\lccode"1F3A="1F32 \global\uccode"1F3A="0399 +\global\lccode"1F3B="1F33 \global\uccode"1F3B="0399 +\global\lccode"1F3C="1F34 \global\uccode"1F3C="0399 +\global\lccode"1F3D="1F35 \global\uccode"1F3D="0399 +\global\lccode"1F3E="1F36 \global\uccode"1F3E="0399 +\global\lccode"1F3F="1F37 \global\uccode"1F3F="0399 +\global\lccode"1F40="1F40 \global\uccode"1F40="039F +\global\lccode"1F41="1F41 \global\uccode"1F41="039F +\global\lccode"1F42="1F42 \global\uccode"1F42="039F +\global\lccode"1F43="1F43 \global\uccode"1F43="039F +\global\lccode"1F44="1F44 \global\uccode"1F44="039F +\global\lccode"1F45="1F45 \global\uccode"1F45="039F +\global\lccode"1F48="1F40 \global\uccode"1F48="039F +\global\lccode"1F49="1F41 \global\uccode"1F49="039F +\global\lccode"1F4A="1F42 \global\uccode"1F4A="039F +\global\lccode"1F4B="1F43 \global\uccode"1F4B="039F +\global\lccode"1F4C="1F44 \global\uccode"1F4C="039F +\global\lccode"1F4D="1F45 \global\uccode"1F4D="039F +\global\lccode"1F50="1F50 \global\uccode"1F50="03A5 +\global\lccode"1F51="1F51 \global\uccode"1F51="03A5 +\global\lccode"1F52="1F52 \global\uccode"1F52="03A5 +\global\lccode"1F53="1F53 \global\uccode"1F53="03A5 +\global\lccode"1F54="1F54 \global\uccode"1F54="03A5 +\global\lccode"1F55="1F55 \global\uccode"1F55="03A5 +\global\lccode"1F56="1F56 \global\uccode"1F56="03A5 +\global\lccode"1F57="1F57 \global\uccode"1F57="03A5 +\global\lccode"1F59="1F51 \global\uccode"1F59="03A5 +\global\lccode"1F5B="1F53 \global\uccode"1F5B="03A5 +\global\lccode"1F5D="1F55 \global\uccode"1F5D="03A5 +\global\lccode"1F5F="1F57 \global\uccode"1F5F="03A5 +\global\lccode"1F60="1F60 \global\uccode"1F60="03A9 +\global\lccode"1F61="1F61 \global\uccode"1F61="03A9 +\global\lccode"1F62="1F62 \global\uccode"1F62="03A9 +\global\lccode"1F63="1F63 \global\uccode"1F63="03A9 +\global\lccode"1F64="1F64 \global\uccode"1F64="03A9 +\global\lccode"1F65="1F65 \global\uccode"1F65="03A9 +\global\lccode"1F66="1F66 \global\uccode"1F66="03A9 +\global\lccode"1F67="1F67 \global\uccode"1F67="03A9 +\global\lccode"1F68="1F60 \global\uccode"1F68="03A9 +\global\lccode"1F69="1F61 \global\uccode"1F69="03A9 +\global\lccode"1F6A="1F62 \global\uccode"1F6A="03A9 +\global\lccode"1F6B="1F63 \global\uccode"1F6B="03A9 +\global\lccode"1F6C="1F64 \global\uccode"1F6C="03A9 +\global\lccode"1F6D="1F65 \global\uccode"1F6D="03A9 +\global\lccode"1F6E="1F66 \global\uccode"1F6E="03A9 +\global\lccode"1F6F="1F67 \global\uccode"1F6F="03A9 +\global\lccode"1F70="1F70 \global\uccode"1F70="0391 +\global\lccode"1F71="1F71 \global\uccode"1F71="0391 +\global\lccode"1F72="1F72 \global\uccode"1F72="0395 +\global\lccode"1F73="1F73 \global\uccode"1F73="0395 +\global\lccode"1F74="1F74 \global\uccode"1F74="0397 +\global\lccode"1F75="1F75 \global\uccode"1F75="0397 +\global\lccode"1F76="1F76 \global\uccode"1F76="0399 +\global\lccode"1F77="1F77 \global\uccode"1F77="0399 +\global\lccode"1F78="1F78 \global\uccode"1F78="039F +\global\lccode"1F79="1F79 \global\uccode"1F79="039F +\global\lccode"1F7A="1F7A \global\uccode"1F7A="03A5 +\global\lccode"1F7B="1F7B \global\uccode"1F7B="03A5 +\global\lccode"1F7C="1F7C \global\uccode"1F7C="03A9 +\global\lccode"1F7D="1F7D \global\uccode"1F7D="03A9 +\global\lccode"1F80="1F80 \global\uccode"1F80="1FBC +\global\lccode"1F81="1F81 \global\uccode"1F81="1FBC +\global\lccode"1F82="1F82 \global\uccode"1F82="1FBC +\global\lccode"1F83="1F83 \global\uccode"1F83="1FBC +\global\lccode"1F84="1F84 \global\uccode"1F84="1FBC +\global\lccode"1F85="1F85 \global\uccode"1F85="1FBC +\global\lccode"1F86="1F86 \global\uccode"1F86="1FBC +\global\lccode"1F87="1F87 \global\uccode"1F87="1FBC +\global\lccode"1F88="1F80 \global\uccode"1F88="1FBC +\global\lccode"1F89="1F81 \global\uccode"1F89="1FBC +\global\lccode"1F8A="1F82 \global\uccode"1F8A="1FBC +\global\lccode"1F8B="1F83 \global\uccode"1F8B="1FBC +\global\lccode"1F8C="1F84 \global\uccode"1F8C="1FBC +\global\lccode"1F8D="1F85 \global\uccode"1F8D="1FBC +\global\lccode"1F8E="1F86 \global\uccode"1F8E="1FBC +\global\lccode"1F8F="1F87 \global\uccode"1F8F="1FBC +\global\lccode"1F90="1F90 \global\uccode"1F90="1FCC +\global\lccode"1F91="1F91 \global\uccode"1F91="1FCC +\global\lccode"1F92="1F92 \global\uccode"1F92="1FCC +\global\lccode"1F93="1F93 \global\uccode"1F93="1FCC +\global\lccode"1F94="1F94 \global\uccode"1F94="1FCC +\global\lccode"1F95="1F95 \global\uccode"1F95="1FCC +\global\lccode"1F96="1F96 \global\uccode"1F96="1FCC +\global\lccode"1F97="1F97 \global\uccode"1F97="1FCC +\global\lccode"1F98="1F90 \global\uccode"1F98="1FCC +\global\lccode"1F99="1F91 \global\uccode"1F99="1FCC +\global\lccode"1F9A="1F92 \global\uccode"1F9A="1FCC +\global\lccode"1F9B="1F93 \global\uccode"1F9B="1FCC +\global\lccode"1F9C="1F94 \global\uccode"1F9C="1FCC +\global\lccode"1F9D="1F95 \global\uccode"1F9D="1FCC +\global\lccode"1F9E="1F96 \global\uccode"1F9E="1FCC +\global\lccode"1F9F="1F97 \global\uccode"1F9F="1FCC +\global\lccode"1FA0="1FA0 \global\uccode"1FA0="1FFC +\global\lccode"1FA1="1FA1 \global\uccode"1FA1="1FFC +\global\lccode"1FA2="1FA2 \global\uccode"1FA2="1FFC +\global\lccode"1FA3="1FA3 \global\uccode"1FA3="1FFC +\global\lccode"1FA4="1FA4 \global\uccode"1FA4="1FFC +\global\lccode"1FA5="1FA5 \global\uccode"1FA5="1FFC +\global\lccode"1FA6="1FA6 \global\uccode"1FA6="1FFC +\global\lccode"1FA7="1FA7 \global\uccode"1FA7="1FFC +\global\lccode"1FA8="1FA0 \global\uccode"1FA8="1FFC +\global\lccode"1FA9="1FA1 \global\uccode"1FA9="1FFC +\global\lccode"1FAA="1FA2 \global\uccode"1FAA="1FFC +\global\lccode"1FAB="1FA3 \global\uccode"1FAB="1FFC +\global\lccode"1FAC="1FA4 \global\uccode"1FAC="1FFC +\global\lccode"1FAD="1FA5 \global\uccode"1FAD="1FFC +\global\lccode"1FAE="1FA6 \global\uccode"1FAE="1FFC +\global\lccode"1FAF="1FA7 \global\uccode"1FAF="1FFC +\global\lccode"1FB0="1FB0 \global\uccode"1FB0="1FB8 +\global\lccode"1FB1="1FB1 \global\uccode"1FB1="1FB9 +\global\lccode"1FB2="1FB2 \global\uccode"1FB2="1FBC +\global\lccode"1FB3="1FB3 \global\uccode"1FB3="1FBC +\global\lccode"1FB4="1FB4 \global\uccode"1FB4="1FBC +\global\lccode"1FB6="1FB6 \global\uccode"1FB6="0391 +\global\lccode"1FB7="1FB7 \global\uccode"1FB7="1FBC +\global\lccode"1FB8="1FB0 \global\uccode"1FB8="1FB8 +\global\lccode"1FB9="1FB1 \global\uccode"1FB9="1FB9 +\global\lccode"1FBA="1F70 \global\uccode"1FBA="0391 +\global\lccode"1FBB="1F71 \global\uccode"1FBB="0391 +\global\lccode"1FBC="1FB3 \global\uccode"1FBC="1FBC +\global\lccode"1FBD="1FBD \global\uccode"1FBD="1FBD +\global\lccode"1FC2="1FC2 \global\uccode"1FC2="1FCC +\global\lccode"1FC3="1FC3 \global\uccode"1FC3="1FCC +\global\lccode"1FC4="1FC4 \global\uccode"1FC4="1FCC +\global\lccode"1FC6="1FC6 \global\uccode"1FC6="0397 +\global\lccode"1FC7="1FC7 \global\uccode"1FC7="1FCC +\global\lccode"1FC8="1F72 \global\uccode"1FC8="0395 +\global\lccode"1FC9="1F73 \global\uccode"1FC9="0395 +\global\lccode"1FCA="1F74 \global\uccode"1FCA="0397 +\global\lccode"1FCB="1F75 \global\uccode"1FCB="0397 +\global\lccode"1FCC="1FC3 \global\uccode"1FCC="1FCC +\global\lccode"1FD0="1FD0 \global\uccode"1FD0="1FD8 +\global\lccode"1FD1="1FD1 \global\uccode"1FD1="1FD9 +\global\lccode"1FD2="1FD2 \global\uccode"1FD2="03AA +\global\lccode"1FD3="1FD3 \global\uccode"1FD3="03AA +\global\lccode"1FD6="1FD6 \global\uccode"1FD6="0399 +\global\lccode"1FD7="1FD7 \global\uccode"1FD7="03AA +\global\lccode"1FD8="1FD0 \global\uccode"1FD8="1FD8 +\global\lccode"1FD9="1FD1 \global\uccode"1FD9="1FD9 +\global\lccode"1FDA="1F76 \global\uccode"1FDA="0399 +\global\lccode"1FDB="1F77 \global\uccode"1FDB="0399 +\global\lccode"1FE0="1FE0 \global\uccode"1FE0="1FE8 +\global\lccode"1FE1="1FE1 \global\uccode"1FE1="1FE9 +\global\lccode"1FE2="1FE2 \global\uccode"1FE2="03AB +\global\lccode"1FE3="1FE3 \global\uccode"1FE3="03AB +\global\lccode"1FE4="1FE4 \global\uccode"1FE4="03A1 +\global\lccode"1FE5="1FE5 \global\uccode"1FE5="03A1 +\global\lccode"1FE6="1FE6 \global\uccode"1FE6="03A5 +\global\lccode"1FE7="1FE7 \global\uccode"1FE7="03AB +\global\lccode"1FE8="1FE0 \global\uccode"1FE8="1FE8 +\global\lccode"1FE9="1FE1 \global\uccode"1FE9="1FE9 +\global\lccode"1FEA="1F7A \global\uccode"1FEA="03A5 +\global\lccode"1FEB="1F7B \global\uccode"1FEB="03A5 +\global\lccode"1FEC="1FE5 \global\uccode"1FEC="03A1 +\global\lccode"1FF2="1FF2 \global\uccode"1FF2="1FFC +\global\lccode"1FF3="1FF3 \global\uccode"1FF3="1FFC +\global\lccode"1FF4="1FF4 \global\uccode"1FF4="1FFC +\global\lccode"1FF6="1FF6 \global\uccode"1FF6="03A9 +\global\lccode"1FF7="1FF7 \global\uccode"1FF7="1FFC +\global\lccode"1FF8="1F78 \global\uccode"1FF8="039F +\global\lccode"1FF9="1F79 \global\uccode"1FF9="039F +\global\lccode"1FFA="1F7C \global\uccode"1FFA="03A9 +\global\lccode"1FFB="1F7D \global\uccode"1FFB="03A9 +\global\lccode"1FFC="1FF3 \global\uccode"1FFC="1FFC</pre> +</div> +<div class="section" id="uclclist"> +<h2><a class="toc-backref" href="#id13">uclclist</a></h2> <p>The common Greek font encoding definitions in <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a> extend the -<cite>uclclist</cite> with Greek LICR macros. Here, we add Unicode-specific “<a class="reference external" href="greek-fontenc.def.html#mark-hiatus">hiatus</a>” -handling (copied from <a class="reference external" href="lgrenc.def.html">lgrenc.def</a> and changed Latin transcription to Unicode -literals):</p> +<cite>uclclist</cite> with Greek LICR macros. Here, we add textkoppa/textKoppa and +Unicode-specific “<a class="reference external" href="greek-fontenc.def.html#mark-hiatus">hiatus</a>” handling (copied from <a class="reference external" href="lgrenc.def.html">lgrenc.def</a> and changed +Latin transcription to Unicode literals).</p> +<p>@uclclist extension (see also <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a>):</p> +<pre class="literal-block">\providecommand*\greek@euenc@update@uclclist{% + \expandafter\def\expandafter\@uclclist\expandafter{% + \@uclclist + \textkoppa \textKoppa + }% + \let\greek@euenc@update@uclclist\relax +}</pre> +<p>Expand the uclc list using the just defined macro:</p> +<pre class="literal-block">\greek@euenc@update@uclclist</pre> +<p>Now the hiatus definition modifications:</p> <pre class="literal-block">\DeclareTextCommand{\LGR@A@hiatus}{\LastDeclaredEncoding}{% \LGR@ifnextchar{Ι}{\textAlpha\"}{% \LGR@ifnextchar{Υ}{\textAlpha\"}{% @@ -1262,10 +1415,10 @@ literals):</p> }% }% }% -} -</pre> +}</pre> <!-- References --> </div> </div> +</div> </body> </html> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html index 18d03593ced..68f51265dcf 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html @@ -1,644 +1,409 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>greek-fontenc.def</title> -<meta name="copyright" content="© 2013 Günter Milde" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; +} + +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; } +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ - -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } - -span.problematic { - color: red } +div.align-right { text-align: inherit } -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; } -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; -} - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} +/* Bibliographic Fields */ -/* docinfo */ - -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ -} - -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; + margin-left: 20%; } -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; -} -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} - -/* lists nested in definition list */ - -dd > ul, dd > ol { - padding-left: 0pt; -} - -/* TODO: prefix, suffix? */ - -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ - -/* Tables */ -/* ====== */ +/* Tables */ +/* ====== */ -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; -} - -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} - -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -647,7 +412,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -656,80 +420,138 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em +} +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } + +/* Sidebar */ -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ + +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ -span.sectnum { - padding-right: 1ex; +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* Hyperlink References */ +a { text-decoration: none; } + +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> <body> <div class="document" id="greek-fontenc-def"> <h1 class="title">greek-fontenc.def</h1> -<h2 class="subtitle" id="common-greek-font-encoding-definitions">Common Greek font encoding definitions</h2> +<p class="subtitle" id="common-greek-font-encoding-definitions">Common Greek font encoding definitions</p> <dl class="docinfo"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2013 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> -<dt>Identification</dt> -<dd><pre class="literal-block">\ProvidesFile{greek-fontenc.def} -[2014/12/12 v0.12 Common Greek font encoding definitions] -</pre> +<dt class="identification">Identification</dt> +<dd class="identification"><pre class="literal-block">\ProvidesFile{greek-fontenc.def} +[2015/08/04 v0.13 Common Greek font encoding definitions]</pre> </dd> </dl> <div class="abstract topic"> @@ -737,13 +559,13 @@ version 1.3 of this license or any later version.</p> <p>This file provides definitions that are shared between font encodings providing Greek characters.</p> </div> -<dl class="docutils"> +<dl> <dt>Changelog:</dt> <dd><table class="borderless"> <colgroup> -<col width="7%" /> -<col width="16%" /> -<col width="77%" /> +<col style="width: 7%" /> +<col style="width: 16%" /> +<col style="width: 77%" /> </colgroup> <tbody> <tr><td><p>0.9</p></td> @@ -756,12 +578,16 @@ font encodings providing Greek characters.</p> </tr> <tr><td><p>0.11</p></td> <td><p>2013-11-28</p></td> -<td><p><tt class="literal">\greekscript</tt> TextCommand</p></td> +<td><p><span class="docutils literal">\greekscript</span> TextCommand</p></td> </tr> <tr><td><p>0.12</p></td> <td><p>2014-12-12</p></td> <td><p>Remove symbol macros for breathing accents.</p></td> </tr> +<tr><td><p>0.13</p></td> +<td><p>2015/08/04</p></td> +<td><p>No @uclclist entry for ypogegrammeni/prosgegrammeni.</p></td> +</tr> </tbody> </table> </dd> @@ -775,22 +601,20 @@ font encodings providing Greek characters.</p> <h1>Implementation</h1> <div class="section" id="ensuregreek-greekscript"> <h2>ensuregreek, greekscript</h2> -<p>Provide “empty” encoding-specific definitions for <tt class="literal">\ensuregreek</tt> and -<tt class="literal">\greekscript</tt>. The definitions in this file make the font encoding fit -for use with the Greek script. (See <tt class="literal">textalpha.sty</tt> for default +<p>Provide “empty” encoding-specific definitions for <span class="docutils literal">\ensuregreek</span> and +<span class="docutils literal">\greekscript</span>. The definitions in this file make the font encoding fit +for use with the Greek script. (See <span class="docutils literal">textalpha.sty</span> for default definitions.)</p> -<p>The <tt class="literal">\ensuregreek</tt> macro can be used to ensure that its argument is set +<p>The <span class="docutils literal">\ensuregreek</span> 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. -<tt class="literal"><span class="pre">\ensuregreek{A}\ensuregreek{\Upsilon}</span></tt>) is preserved. This allows, e.g., +<span class="docutils literal"><span class="pre">\ensuregreek{A}\ensuregreek{\Upsilon}</span></span>) is preserved. This allows, e.g., wrapping of compound Unicode character definitions.</p> -<pre class="literal-block">\ProvideTextCommand{\ensuregreek}{\LastDeclaredEncoding}[1]{#1} -</pre> -<p>The <tt class="literal">\greekscript</tt> declaration switches to a font encoding supporting +<pre class="literal-block">\ProvideTextCommand{\ensuregreek}{\LastDeclaredEncoding}[1]{#1}</pre> +<p>The <span class="docutils literal">\greekscript</span> declaration switches to a font encoding supporting the Greek script, if required. The following definition announces the -<tt class="literal">\LastDeclaredEncoding</tt> as Greek-supporting:</p> -<pre class="literal-block">\ProvideTextCommand{\greekscript}{\LastDeclaredEncoding}{} -</pre> +<span class="docutils literal">\LastDeclaredEncoding</span> as Greek-supporting:</p> +<pre class="literal-block">\ProvideTextCommand{\greekscript}{\LastDeclaredEncoding}{}</pre> </div> <div class="section" id="aliases"> <h2>Aliases</h2> @@ -806,50 +630,44 @@ without the need for additional <a class="reference internal" href="#uclclist">u \DeclareTextCommand{\textDigammagreek}{\LastDeclaredEncoding}{\textDigamma} \DeclareTextCommand{\textnumeralsigngreek}{\LastDeclaredEncoding}{\textdexiakeraia} -\DeclareTextCommand{\textnumeralsignlowergreek}{\LastDeclaredEncoding}{\textaristerikeraia} -</pre> -<p>Two Unicode names for one character:</p> +\DeclareTextCommand{\textnumeralsignlowergreek}{\LastDeclaredEncoding}{\textaristerikeraia}</pre> +<p>Names from <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> and <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> (do we want to define them here as alias?)</p> +<pre class="code latex literal-block"><code><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\anwtonos</span><span class="name builtin">}{</span><span class="keyword">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="keyword">\textdexiakeraia</span><span class="name builtin">}</span> <span class="comment">% ʹ +</span><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\katwtonos</span><span class="name builtin">}{</span><span class="keyword">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="keyword">\textaristerikeraia</span><span class="name builtin">}</span> <span class="comment">% ͵</span></code></pre> +<p>Two Unicode code points and names for one character:</p> <pre class="literal-block">\DeclareTextCommand{\accoxia}{\LastDeclaredEncoding}{\acctonos} -\DeclareTextCommand{\acckoronis}{\LastDeclaredEncoding}{\accpsili} -</pre> +\DeclareTextCommand{\acckoronis}{\LastDeclaredEncoding}{\accpsili}</pre> <p>Symbol macros for the breathings:</p> -<p>Moved to <tt class="literal">textalpha.sty</tt> to avoid clashes with local definitions -of <tt class="literal">\<</tt> and <tt class="literal">\></tt> in documents using LGR or babel-greek. +<p>Moved to <span class="docutils literal">textalpha.sty</span> to avoid clashes with local definitions +of <span class="docutils literal">\<</span> and <span class="docutils literal">\></span> in documents using LGR or babel-greek. (Bugreport David Kastrup). If you want to use the short macros without loading <cite>textalpha</cite>, you can define them in the document preamble like</p> -<pre class="code latex literal-block"><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\<</span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span><span class="keyword">\accdasia</span><span class="name builtin">}</span> +<pre class="code latex literal-block"><code><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\<</span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span><span class="keyword">\accdasia</span><span class="name builtin">}</span> <span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\></span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span><span class="keyword">\accpsili</span><span class="name builtin">}</span> <span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\></span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>'<span class="name builtin">}{</span><span class="keyword">\accpsilioxia</span><span class="name builtin">}</span> <span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\></span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>`<span class="name builtin">}{</span><span class="keyword">\accpsilivaria</span><span class="name builtin">}</span> <span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\></span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>~<span class="name builtin">}{</span><span class="keyword">\accpsiliperispomeni</span><span class="name builtin">}</span> <span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\<</span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>'<span class="name builtin">}{</span><span class="keyword">\accdasiaoxia</span><span class="name builtin">}</span> <span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\<</span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>`<span class="name builtin">}{</span><span class="keyword">\accdasiavaria</span><span class="name builtin">}</span> -<span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\<</span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>~<span class="name builtin">}{</span><span class="keyword">\accdasiaperispomeni</span><span class="name builtin">}</span> -</pre> -<p>TODO: do we also want alternative symbols for the breathings (cf. X compose +<span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\<</span><span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>~<span class="name builtin">}{</span><span class="keyword">\accdasiaperispomeni</span><span class="name builtin">}</span></code></pre> +<p>Or use alternative symbols for the breathings (cf. X compose table, LCI encoding)?</p> -<pre class="code latex literal-block"><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="literal string">\(</span><span class="name builtin">}{</span><span class="name variable">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="name variable">\accdasia</span><span class="name builtin">} -</span><span class="name variable">\DeclareTextCommand</span><span class="name builtin">{</span><span class="literal string">\)</span><span class="name builtin">}{</span><span class="keyword">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="keyword">\accpsili</span><span class="name builtin">}</span> -</pre> -<p>Names from <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> and <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> (do we want to define them here as alias?)</p> -<pre class="code latex literal-block"><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\anwtonos</span><span class="name builtin">}{</span><span class="keyword">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="keyword">\textdexiakeraia</span><span class="name builtin">}</span> <span class="comment">% ʹ -</span><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\katwtonos</span><span class="name builtin">}{</span><span class="keyword">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="keyword">\textaristerikeraia</span><span class="name builtin">}</span> <span class="comment">% ͵</span> -</pre> +<pre class="code latex literal-block"><code><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="literal string">\(</span><span class="name builtin">}{</span><span class="name variable">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="name variable">\accdasia</span><span class="name builtin">} +</span><span class="name variable">\DeclareTextCommand</span><span class="name builtin">{</span><span class="literal string">\)</span><span class="name builtin">}{</span><span class="keyword">\LastDeclaredEncoding</span><span class="name builtin">}{</span><span class="keyword">\accpsili</span><span class="name builtin">}</span></code></pre> </div> <div class="section" id="composite-diacritics"> <h2>Composite diacritics</h2> <p>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</p> -<pre class="code latex literal-block"><span class="keyword">\accdialytica\accvaria\textalpha</span>, +<pre class="code latex literal-block"><code><span class="keyword">\accdialytica\accvaria\textalpha</span>, <span class="keyword">\"\'\textalpha</span>, <span class="keyword">\"</span>'<span class="keyword">\textalpha</span>, or -<span class="keyword">\'</span>"<span class="keyword">\textalpha</span>. -</pre> +<span class="keyword">\'</span>"<span class="keyword">\textalpha</span>.</code></pre> <p>Separate definitions for the supported variants of the second input token are required as composition is based on the non-expanded input</p> <p>The composition with simple “transcription characters” must also be defined -for the symbol macros, otherwise it fails with <tt class="literal">\Makeuppercase</tt>.</p> +for the symbol macros, otherwise it fails with <span class="docutils literal">\Makeuppercase</span>.</p> <p>For Unicode encodings (where they do not resolve to Greek named macros, composite definitions starting with standard macros are requried:</p> <pre class="literal-block">\DeclareTextCompositeCommand{\accdialytika}{\LastDeclaredEncoding}{\acctonos}{\accdialytikatonos} @@ -937,22 +755,21 @@ composite definitions starting with standard macros are requried:</p> \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\`}{\accdasiavaria} \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{`}{\accdasiavaria} \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\accperispomeni}{\accdasiaperispomeni} -\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\~}{\accdasiaperispomeni} -</pre> +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\~}{\accdasiaperispomeni}</pre> </div> <div class="section" id="uppercase"> <span id="uclclist"></span><h2>UPPERCASE</h2> -<p>If UPPERCASE (all-caps) is generated with <tt class="literal">\MakeUppercase</tt>, macro -substitutions in the <tt class="literal">\@uclclist</tt> apply. This can be used to drop the +<p>If UPPERCASE (all-caps) is generated with <span class="docutils literal">\MakeUppercase</span>, macro +substitutions in the <span class="docutils literal">\@uclclist</span> apply. This can be used to drop the diacritics (except dialytika and sub-iota). Different conventions exist for the <a class="reference external" href="http://www.tlg.uci.edu/~opoudjis/unicode/unicode_adscript.html">treatment of sub-iota with uppercase letters</a>. In the CB Fonts, an “index” iota is used.</p> <div class="section" id="uclclist-extension"> <h3>@uclclist extension</h3> -<p>Based on the <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> and <tt class="literal">fontenc.sty</tt>.</p> +<p>Based on the <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> and <span class="docutils literal">fontenc.sty</span>.</p> <p>The definition of an auxiliary, self-restting macro makes this idempotent -(only the first use of this function will expand the <tt class="literal">@uclclist</tt>). -The second and third lines are TeX’ way of writing <tt class="literal">uclclist += …</tt>:</p> +(only the first use of this function will expand the <span class="docutils literal">@uclclist</span>). +The second and third lines are TeX’ way of writing <span class="docutils literal">uclclist += …</span>:</p> <pre class="literal-block">\providecommand*\update@uclc@with@greek{% \expandafter\def\expandafter\@uclclist\expandafter{% \@uclclist @@ -970,7 +787,7 @@ The second and third lines are TeX’ way of writing <tt class="literal">uclclis \accdialytikavaria\LGR@accDialytika \accdialytikaperispomeni\LGR@accDialytika \accperispomeni\LGR@accdropped - \ypogegrammeni\prosgegrammeni + % \ypogegrammeni\prosgegrammeni \textalpha \textAlpha \textbeta \textBeta \textgamma \textGamma @@ -1004,23 +821,19 @@ The second and third lines are TeX’ way of writing <tt class="literal">uclclis \textdigamma \textDigamma }% \let\update@uclc@with@greek\relax -} -</pre> +}</pre> <p>Expand the uclc list using the just defined macro:</p> -<pre class="literal-block">\update@uclc@with@greek -</pre> +<pre class="literal-block">\update@uclc@with@greek</pre> </div> <div class="section" id="substitution-macros"> <h3>Substitution macros</h3> <p>Drop diacritics (The argument passing ensures that kerning is preserved)</p> -<pre class="literal-block">\DeclareTextCommand{\LGR@accdropped}{\LastDeclaredEncoding}[1]{#1} -</pre> +<pre class="literal-block">\DeclareTextCommand{\LGR@accdropped}{\LastDeclaredEncoding}[1]{#1}</pre> <p>Keep dialytika: Define a dummy alias so that downcasing with -<tt class="literal">\MakeLowercase</tt> does not convert a simple dialytika to a composite +<span class="docutils literal">\MakeLowercase</span> does not convert a simple dialytika to a composite accent:</p> <pre class="literal-block">\DeclareTextCommand{\LGR@accDialytika}{\LastDeclaredEncoding}{\accdialytika} -\DeclareTextCompositeCommand{\accdialytika}{\LastDeclaredEncoding}{\LGR@hiatus}{\accdialytika} -</pre> +\DeclareTextCompositeCommand{\accdialytika}{\LastDeclaredEncoding}{\LGR@hiatus}{\accdialytika}</pre> </div> <div class="section" id="mark-hiatus"> <h3>Mark hiatus</h3> @@ -1032,15 +845,14 @@ second vowel if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑ \DeclareTextCompositeCommand{\LGR@hiatus}{\LastDeclaredEncoding}{>}{\LGR@hiatus} \DeclareTextCompositeCommand{\LGR@hiatus}{\LastDeclaredEncoding}{<}{\LGR@accdropped} \DeclareTextCompositeCommand{\LGR@hiatus}{\LastDeclaredEncoding}{\textAlpha}{\LGR@A@hiatus} -\DeclareTextCompositeCommand{\LGR@hiatus}{\LastDeclaredEncoding}{\textEpsilon}{\LGR@E@hiatus} -</pre> -<p>The font encoding file must define the <tt class="literal">\LGR@hiatus</tt> TextCommand. See -<tt class="literal">lgrenc.def</tt> for an example.</p> +\DeclareTextCompositeCommand{\LGR@hiatus}{\LastDeclaredEncoding}{\textEpsilon}{\LGR@E@hiatus}</pre> +<p>The font encoding file must define the <span class="docutils literal">\LGR@hiatus</span> TextCommand. See +<span class="docutils literal">lgrenc.def</span> for an example.</p> <p>The following macro can be used to test if the next character is an Alpha or -Epsilon. As <tt class="literal">\@ifnextchar</tt> gobbles spaces the lookahead macro definition -from <tt class="literal">amsgen.sty</tt> is used:</p> +Epsilon. As <span class="docutils literal">\@ifnextchar</span> gobbles spaces the lookahead macro definition +from <span class="docutils literal">amsgen.sty</span> is used:</p> <blockquote> -<p>This macro is a new version of LaTeX’s <tt class="literal">\@ifnextchar</tt>, macro +<p>This macro is a new version of LaTeX’s <span class="docutils literal">\@ifnextchar</span>, macro that does not skip over spaces.</p> </blockquote> <pre class="literal-block">\providecommand*{\LGR@ifnextchar}[3]{% @@ -1051,8 +863,7 @@ that does not skip over spaces.</p> \providecommand*{\LGR@ifnch}{% \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi \reserved@b -} -</pre> +}</pre> <!-- References - - - - - - - - - - --> </div> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf Binary files differindex 3fa16a7d2fa..da5e32998ba 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgr2licr.lua.html b/Master/texmf-dist/doc/latex/greek-fontenc/lgr2licr.lua.html index 33e6d586acb..82d424e5985 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/lgr2licr.lua.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgr2licr.lua.html @@ -1,13 +1,540 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> +<meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>LGR Transcription to Greek LICR transformation</title> -<meta name="copyright" content="© 2010 Günter Milde" /> -<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> -<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" /> +<style type="text/css"> + +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } +a.toc-backref { + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; +} + +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; +} +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } + +/* Lists */ + +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} + +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} + +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} + +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } + +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } + +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } + +/* Line Blocks */ +div.line-block { display: block; } +div.line-block div.line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} + +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} +/* reset inner alignment in figures */ +div.align-right { text-align: inherit } + +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} + +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} + +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; +} +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; +} +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { + text-align: left; + margin-bottom: 0.25em +} + +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} + +</style> +<style type="text/css"> + +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ +body { + padding: 0 5%; + margin: 8px 0; +} +div.document { + line-height:1.3; + counter-reset: table; + /* counter-reset: figure; */ + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; + margin: auto; +} + +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; + margin-bottom: 1em; + clear: both; +} + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; +} +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; +} + +/* Lists */ +/* ========== */ + +/* Definition Lists */ + +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ + +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } + +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} + +/* Field Lists */ + +/* example for custom field-name width */ +dl.field-list.narrow > dd { + margin-left: 5em; +} +/* run-in: start field-body on same line after long field names */ +dl.field-list.run-in > dd p { + display: block; +} + +/* Bibliographic Fields */ + +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; +} +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; +} +div.dedication p.topic-title { + font-style: normal; +} + +/* Citations */ +dl.citation dt.label { + font-weight: bold; +} +span.fn-backref { + font-weight: normal; +} + +/* Text Blocks */ +/* ============ */ + +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em +} + +/* Block Quotes */ + +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em +} +blockquote > table, +div.topic > table { + margin-top: 0; + margin-bottom: 0; +} +blockquote p.attribution, +div.topic p.attribution { + text-align: right; + margin-left: 20%; +} + +/* Tables */ +/* ====== */ + +/* th { vertical-align: bottom; } */ + +/* "booktabs" style (no vertical lines) */ +table.booktabs { + border: 0; + border-top: 2px solid; + border-bottom: 2px solid; + border-collapse: collapse; +} +table.booktabs * { + border: 0; +} +table.booktabs th { + border-bottom: thin solid; + text-align: left; +} + +/* numbered tables (counter defined in div.document) */ +table.numbered > caption:before { + counter-increment: table; + content: "Table " counter(table) ": "; + font-weight: bold; +} + +/* Explicit Markup Blocks */ +/* ====================== */ + +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; +} + +/* Directives */ +/* ---------- */ + +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ + +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em +} +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } + +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; +} + +/* Code */ + +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ + +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; +} + +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ + +/* Hyperlink References */ +a { text-decoration: none; } + +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ + +</style> </head> <body> <div class="document" id="lgr-transcription-to-greek-licr-transformation"> @@ -16,10 +543,10 @@ <dl class="docinfo simple"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2010 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> </dl> <!-- #!/usr/bin/env lua --> @@ -39,8 +566,7 @@ Options: -h, --help show this help if arg[1] == "-h" or arg[1] == "--help" then print(usage) return -end -</pre> +end</pre> <p>Get input string:</p> <pre class="literal-block">local s @@ -54,8 +580,7 @@ else -- test: -- s = "\\emph{x\\'us}" s = io.read("*all") -end -</pre> +end</pre> <p>The mapping from the LGR Latin transcription to LICR macros:</p> <pre class="literal-block">LGR_map = { A = "\\textAlpha{}", @@ -119,8 +644,7 @@ end ['"'] = '\\"', [";"] = "\\textanoteleia{}", ["?"] = "\\texterotimatiko{}", -} -</pre> +}</pre> <p>Return substitution string for 3 captures:</p> <p><cite>c1</cite> backslash <cite>c2</cite> a-zA-Z @@ -141,18 +665,15 @@ end -- non-standard meaning to the corresponding LICR macro -- (skip macros):: -- *([a-zA-Z'`~<>|\";?] -s = string.gsub(s, "(\\?)([a-zA-Z]*)([^\\]?)", lgr_replace) -</pre> +s = string.gsub(s, "(\\?)([a-zA-Z]*)([^\\]?)", lgr_replace)</pre> <p>Ligatures:</p> <pre class="literal-block">s = string.gsub(s, "%(%(", "\\guillemotleft{}") s = string.gsub(s, "%)%)", "\\guillemotright{}") s = string.gsub(s, "\\'\\'", "\\textquoteright{}") -- '' s = string.gsub(s, "\\`\\`", "\\textquoteleft{}") -- `` -s = string.gsub(s, '\"(%s)', "\\textquoteright{}%1") -</pre> +s = string.gsub(s, '\"(%s)', "\\textquoteright{}%1")</pre> <p>Separating empty group “{}” only required if followed by space or ASCII:</p> -<pre class="literal-block">s = string.gsub(s, "{}([^ a-zA-Z])", "%1") -</pre> +<pre class="literal-block">s = string.gsub(s, "{}([^ a-zA-Z])", "%1")</pre> <p>Autosigma replacements:</p> <pre class="literal-block">s = string.gsub(s, "\\textautosigma\\noboundary", "\\textsigma") -- sv s = string.gsub(s, "\\textautosigma(\\['`~<>|\"])", "\\textsigma%1") -- accents @@ -164,11 +685,9 @@ s = string.gsub(s, "\\textautosigma(\\textquote)", "\\textfinalsi s = string.gsub(s, "\\textautosigma(\\texterotimatiko)", "\\textfinalsigma%1") s = string.gsub(s, "\\textautosigma(\\textanoteleia)", "\\textfinalsigma%1") -s = string.gsub(s, "\\textautosigma$", "\\textfinalsigma") -</pre> +s = string.gsub(s, "\\textautosigma$", "\\textfinalsigma")</pre> <p>Write the result to stdout:</p> -<pre class="literal-block">io.write(s) -</pre> +<pre class="literal-block">io.write(s)</pre> </div> </body> </html> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf Binary files differindex 32a151675c0..d04afdcb943 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf 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 6e19e30039c..e20786b0fdd 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex @@ -22,7 +22,7 @@ % Shortcut accent macros \< and \>: % -% The Symbol macros for the breathings were +% The Symbol macros for the breathings were % moved to ``textalpha.sty`` to avoid clashes with possible local % definitions of these macros. % @@ -248,23 +248,29 @@ which automatically chooses the glyph according to the position. \LGR \textdigamma{} \Latin textdigamma \\ % ϝ (\digamma used by amsmath!) \LGR \textDigamma{} \Latin textDigamma \\ % Ϝ % numeral signs: http://en.wikipedia.org/wiki/Greek_numerals - \LGR \textnumeralsigngreek{} \Latin textnumeralsigngreek (Dexia keraia) \\ % ʹ + \LGR \textdexiakeraia{} \Latin textdexiakeraia | % ʹ + \LGR \textnumeralsigngreek{} \Latin textnumeralsigngreek (Dexia keraia)\\ % ʹ + \LGR \textaristerikeraia{} \Latin textaristerikeraia | % ͵ \LGR \textnumeralsignlowergreek{} \Latin textnumeralsignlowergreek - (Aristeri keraia)\\ % ͵ + (Aristeri keraia)\\ % ͵ \end{quote} -Mathematical notation sometimes uses variant shapes for pi ($\varpi$), -kappa (\emph{no TeX symbol available}), rho ($\varrho$), and theta -($\vartheta$). These variations have no syntactic meaning in Greek text and -are not given code-points in the LGR encoding. Some Greek text fonts use -the variant shapes in place of the ``regular'' ones. +\subsection{symbol variants} + +Mathematical notation distinguishes variant shapes for pi ($\pi|\varpi$), +rho ($\rho|\varrho$), theta ($\theta|\vartheta$), beta, and kappa +(characters for the latter two symbols are not included in TeX's math +fonts). These variations have no syntactic meaning in Greek text and are not +given code-points in the LGR encoding. Greek text fonts use the shape +variants interchangeabely. \section{Diacritics} -Capital Greek letters have Greek diacritics (except the dialytika) to the -left (instead of above) and drop them in UPPERCASE. This is implemented for -all combinations for which a pre-composed Unicode character exists (but not, -for, e.g.,\LGR \~W \Latin). +Capital Greek letters have Greek diacritics (except the dialytika and +sub-iota) to the left (instead of above) and drop them if text is set in +UPPERCASE. This is implemented for all combinations that are used in Greek +texts (i.e. for which pre-composed Unicode character exist), but not for, +e.g., \LGR\~W\Latin). % When a word is written entirely in capital letters, diacritics are % never used; the word Ἢ (or), is an exception to this rule because of @@ -273,7 +279,9 @@ for, e.g.,\LGR \~W \Latin). Different conventions exist for the treatment of the sub-iota with uppercase letters. The CB-Fonts use a capital Iota ``index'' (\LGR A|, H|, W|\Latin). -LaTeX standard accents +LaTeX standard accents% +\footnote{The ogonek (\emph{little hook}) accent \k{ } (\textbackslash k) +is not defined in LGR.} (Latin, Greek, Greek Capitals $\mapsto$ UPPERCASE) \begin{quote} @@ -283,7 +291,7 @@ LaTeX standard accents \`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a} \b{a} \c{a} \d{a} \k{a} } - + \LGR \`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a} \b{a} \c{a} \d{a} @@ -300,22 +308,21 @@ LaTeX standard accents } \end{quote} -\Latin -The comma-below (\verb|\k|) is not defined in LGR. - Additional Greek diacritics +(Greek, Greek Capitals% +\footnote{The dialytika is not used on Initial letters.} % (\LGR \"'I \"`I \~"I) +$\mapsto$ UPPERCASE) \begin{quote} \LGR - \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w} + \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w} a| $\mapsto$ \MakeUppercase{% - \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w} + \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w} a| } - % The dialytika is not used on Initial letters ("'I \"`I \~"I) - \<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W} + \<{A} \>{E} \<\`{I} \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W} A| $\mapsto$ \MakeUppercase{% - \<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W} + \<{A} \>{E} \<\`{I} \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W} A| } \end{quote} @@ -328,14 +335,16 @@ Additional Greek diacritics \>\~{h} \~>h \>~h \>\~h \~>h \~>h|, \~<h \<\~h, \>\~i \~>i, \~<i \<\~i, \~"i \"\~i \"~i,\\ \>\~u \~>u, \~<u \<\~u, \~"u \"\~u, -\>w, \<w, \>\~w \~>w, \~<w \<\~w. - +\>w, \<w, \>\~w \~>w, \~<w \<\~w, +a| a\ypogegrammeni{} A\ypogegrammeni{} A\prosgegrammeni{}. + \MakeUppercase{ \~>a \>\~a \~\>{a}, \~<a \<\~a \<~a \~\<a \~<a, \>\~{h} \~>h \>~h \>\~h \~>h \~>h|, \~<h \<\~h, \>\~i \~>i, \~<i \<\~i, \~"i \"\~i \\ % for \"~i, see below \>\~u \~>u, \~<u \<\~u, \~"u \"\~u, -\>w, \<w, \>\~w \~>w, \~<w \<\~w. +\>w, \<w, \>\~w \~>w, \~<w \<\~w, +a| a\ypogegrammeni{} A\ypogegrammeni{} A\prosgegrammeni{}. } \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>\texteta{} @@ -345,7 +354,7 @@ Additional Greek diacritics \\ \MakeUppercase{% \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`\>\texteta{} - \'<{\textomicron} \~<{\textupsilon} \~>{\textomega}. + \'<{\textomicron} \~<{\textupsilon} \~>{\textomega} \<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{} \'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega} } @@ -356,14 +365,16 @@ Additional Greek diacritics The tilde character can be used in combined accents. However, in documents not defining the Babel language \emph{greek} or -\emph{polutonikogreek}, it will produce a -no-break space if converted with \verb|\MakeUppercase|: +\emph{polutonikogreek}, better use the tilde-accent macro, as +the tilde produces a no-break space if converted with \verb|\MakeUppercase|: \begin{quote} + combined accent with tilde character: \LGR \"~i \<~i \"~u \<~u \`>u $\mapsto$ \LGR \MakeUppercase{\"~i \<~i \"~u \<~u \`>u} + + \Latin combined accent with tilde-accent macro: + \LGR \"\~i \~"u $\mapsto$ \MakeUppercase{\"\~i \~"u} \end{quote} -Use the tilde-accent macro: -\LGR \"\~i \~"u $\mapsto$ \MakeUppercase{\"\~i \~"u}. \Latin Accents input via the Latin transliteration are not dropped with @@ -372,7 +383,7 @@ MakeUppercase, unless Babel is loaded and the current language is Greek \texttt{greek.ldf} from the \emph{babel-greek} package). \begin{quote} \LGR - ', ", `, >, <, | $\mapsto$ \MakeUppercase{', ", `, >, <, |} + 'a "i `a >a <a a| $\mapsto$ \MakeUppercase{'a "i `a >a <a a|} \end{quote} @@ -471,4 +482,9 @@ Downcasing should keep diacritics (of course, it cannot regenerate ``manually" dropped ones): \LGR 'A \"I \"U \~<A $\mapsto$ \MakeLowercase{\'A \"I \"U \~<A} +% \Latin Comprehensive error message for missing symbol variants: +% \LGR \textbeta\textbetasymbol +% \texttheta\textthetasymbol +% \Latin + \end{document} 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 d43e9ac74ed..0cf32536e55 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html @@ -1,644 +1,409 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>lgrenc.def</title> -<meta name="copyright" content="© 2010, 2014 Günter Milde" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; +} +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } - -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +div.align-right { text-align: inherit } + +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; } -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; -} - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} - -/* docinfo */ +/* Bibliographic Fields */ -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ -} - -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; -} -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; + margin-left: 20%; } -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} - -/* lists nested in definition list */ - -dd > ul, dd > ol { - padding-left: 0pt; -} - -/* TODO: prefix, suffix? */ - -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ +/* Tables */ +/* ====== */ -/* Tables */ -/* ====== */ - -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; -} - -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} - -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -647,7 +412,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -656,75 +420,134 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ -span.sectnum { - padding-right: 1ex; +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ + +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* Hyperlink References */ +a { text-decoration: none; } + +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> <body> <div class="document" id="lgrenc-def"> <h1 class="title">lgrenc.def</h1> -<h2 class="subtitle" id="lgr-greek-font-encoding-definitions">LGR Greek font encoding definitions</h2> +<p class="subtitle" id="lgr-greek-font-encoding-definitions">LGR Greek font encoding definitions</p> <dl class="docinfo simple"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2010, 2014 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> </dl> <div class="abstract topic"> @@ -753,31 +576,32 @@ package.</p> <li><p><a class="reference internal" href="#ancient-greek-numbers-athenian-numerals" id="id11">Ancient Greek Numbers (Athenian Numerals)</a></p></li> <li><p><a class="reference internal" href="#archaic-letters" id="id12">Archaic letters</a></p></li> <li><p><a class="reference internal" href="#numeral-signs" id="id13">Numeral signs</a></p></li> +<li><p><a class="reference internal" href="#variant-symbols" id="id14">variant symbols</a></p></li> </ul> </li> -<li><p><a class="reference internal" href="#other" id="id14">Other</a></p></li> -<li><p><a class="reference internal" href="#not-implemented" id="id15">Not implemented</a></p></li> +<li><p><a class="reference internal" href="#other" id="id15">Other</a></p></li> +<li><p><a class="reference internal" href="#not-implemented" id="id16">Not implemented</a></p></li> </ul> </li> -<li><p><a class="reference internal" href="#diacritics" id="id16">Diacritics</a></p> +<li><p><a class="reference internal" href="#diacritics" id="id17">Diacritics</a></p> <ul> -<li><p><a class="reference internal" href="#named-macros" id="id17">Named macros</a></p></li> -<li><p><a class="reference internal" href="#aliases" id="id18">Aliases</a></p></li> +<li><p><a class="reference internal" href="#named-macros" id="id18">Named macros</a></p></li> +<li><p><a class="reference internal" href="#aliases" id="id19">Aliases</a></p></li> </ul> </li> -<li><p><a class="reference internal" href="#common-greek-font-encoding-definitions" id="id19">Common Greek font encoding definitions</a></p></li> -<li><p><a class="reference internal" href="#composite-definitions" id="id20">Composite definitions</a></p> +<li><p><a class="reference internal" href="#common-greek-font-encoding-definitions" id="id20">Common Greek font encoding definitions</a></p></li> +<li><p><a class="reference internal" href="#composite-definitions" id="id21">Composite definitions</a></p> <ul> -<li><p><a class="reference internal" href="#composite-diacritics" id="id21">Composite diacritics</a></p></li> -<li><p><a class="reference internal" href="#pre-composed-letters" id="id22">Pre-composed letters</a></p> +<li><p><a class="reference internal" href="#composite-diacritics" id="id22">Composite diacritics</a></p></li> +<li><p><a class="reference internal" href="#pre-composed-letters" id="id23">Pre-composed letters</a></p> <ul> -<li><p><a class="reference internal" href="#small-letters-with-diacritics" id="id23">Small letters with diacritics</a></p></li> -<li><p><a class="reference internal" href="#capital-letters-with-diacritics" id="id24">Capital letters with diacritics</a></p></li> +<li><p><a class="reference internal" href="#small-letters-with-diacritics" id="id24">Small letters with diacritics</a></p></li> +<li><p><a class="reference internal" href="#capital-letters-with-diacritics" id="id25">Capital letters with diacritics</a></p></li> </ul> </li> </ul> </li> -<li><p><a class="reference internal" href="#uppercase" id="id25">UPPERCASE</a></p></li> +<li><p><a class="reference internal" href="#uppercase" id="id26">UPPERCASE</a></p></li> </ul> </li> </ul> @@ -785,12 +609,12 @@ package.</p> <div class="section" id="changelog"> <h1><a class="toc-backref" href="#id2">Changelog</a></h1> <p>Development of this file started under the name “lgrxenc.def” as part of the -<a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a> bundle. With version 0.8, it moved to <tt class="literal"><span class="pre">greek-fontenc/lgrx.def</span></tt>.</p> +<a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a> bundle. With version 0.8, it moved to <span class="docutils literal"><span class="pre">greek-fontenc/lgrx.def</span></span>.</p> <table class="borderless"> <colgroup> -<col width="8%" /> -<col width="16%" /> -<col width="76%" /> +<col style="width: 8%" /> +<col style="width: 16%" /> +<col style="width: 76%" /> </colgroup> <tbody> <tr><td><p>0.1</p></td> @@ -804,7 +628,7 @@ package.</p> <tr><td><p>0.3</p></td> <td><p>2010-06-08</p></td> <td><p>handle Titlecase and UPPERCASE extending -<tt class="literal">\@uclclist</tt>.</p></td> +<span class="docutils literal">\@uclclist</span>.</p></td> </tr> <tr><td><p>0.4</p></td> <td><p>2010-06-15</p></td> @@ -812,7 +636,7 @@ package.</p> </tr> <tr><td><p>0.5</p></td> <td><p>2010-08-27</p></td> -<td><p>support <tt class="literal">\textalpha</tt> … <tt class="literal">\textOmega</tt>.</p></td> +<td><p>support <span class="docutils literal">\textalpha</span> … <span class="docutils literal">\textOmega</span>.</p></td> </tr> <tr><td><p>0.5.1</p></td> <td><p>2012-05-08</p></td> @@ -820,16 +644,16 @@ package.</p> </tr> <tr><td><p>0.6</p></td> <td><p>2012-06-29</p></td> -<td><p><tt class="literal">\TextGreek</tt> wrapper command,</p></td> +<td><p><span class="docutils literal">\TextGreek</span> wrapper command,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> -<td><p>aliases for <tt class="literal">puenc.def</tt> compatibility.</p></td> +<td></td> +<td><p>aliases for <span class="docutils literal">puenc.def</span> compatibility.</p></td> </tr> <tr><td><p>0.6.1</p></td> <td><p>2013-02-12</p></td> -<td><p><tt class="literal">\@uclclist</tt> entries for <cite>PU</cite> aliases.</p></td> +<td><p><span class="docutils literal">\@uclclist</span> entries for <cite>PU</cite> aliases.</p></td> </tr> <tr><td><p>0.7</p></td> <td><p>2013-05-13</p></td> @@ -837,8 +661,8 @@ package.</p> </tr> <tr><td><!-- --> </td> -<td> </td> -<td><p><tt class="literal">\TextGreek</tt> renamed to <tt class="literal">\ensuregreek</tt>.</p></td> +<td></td> +<td><p><span class="docutils literal">\TextGreek</span> renamed to <span class="docutils literal">\ensuregreek</span>.</p></td> </tr> <tr><td><p>0.8</p></td> <td><p>2013-05-13</p></td> @@ -846,12 +670,12 @@ package.</p> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>move to greek-fontenc,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>drop the old (<0.7) internal accent macros names.</p></td> </tr> <tr><td><p>0.8.1</p></td> @@ -860,58 +684,62 @@ package.</p> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>conservative naming: “text” prefix for archaic letters,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>“LGR@” prefix for internal commands,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>remove not required alias macros.</p></td> </tr> <tr><td><p>0.8.2</p></td> <td><p>2013-05-23</p></td> -<td><p>fix name: <tt class="literal">\textpentehkaton</tt> -> <tt class="literal">\textpentehekaton</tt>,</p></td> +<td><p>fix name: <span class="docutils literal">\textpentehkaton</span> -> <span class="docutils literal">\textpentehekaton</span>,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> -<td><p>fix <tt class="literal">\textperiodcentered</tt>,</p></td> +<td></td> +<td><p>fix <span class="docutils literal">\textperiodcentered</span>,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>add composite command for Ῥ (Rho with Dasia).</p></td> </tr> <tr><td><p>0.9</p></td> <td><p>2013-07-16</p></td> -<td><p>move common definitions to <tt class="literal"><span class="pre">greek-fontenc.def</span></tt>,</p></td> +<td><p>move common definitions to <span class="docutils literal"><span class="pre">greek-fontenc.def</span></span>,</p></td> </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>add composite commands for single quotation marks.</p></td> </tr> <tr><td><p>0.11.2</p></td> <td><p>2014-09-04</p></td> <td><p>remove duplicate code.</p></td> </tr> +<tr><td><p>0.13</p></td> +<td><p>2015-08-04</p></td> +<td><p>Support for symbol variants.</p></td> +</tr> </tbody> </table> </div> <div class="section" id="usage"> <h1><a class="toc-backref" href="#id3">Usage</a></h1> -<p>Load this file by calling <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> with the <tt class="literal">LGR</tt> option +<p>Load this file by calling <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> with the <span class="docutils literal">LGR</span> option or indirectly via the <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a>, <a class="reference external" href="textalpha.sty.html">textalpha</a> or <a class="reference external" href="alphabeta.sty.html">alphabeta</a> packages.</p> -<dl class="docutils"> +<dl> <dt>Example:</dt> <dd><p>Select font encodings <cite>T1</cite> (as default) and <cite>LGR</cite> (for Greek):</p> <blockquote> -<p><tt class="literal"><span class="pre">\usepackage[LGR,T1]{fontenc}</span></tt></p> +<p><span class="docutils literal"><span class="pre">\usepackage[LGR,T1]{fontenc}</span></span></p> </blockquote> </dd> </dl> @@ -920,11 +748,11 @@ or indirectly via the <a class="reference external" href="http://www.ctan.org/pk <h1><a class="toc-backref" href="#id4">Implementation</a></h1> <div class="section" id="read-this-file-only-once"> <h2><a class="toc-backref" href="#id5">Read this file only once</a></h2> -<div class="note"> +<div class="admonition note"> <p class="admonition-title">Note</p> -<p>The use of <tt class="literal">\@ifundefined</tt> has the side-effect that the tested -macro becomes defined and set to <tt class="literal">\relax</tt> (polluting the namespace and -interfering with tests via eTeX’s <tt class="literal">\ifdefined</tt>). However, in this case +<p>The use of <span class="docutils literal">\@ifundefined</span> has the side-effect that the tested +macro becomes defined and set to <span class="docutils literal">\relax</span> (polluting the namespace and +interfering with tests via eTeX’s <span class="docutils literal">\ifdefined</span>). However, in this case no harm is done as the macro is defined by the <a class="reference internal" href="#identification">identification</a> below anyway.</p> </div> @@ -933,31 +761,27 @@ anyway.</p> {} {\message{LGR font encoding definitions already loaded} \expandafter\endinput % "return" - } -</pre> + }</pre> </div> <div class="section" id="identification"> <h2><a class="toc-backref" href="#id6">Identification</a></h2> <pre class="literal-block">\ProvidesFile{lgrenc.def} -[2014/09/04 v0.11.2 LGR Greek font encoding definitions] +[2015/08/08 v0.13 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 % conditions of the "LaTeX Project Public License", either -% version 1.3 of this license or any later version. -</pre> +% version 1.3 of this license or any later version.</pre> <p>You can test the version date using</p> -<pre class="code latex literal-block"><span class="keyword">\@</span>ifl@ter <span class="name builtin">{</span>extension<span class="name builtin">}{</span>filename<span class="name builtin">}{</span>date<span class="name builtin">}{</span>YES<span class="name builtin">}{</span>NO<span class="name builtin">}</span> -</pre> -<p>or using <a class="reference external" href="http://www.ctan.org/pkg/ltxcmds">ltxcmds</a>’ <tt class="literal">\@iffilelater</tt>.</p> +<pre class="code latex literal-block"><code><span class="keyword">\@</span>ifl@ter <span class="name builtin">{</span>extension<span class="name builtin">}{</span>filename<span class="name builtin">}{</span>date<span class="name builtin">}{</span>YES<span class="name builtin">}{</span>NO<span class="name builtin">}</span></code></pre> +<p>or using <a class="reference external" href="http://www.ctan.org/pkg/ltxcmds">ltxcmds</a>’ <span class="docutils literal">\@iffilelater</span>.</p> </div> <div class="section" id="base-setup"> <h2><a class="toc-backref" href="#id7">Base setup</a></h2> <p>Declare the LGR font encoding and base substitutions:</p> <pre class="literal-block">\DeclareFontEncoding{LGR}{}{} \DeclareFontSubstitution{LGR}{cmr}{m}{n} -\DeclareErrorFont{LGR}{cmr}{m}{n}{10} -</pre> +\DeclareErrorFont{LGR}{cmr}{m}{n}{10}</pre> </div> <div class="section" id="text-symbols"> <h2><a class="toc-backref" href="#id8">Text symbols</a></h2> @@ -1023,20 +847,18 @@ encoding.</p> \DeclareTextSymbol{\textphi}{LGR}{102} \DeclareTextSymbol{\textchi}{LGR}{113} \DeclareTextSymbol{\textpsi}{LGR}{121} -\DeclareTextSymbol{\textomega}{LGR}{119} -</pre> +\DeclareTextSymbol{\textomega}{LGR}{119}</pre> </div> <div class="section" id="additional-greek-symbols"> <h3><a class="toc-backref" href="#id10">Additional Greek symbols</a></h3> <div class="section" id="ancient-greek-numbers-athenian-numerals"> <h4><a class="toc-backref" href="#id11">Ancient Greek Numbers (Athenian Numerals)</a></h4> -<p>Names from <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a> (<tt class="literal">ucsencs.def</tt>) +<p>Names from <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a> (<span class="docutils literal">ucsencs.def</span>) (In ucs, five hundred is (wrongly?) named textpentehkaton.)</p> <pre class="literal-block">\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 -</pre> +\DeclareTextSymbol{\textpentemuria}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND</pre> </div> <div class="section" id="archaic-letters"> <h4><a class="toc-backref" href="#id12">Archaic letters</a></h4> @@ -1052,25 +874,60 @@ encoding.</p> \DeclareTextSymbol{\textanoteleia}{LGR}{38} % · \DeclareTextSymbol{\texterotimatiko}{LGR}{63} % ; \DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ (ucs) \digamma used by amsmath for math-macro -\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ (ucs) -</pre> +\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ (ucs)</pre> </div> <div class="section" id="numeral-signs"> <h4><a class="toc-backref" href="#id13">Numeral signs</a></h4> <p>See also <a class="reference external" href="http://en.wikipedia.org/wiki/Greek_numerals">http://en.wikipedia.org/wiki/Greek_numerals</a></p> <p>Names from <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a>:</p> <pre class="literal-block">\DeclareTextSymbol{\textdexiakeraia}{LGR}{254} % ʹ (Dexia keraia) -\DeclareTextSymbol{\textaristerikeraia}{LGR}{255} % ͵ (Aristeri keraia) -</pre> +\DeclareTextSymbol{\textaristerikeraia}{LGR}{255} % ͵ (Aristeri keraia)</pre> +</div> +<div class="section" id="variant-symbols"> +<h4><a class="toc-backref" href="#id14">variant symbols</a></h4> +<p>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 +syntactic meaning in Greek text and are not given code-points in the LGR +encoding. Greek text fonts use the shape variants interchangeabely.</p> +<p>However, as Unicode defines separate code points for the symbol variants, we +provide fallback LICR macros with detailed error reporting:</p> +<pre class="literal-block">\providecommand*{\LGR@TextSymbolUnavailable}[1]{% + \PackageError{greek-fontenc}{character \string#1 not available \MessageBreak + in 8-bit TeX} + {Use XeTeX/LuaTeX if you need to distinguish the symbol from the letter.\MessageBreak + The package `textalpha' with `normalize-symbols' maps the GREEK SYMBOL\MessageBreak + character to the corresponding GREEK LETTER.\MessageBreak + Press <return> to proceed (dropping the symbol from the document).} +} + +\providecommand*{\LGR@TextSymbolOnlyMath}[2]{% + \PackageError{greek-fontenc}{character \string#1 not available in text mode} + {Use #2 or XeTeX/LuaTeX if you need to distinguish\MessageBreak + the symbol from the letter.\MessageBreak + The package `textalpha' with `normalize-symbols' maps the GREEK SYMBOL\MessageBreak + character to the corresponding GREEK LETTER.\MessageBreak + Press <return> to proceed (dropping the symbol from the document).} +} + +\ProvideTextCommand{\textbetasymbol} {LGR}{\LGR@TextSymbolUnavailable{ϐ beta symbol}} +\ProvideTextCommand{\textkappasymbol}{LGR}{\LGR@TextSymbolUnavailable{ϰ kappa symbol}} +\ProvideTextCommand{\textThetasymbol}{LGR}{\LGR@TextSymbolUnavailable{ϴ Theta symbol}} + +\ProvideTextCommand{\textthetasymbol} {LGR}{\LGR@TextSymbolOnlyMath{ϑ theta symbol}{$\vartheta$}} +\ProvideTextCommand{\textphisymbol} {LGR}{\LGR@TextSymbolOnlyMath{ϕ phi symbol}{$\phi$}} +\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$}}</pre> </div> </div> <div class="section" id="other"> -<h3><a class="toc-backref" href="#id14">Other</a></h3> +<h3><a class="toc-backref" href="#id15">Other</a></h3> <p>Characters that also exist in other font encodings:</p> <ul class="simple"> <li><p>define them for LGR if there is a matching glyph,</p></li> -<li><p>use established macro names that match with other <tt class="literal">*enc.def</tt> files and -<tt class="literal">textcomp.sty</tt>.</p></li> +<li><p>use established macro names that match with other <span class="docutils literal">*enc.def</span> files and +<span class="docutils literal">textcomp.sty</span>.</p></li> </ul> <p>All encodings: See usrguide.pdf, chapter 3.14 ff:</p> <pre class="literal-block">\DeclareTextSymbol{\textendash}{LGR}{0} % EN DASH @@ -1078,12 +935,10 @@ encoding.</p> \DeclareTextSymbol{\textquoteright}{LGR}{29} % ’ \DeclareTextSymbol{\textperiodcentered}{LGR}{38} % · = \textanoteleia \DeclareTextSymbol{\textcompwordmark}{LGR}{118} % ZERO WIDTH NO JOINER -\DeclareTextSymbol{\textemdash}{LGR}{127} % EM DASH -</pre> +\DeclareTextSymbol{\textemdash}{LGR}{127} % EM DASH</pre> <p>T1:</p> <pre class="literal-block">\DeclareTextSymbol{\guillemotleft}{LGR}{123} % « -\DeclareTextSymbol{\guillemotright}{LGR}{125} % » -</pre> +\DeclareTextSymbol{\guillemotright}{LGR}{125} % »</pre> <p>TS1:</p> <pre class="literal-block">\ProvideTextCommand{\textasciibreve}{LGR}{\char30\textcompwordmark} % ˘ \ProvideTextCommand{\textasciimacron}{LGR}{\char31\textcompwordmark} % ¯ @@ -1094,11 +949,9 @@ encoding.</p> \DeclareTextSymbol{\textohm}{LGR}{87} % Ω (Ohm sign -> Omega) \DeclareTextSymbol{\texteuro}{LGR}{24} % € \euro in greek.ldf \DeclareTextSymbol{\textpercent}{LGR}{37} % % -\DeclareTextSymbol{\textperthousand}{LGR}{25} % ‰ \permill in greek.ldf -</pre> +\DeclareTextSymbol{\textperthousand}{LGR}{25} % ‰ \permill in greek.ldf</pre> <p>T3 (tipa):</p> -<pre class="literal-block">\DeclareTextSymbol{\textschwa}{LGR}{26} % ə -</pre> +<pre class="literal-block">\DeclareTextSymbol{\textschwa}{LGR}{26} % ə</pre> <p>T3 also defines some greek letters as well as Latin characters with Greek names:</p> <p>According to the Unicode standard, the following IPA characters are identic @@ -1109,43 +962,43 @@ to the Greek letters:</p> <li><p>03BB greek small letter lamda</p></li> <li><p>03C7 greek small letter chi</p></li> </ul> -<p>The following characters in the IPA block are not Greek letters:</p> +<p>The following characters in the IPA block refer to Greek letters:</p> <ul class="simple"> -<li><p>0251 LATIN SMALL LETTER ALPHA ≠ greek small letter alpha - 03B1</p></li> -<li><p>025B LATIN SMALL LETTER OPEN E = epsilon ≠ greek small letter epsilon - 03B5</p></li> -<li><p>0263 LATIN SMALL LETTER GAMMA ≠ greek small letter gamma - 03B3</p></li> -<li><p>0269 LATIN SMALL LETTER IOTA ≠ greek small letter iota - 03B9</p></li> -<li><p>0278 LATIN SMALL LETTER PHI ≠ greek small letter phi - 03C6</p></li> -<li><p>028A LATIN SMALL LETTER UPSILON ≠ greek small letter upsilon - 03C5</p></li> +<li><p>0251 LATIN SMALL LETTER ALPHA → greek small letter alpha - 03B1</p></li> +<li><p>025B LATIN SMALL LETTER OPEN E = epsilon → greek small letter epsilon - 03B5</p></li> +<li><p>0263 LATIN SMALL LETTER GAMMA → greek small letter gamma - 03B3</p></li> +<li><p>0269 LATIN SMALL LETTER IOTA → greek small letter iota - 03B9</p></li> +<li><p>0278 LATIN SMALL LETTER PHI → greek small letter phi - 03C6</p></li> +<li><p>028A LATIN SMALL LETTER UPSILON → greek small letter upsilon - 03C5</p></li> </ul> -<p>Unfortunately, <cite>tipa</cite> uses the macro names <tt class="literal">\textepsilon</tt>, <tt class="literal">\textgamma</tt>, -<tt class="literal">\textiota</tt>, <tt class="literal">\textphi</tt>, and <tt class="literal">\textupsilon</tt> 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 name clashes with Unicode fonts. <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a> uses -the <tt class="literal">gr</tt> infix and alias names to disambiguate:</p> +<p><cite>tipa</cite> uses the macro names <span class="docutils literal">\textepsilon</span>, <span class="docutils literal">\textgamma</span>, <span class="docutils literal">\textiota</span>, +<span class="docutils literal">\textphi</span>, and <span class="docutils literal">\textupsilon</span> 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. <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a> uses the +<span class="docutils literal">gr</span> infix and alias names to disambiguate:</p> <ul class="simple"> -<li><p>03B3 <tt class="literal">\textgrgamma</tt></p></li> -<li><p>03B9 <tt class="literal">\textgriota</tt></p></li> -<li><p>03C6 <tt class="literal">\textgrphi</tt> (see x0278 )</p></li> +<li><p>03B3 <span class="docutils literal">\textgrgamma</span></p></li> +<li><p>03B9 <span class="docutils literal">\textgriota</span></p></li> +<li><p>03C6 <span class="docutils literal">\textgrphi</span> (see x0278 )</p></li> </ul> -<p>but not for epsilon and upsilon (03C2 <tt class="literal">\textgrsigma</tt> is the final sigma).</p> +<p>but not for epsilon and upsilon (03C2 <span class="docutils literal">\textgrsigma</span> is the final sigma).</p> <p>It also assigns alias names to the Latin counterparts, however not on a systematical basis:</p> <ul class="simple"> -<li><p>0194 <tt class="literal">\textGammaafrican</tt></p></li> -<li><p>0196 <tt class="literal">\textIotaafrican</tt></p></li> -<li><p>0251 <tt class="literal">\textscripta</tt></p></li> -<li><p>025B <tt class="literal">\texteopen</tt></p></li> -<li><p>0263 <tt class="literal">\textbabygamma</tt>, <tt class="literal">\textgammalatinsmall</tt></p></li> -<li><p>0269 <tt class="literal">\textiotalatin</tt></p></li> -<li><p>028A <tt class="literal">\textscupsilon</tt> % TIPA-U</p></li> +<li><p>0194 <span class="docutils literal">\textGammaafrican</span></p></li> +<li><p>0196 <span class="docutils literal">\textIotaafrican</span></p></li> +<li><p>0251 <span class="docutils literal">\textscripta</span></p></li> +<li><p>025B <span class="docutils literal">\texteopen</span></p></li> +<li><p>0263 <span class="docutils literal">\textbabygamma</span>, <span class="docutils literal">\textgammalatinsmall</span></p></li> +<li><p>0269 <span class="docutils literal">\textiotalatin</span></p></li> +<li><p>028A <span class="docutils literal">\textscupsilon</span> % TIPA-U</p></li> </ul> </div> <div class="section" id="not-implemented"> -<h3><a class="toc-backref" href="#id15">Not implemented</a></h3> -<p>The characters at position 16 and 17 are used in the <tt class="literal">\nexus</tt> macro +<h3><a class="toc-backref" href="#id16">Not implemented</a></h3> +<p>The characters at position 16 and 17 are used in the <span class="docutils literal">\nexus</span> macro of the <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> package to form an extensible, hat-like bracket. In -<tt class="literal">CB.enc</tt>, they are mapped to</p> +<span class="docutils literal">CB.enc</span>, they are mapped to</p> <blockquote> <p>16–MODIFIER LETTER LOW ACUTE ACCENT 17–MODIFIER LETTER LOW GRAVE ACCENT</p> @@ -1153,33 +1006,33 @@ of the <a class="reference external" href="http://www.ctan.org/pkg/teubner">teub <p>but according to the documentation of Werner Lemberg’s <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a>, they rather represent the left and right part of U+23E0 TOP TORTOISE SHELL BRACKET.</p> -<p>Babel’s <tt class="literal">lgrenc.def</tt> has some definitions to prevent surprises with +<p>Babel’s <span class="docutils literal">lgrenc.def</span> has some definitions to prevent surprises with macros that expect a Latin script. These definitions are problematic in a -font-encoding definition file as they require <tt class="literal">\textlatin</tt> which is -defined in <tt class="literal">babel.def</tt>. They were moved to <tt class="literal">greek.ldf</tt>.</p> +font-encoding definition file as they require <span class="docutils literal">\textlatin</span> which is +defined in <span class="docutils literal">babel.def</span>. They were moved to <span class="docutils literal">greek.ldf</span>.</p> </div> </div> <div class="section" id="diacritics"> -<h2><a class="toc-backref" href="#id16">Diacritics</a></h2> +<h2><a class="toc-backref" href="#id17">Diacritics</a></h2> <p>This section defines <a class="reference internal" href="#named-macros">named macros</a> for Greek diacritics and standard <a class="reference internal" href="#symbol-macros">symbol macros</a> as alias for simple diacritics. Convenient input conventions for <a class="reference internal" href="#composite-diacritics">composite diacritics</a> are defined as <a class="reference internal" href="#composite-definitions">composite definitions</a>.</p> <p>Advantages:</p> <ul class="simple"> -<li><p>input convention similar to LGR input encodings (just prepend a <tt class="literal">\</tt>).</p></li> +<li><p>input convention similar to LGR input encodings (just prepend a <span class="docutils literal">\</span>).</p></li> <li><p>Access pre-composed characters without resorting to the ligature mechanism (allows proper kerning, cf. <a class="reference external" href="http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf">teubner-doc</a>).</p></li> <li><p>Named macros can be used to ensure a font encoding supporting Greek is used. However, substitution with pre-composed characters works only for the active font encoding (cf. <a class="reference external" href="textalpha.sty.html">textalpha</a>). Named accent macros can also be -used instead of the <tt class="literal">\@tabacckludge</tt> by to-LaTeX converters to ensure +used instead of the <span class="docutils literal">\@tabacckludge</span> by to-LaTeX converters to ensure working also inside the tabbing environment.</p></li> <li><p>Named macros are required for upcasing according to Greek typesetting conventions (cf. <a class="reference internal" href="#uppercase">UPPERCASE</a> below) and for composite diacritics.</p></li> </ul> <div class="section" id="named-macros"> -<h3><a class="toc-backref" href="#id17">Named macros</a></h3> +<h3><a class="toc-backref" href="#id18">Named macros</a></h3> <p>Definitions are based on the <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> package by Claudio Beccari, the <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a> package, and the <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> by Werner Lemberg. Names are derived from the Unicode name with the prefix “acc” (cf. <cite>How to name accent macros?</cite> @@ -1191,14 +1044,12 @@ two-letter <a class="reference external" href="http://www.ctan.org/pkg/teubner"> \DeclareTextAccent{\accdasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing) \DeclareTextAccent{\accpsili}{LGR}{62} % ψιλή spiritus lenis (smooth breathing) \DeclareTextAccent{\accvaria}{LGR}{96} % βαρεῖα (grave) -\DeclareTextAccent{\accperispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde) -</pre> +\DeclareTextAccent{\accperispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde)</pre> <p>The <a class="reference external" href="http://en.wikipedia.org/wiki/Hypogegrammeni">sub-iota</a> is input after the base character. In LGR fonts, ligatures are defined for pre-composed characters, the postfix ligature does not interfere with kerning:</p> <pre class="literal-block">\DeclareTextSymbol{\prosgegrammeni}{LGR}{8} % ι "capital" sub-iota -\DeclareTextSymbol{\ypogegrammeni}{LGR}{124} % ͺ "small" sub-iota -</pre> +\DeclareTextSymbol{\ypogegrammeni}{LGR}{124} % ͺ "small" sub-iota</pre> <p>Composite diacritics:</p> <pre class="literal-block">% Teubner name \DeclareTextAccent{\accdialytikaperispomeni}{LGR}{32} % Cd @@ -1211,50 +1062,46 @@ with kerning:</p> \DeclareTextAccent{\accpsiliperispomeni}{LGR}{92} % Cs \DeclareTextAccent{\accpsilioxia}{LGR}{94} % As -\DeclareTextAccent{\accpsilivaria}{LGR}{95} % Gs -</pre> +\DeclareTextAccent{\accpsilivaria}{LGR}{95} % Gs</pre> <p>For classical Greek and linguistics, the LGR font encoding contains a number of additional diacritic symbols:</p> <pre class="literal-block">\DeclareTextAccent{\accinvertedbrevebelow}{LGR}{1} % INVERTED BREVE BELOW \DeclareTextAccent{\textsubarch}{LGR}{1} % (tipa) \DeclareTextAccent{\accbrevebelow}{LGR}{20} % BREVE BELOW -\DeclareTextAccent{\u}{LGR}{30} % BREVE -\DeclareTextAccent{\=}{LGR}{31} % MACRON -</pre> +\DeclareTextAccent{\u}{LGR}{30} % BREVE (Greek vrachy) +\DeclareTextAccent{\=}{LGR}{31} % MACRON</pre> </div> <div class="section" id="aliases"> -<h3><a class="toc-backref" href="#id18">Aliases</a></h3> +<h3><a class="toc-backref" href="#id19">Aliases</a></h3> <p>The standard <span class="target" id="symbol-macros">symbol macros</span> are exclusively used for Greek diacritics in LGR:</p> <pre class="literal-block">\DeclareTextCommand{\"}{LGR}{\accdialytika} \DeclareTextCommand{\'}{LGR}{\acctonos} \DeclareTextCommand{\`}{LGR}{\accvaria} -\DeclareTextCommand{\~}{LGR}{\accperispomeni} -</pre> +\DeclareTextCommand{\~}{LGR}{\accperispomeni}</pre> </div> </div> <div class="section" id="common-greek-font-encoding-definitions"> -<h2><a class="toc-backref" href="#id19">Common Greek font encoding definitions</a></h2> +<h2><a class="toc-backref" href="#id20">Common Greek font encoding definitions</a></h2> <p>The file greek-fontenc.def contains font encoding definitions that are shared by font encodings providing Greek characters:</p> -<pre class="literal-block">\input{greek-fontenc.def} -</pre> +<pre class="literal-block">\input{greek-fontenc.def}</pre> </div> <div class="section" id="composite-definitions"> -<h2><a class="toc-backref" href="#id20">Composite definitions</a></h2> +<h2><a class="toc-backref" href="#id21">Composite definitions</a></h2> <div class="section" id="composite-diacritics"> -<h3><a class="toc-backref" href="#id21">Composite diacritics</a></h3> +<h3><a class="toc-backref" href="#id22">Composite diacritics</a></h3> <p>Composite accents can be input as sequence of simple diacritics (in arbitrary order) via named macro, symbol macro and “transcription -characters”, e.g. <tt class="literal">\accdialytica\accvaria\textalpha</tt>, <tt class="literal"><span class="pre">\"\'\textalpha</span></tt>, -<tt class="literal"><span class="pre">\"'\textalpha</span></tt>, or <tt class="literal"><span class="pre">\'"\textalpha</span></tt>.</p> +characters”, e.g. <span class="docutils literal">\accdialytica\accvaria\textalpha</span>, <span class="docutils literal"><span class="pre">\"\'\textalpha</span></span>, +<span class="docutils literal"><span class="pre">\"'\textalpha</span></span>, or <span class="docutils literal"><span class="pre">\'"\textalpha</span></span>.</p> <p>The actual declarations are part of the <a class="reference internal" href="#common-greek-font-encoding-definitions">common Greek font encoding definitions</a>.</p> </div> <div class="section" id="pre-composed-letters"> -<h3><a class="toc-backref" href="#id22">Pre-composed letters</a></h3> +<h3><a class="toc-backref" href="#id23">Pre-composed letters</a></h3> <div class="section" id="small-letters-with-diacritics"> -<h4><a class="toc-backref" href="#id23">Small letters with diacritics</a></h4> +<h4><a class="toc-backref" href="#id24">Small letters with diacritics</a></h4> <p>(from <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> with changed names of the composite accents):</p> <pre class="literal-block">\DeclareTextComposite{\accvaria}{LGR}{a}{128} \DeclareTextComposite{\accdasia}{LGR}{a}{129} @@ -1336,8 +1183,7 @@ definitions</a>.</p> \DeclareTextComposite{\accpsilioxia}{LGR}{o}{238} \DeclareTextComposite{\accpsilivaria}{LGR}{o}{239} \DeclareTextComposite{\accdasia}{LGR}{r}{251} -\DeclareTextComposite{\accpsili}{LGR}{r}{252} -</pre> +\DeclareTextComposite{\accpsili}{LGR}{r}{252}</pre> <p>Pre-composed letters with diacritics + LICR macros:</p> <pre class="literal-block">\DeclareTextComposite{\accvaria}{LGR}{\textalpha}{128} \DeclareTextComposite{\accdasia}{LGR}{\textalpha}{129} @@ -1419,17 +1265,16 @@ definitions</a>.</p> \DeclareTextComposite{\accpsilioxia}{LGR}{\textomicron}{238} \DeclareTextComposite{\accpsilivaria}{LGR}{\textomicron}{239} \DeclareTextComposite{\accdasia}{LGR}{r}{251} -\DeclareTextComposite{\accpsili}{LGR}{r}{252} -</pre> +\DeclareTextComposite{\accpsili}{LGR}{r}{252}</pre> </div> <div class="section" id="capital-letters-with-diacritics"> -<h4><a class="toc-backref" href="#id24">Capital letters with diacritics</a></h4> +<h4><a class="toc-backref" href="#id25">Capital letters with diacritics</a></h4> <blockquote> <p>In Greek, diacritics are omitted in all-uppercase words, but kept as part of an uppercase initial (written before rather than above the letter).</p> <p>The diaytika should also always be used in all-uppercase words (even in cases where they are not needed when writing in lowercase)</p> -<p class="attribution">—<a class="reference external" href="http://en.wikipedia.org/wiki/Capitalization">http://en.wikipedia.org/wiki/Capitalization</a></p> +<p class="attribution">—<cite><a class="reference external" href="http://en.wikipedia.org/wiki/Capitalization">http://en.wikipedia.org/wiki/Capitalization</a></cite></p> </blockquote> <p>In Title Case, place diacritics before instead of above the base character:</p> <pre class="literal-block">\DeclareTextCompositeCommand{\accdasia}{LGR}{A}{<A} @@ -1501,12 +1346,10 @@ in cases where they are not needed when writing in lowercase)</p> \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{W}{>'W} \DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{W}{>\char126W} \DeclareTextCompositeCommand{\acctonos}{LGR}{W}{'W} -\DeclareTextCompositeCommand{\accvaria}{LGR}{W}{`W} -</pre> +\DeclareTextCompositeCommand{\accvaria}{LGR}{W}{`W}</pre> <p>Except for the dialytika:</p> <pre class="literal-block">\DeclareTextComposite{\accdialytika}{LGR}{I}{219} -\DeclareTextComposite{\accdialytika}{LGR}{U}{223} -</pre> +\DeclareTextComposite{\accdialytika}{LGR}{U}{223}</pre> <p>Do the same for the LICR macros:</p> <pre class="literal-block">\DeclareTextCompositeCommand{\accdasia}{LGR}{\textAlpha}{<A} \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textAlpha}{<`A} @@ -1577,29 +1420,25 @@ in cases where they are not needed when writing in lowercase)</p> \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textOmega}{>'W} \DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textOmega}{>\char126W} \DeclareTextCompositeCommand{\acctonos}{LGR}{\textOmega}{'W} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmega}{`W} -</pre> +\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmega}{`W}</pre> <p>Except for the dialytika:</p> <pre class="literal-block">\DeclareTextComposite{\accdialytika}{LGR}{\textIota}{219} -\DeclareTextComposite{\accdialytika}{LGR}{\textUpsilon}{223} -</pre> +\DeclareTextComposite{\accdialytika}{LGR}{\textUpsilon}{223}</pre> </div> </div> </div> <div class="section" id="uppercase"> -<h2><a class="toc-backref" href="#id25">UPPERCASE</a></h2> -<p>The <a class="reference internal" href="#common-greek-font-encoding-definitions">common Greek font encoding definitions</a> in <tt class="literal"><span class="pre">greek-fontenc.def</span></tt> extend +<h2><a class="toc-backref" href="#id26">UPPERCASE</a></h2> +<p>The <a class="reference internal" href="#common-greek-font-encoding-definitions">common Greek font encoding definitions</a> in <span class="docutils literal"><span class="pre">greek-fontenc.def</span></span> extend the <cite>uclclist</cite> with Greek LICR macros. Here, we add LGR specific “hiatus” handling.</p> <p>Composite commands for Latin transliteration:</p> <pre class="literal-block">\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{A}{\LGR@A@hiatus} -\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{E}{\LGR@E@hiatus} -</pre> +\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{E}{\LGR@E@hiatus}</pre> <p>TODO: What does the <a class="reference external" href="mailto:LGR@hiatus">LGR@hiatus</a> command “see” if a Unicode literal follows?</p> -<pre class="code latex literal-block"><span class="comment">% \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\symbol{"ce}}{bluff} +<pre class="code latex literal-block"><code><span class="comment">% \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\symbol{"ce}}{bluff} % \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{"cf}{blaff} -% \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{ι}{blaff}</span> -</pre> +% \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{ι}{blaff}</span></code></pre> <p>Look ahead and place a diaeresis on Ι or Υ:</p> <pre class="literal-block">\DeclareTextCommand{\LGR@A@hiatus}{LGR}{% \LGR@ifnextchar{I}{A\"}{% @@ -1618,26 +1457,23 @@ handling.</p> }% }% }% -} -</pre> +}</pre> <p>Unfortunately, the lookahead breaks kerning.</p> <p>Alternatives tried:</p> <ul> -<li><p>CompositeCommands fail at the end of a macro, e.g. <tt class="literal"><span class="pre">\emph{\'a}</span></tt></p> -<pre class="code latex literal-block"><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@A@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>A<span class="name builtin">}</span> +<li><p>CompositeCommands fail at the end of a macro, e.g. <span class="docutils literal"><span class="pre">\emph{\'a}</span></span></p> +<pre class="code latex literal-block"><code><span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@A@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>A<span class="name builtin">}</span> <span class="keyword">\DeclareTextCommand</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@E@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>E<span class="name builtin">}</span> <span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@A@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{}{</span>A<span class="name builtin">}</span> <span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@A@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>I<span class="name builtin">}{</span>A<span class="keyword">\"</span>I<span class="name builtin">}</span> -<span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@A@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>U<span class="name builtin">}{</span>A<span class="keyword">\"</span>U<span class="name builtin">}</span> -</pre> +<span class="keyword">\DeclareTextCompositeCommand</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@A@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>U<span class="name builtin">}{</span>A<span class="keyword">\"</span>U<span class="name builtin">}</span></code></pre> </li> <li><p>The glyph No 12 is a special “Upcase Alpha” that in ligature with Y and I adds a diaresis to them. However, it seems that it has only kerning definitions for I and Y (as it is not intended for direct use)</p> -<pre class="code latex literal-block"><span class="keyword">\DeclareTextComposite</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>A<span class="name builtin">}{</span>12<span class="name builtin">}</span> -</pre> +<pre class="code latex literal-block"><code><span class="keyword">\DeclareTextComposite</span><span class="name builtin">{</span><span class="keyword">\LGR</span>@hiatus<span class="name builtin">}{</span>LGR<span class="name builtin">}{</span>A<span class="name builtin">}{</span>12<span class="name builtin">}</span></code></pre> <p>No such glyph exists for E but this is no problem as E does not require kerning anyway.</p> </li> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/test-active-semicolon.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/test-active-semicolon.pdf Binary files differnew file mode 100644 index 00000000000..af13a37bbc6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/test-active-semicolon.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/test-nameclashes.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/test-nameclashes.pdf Binary files differnew file mode 100644 index 00000000000..0e68cf6d5eb --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/test-nameclashes.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.html b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.html new file mode 100644 index 00000000000..aa488357e4a --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.html @@ -0,0 +1,1137 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> +<title></title> +<style type="text/css"> + +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } +a.toc-backref { + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; +} + +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; +} +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } + +/* Lists */ + +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} + +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} + +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} + +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } + +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } + +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } + +/* Line Blocks */ +div.line-block { display: block; } +div.line-block div.line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} + +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} +/* reset inner alignment in figures */ +div.align-right { text-align: inherit } + +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} + +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} + +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; +} +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; +} +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { + text-align: left; + margin-bottom: 0.25em +} + +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} + +</style> +<style type="text/css"> + +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ +body { + padding: 0 5%; + margin: 8px 0; +} +div.document { + line-height:1.3; + counter-reset: table; + /* counter-reset: figure; */ + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; + margin: auto; +} + +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; + margin-bottom: 1em; + clear: both; +} + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; +} +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; +} + +/* Lists */ +/* ========== */ + +/* Definition Lists */ + +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ + +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } + +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} + +/* Field Lists */ + +/* example for custom field-name width */ +dl.field-list.narrow > dd { + margin-left: 5em; +} +/* run-in: start field-body on same line after long field names */ +dl.field-list.run-in > dd p { + display: block; +} + +/* Bibliographic Fields */ + +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; +} +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; +} +div.dedication p.topic-title { + font-style: normal; +} + +/* Citations */ +dl.citation dt.label { + font-weight: bold; +} +span.fn-backref { + font-weight: normal; +} + +/* Text Blocks */ +/* ============ */ + +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em +} + +/* Block Quotes */ + +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em +} +blockquote > table, +div.topic > table { + margin-top: 0; + margin-bottom: 0; +} +blockquote p.attribution, +div.topic p.attribution { + text-align: right; + margin-left: 20%; +} + +/* Tables */ +/* ====== */ + +/* th { vertical-align: bottom; } */ + +/* "booktabs" style (no vertical lines) */ +table.booktabs { + border: 0; + border-top: 2px solid; + border-bottom: 2px solid; + border-collapse: collapse; +} +table.booktabs * { + border: 0; +} +table.booktabs th { + border-bottom: thin solid; + text-align: left; +} + +/* numbered tables (counter defined in div.document) */ +table.numbered > caption:before { + counter-increment: table; + content: "Table " counter(table) ": "; + font-weight: bold; +} + +/* Explicit Markup Blocks */ +/* ====================== */ + +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; +} + +/* Directives */ +/* ---------- */ + +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ + +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em +} +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } + +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; +} + +/* Code */ + +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ + +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; +} + +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ + +/* Hyperlink References */ +a { text-decoration: none; } + +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ + +</style> +</head> +<body> +<div class="document"> + + +<p>documentclass{article} +usepackage{parskip} +usepackage{booktabs}</p> +<p>usepackage{lmodern} +usepackage{textcomp} +usepackage[LGR,T1]{fontenc}</p> +<p>% UTF8 input encoding for pdfTeX or LuaTeX in 8-bit compatibility mode: +% (XeTeX in compatibility mode would require xetex-inputenc.sty, which is not +% not at CTAN but on <a class="reference external" href="https://github.com/wspr/xetex-inputenc">https://github.com/wspr/xetex-inputenc</a>) +usepackage[utf8]{luainputenc}</p> +<p>usepackage[pdfencoding=auto,colorlinks=true]{hyperref} +usepackage{bookmark} +% hyperrefs PU encoding supports Greek LICR macros +DeclareTextCommand{ensuregreek}{PU}[1]{#1}</p> +<dl> +<dt>usepackage[normalize-symbols, % comment option out to test error reporting</dt> +<dd><blockquote> +<p>keep-semicolon%</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 21)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>]{textalpha}</p> +</dd> +</dl> +<p>begin{document}</p> +<p>title{The emph{textalpha} package} +author{Günter Milde} +maketitle</p> +<p>abstract{noindent +The emph{textalpha} package enables the use of Greek characters +in text independent of font encoding or TeX engine. Input is possible via +text commands (verb|textalpha| ldots +verb|textOmega|) or Unicode literalsfootnote{% +Requires emph{href{<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">http://www.ctan.org/pkg/greek-inputenc</a>}{greek-inputenc}} +or XeTeX/LuaTeX.}. +} +tableofcontents</p> +<p>section{Usage}</p> +<p>Load this package in the preamble of your document with +begin{verbatim}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 43)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>usepackage{textalpha}</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 44)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{verbatim} +eventually with options texttt{normalize-symbols} and/or +texttt{keep-semicolon} +.</p> +<p>If emph{textalpha} is loaded after the setup of Unicode fonts with the +href{<a class="reference external" href="http://www.ctan.org/pkg/fontspec">http://www.ctan.org/pkg/fontspec</a>}{emph{fontspec}} package under +LuaTeX and XeTeX, it provides a compatible interface for Greek in text mode.</p> +<p>See the source of this document url{textalpha-doc.tex} for a setup and +usage example, the literate source of the package +href{textalpha.sty.html}{textalpha.sty} for the implementation, and +href{greek-euenc-doc.pdf}{greek-euenc-doc.pdf} for +emph{Font setup for Greek with XeTeX/LuaTeX}.</p> +<p>subsection{option texttt{normalize-symbols}}</p> +<p>Mathematical notation uses variant shapes of some Greek letters as +additional symbols. There are separate code points for the symbol variants +in Unicode but not in the LGR font encoding used for Greek in 8-bit TeX. +TeX supports some of the variant shape symbols in mathematical mode +($theta|vartheta, phi|varphi, pi|varpi, rho|varrho, +epsilon|varepsilon$).</p> +<p>The variations have no syntactic meaning in Greek text and text fonts may +use the variant shapes in place of the “regular” ones as a stylistic choice. +However, some Greek texts in Unicode encoding use these GREEK +… SYMBOL characters in place of the corresponding GREEK LETTER … +characters.</p> +<p>The texttt{normalize-symbols} option merges letters and symbols to Greek +letters. This way, text copied from external sources can be compiled without +errors even if it contains GREEK SYMBOL characters in place of GREEK LETTERS: +begin{quote}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 80)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>This text uses both variants for beta (β|ϐ), theta (θ|ϑ), phi (φ|ϕ), pi +(π|ϖ), kappa (κ|ϰ), rho (ρ|ϱ), Theta (Θ|ϴ), and epsilon (ε|ϵ) in the LaTeX +source.</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 83)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>textbf{Attention}: Do not use this option in cases where the distinction +between the symbol variants may be important (e.g. in a mathematical or +scientific context). Try the emph{alphabeta} package with the +respective characters in math mode or use XeTeX/LuaTeX with Unicode fonts in +these cases.</p> +<p>This option is ignored with Unicode fonts.</p> +<p>subsection{texttt{keep-semicolon}}</p> +<p>LGR is no <a href="#id1"><span class="problematic" id="id2">``</span></a>standard font encoding”. Latin characters and some other ASCII +symbols are mapped to Greek <a href="#id3"><span class="problematic" id="id4">``</span></a>equivalents” if LGR is the active font +encoding. (See +href{<a class="reference external" href="http://mirrors.ctan.org/macros/latex/contrib/babel-contrib/greek/usage.pdf">http://mirrors.ctan.org/macros/latex/contrib/babel-contrib/greek/usage.pdf</a>}{usage.pdf} +for a description of this Latin-Greek transliteration.)</p> +<div class="system-message" id="id1"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 95); <em><a href="#id2">backlink</a></em></p> +<p>Inline literal start-string without end-string.</p> +</div> +<div class="system-message" id="id3"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 95); <em><a href="#id4">backlink</a></em></p> +<p>Inline literal start-string without end-string.</p> +</div> +<p>Special care is required with the question mark characters: +begin{itemize}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 103)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<dl> +<dt>item The LGR font encoding uses the Latin question mark as input for the</dt> +<dd><p>emph{erotimatiko} and maps the semicolon to a middle dot (emph{ano +teleia}).</p> +</dd> +<dt>item The Unicode standard provides the code point 037E GREEK QUESTION MARK</dt> +<dd><p>but says character 003B SEMICOLON and not 037E is the preferred +character for a <a href="#id5"><span class="problematic" id="id6">`</span></a>Greek question mark’ (erotimatiko),</p> +<div class="system-message" id="id5"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 107); <em><a href="#id6">backlink</a></em></p> +<p>Inline interpreted text or phrase reference start-string without end-string.</p> +</div> +</dd> +</dl> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 109)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{itemize} +As a result, only the deprecated character 037E GREEK QUESTION MARK works +with both, Xe/LuaTeX and 8-bit TeX.</p> +<p>The verb|textsemicolon| command inserts an emph{erotimatiko} in LGR and a +semicolon else (i.e. always a character that looks like a semicolon): +begin{quote}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 116)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>Latin (T1) atextsemicolon{} b, +Greek (LGR) ensuregreek{atextsemicolon{} b}</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 118)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>With the texttt{keep-semicolon} option, character 003B SEMICOLON can be used +for the emph{erotimatiko} also with LGR encoded fonts:</p> +<p>begin{center} +begin{tabular}{lll}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 125)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>Latin (T1) & Greek (LGR) & question mark character \ +midrule +Τί φήις; & ensuregreek{Τί φήις;} & 037E GREEK QUESTION MARK \ +Τί φήις; & ensuregreek{Τί φήις;} & 003B SEMICOLON \ +Τί φήις? & ensuregreek{Τί φήις?} & 003F QUESTION MARK \</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 130)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{tabular} +end{center}</p> +<p>This option is ignored with Unicode fonts.</p> +<p>section{Limitations label{sec:limitations}}</p> +<p>Because the internal font encoding switch interferes with other work behind +the scenes, kerning, diacritics and up/down-casing show problems if Greek +letters are used without explicit change of the font encoding.</p> +<p>These problems can be avoided by use of emph{babel} and the correct +language setting (greek), an explicit font encoding switch (e.g. +wrapping the Greek text in verb|ensuregreek|% +footnote{The texttt{textbackslash ensuregreek} macro ensures the argument</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 146)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>is set in a font encoding supporting Greek. +% This can be used to fix these +% problems without adverse side-effects if the active font encoding is +% already LGR or Unicode. +},</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 151)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>or XeTeX/LuaTeX with Unicode fonts.</p> +<p>subsection{Diacritics}</p> +<p>Composition of diacritics (like verb|accdasiaacctonos| or verb|<’<a href="#id15"><span class="problematic" id="id16">|) +fails in other font encodings. Long names (like \verb|</span></a>accdasiaoxia|) work.</p> +<p>With LGR, pre-composed glyphs are chosen if available. In other font +encodings, accent macros do not select pre-composed characters. (The +difference is a sub-optimal placement of the accent and becomes obvious if +you drag-and-drop text from the PDF version of this document.):</p> +<dl class="simple"> +<dt>begin{quote}</dt> +<dd><p>ensuregreek{<’a accdasiaacctonos a accdasiaoxia a +accdasiaoxiatextalpha} (LGR) vs. accdasiaoxiatextalpha{} (T1).</p> +</dd> +</dl> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 167)</p> +<p>Definition list ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>According to Greek typographical tradition, diacritics (except the +dialytika) are placed before capital letters in Titlecase and dropped in +UPPERCASE: +% +begin{quote}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 174)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<dl> +<dt>ensuregreek{%</dt> +<dd><p><{textalpha} >{textepsilon} “’{textiota} `>texteta{} +‘<{textomicron} ~<{textupsilon} ~>{textomega} +quad +<{textAlpha} >{textEpsilon} “{textIota} `>textEta{} +‘<{textOmicron} ~<{textUpsilon} ~>{textOmega} +quad +MakeUppercase{%</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 182)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p><{textalpha} >{textepsilon} “’{textiota} `>texteta{} +‘<{textomicron} ~<{textupsilon} ~>{textomega}</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 184)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>}</p> +</dd> +</dl> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 185)</p> +<p>Definition list ends without a blank line; unexpected unindent.</p> +</div> +<p>}</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 186)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote} +% +This fails for accent macros if the active font encoding is not LGR or +Unicode. Pre-composed literal Unicode characters are handled correctly: +begin{quote}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 191)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>ensuregreek{‘textAlpha/Ά} (LICR/Unicode in LGR) vs. +‘textAlpha/Ά (LICR/Unicode in T1).</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 193)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>The dialytika marks a emph{hiatus} (break-up of a diphthong). It must be +present in UPPERCASE even where it is redundant in lowercase (the hiatus can +also be marked by an accent on the first character of a diphthong). The +auto-hiatus feature works in LGR and Unicode font encodings only: +begin{quote}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 200)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>acctonostextalphatextupsilon{}, acctonostextepsilontextiota{} $mapsto$ +MakeUppercase{ensuregreek{</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 202)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>acctonostextalphatextupsilon{}, acctonostextepsilontextiota{}</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 203)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>}} (LGR) vs. +MakeUppercase{</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 205)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>acctonostextalphatextupsilon{}, acctonostextepsilontextiota{}%</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 206)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>} (T1)</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 207)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>Currently, the second vowel of the diphthong must be given as macro, not +Unicode literal if the auto-hiatus feature should work: +begin{quote} +ensuregreek{ἀtextupsilon{}πνία} $mapsto$ +ensuregreek{MakeUppercase{ensuregreek{ἀtextupsilon{}πνία}}} (LGR) vs. +ensuregreek{MakeUppercase{ensuregreek{ἀυπνία}}} (T1). +end{quote}</p> +<p>subsection{Kerning}</p> +<p>No kerning occurs between Greek characters in non-Greek text due to the +internal font encoding switch: compare +ensuregreek{textAlphatextUpsilontextAlpha} (LGR) to +textAlphatextUpsilontextAlpha (T1).</p> +<p>Compiling with LuaTeX provides kerning also over font encoding boundaries.</p> +<p>section{Test and Examples}</p> +<p>subsection{Greek alphabet}</p> +<p>Greek letters via Latin transcription in LGR font encoding:</p> +<dl class="simple"> +<dt>begin{quote}</dt> +<dd><p>ensuregreek{A B G D E Z H J I K L M N X O P R S T U F Q Y W}\ +ensuregreek{a b g d e z h j i k l m n x o p r sv c t u f q y w}</p> +</dd> +</dl> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 235)</p> +<p>Definition list ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>Greek letters via default macros in other font encoding (here T1):</p> +<dl class="simple"> +<dt>begin{quote}</dt> +<dd><p>textAlpha{} textBeta{} textGamma{} textDelta{} textEpsilon{} +textZeta{} textEta{} textTheta{} textIota{} textKappa{} +textLambda{} textMu{} textNu{} textXi{} textOmicron{} textPi{} +textRho{} textSigma{} textTau{} textUpsilon{} textPhi{} +textChi{} textPsi{} textOmega{} +\ +textalpha{} textbeta{} textgamma{} textdelta{} textepsilon{} +textzeta{} texteta{} texttheta{} textiota{} textkappa{} +textlambda{} textmu{} textnu{} textxi{} textomicron{} textpi{} +textrho{} textsigma{} textvarsigma{} texttau{} textupsilon{} +textphi{} textchi{} textpsi{} textomega{}</p> +</dd> +</dl> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 251)</p> +<p>Definition list ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>Archaic Greek letters and Greek punctuation</p> +<dl class="simple"> +<dt>begin{quote}</dt> +<dd><p>textDigamma +textanoteleia +textQoppa +textSampi +textStigma +textnumeralsigngreek +texterotimatiko +\ +textdigamma +textkoppa +textqoppa +textsampi +textstigma +textnumeralsignlowergreek +textvarstigma</p> +</dd> +</dl> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 271)</p> +<p>Definition list ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>Diacritics</p> +<dl> +<dt>begin{quote}</dt> +<dd><p>Symbol macros:% +footnote{Composite diacritics require wrapping in +texttt{textbackslash ensuregreek}.} +“{} ‘{} `{} ~{} <{} >{} u{} ={} +ensuregreek{“~{} “’{} “<a href="#id7"><span class="problematic" id="id8">`</span></a>{} <~{} <<a href="#id9"><span class="problematic" id="id10">`</span></a>{} <’{} >~{} >’{} >`{}}</p> +<div class="system-message" id="id7"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 276); <em><a href="#id8">backlink</a></em></p> +<p>Inline interpreted text or phrase reference start-string without end-string.</p> +</div> +<div class="system-message" id="id9"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 276); <em><a href="#id10">backlink</a></em></p> +<p>Inline interpreted text or phrase reference start-string without end-string.</p> +</div> +<p>Named macros: +accdialytika{} +acctonos{} +accvaria{} +accperispomeni{} +accdasia{} +accpsili{} +ypogegrammeni{} +prosgegrammeni{} +% +accdialytikaperispomeni{} +accdialytikatonos{} +accdialytikavaria{} +accdasiaperispomeni{} +accdasiavaria{} +accdasiaoxia{} +accpsiliperispomeni{} +accpsilioxia{} +accpsilivaria{} +% +accinvertedbrevebelow{} % == textsubarch{} +accbrevebelow{}</p> +</dd> +</dl> +<p>end{quote}</p> +<p>Accent macros can start with verb|a| instead of verb|| when the +short form is redefined, e.,g. inside a emph{tabbing} environment. +This also works for the new-defined Dasia and Psili shortcuts: +begin{quote}</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 312)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<dl class="simple"> +<dt>begin{tabbing}</dt> +<dd><p>COL1quad = COL2quad = COL3quad = COL4quad \ +COL1 > > COL3 \ +Viele > Gra”uss e +> greekscript a<textalpha{} +> greekscript a>textomega</p> +</dd> +</dl> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 318)</p> +<p>Definition list ends without a blank line; unexpected unindent.</p> +</div> +<p>end{tabbing}</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 319)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>end{quote}</p> +<p>subsection{Greek Unicode characters in non-Greek text}</p> +<p>With the emph{textalpha} package, +href{<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">http://www.ctan.org/pkg/greek-inputenc</a>}{greek-inputenc} and input +encoding texttt{utf8}, Greek Unicode characters can be used in text with +any font encoding. See Tables ref{tab:greek-and-coptic} and +ref{tab:greek-extended}.</p> +<p>Kerning is preserved if the font encoding is LGR: ensuregreek{AΫA}</p> +<p>begin{table}[tbp] +centerline{ +begin{tabular}{rrrrrrrrrrrrrrrrr} +toprule</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 336)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 337)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>midrule +370 & * & * & * & * & ʹ & ͵ & * & * & & & ͺ & * & * & * & ; & \ +380 & & & & & ΄ & ΅ & Ά & · & Έ & Ή & Ί & & Ό & & Ύ & Ώ\ +390 & ΐ & Α & Β & Γ & Δ & Ε & Ζ & Η & Θ & Ι & Κ & Λ & Μ & Ν & Ξ & Ο\ +3A0 & Π & Ρ & & Σ & Τ & Υ & Φ & Χ & Ψ & Ω & Ϊ & Ϋ & ά & έ & ή & ί\ +3B0 & ΰ & α & β & γ & δ & ε & ζ & η & θ & ι & κ & λ & μ & ν & ξ & ο\ +3C0 & π & ρ & ς & σ & τ & υ & φ & χ & ψ & ω & ϊ & ϋ & ό & ύ & ώ & \ +3D0 & * & * & * & * & * & * & * & * & Ϙ & ϙ & Ϛ & ϛ & Ϝ & ϝ & * & ϟ\ +3E0 & Ϡ & ϡ & * & * & * & * & * & * & * & * & * & * & * & * & * & <a href="#id11"><span class="problematic" id="id12">*</span></a>\ +3F0 & * & * & * & * & * & * & * & * & * & * & * & * & * & * & * & <a href="#id13"><span class="problematic" id="id14">*</span></a>\ +bottomrule +end{tabular} +} % end centerline +caption{Greek and Coptic Unicode Block, input as literal Unicode</p> +<div class="system-message" id="id11"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 337); <em><a href="#id12">backlink</a></em></p> +<p>Inline emphasis start-string without end-string.</p> +</div> +<div class="system-message" id="id13"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 337); <em><a href="#id14">backlink</a></em></p> +<p>Inline emphasis start-string without end-string.</p> +</div> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 351)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>characters in T1 font encoding (legend: * glyph missing in LGR).}</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 352)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>label{tab:greek-and-coptic} +end{table}</p> +<p>begin{table}[tbp] +centerline{ +begin{tabular}{rrrrrrrrrrrrrrrrr} +toprule</p> +<div class="system-message"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 360)</p> +<p>Unexpected indentation.</p> +</div> +<blockquote> +<p>& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\</p> +</blockquote> +<div class="system-message"> +<p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 361)</p> +<p>Block quote ends without a blank line; unexpected unindent.</p> +</div> +<p>midrule +1F00 & ἀ & ἁ & ἂ & ἃ & ἄ & ἅ & ἆ & ἇ & Ἀ & Ἁ & Ἂ & Ἃ & Ἄ & Ἅ & Ἆ & Ἇ\ +1F10 & ἐ & ἑ & ἒ & ἓ & ἔ & ἕ & & & Ἐ & Ἑ & Ἒ & Ἓ & Ἔ & Ἕ & & \ +1F20 & ἠ & ἡ & ἢ & ἣ & ἤ & ἥ & ἦ & ἧ & Ἠ & Ἡ & Ἢ & Ἣ & Ἤ & Ἥ & Ἦ & Ἧ\ +1F30 & ἰ & ἱ & ἲ & ἳ & ἴ & ἵ & ἶ & ἷ & Ἰ & Ἱ & Ἲ & Ἳ & Ἴ & Ἵ & Ἶ & Ἷ\ +1F40 & ὀ & ὁ & ὂ & ὃ & ὄ & ὅ & & & Ὀ & Ὁ & Ὂ & Ὃ & Ὄ & Ὅ & & \ +1F50 & ὐ & ὑ & ὒ & ὓ & ὔ & ὕ & ὖ & ὗ & & Ὑ & & Ὓ & & Ὕ & & Ὗ\ +1F60 & ὠ & ὡ & ὢ & ὣ & ὤ & ὥ & ὦ & ὧ & Ὠ & Ὡ & Ὢ & Ὣ & Ὤ & Ὥ & Ὦ & Ὧ\ +1F70 & ὰ & ά & ὲ & έ & ὴ & ή & ὶ & ί & ὸ & ό & ὺ & ύ & ὼ & ώ & & \ +1F80 & ᾀ & ᾁ & ᾂ & ᾃ & ᾄ & ᾅ & ᾆ & ᾇ & ᾈ & ᾉ & ᾊ & ᾋ & ᾌ & ᾍ & ᾎ & ᾏ\ +1F90 & ᾐ & ᾑ & ᾒ & ᾓ & ᾔ & ᾕ & ᾖ & ᾗ & ᾘ & ᾙ & ᾚ & ᾛ & ᾜ & ᾝ & ᾞ & ᾟ\ +1FA0 & ᾠ & ᾡ & ᾢ & ᾣ & ᾤ & ᾥ & ᾦ & ᾧ & ᾨ & ᾩ & ᾪ & ᾫ & ᾬ & ᾭ & ᾮ & ᾯ\ +1FB0 & ᾰ & ᾱ & ᾲ & ᾳ & ᾴ & & ᾶ & ᾷ & Ᾰ & Ᾱ & Ὰ & Ά & ᾼ & ᾽ & ι & ᾿\ +1FC0 & ῀ & ῁ & ῂ & ῃ & ῄ & & ῆ & ῇ & Ὲ & Έ & Ὴ & Ή & ῌ & ῍ & ῎ & ῏\ +1FD0 & ῐ & ῑ & ῒ & ΐ & & & ῖ & ῗ & Ῐ & Ῑ & Ὶ & Ί & & ῝ & ῞ & ῟\ +1FE0 & ῠ & ῡ & ῢ & ΰ & ῤ & ῥ & ῦ & ῧ & Ῠ & Ῡ & Ὺ & Ύ & Ῥ & ῭ & ΅ & `\ +1FF0 & & & ῲ & ῳ & ῴ & & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & \ +bottomrule +end{tabular} +} % end centerline +caption{Greek Extended Unicode Block, input as literal Unicode +characters in T1 font encoding.} +label{tab:greek-extended} +end{table}</p> +<p>Combined Diacritics work ᾅ, diacritics (except diaeresis) are dropped with +MakeUppercase (μαΐστρος $mapsto$ MakeUppercase{μαΐστρος}).</p> +<p>subsection{PDF strings}</p> +<p>With emph{textalpha} and +emph{href{<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">http://www.ctan.org/pkg/greek-inputenc</a>}{greek-inputenc}}, there +are two options to get Greek letters in PDF strings: LICR macros and literal +Unicode input.</p> +<dl class="simple"> +<dt>subsubsection{textlambdatextomicrontextgammatextomicrontextvarsigma{},</dt> +<dd><p>λογος and ensuregreek{logos}}</p> +</dd> +</dl> +<p>The subsection title above uses: LICR macros, Unicode input and the LGR +transcription for the Greek word ensuregreek{logos}. Check the table of +contents in the PDF viewer: LICR macros and Unicode literals work fine, the +Latin transcription remains Latin in the PDF metadata.</p> +<p>end{document}</p> +<div class="system-messages section"> +<h1>Docutils System Messages</h1> +<div class="system-message" id="id15"> +<p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">/home/milde/Code/sf-home/userweb/htdocs/greek/greek-fontenc/textalpha-doc.tex</span>, line 156); <em><a href="#id16">backlink</a></em></p> +<p>Undefined substitution referenced: ") fails in other font encodings. Long names (like verb".</p> +</div> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf Binary files differindex 48fc781285f..04bd33771f3 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.tex b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.tex index 17780a33524..c166b60bb97 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-doc.tex @@ -6,22 +6,18 @@ \usepackage{textcomp} \usepackage[LGR,T1]{fontenc} -% UTF8 input encoding for pdfTeX or Xe/LuaTeX in 8-bit compatibility mode: -\ifdefined \XeTeXrevision - \XeTeXinputencoding "bytes" -\fi -\ifdefined \luatexversion - \usepackage[utf8]{luainputenc} -\else - \usepackage[utf8]{inputenc} -\fi +% UTF8 input encoding for pdfTeX or LuaTeX in 8-bit compatibility mode: +% (XeTeX in compatibility mode would require xetex-inputenc.sty, which is not +% not at CTAN but on https://github.com/wspr/xetex-inputenc) +\usepackage[utf8]{luainputenc} \usepackage[pdfencoding=auto,colorlinks=true]{hyperref} \usepackage{bookmark} % hyperrefs PU encoding supports Greek LICR macros \DeclareTextCommand{\ensuregreek}{PU}[1]{#1} -\usepackage{textalpha} +\usepackage[normalize-symbols] % comment option out to test error reporting + {textalpha} \begin{document} @@ -29,20 +25,171 @@ \author{Günter Milde} \maketitle +Standard 8-bit TeX fonts do not support the Greek script. If Greek +characters shall be used with 8-bit TeX, setup of a Greek text font and an +explcit font-encoding switch is required. + With the \emph{textalpha} package, you can easily write a single Greek symbol (like \textPsi{} or \textmu{}) or a \textlambda\textomicron\textgamma\textomicron\textvarsigma{} in non-Greek text as well as ISO-conforming formulas with upright constants (like \textpi): $A = \mbox{\textpi} r^2$ vs. $A = \pi r^2$. Input is possible via -LICR macros (\verb|\textalpha| \ldots \verb|\textOmega|) or (with -\emph{\href{http://www.ctan.org/pkg/greek-inputenc}{greek-inputenc}} and the -utf8 option or XeTeX/LuaTeX) Unicode literals. +LICR macros (\verb|\textalpha| \ldots \verb|\textOmega|) +or Unicode literals\footnote{% +Requires \emph{\href{http://www.ctan.org/pkg/greek-inputenc}{greek-inputenc}} +and the utf8 option or XeTeX/LuaTeX.}. + +\tableofcontents + +\section{Usage} + +Load this package in the preamble of your document with +\begin{verbatim} + \usepackage{textalpha} +\end{verbatim} +If it is loaded after the setup of Unicode fonts with +\href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}} package under +LuaTeX and XeTeX, it provides a compatible interface for Greek in text mode. + +If you want to merge symbol variants, use the +\texttt{normalize-symbols} option:% +\footnote{This option is ignored with Unicode fonts.} +\begin{verbatim} + \usepackage[normalize-symbols]{textalpha} +\end{verbatim} See the source of this document \url{textalpha-doc.tex} for a setup and -usage example and the literate source of the package -\href{textalpha.sty.html}{textalpha.sty} for the implementation. +usage example, the literate source of the package +\href{textalpha.sty.html}{textalpha.sty} for the implementation, and +\emph{Font setup for Greek with XeTeX/LuaTeX} +(\href{euenc-doc.pdf}{euenc-doc.pdf}) for special feature under XeTeX/LuaTeX. + + +\subsection{option \texttt{normalize-symbols}} + +This option is ignored with Unicode fonts. + +Mathematical notation uses variant shapes of some Greek letters as +additional symbols. There are separate code points for the symbol variants +in Unicode but not in the LGR font encoding used for Greek in 8-bit TeX. +TeX supports some of the variant shape symbols in mathematical mode +($\theta|\vartheta, \phi|\varphi, \pi|\varpi, \rho|\varrho, +\epsilon|\varepsilon$). + +The variations have no syntactic meaning in Greek text and text fonts may +use the variant shapes in place of the “regular” ones as a stylistic choice. +However, some Greek texts in Unicode encoding use these GREEK +... SYMBOL characters in place of the corresponding GREEK LETTER ... +characters. + +The \texttt{normalize-symbols} option merges letters and symbols to Greek +letters. This way, text copied from external sources can be compiled without +errors even if it contains GREEK SYMBOL characters in place of GREEK LETTERS: +\begin{quote} + This text uses both variants for beta (β|ϐ), theta (θ|ϑ), phi (φ|ϕ), pi + (π|ϖ), kappa (κ|ϰ), rho (ρ|ϱ), Theta (Θ|ϴ), and epsilon (ε|ϵ) in the LaTeX + source. +\end{quote} + +\textbf{Attention}: Do not use this option in cases where the distinction +between the symbol variants may be important (e.g. in a mathematical or +scientific context). Try the \emph{alphabeta} package with the +respective characters in math mode or use XeTeX/LuaTeX with Unicode fonts in +these cases. + +\section{Limitations} + +Because the internal font encoding switch interferes with other work behind +the scenes, kerning, diacritics and up/down-casing show problems if Greek +letters are used without explicit change of the font encoding. + +These problems can be avoided by use of \emph{babel} and the correct +language setting (greek), an explicit font encoding switch (e.g. +wrapping the Greek text in \verb|\ensuregreek|% +\footnote{The \texttt{\textbackslash ensuregreek} macro ensures the argument + is set in a font encoding supporting Greek. + % This can be used to fix these + % problems without adverse side-effects if the active font encoding is + % already LGR or Unicode. + }, +or XeTeX/LuaTeX with Unicode fonts. + + +\subsection{Diacritics} + +Composition of diacritics (like \verb|\accdasia\acctonos| or \verb|\<\'|) +fails in other font encodings. Long names (like \verb|\accdasiaoxia|) work. + +With LGR, pre-composed glyphs are chosen if available. In other font +encodings, accent macros do not select pre-composed characters. (The +difference is a sub-optimal placement of the accent and becomes obvious if +you drag-and-drop text from the PDF version of this document.): + +\begin{quote} + \ensuregreek{\<'a \accdasia\acctonos a \accdasiaoxia a + \accdasiaoxia\textalpha} (LGR) vs. \accdasiaoxia\textalpha{} (T1). +\end{quote} + +According to Greek typographical tradition, diacritics (except the +dialytika) are placed before capital letters in Titlecase and dropped in +UPPERCASE: +% +\begin{quote} + \ensuregreek{% + \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>\texteta{} + \'<{\textomicron} \~<{\textupsilon} \~>{\textomega} + \quad + \<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{} + \'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega} + \quad + \MakeUppercase{% + \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`\>\texteta{} + \'<{\textomicron} \~<{\textupsilon} \~>{\textomega} + } + } +\end{quote} +% +This fails for accent macros if the active font encoding is not LGR or +Unicode. Pre-composed literal Unicode characters are handled correctly: +\begin{quote} + \ensuregreek{\'\textAlpha/Ά} (LICR/Unicode in LGR) vs. + \'\textAlpha/Ά (LICR/Unicode in T1). +\end{quote} + +The dialytika marks a \emph{hiatus} (break-up of a diphthong). It must be +present in UPPERCASE even where it is redundant in lowercase (the hiatus can +also be marked by an accent on the first character of a diphthong). The +auto-hiatus feature works in LGR and Unicode font encodings only: +\begin{quote} + \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{} $\mapsto$ + \MakeUppercase{\ensuregreek{ + \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{} + }} (LGR) vs. + \MakeUppercase{ + \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{}% + } (T1) +\end{quote} + +Currently, the second vowel of the diphthong must be given as macro, not +Unicode literal if the auto-hiatus feature should work: +\begin{quote} +\ensuregreek{ἀ\textupsilon{}πνία} $\mapsto$ +\ensuregreek{\MakeUppercase{\ensuregreek{ἀ\textupsilon{}πνία}}} (LGR) vs. +\ensuregreek{\MakeUppercase{\ensuregreek{ἀυπνία}}} (T1). +\end{quote} + +\subsection{Kerning} -\section{Greek alphabet} +No kerning occurs between Greek characters in non-Greek text due to the +internal font encoding switch: compare +\ensuregreek{\textAlpha\textUpsilon\textAlpha} (LGR) to +\textAlpha\textUpsilon\textAlpha (T1). + +Compiling with LuaTeX provides kerning also over font encoding boundaries. + +\section{Test and Examples} + +\subsection{Greek alphabet} Greek letters via Latin transcription in LGR font encoding: @@ -87,7 +234,6 @@ Archaic Greek letters and Greek punctuation \textvarstigma \end{quote} - Diacritics \begin{quote} @@ -130,27 +276,25 @@ This also works for the new-defined Dasia and Psili shortcuts: \begin{tabbing} COL1\quad \= COL2\quad \= COL3\quad \= COL4\quad \\ COL1 \> \> COL3 \\ - Viele \> Gr\a"u\ss e + Viele \> Gr\a"u\ss e \> \greekscript \a<\textalpha{} \> \greekscript \a>\textomega \end{tabbing} \end{quote} +\subsection{Greek Unicode characters in non-Greek text} -% \pagebreak{} - -\section{Greek Unicode characters in non-Greek text} +With the \emph{textalpha} package, +\href{http://www.ctan.org/pkg/greek-inputenc}{greek-inputenc} and input +encoding \texttt{utf8}, Greek Unicode characters can be used in text with +any font encoding. See Tables \ref{tab:greek-and-coptic} and +\ref{tab:greek-extended}. -With the \emph{textalpha} package and input encoding \texttt{utf8}, Greek -Unicode characters can be used in text with any font encoding. See Tables -\ref{tab:greek-and-coptic} and \ref{tab:greek-extended}. - -Kerning is preserved if the font encoding is LGR. This holds also for -pre-composed accented characters: \ensuregreek{AΫA}. +Kerning is preserved if the font encoding is LGR: \ensuregreek{AΫA} \begin{table}[tbp] - \centering +\centerline{ \begin{tabular}{rrrrrrrrrrrrrrrrr} \toprule & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ @@ -166,14 +310,15 @@ pre-composed accented characters: \ensuregreek{AΫA}. 3F0 & * & * & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ \bottomrule \end{tabular} +} % end centerline \caption{Greek and Coptic Unicode Block, input as literal Unicode - characters in T1 font encoding (legend: * glyph missing in LGR).} + characters in T1 font encoding (legend: * glyph missing in LGR).} \label{tab:greek-and-coptic} \end{table} \begin{table}[tbp] - \centering +\centerline{ \begin{tabular}{rrrrrrrrrrrrrrrrr} \toprule & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ @@ -196,6 +341,7 @@ pre-composed accented characters: \ensuregreek{AΫA}. 1FF0 & & & ῲ & ῳ & ῴ & & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & \\ \bottomrule \end{tabular} +} % end centerline \caption{Greek Extended Unicode Block, input as literal Unicode characters in T1 font encoding.} \label{tab:greek-extended} @@ -204,16 +350,14 @@ characters in T1 font encoding.} Combined Diacritics work ᾅ, diacritics (except diaeresis) are dropped with MakeUppercase (μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}). - - -\section{PDF strings} +\subsection{PDF strings} With \emph{textalpha} and \emph{\href{http://www.ctan.org/pkg/greek-inputenc}{greek-inputenc}}, there are two options to get Greek letters in PDF strings: LICR macros and literal Unicode input. -\subsection{\textlambda\textomicron\textgamma\textomicron\textvarsigma{}, +\subsubsection{\textlambda\textomicron\textgamma\textomicron\textvarsigma{}, λογος and \ensuregreek{logos}} The subsection title above uses: LICR macros, Unicode input and the LGR @@ -221,80 +365,4 @@ transcription for the Greek word \ensuregreek{logos}. Check the table of contents in the PDF viewer: LICR macros and Unicode literals work fine, the Latin transcription remains Latin in the PDF metadata. - -\section{Limitations} - -Because the internal font encoding switch interferes with other work behind -the scenes, kerning, diacritics and up/down-casing show problems if Greek -letters are used without explicit change of the font encoding. These -problems can be avoided by use of \emph{babel} and the correct language -setting (greek) or an explicit font encoding switch (e.g. -wrapping the Greek text in \verb|\ensuregreek|% -\footnote{The \texttt{\textbackslash ensuregreek} macro ensures the argument -is set in a font encoding supporting Greek. This can be used to fix these -problems without adverse side-effects if the active font encoding is already -LGR.}). - -\subsection{Diacritics} - -Composition of diacritics (like \verb|\accdasia\acctonos|) fails in other -font encodings. Long names (like \verb|\accdasiaoxia|) work, however they do -not select pre-composed characters. With LGR, pre-composed glyphs are chosen -if available (the difference becomes obvious if you drag-and-drop text from -the PDF version of this document): -% -\ensuregreek{\<'a \accdasia\acctonos a \accdasiaoxia a -\accdasiaoxia\textalpha} (LGR) vs. \accdasiaoxia\textalpha{} (T1). - -According to Greek typographical tradition, diacritics (except the -dialytika) are placed before capital letters in titlecase and dropped in -all-caps: -% -\begin{quote} - \ensuregreek{% - \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>\texteta{} - \'<{\textomicron} \~<{\textupsilon} \~>{\textomega} - \\ - \<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{} - \'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega} - \\ - \MakeUppercase{% - \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`\>\texteta{} - \'<{\textomicron} \~<{\textupsilon} \~>{\textomega}. - } - } -\end{quote} -% -This fails if the active font encoding is not LGR: -\ensuregreek{\'\textAlpha} (LGR) vs. \'\textAlpha (T1). -Therefore, named accent macros are used in composite Unicode -character definitions: \ensuregreek{Ά} (LGR) = Ά (T1). - -The dialytika marks a \emph{hiatus} (break-up of a diphthong). It must be -present in UPPERCASE even where it is redundant in lowercase (the hiatus can -also be marked by an accent on the first character of a diphthong). The -auto-hiatus feature works in LGR font encoding only: -\acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{} $\mapsto$ -\MakeUppercase{\ensuregreek{ - \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{} -}} vs. -\MakeUppercase{ - \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{}% -}. - -Currently, the second vowel of the diphthong must be given as macro, not -Unicode literal if the auto-hiatus feature should work: -\ensuregreek{ἀ\textupsilon{}πνία} $\mapsto$ -\ensuregreek{\MakeUppercase{\ensuregreek{ἀ\textupsilon{}πνία}}} vs. -\ensuregreek{\MakeUppercase{\ensuregreek{ἀυπνία}}}. - -\subsection{Kerning} - -No kerning occurs between Greek characters in non-Greek text due to the -internal font encoding switch: compare -\ensuregreek{\textAlpha\textUpsilon\textAlpha} (LGR) to -\textAlpha\textUpsilon\textAlpha (T1). - -Compiling with LuaTeX provides kerning also over font encoding boundaries. - \end{document} 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 c5fe6c0384c..4db517380df 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html @@ -1,644 +1,409 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" /> <title>textalpha.sty</title> -<meta name="copyright" content="© 2010 Günter Milde" /> <style type="text/css"> -/* -:Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $ -:Copyright: This stylesheet has been placed in the public domain. - -Default cascading style sheet for the HTML output of Docutils. - -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to -customize this style sheet. -*/ - -/* used to remove borders from tables and images */ -.borderless, table.borderless td, table.borderless th { - border: 0 } - -table.borderless td, table.borderless th { - /* Override padding for "table.docutils td" with "! important". - The right padding separates the table cells. */ - padding: 0 0.5em 0 0 ! important } - -.first { - /* Override more specific margin styles with "! important". */ - margin-top: 0 ! important } - -.last, .with-subtitle { - margin-bottom: 0 ! important } - -.hidden { - display: none } - +/* Minimal style sheet for the HTML output of Docutils. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: minimal.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ + +/* This CSS2.1_ stylesheet defines rules for Docutils elements without */ +/* HTML equivalent. It is required to make the document semantic visible. */ +/* */ +/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ +/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ + +/* Figure/table alignment */ +.align-left { text-align: left; } +.align-right { text-align: right; } +.align-center { clear: both; text-align: center;} + +/* titles */ +h1.title, p.subtitle { + text-align: center; +} +p.admonition-title, +p.topic-title, +p.sidebar-title, +p.rubric, +p.system-message-title { + font-weight: bold; +} +h1 + p.subtitle, +h1 + p.section-subtitle { + font-size: 1.6em; +} +h2 + p.section-subtitle { font-size: 1.28em; } +p.subtitle, +p.section-subtitle, +p.sidebar-subtitle { + font-weight: bold; + margin-top: -0.5em; +} +p.sidebar-title, +p.rubric { + font-size: larger; +} +p.rubric { color: maroon; } a.toc-backref { - text-decoration: none ; - color: black } - -blockquote.epigraph { - margin: 2em 5em ; } - -dl.docutils dd { - margin-bottom: 0.5em } - -object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { - overflow: hidden; + color: black; + text-decoration: none; } + +/* Warnings, Errors */ +div.caution p.admonition-title, +div.attention p.admonition-title, +div.danger p.admonition-title, +div.error p.admonition-title, +div.warning p.admonition-title, +div.system-messages h1, +div.error, +span.problematic, +p.system-message-title { + color: red; } -/* Uncomment (and remove this text!) to get bold-faced definition list terms -dl.docutils dt { - font-weight: bold } -*/ +/* inline literals */ +span.docutils.literal { + font-family: monospace; + white-space: pre-wrap; +} +/* do not wraph at hyphens and similar: */ +.literal > span.pre { white-space: nowrap; } -div.abstract { - margin: 2em 5em } +/* Lists */ -div.abstract p.topic-title { - font-weight: bold ; - text-align: center } - -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - margin: 2em ; - border: medium outset ; - padding: 1em } - -div.admonition p.admonition-title, div.hint p.admonition-title, -div.important p.admonition-title, div.note p.admonition-title, -div.tip p.admonition-title { - font-weight: bold ; - font-family: sans-serif } - -div.attention p.admonition-title, div.caution p.admonition-title, -div.danger p.admonition-title, div.error p.admonition-title, -div.warning p.admonition-title, .code .error { - color: red ; - font-weight: bold ; - font-family: sans-serif } - -/* Uncomment (and remove this text!) to get reduced vertical space in - compound paragraphs. -div.compound .compound-first, div.compound .compound-middle { - margin-bottom: 0.5em } - -div.compound .compound-last, div.compound .compound-middle { - margin-top: 0.5em } -*/ +/* compact and simple lists: no margin between items */ +.simple li, .compact li, +.simple ul, .compact ul, +.simple ol, .compact ol, +.simple > li p, .compact > li p, +dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +} -div.dedication { - margin: 2em 5em ; - text-align: center ; - font-style: italic } +/* Table of Contents */ +div.topic.contents { margin: 0; } +ul.auto-toc { + list-style-type: none; + padding-left: 1.5em; } + +/* Enumerated Lists */ +ol.arabic { list-style: decimal } +ol.loweralpha { list-style: lower-alpha } +ol.upperalpha { list-style: upper-alpha } +ol.lowerroman { list-style: lower-roman } +ol.upperroman { list-style: upper-roman } + +dt span.classifier { font-style: italic } +dt span.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +} -div.dedication p.topic-title { - font-weight: bold ; - font-style: normal } +/* Field Lists and drivatives */ +/* bold field name, content starts on the same line */ +dl.field-list > dt, +dl.option-list > dt, +dl.docinfo > dt, +dl.footnote > dt, +dl.citation > dt { + font-weight: bold; + clear: left; + float: left; + margin: 0; + padding: 0; + padding-right: 0.5em; +} +/* Offset for field content (corresponds to the --field-name-limit option) */ +dl.field-list > dd, +dl.option-list > dd, +dl.docinfo > dd { + margin-left: 9em; /* ca. 14 chars in the test examples */ +} +/* start field-body on a new line after long field names */ +dl.field-list > dd > *:first-child, +dl.option-list > dd > *:first-child +{ + display: inline-block; + width: 100%; + margin: 0; +} +/* field names followed by a colon */ +dl.field-list > dt:after, +dl.docinfo > dt:after { + content: ":"; +} -div.figure { - margin-left: 2em ; - margin-right: 2em } +/* Bibliographic Fields (docinfo) */ +pre.address { font: inherit; } +dd.authors > p { margin: 0; } -div.footer, div.header { - clear: both; - font-size: smaller } +/* Option Lists */ +dl.option-list { margin-left: 40px; } +dl.option-list > dt { font-weight: normal; } +span.option { white-space: nowrap; } -div.line-block { - display: block ; - margin-top: 1em ; - margin-bottom: 1em } +/* Footnotes and Citations */ +dl > dt.label { font-weight: normal; } +dt.label > span.fn-backref { margin: 0.2em; } +dt.label > span.fn-backref > a { font-style: italic; } +/* Line Blocks */ +div.line-block { display: block; } div.line-block div.line-block { - margin-top: 0 ; - margin-bottom: 0 ; - margin-left: 1.5em } - -div.sidebar { - margin: 0 0 0.5em 1em ; - border: medium outset ; - padding: 1em ; - background-color: #ffffee ; - width: 40% ; - float: right ; - clear: right } - -div.sidebar p.rubric { - font-family: sans-serif ; - font-size: medium } - -div.system-messages { - margin: 5em } - -div.system-messages h1 { - color: red } - -div.system-message { - border: medium outset ; - padding: 1em } - -div.system-message p.system-message-title { - color: red ; - font-weight: bold } - -div.topic { - margin: 2em } - -h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, -h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { - margin-top: 0.4em } - -h1.title { - text-align: center } - -h2.subtitle { - text-align: center } - -hr.docutils { - width: 75% } - -img.align-left, .figure.align-left, object.align-left { - clear: left ; - float: left ; - margin-right: 1em } - -img.align-right, .figure.align-right, object.align-right { - clear: right ; - float: right ; - margin-left: 1em } + margin-top: 0; + margin-bottom: 0; + margin-left: 40px; +} -img.align-center, .figure.align-center, object.align-center { +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + display: block; + margin-right: auto; +} +img.align-center, +.figure.align-center, +object.align-center { display: block; margin-left: auto; margin-right: auto; } - -.align-left { - text-align: left } - -.align-center { - clear: both ; - text-align: center } - -.align-right { - text-align: right } - +img.align-right, +.figure.align-right, +object.align-right { + display: block; + margin-left: auto; +} /* reset inner alignment in figures */ -div.align-right { - text-align: inherit } - -/* div.align-center * { */ -/* text-align: left } */ - -ol.simple, ul.simple { - margin-bottom: 1em } - -ol.arabic { - list-style: decimal } - -ol.loweralpha { - list-style: lower-alpha } - -ol.upperalpha { - list-style: upper-alpha } - -ol.lowerroman { - list-style: lower-roman } - -ol.upperroman { - list-style: upper-roman } - -p.attribution { - text-align: right ; - margin-left: 50% } - -p.caption { - font-style: italic } - -p.credits { - font-style: italic ; - font-size: smaller } - -p.label { - white-space: nowrap } - -p.rubric { - font-weight: bold ; - font-size: larger ; - color: maroon ; - text-align: center } - -p.sidebar-title { - font-family: sans-serif ; - font-weight: bold ; - font-size: larger } - -p.sidebar-subtitle { - font-family: sans-serif ; - font-weight: bold } - -p.topic-title { - font-weight: bold } - -pre.address { - margin-bottom: 0 ; - margin-top: 0 ; - font: inherit } - -pre.literal-block, pre.doctest-block, pre.math, pre.code { - margin-left: 2em ; - margin-right: 2em } - -pre.code .ln { color: grey; } /* line numbers */ -pre.code, code { background-color: #eeeeee } -pre.code .comment, code .comment { color: #5C6576 } -pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } -pre.code .literal.string, code .literal.string { color: #0C5404 } -pre.code .name.builtin, code .name.builtin { color: #352B84 } -pre.code .deleted, code .deleted { background-color: #DEB0A1} -pre.code .inserted, code .inserted { background-color: #A3D289} - -span.classifier { - font-family: sans-serif ; - font-style: oblique } - -span.classifier-delimiter { - font-family: sans-serif ; - font-weight: bold } - -span.interpreted { - font-family: sans-serif } - -span.option { - white-space: nowrap } - -span.pre { - white-space: pre } - -span.problematic { - color: red } - -span.section-subtitle { - /* font-size relative to parent (h1..h6 element) */ - font-size: 80% } - -table.citation { - border-left: solid 1px gray; - margin-left: 1px } - -table.docinfo { - margin: 2em 4em } - -table.docutils { - margin-top: 0.5em ; - margin-bottom: 0.5em } - -table.footnote { - border-left: solid 1px black; - margin-left: 1px } - -table.docutils td, table.docutils th, -table.docinfo td, table.docinfo th { - padding-left: 0.5em ; - padding-right: 0.5em ; - vertical-align: top } +div.align-right { text-align: inherit } + +/* Admonitions and System Messages */ +div.admonition, +div.system-message, +div.sidebar{ + margin: 40px; + border: medium outset; + padding-right: 1em; + padding-left: 1em; +} -table.docutils th.field-name, table.docinfo th.docinfo-name { - font-weight: bold ; - text-align: left ; - white-space: nowrap ; - padding-left: 0 } +/* Sidebar */ +div.sidebar { + width: 30%; + max-width: 26em; + float: right; + clear: right; +} -/* "booktabs" style (no vertical lines) */ -table.docutils.booktabs { - border: 0px; - border-top: 2px solid; - border-bottom: 2px solid; - border-collapse: collapse; +/* Text Blocks */ +div.topic, +pre.literal-block, +pre.doctest-block, +pre.math, +pre.code { + margin-right: 40px; + margin-left: 40px; } -table.docutils.booktabs * { - border: 0px; +pre.code .ln { color: gray; } /* line numbers */ + +/* Tables */ +table { border-collapse: collapse; } +td, th { + border-style: solid; + border-color: silver; + padding: 0 1ex; + border-width: thin; } -table.docutils.booktabs th { - border-bottom: thin solid; +td > p:first-child, th > p:first-child { margin-top: 0; } +td > p, th > p { margin-bottom: 0; } + +table > caption { text-align: left; + margin-bottom: 0.25em } -h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, -h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { - font-size: 100% } - -ul.auto-toc { - list-style-type: none } +table.borderless td, table.borderless th { + border: 0; + padding: 0; + padding-right: 0.5em /* separate table cells */ +} </style> <style type="text/css"> -/* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */ -/* */ -/* :Author: Günter Milde */ -/* :Copyright: © 2009 Günter Milde. */ -/* Released without warranties or conditions of any kind */ -/* under the terms of the Apache License, Version 2.0 */ -/* http://www.apache.org/licenses/LICENSE-2.0 */ -/* */ -/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */ -/* It uses CSS 2.1 elements (supported by up-to-date versions of popular */ -/* browsers). */ - -/* General rules */ -/* ============= */ - +/* CSS31_ style sheet for the output of Docutils HTML writers. */ +/* Rules for easy reading and pre-defined style variants. */ +/* */ +/* :Author: Günter Milde, based on html4css1.css by David Goodger */ +/* :Id: $Id: plain.css 7893 2015-05-11 15:38:58Z milde $ */ +/* :Copyright: © 2015 Günter Milde. */ +/* :License: Released under the terms of the `2-Clause BSD license`_, */ +/* in short: */ +/* */ +/* Copying and distribution of this file, with or without modification, */ +/* are permitted in any medium without royalty provided the copyright */ +/* notice and this notice are preserved. */ +/* */ +/* This file is offered as-is, without any warranty. */ +/* */ +/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ +/* .. _CSS3: http://www.w3.org/TR/CSS3 */ + + +/* Document Structure */ +/* ****************** */ + +/* "page layout" */ body { padding: 0 5%; margin: 8px 0; +} +div.document { line-height:1.3; - /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/ - recommends "line-spacing that’s at least 140% of your text size" */ counter-reset: table; /* counter-reset: figure; */ -} - -/* avoid long lines --> better reading */ -/* OTOH: lines should not be too short because of missing hyphenation, */ -div.document { - max-width: 45em; + /* avoid long lines --> better reading */ + /* OTOH: lines should not be too short because of missing hyphenation, */ + max-width: 50em; margin: auto; } -/* separate items except for compact lists */ -dl > dd { +/* Sections */ + +/* Transitions */ + +hr.docutils { + width: 80%; + margin-top: 1em; margin-bottom: 1em; + clear: both; } -.compact li, .compact p, .compact ul, .compact ol -dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol { - margin-top: 0; - margin-bottom: 0; -/* background: magenta; */ + +/* Paragraphs */ +/* ========== */ + +/* vertical space (parskip) */ +p, ol, ul, dl, +div.line-block, +table{ + margin-top: 0.5em; + margin-bottom: 0.5em; } -dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { - margin-top: 0; - margin-bottom: 0; -/* background: lightgreen; */ +h1, h2, h3, h4, h5, h6, +dl > dd { + margin-bottom: 0.5em; } -/* space around paragraphs */ -dl > dd p:first-child, td > p { - margin: 0; -} +/* Lists */ +/* ========== */ -/* Sidebar */ -/* ------- */ +/* Definition Lists */ -div.sidebar { - margin-right: -5%; -} +dl > dd p:first-child { margin-top: 0; } +/* :last-child is not part of CSS 2.1 (introduced in CSS 3) */ +/* dl > dd p:last-child { margin-bottom: 0; } */ -/* Special definition lists */ -/* ======================== */ +/* lists nested in definition lists */ +/* :only-child is not part of CSS 2.1 (introduced in CSS 3) */ +dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } -/* bold definition term on the same line as the label */ -dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt, -dl.footnote > dt, dl.citation > dt, dl.description > dt { +/* Description Lists */ +/* styled like in most dictionaries, encyclopedias etc. */ +dl.description > dt { + font-weight: bold; clear: left; float: left; margin: 0; padding: 0; padding-right: 0.5em; - font-weight: bold; } -/* except for these */ -dl.option-list > dt, dl.footnote > dt { - font-weight: normal; -} - - /* Field Lists */ -/* ----------- */ - -/* field names followed by a colon */ -dl.field-list > dt:after, dl.docinfo > dt:after { - content: ":"; -} - -/* Offset for field content (corresponds to the --field-name-limit option) */ -dl.field-list > dd { - margin-left: 9em; /* ca. 14 chars in the test examples */ - padding-left: 0.5em; -} - -/* start field-body on a new line after long field names */ -dl.field-list > dd p { - width: 100%; -/* display: inline-block; */ -/* background: yellow; */ -} - -dl.field-list > dd > p:first-child, -/* dl.field-list > dd > ol:first-child, */ -/* dl.field-list > dd > ul:first-child, */ -dl.field-list > dd > dl:first-child { - display: inline-block; -} - -/* field-list variants:: */ /* example for custom field-name width */ dl.field-list.narrow > dd { margin-left: 5em; } - -/* start field-body on same line after long field names */ +/* run-in: start field-body on same line after long field names */ dl.field-list.run-in > dd p { display: block; } -/* wrap or truncate long field names */ -dl.field-list.fix-labelwidth > dt { - width: 8em; /* set to dl.field-list > dd margin-left - padding-left */ - overflow: hidden; -} -dl.field-list.fix-labelwidth > dd:after { - /* a "stopper" to prevent next dd floating up too far */ - content: ''; - display: block; - clear: left; -} - -/* docinfo */ +/* Bibliographic Fields */ -dl.docinfo > dd { - margin-left: 8em; -/* margin-bottom: 0.5em; */ +/* generally, bibliographic fields use special definition list dl.docinfo */ +/* but dedication and abstract are placed into "topic" divs */ +div.abstract p.topic-title { + text-align: center; } - - -/* option list */ - -dl.option-list { - margin-left: 1em; - padding-left: 0; +div.dedication { + margin: 2em 5em; + text-align: center; + font-style: italic; } - -dl.option-list > dd { - margin-left: 8em; - /* margin-bottom: 0.5em; */ +div.dedication p.topic-title { + font-style: normal; } -/* start description on a new line after long options */ -dl.option-list > dd p { - width: 100%; - display: inline-block; +/* Citations */ +dl.citation dt.label { + font-weight: bold; } - -/* footnotes */ - -a.footnote-reference, a.fn-backref { - text-decoration: inherit; /* do not underline footnote links */ +span.fn-backref { + font-weight: normal; } -dl.footnote { - /* line on the left */ - padding-left: 1ex; - border-left: solid; - border-left-width: thin; - /* border-color: black; */ -} +/* Text Blocks */ +/* ============ */ -/* paragraph on same line as backrefs */ -dd > em { -/* background: green; */ - float: left; - margin-right: 1ex +/* Literal Blocks */ +pre.literal-block, pre.doctest-block, +pre.math, pre.code { + margin-left: 1.5em; + margin-right: 1.5em } +/* Block Quotes */ -/* -Ordered List (Enumeration) --------------------------- - -Use counters to replace the deprecated start attribute. Make sure the -resulting list resembles the list-style 'outside' with a hanging indent. -*/ - -/* New ordered list: reset counter, suppress the default label */ -ol, ol.arabic, ol.loweralpha, ol.upperalpha, -ol.lowerroman, ol.upperroman { - counter-reset: item; - list-style: none -} - -/* Set the negative indent of the list label as feature of the list item */ -ol > li { - text-indent: -40px; /* Mozillas default indent */ +blockquote, +div.topic { + margin-left: 1.5em; + margin-right: 1.5em } -/* reset for child elements */ -ol > li > * { - text-indent: 0px; - text-indent: 0; +blockquote > table, +div.topic > table { margin-top: 0; - /* background: lightgreen; */ + margin-bottom: 0; } - -/* Label */ -ol > li:before { - /* increment and typeset counter(s), */ - counter-increment: item; - content: counter(item) "."; - /* display next to the content (aligned top-right), */ - display: inline-block; +blockquote p.attribution, +div.topic p.attribution { text-align: right; - vertical-align: top; - /* sum must match ol>li {text-indent:} (40px is Mozillas default) */ - width: 35px; - padding-right: 5px; -/* background: yellow; */ -} - -/* The list item's first line starts next to the label, without indent */ -ol > li > p:first-child, -ol > li > ol:first-child, -ol > li > ul:first-child, -ol > li > dl:first-child { - display: inline-block; - /* background: lightblue; */ -} - -/* default separator variants */ -ol.loweralpha > li:before { - content: counter(item, lower-alpha) ")"; -} -ol.upperalpha > li:before { - content: counter(item, upper-alpha) "."; -} -ol.lowerroman > li:before { - content: "(" counter(item, lower-roman) ")"; -} -ol.upperroman > li:before { - content: counter(item, upper-roman) ")"; -} -/* nested counters (1, 1.1, 1.1.1, etc) */ -/* nested enumerated lists "inherit" the class attribute, other lists not */ -ol.nested > li:before, ol.nested ol > li:before { - content: counters(item, ".") " "; -} - -/* lists nested in definition list */ - -dd > ul, dd > ol { - padding-left: 0pt; + margin-left: 20%; } -/* TODO: prefix, suffix? */ +/* Tables */ +/* ====== */ -/* smaller font for super- and subscripts */ -/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */ - - -/* Tables */ -/* ====== */ - -/* margins and borders for "normal" tables */ -table { -/* background: magenta; */ - margin-top: 1em ; - margin-bottom: 1em; -/* border-style: outset; */ - border-style: solid; - border-color: silver; - border-width: thin; - border-collapse: collapse; -} -blockquote > table { - margin-top: 0em ; - margin-bottom: 0em; -} - -td, th { - border-style: solid; - border-width: thin; - border-color: silver; - /* text-align: left; */ - padding: 0 1ex; -} - -td > p:first-child, th > p:first-child { - margin-top: 0; -} -td > p, th > p { - margin-bottom: 0; -} - -/* no borders for "borderless" tables */ -table.borderless, table.borderless * { - border-style: none; -} +/* th { vertical-align: bottom; } */ /* "booktabs" style (no vertical lines) */ table.booktabs { @@ -647,7 +412,6 @@ table.booktabs { border-bottom: 2px solid; border-collapse: collapse; } - table.booktabs * { border: 0; } @@ -656,100 +420,158 @@ table.booktabs th { text-align: left; } -table > caption { - text-align: left; - margin-bottom: 0.25em -/* padding: 2em 0 1em 0; */ -} - -/* numbered tables*/ +/* numbered tables (counter defined in div.document) */ table.numbered > caption:before { - counter-increment: table; /* defined/re-set in body */ + counter-increment: table; content: "Table " counter(table) ": "; font-weight: bold; } +/* Explicit Markup Blocks */ +/* ====================== */ -/* literal text - ------------ -*/ -/* whitespace and wrapping in inline literals */ -/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ -tt.literal { - white-space: pre-wrap; +/* Footnotes and Citations */ +/* ----------------------- */ + +/* line on the left */ +dl.footnote { + padding-left: 1ex; + border-left: solid; + border-left-width: thin; } -/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* Directives */ +/* ---------- */ -/* Table of Contents */ +/* Body Elements */ +/* ~~~~~~~~~~~~~ */ -/* don't indent like a topic */ -div.topic.contents { - margin: 0; +/* Images and Figures */ +img.align-left, +.figure.align-left, +object.align-left { + clear: left; + float: left; + margin-right: 1em +} +img.align-right, +.figure.align-right, +object.align-right { + clear: right; + float: right; + margin-left: 1em } -/* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +/* Stop floating sidebars, images and figures at section level 1,2,3 */ +h1, h2, h3 { clear: both; } -div.topic.contents a { - text-decoration: none; /* no underline for links */ +/* Sidebar */ + +/* Move into the margin. In a layout with fixed margins, */ +/* it can be moved into the margin completely. */ +div.sidebar { + width: 30%; + max-width: 26em; + margin-left: 1em; + margin-right: -5.5%; + background-color: #ffffee ; } -/* section numbers */ +/* Code */ -span.sectnum { - padding-right: 1ex; +pre.code, code { background-color: #eeeeee } +pre.code .ln { color: gray; } /* line numbers */ +/* basic highlighting: for a complete scheme, see */ +/* http://docutils.sourceforge.net/sandbox/stylesheets/ */ +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +/* Math */ +/* styled separately (see math.css for math-output=HTML) */ + +/* Epigraph */ +/* Highlights */ +/* Pull-Quote */ +/* Compound Paragraph */ +/* Container */ + +/* can be styled in a custom stylesheet */ + +/* Document Header and Footer */ + +div.footer, div.header { + clear: both; + font-size: smaller; } -/* admonitions */ +/* Inline Markup */ +/* ============= */ + +/* Emphasis */ +/* em */ +/* Strong Emphasis */ +/* strong */ +/* Interpreted Text */ +/* span.interpreted */ +/* Title Reference */ +/* cite */ +/* Inline Literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +/* span.docutils.literal { white-space: pre-wrap; } */ + +/* Hyperlink References */ +a { text-decoration: none; } -/* no padding for top and bottom */ -div.admonition, div.attention, div.caution, div.danger, div.error, -div.hint, div.important, div.note, div.tip, div.warning { - padding: 0px 1em } +/* External Targets */ +/* span.target.external */ +/* Internal Targets */ +/* span.target.internal */ +/* Footnote References */ +/* a.footnote-reference */ +/* Citation References */ +/* a.citation-reference */ </style> </head> <body> <div class="document" id="textalpha-sty"> <h1 class="title">textalpha.sty</h1> -<h2 class="subtitle" id="greek-symbols-in-text">Greek symbols in text</h2> +<p class="subtitle" id="greek-symbols-in-text">Greek symbols in text</p> <dl class="docinfo"> <dt class="copyright">Copyright</dt> <dd class="copyright">© 2010 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the +<dt class="licence">Licence</dt> +<dd class="licence"><p>This work may be distributed and/or modified under the conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> +version 1.3 of this license or any later version.</p> </dd> -<dt>Identification</dt> -<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} +<dt class="identification">Identification</dt> +<dd class="identification"><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{textalpha} -[2014/12/12 v0.12 macros for Greek letters in text] -</pre> +[2015/09/04 v0.13 macros for Greek letters in text]</pre> </dd> </dl> <div class="abstract topic"> <p class="topic-title first">Abstract</p> -<p>Provide a set of <tt class="literal">\text*</tt> macros for Greek characters +<p>Provide a set of <span class="docutils literal">\text*</span> macros for Greek characters in text mode.</p> </div> -<div class="note"> +<div class="admonition note"> <p class="admonition-title">Note</p> <p>The package was renamed from <cite>textgreek</cite> to <cite>textalpha</cite> to prevent confusion with the <a class="reference external" href="http://www.ctan.org/pkg/textgreek">textgreek</a> package by Leonard Michlmayr.</p> </div> -<dl class="docutils"> +<dl> <dt>Changelog:</dt> <dd><table class="borderless"> <colgroup> -<col width="14%" /> -<col width="7%" /> -<col width="79%" /> +<col style="width: 14%" /> +<col style="width: 7%" /> +<col style="width: 79%" /> </colgroup> <tbody> <tr><td><p>2010-06-16</p></td> @@ -762,11 +584,11 @@ confusion with the <a class="reference external" href="http://www.ctan.org/pkg/t </tr> <tr><td><p>2013-05-03</p></td> <td><p>0.3</p></td> -<td><p>new accent macro names with <tt class="literal">lgrxenc.def</tt> 0.7</p></td> +<td><p>new accent macro names with <span class="docutils literal">lgrxenc.def</span> 0.7</p></td> </tr> <tr><td><p>2013-05-28</p></td> <td><p>0.4</p></td> -<td><p>use <tt class="literal">lgrenc.def</tt> from greek-fontenc.</p></td> +<td><p>use <span class="docutils literal">lgrenc.def</span> from greek-fontenc.</p></td> </tr> <tr><td><p>2013-09-11</p></td> <td><p>0.5</p></td> @@ -774,7 +596,7 @@ confusion with the <a class="reference external" href="http://www.ctan.org/pkg/t </tr> <tr><td><!-- --> </td> -<td> </td> +<td></td> <td><p>support XeTeX/LuaTeX, add breve below accents.</p></td> </tr> <tr><td><p>2013-11-28</p></td> @@ -786,27 +608,68 @@ confusion with the <a class="reference external" href="http://www.ctan.org/pkg/t <td><p>fix auxiliary macro names, define symbol macros for breathing accents.</p></td> </tr> +<tr><td><p>2015-09-04</p></td> +<td><p>0.13</p></td> +<td><p>Option <a class="reference internal" href="#normalize-symbols">normalize-symbols</a>: support for symbol variants.</p></td> +</tr> +<tr><td><!-- --> +</td> +<td></td> +<td><p>Option <a class="reference internal" href="#keep-semicolon">keep-semicolon</a>: use semicolon as erotimatiko +in LGR.</p></td> +</tr> </tbody> </table> </dd> </dl> +<div class="contents topic" id="contents"> +<p class="topic-title first">Contents</p> +<ul class="simple"> +<li><p><a class="reference internal" href="#motivation" id="id2">Motivation</a></p></li> +<li><p><a class="reference internal" href="#usage" id="id3">Usage</a></p></li> +<li><p><a class="reference internal" href="#implementation" id="id4">Implementation</a></p> +<ul> +<li><p><a class="reference internal" href="#options" id="id5">Options</a></p> +<ul> +<li><p><a class="reference internal" href="#normalize-symbols" id="id6">normalize-symbols</a></p></li> +<li><p><a class="reference internal" href="#keep-semicolon" id="id7">keep-semicolon</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#font-encodings" id="id8">Font encodings</a></p></li> +<li><p><a class="reference internal" href="#symbol-macros-for-breathings" id="id9">Symbol macros for breathings</a></p></li> +<li><p><a class="reference internal" href="#default-declarations" id="id10">Default declarations</a></p> +<ul> +<li><p><a class="reference internal" href="#greekscript-ensuregreek" id="id11">greekscript, ensuregreek</a></p></li> +<li><p><a class="reference internal" href="#greek-alphabet" id="id12">Greek Alphabet</a></p></li> +<li><p><a class="reference internal" href="#additional-greek-symbols" id="id13">Additional Greek symbols</a></p> +<ul> +<li><p><a class="reference internal" href="#variant-shape-symbols" id="id14">variant shape symbols</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#diacritics" id="id15">Diacritics</a></p></li> +<li><p><a class="reference internal" href="#auxiliary-macros" id="id16">Auxiliary macros</a></p></li> +<li><p><a class="reference internal" href="#semicolon-as-erotimatiko" id="id17">semicolon as erotimatiko</a></p></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> <div class="section" id="motivation"> -<h1>Motivation</h1> +<h1><a class="toc-backref" href="#id2">Motivation</a></h1> <p>By default, TeX macros for Greek letters are only valid in mathematical -mode. This package sets up a suitable font encoding and Greek LICR -definitions (<tt class="literal">\textalpha</tt> – <tt class="literal">\textOmega</tt>).</p> +mode. This package sets up a suitable <a class="reference internal" href="#font-encoding">font encoding</a> and <cite>LaTeX internal +character representations</cite> (LICR) definitions for Greek (<span class="docutils literal">\textalpha</span> – +<span class="docutils literal">\textOmega</span>).</p> <p>To allow documents using Greek LICR macros without worrying about the TeX engine used to compile them, this package tests the declared font encodings and does “the right thing” to set up Greek text font support:</p> -<ul> +<ul class="simple"> <li><p>If the Unicode font encodings EU1 (XeTeX) or EU2 (LuaTeX) are declared, -before loading this package (e.g. vie <tt class="literal">fontspec</tt>) the package provides +before loading this package (e.g. via <span class="docutils literal">fontspec</span>) the package provides Greek LICR definitions for them.</p></li> -<li><p>If the LGR font encoding is declared before loading this package, it is -set as default for Greek LICR macros (cf. <a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a> section 5.3).</p> -<p>With XeTeX or LuaTex, Unicode fonts and LGR encoded 8-bit fonts can be -used in the same document (see <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a>).</p> -</li> +<li><p>Otherwise, the <a class="reference external" href="README.html#lgr">LGR font encoding</a> is set as <cite>default font encoding</cite> +(cf. <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">fntguide</a> section 5.3) for Greek.</p></li> </ul> <p>Advantages:</p> <ul class="simple"> @@ -815,7 +678,7 @@ without the need for an explicite font-encoding switch anywhere in the text.</p></li> <li><p>Unicode input of Greek characters is supported</p> <ul> -<li><p>via <tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> and <tt class="literal">lgrenc.dfu</tt> from +<li><p>via <span class="docutils literal"><span class="pre">\usepackage[utf8]{inputenc}</span></span> and <span class="docutils literal">lgrenc.dfu</span> from <a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a> for 8-bit TeX or XeTeX/LuaTeX in 8-bit compatibility mode in any font encoding (see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a>).</p></li> <li><p>natively by XeTeX/LuaTeX for Unicode fonts. As <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a> does not work @@ -825,57 +688,103 @@ like LGR (see <a class="reference external" href="greek-euenc-doc.tex">greek-eue </ul> </li> </ul> -<div class="attention"> +<div class="admonition attention"> <p class="admonition-title">Attention!</p> <p>The macros work well in any font encoding for single symbols. However, with 8-bit TeX engines, the automatic font-encoding switches behind the doors interfere with kerning between letters and replacement of accent+character with a pre-composed character.</p> <p>Therefore, Greek text should be written with the help of <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> or -<a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <tt class="literal">greek</tt>) or wrapped in the -provided <tt class="literal">ensuregreek</tt> macro. Using <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> or <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> also helps +<a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <span class="docutils literal">greek</span>) or wrapped in the +provided <span class="docutils literal">ensuregreek</span> macro. Using <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> or <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> also helps to ensure correct hyphenation of Greek text.</p> </div> </div> <div class="section" id="usage"> -<h1>Usage</h1> -<pre class="code latex literal-block"><span class="keyword">\usepackage</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span> -</pre> +<h1><a class="toc-backref" href="#id3">Usage</a></h1> +<p>Ensure support for Greek characters in text mode with</p> +<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span></code></pre> +<p>eventually with the <a class="reference internal" href="#options">options</a> to normalize symbols variants</p> +<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name attribute">[normalize-symbols]</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span></code></pre> +<p>and/or to use the semicolon as <a class="reference external" href="https://en.wikipedia.org/wiki/Question_mark#Erotimatiko">erotimatiko</a> also in 8-bit TeX</p> +<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name attribute">[normalize-symbols,keep-semicolon]</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span></code></pre> +<p>To give <span class="docutils literal">textalpha.sty</span> a chance of finding out which <a class="reference internal" href="#font-encodings">font encodings</a> +are used, load it after <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> and/or <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>.</p> <p>For detailled examples see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a> and <a class="reference external" href="textalpha-doc.pdf">textalpha-doc.pdf</a> (8-bit TeX and XeTeX/LuaTeX in 8-bit compatibility mode) as well as <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a> and <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a> (XeTeX/LuaTeX with Unicode fonts).</p> +<p>With XeTeX or LuaTex, Unicode fonts and LGR encoded 8-bit fonts can be used +in the same document (see <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a>).</p> </div> <div class="section" id="implementation"> -<h1>Implementation</h1> -<div class="section" id="requirements"> -<h2>Requirements</h2> +<h1><a class="toc-backref" href="#id4">Implementation</a></h1> +<div class="section" id="options"> +<h2><a class="toc-backref" href="#id5">Options</a></h2> +<div class="section" id="normalize-symbols"> +<h3><a class="toc-backref" href="#id6">normalize-symbols</a></h3> +<p>The “variant shape” symbol characters like <span class="docutils literal">03D1 GREEK THETA SYMBOL</span> are +mathematical charcters for mathematical use +(similar to <span class="docutils literal">1D440 MATHEMATICAL ITALIC CAPITAL M</span>). +Unfortunately, some Greek texts sources in Unicode encoding mix letter and +symbol characters .</p> +<p>The “normalize-symbols” option controls the handling of <a class="reference internal" href="#variant-shape-symbols">variant shape +symbols</a> under 8-bit TeX:</p> +<ul class="simple"> +<li><p>The option activates a simple “folding” mechanism that merges ϰ and κ to +textkappa etc. for text copied from external sources which may use the +GREEK SYMBOL characters in place of GREEK LETTERS,</p></li> +<li><p>Without this option, variant shape symbols in the input are reported as +errors to prevent information loss in cases where the distinction between +ϰ and κ is intended (e.g. in mathematical or scientific context).</p></li> +</ul> +<p>With XeTeX/LuaTeX and Unicode fonts, this option is ignored.</p> +<pre class="literal-block">\newif\iftextalpha@normalizeSymbols +\DeclareOption{normalize-symbols}{\textalpha@normalizeSymbolstrue}</pre> +</div> +<div class="section" id="keep-semicolon"> +<h3><a class="toc-backref" href="#id7">keep-semicolon</a></h3> +<p>The <a class="reference external" href="https://en.wikipedia.org/wiki/Question_mark#Erotimatiko">erotimatiko</a> looks like a semicolon but is a +<strong>Greek question mark</strong>:</p> +<ul class="simple"> +<li><p>The <a class="reference external" href="README.html#lgr">LGR font encoding</a> uses the Latin question mark as input for the +<cite>erotimatiko</cite> and maps the semicolon to a middle dot (<cite>ano teleia</cite>).</p></li> +<li><p>The Unicode standard provides the code point <span class="docutils literal">037E GREEK QUESTION MARK</span> +but says: “character <span class="docutils literal">003B SEMICOLON</span> (and not 037E) is the preferred +character for Greek question mark”.</p></li> +</ul> +<p>The <span class="docutils literal"><span class="pre">keep-semicolon</span></span> option allows to use the <a class="reference internal" href="#semicolon-as-erotimatiko">semicolon as erotimatiko</a> +in both, Xe/LuaTeX and 8-bit TeX. (The <cite>ano teleia</cite> can be input as +<span class="docutils literal">\textanoteleia</span> or using character <span class="docutils literal">00B7 MIDDLE DOT</span>.) +With XeTeX/LuaTeX and Unicode fonts, this option is ignored.</p> +<pre class="literal-block">\newif\iftextalpha@keepSemicolon +\DeclareOption{keep-semicolon}{\textalpha@keepSemicolontrue} + +\ProcessOptions\relax</pre> +</div> +</div> +<div class="section" id="font-encodings"> +<span id="font-encoding"></span><h2><a class="toc-backref" href="#id8">Font encodings</a></h2> +<p>With 8-bit LaTeX, the <a class="reference external" href="README.html#lgr">LGR font encoding</a> is used for Greek characters. If +no Greek-supporting font encoding (EU1, EU2, or LGR) is declared, LGR is +loaded and set up as default Greek font encoding by this package.</p> <p>With XeTeX or LuaTeX, there is one common input and font encoding – -Unicode. 8-bit TeX font encodings are only used in compatibility mode or for +Unicode. 8-bit TeX font encodings are only used in compatibility mode or for fonts not available otherwise. For compatibility with the LaTeX font selection system, the package <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> defines the (pseudo) font encodings EU1 and EU2 for XeTeX and LuaTeX respectively. However euenc does not (yet) define LICR macros. We therefore explicitely load Greek LICR definitions for XeTeX/LuaTeX from <a class="reference external" href="greek-euenc.def.html">greek-euenc.def</a> which in turn includes <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a>.</p> -<p>With 8-bit LaTeX, the LGR font encoding is used for Greek characters. If no -Greek-supporting font encoding (EU1, EU2, or LGR) is declared, LGR is loaded -and set up as default Greek font encoding by this package.</p> -<p>To give <tt class="literal">textalpha.sty</tt> a chance of finding out which font encodings are -used, load it after <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> and/or <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>.</p> -<div class="section" id="font-encodings"> -<h3>Font encodings</h3> <p>Ensure a Greek-supporting font encoding exists and supports Greek LICR macros:</p> -<p>Load the Greek LICR definitions for Unicode if font encoding EU1 (XeTeX) or -EU2 (LuaTeX) is detected.<a class="footnote-reference" href="#eu" id="id1"><sup>1</sup></a> In an ideal world, this would be done in -the <tt class="literal">eu1enc.def</tt> (or <tt class="literal">eu2enc.def</tt>) file of the <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> package. If none -of EU1, EU2, and LGR is declared, load <tt class="literal">lgrenc.def</tt>:</p> -<p>Re-set the <tt class="literal">\LastDeclaredEncoding</tt>: Because fontenc loads font -encoding definition files only once, it may happen that another font -encoding is defined afterwards — for example <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> leaves -<tt class="literal">\LastDeclaredEncoding</tt> at <tt class="literal">T3</tt> (tipa), because it inputs the <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a> -package which in turn loads <tt class="literal">t3enc.def</tt>.</p> +<ul class="simple"> +<li><p>Load the Greek LICR definitions for Unicode if font encoding EU1 (XeTeX) +or EU2 (LuaTeX) is detected. <a class="footnote-reference" href="#eu" id="id1">[1]</a> (In an ideal world, this would be done +in the <span class="docutils literal">eu1enc.def</span> (or <span class="docutils literal">eu2enc.def</span>) file of the <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> package.)</p></li> +<li><p>Re-set <span class="docutils literal">\LastDeclaredEncoding</span> (used in some included font-encoding files).</p></li> +<li><p>If none of EU1, EU2, or LGR is declared, load <span class="docutils literal">lgrenc.def</span>.</p></li> +</ul> <pre class="literal-block">\@ifl@aded{def}{eu1enc}{ \renewcommand{\LastDeclaredEncoding}{EU1} \input{greek-euenc.def} @@ -886,30 +795,29 @@ package which in turn loads <tt class="literal">t3enc.def</tt>.</p> }{% else \@ifl@aded{def}{lgrenc}{ % LGR already declared and set up + \renewcommand{\LastDeclaredEncoding}{LGR} }{ \input{lgrenc.def} } } -} -</pre> -<dl class="footnote"><dt class="label"><a class="fn-backref" href="#id1">1</a></dt> -<dd id="eu"> -<p class="first last">The two different (pseudo) font encodings allow different font setups for -XeTeX vs. LuaTeX using differently named <tt class="literal">*.fd</tt> files (see <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> for -details).</p> -</dd> -</dl> +}</pre> <p>The package <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> defines the PU font encoding which also supports (monotonic) Greek. It currently misses polytonic greek and the -<tt class="literal">\greekscript</tt> and <tt class="literal">\ensuregreek</tt> TextCommands:</p> +<span class="docutils literal">\greekscript</span> and <span class="docutils literal">\ensuregreek</span> TextCommands:</p> <pre class="literal-block">\@ifl@aded{def}{puenc} {\ProvideTextCommand{\greekscript}{PU}{} \ProvideTextCommand{\ensuregreek}{PU}[1]{#1}} - {} -</pre> + {}</pre> +<dl class="footnote"> +<dt class="label" id="eu"><a class="fn-backref" href="#id1">[1]</a></dt> +<dd><p>The two different (pseudo) font encodings allow different font +setups for XeTeX vs. LuaTeX using differently named <span class="docutils literal">*.fd</span> files (see +<a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> for details).</p> +</dd> +</dl> </div> <div class="section" id="symbol-macros-for-breathings"> -<h3>Symbol macros for breathings</h3> +<h2><a class="toc-backref" href="#id9">Symbol macros for breathings</a></h2> <p>In the Latin transcription provided by LGR, breathing accents (Dasia and Psili) are input as < and >. We provide the corresponding NFSS macro accents (moved here from <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a>).</p> @@ -937,35 +845,30 @@ macros for both, LGR and Unicode font encodings (if they are defined):</p> \DeclareTextCompositeCommand{\<}{\LastDeclaredEncoding}{'}{\accdasiaoxia} \DeclareTextCompositeCommand{\<}{\LastDeclaredEncoding}{`}{\accdasiavaria} \DeclareTextCompositeCommand{\<}{\LastDeclaredEncoding}{~}{\accdasiaperispomeni} -}{} -</pre> -</div> +}{}</pre> </div> <div class="section" id="default-declarations"> -<h2>Default declarations</h2> +<h2><a class="toc-backref" href="#id10">Default declarations</a></h2> <p>The following definitions ensure that the Greek LICR macros can be used anywhere in the document also with 8-bit TeX by declaring LGR as their default font encoding. Abort here, if the LGR font encoding is not defined:</p> <pre class="literal-block">\@ifl@aded{def}{lgrenc} {} % else return: - {\expandafter\endinput} -</pre> + {\expandafter\endinput}</pre> <div class="section" id="greekscript-ensuregreek"> -<h3>greekscript, ensuregreek</h3> -<p>The <tt class="literal">\greekscript</tt> declaration ensures the current font encoding supports -the Greek script. <tt class="literal"><span class="pre">greek-fontenc.def</span></tt> sets this to the empty declaration -for font encodings that do so. This is currently used by <tt class="literal">lgrenc.def</tt> -(LGR) and <tt class="literal"><span class="pre">greek-euenc.def</span></tt> (Greek LICR macros for EU1 and EU2).</p> +<h3><a class="toc-backref" href="#id11">greekscript, ensuregreek</a></h3> +<p>The <span class="docutils literal">\greekscript</span> declaration ensures the current font encoding supports +the Greek script. <span class="docutils literal"><span class="pre">greek-fontenc.def</span></span> sets this to the empty declaration +for font encodings that do so. This is currently used by <span class="docutils literal">lgrenc.def</span> +(LGR) and <span class="docutils literal"><span class="pre">greek-euenc.def</span></span> (Greek LICR macros for EU1 and EU2).</p> <p>We define LGR as default encoding for Greek text. We use -<tt class="literal">\ProvideTextCommandDefault</tt> to enable the author or other packages to use -an alternative definition (see [<a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a>]):</p> -<pre class="literal-block">\ProvideTextCommandDefault{\greekscript}{\fontencoding{LGR}\selectfont} -</pre> -<p>The <tt class="literal">\ensuregreek</tt> command can be used to ensure that its argument is set in +<span class="docutils literal">\ProvideTextCommandDefault</span> to enable the author or other packages to use +an alternative definition (see [<a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">fntguide</a>]):</p> +<pre class="literal-block">\ProvideTextCommandDefault{\greekscript}{\fontencoding{LGR}\selectfont}</pre> +<p>The <span class="docutils literal">\ensuregreek</span> command can be used to ensure that its argument is set in a font encoding with support for Greek. Again the default is LGR:</p> -<pre class="literal-block">\ProvideTextCommandDefault{\ensuregreek}[1]{\leavevmode{\greekscript #1}} -</pre> +<pre class="literal-block">\ProvideTextCommandDefault{\ensuregreek}[1]{\leavevmode{\greekscript #1}}</pre> <!-- The [fntguide_] writes Note that ``\DeclareTextAccentDefault`` can be used on any @@ -978,13 +881,13 @@ Unicode characters in the test document `<textalpha-doc.tex>`__: ``! You can't use a prefix with `end-group character }'.`` --> <p>Eventually, all font encodings supporting Greek script (e.g. LGI, PU, EU1, -EU2) will declare <tt class="literal">\ensuregreek</tt> as text command that passes the argument +EU2) will declare <span class="docutils literal">\ensuregreek</span> as text command that passes the argument unchanged. This way, kerning and selection of precomposed glyphs would work -also for cases like <tt class="literal"><span class="pre">\ensuregreek{\'A}U</span></tt>.</p> +also for cases like <span class="docutils literal"><span class="pre">\ensuregreek{\'A}U</span></span>.</p> </div> <div class="section" id="greek-alphabet"> -<h3>Greek Alphabet</h3> -<p>Define the <tt class="literal">text*</tt> marcos as default for all font encodings:</p> +<h3><a class="toc-backref" href="#id12">Greek Alphabet</a></h3> +<p>Define the <span class="docutils literal">text*</span> marcos as default for all font encodings:</p> <pre class="literal-block">\DeclareTextSymbolDefault{\textAlpha}{LGR} \DeclareTextSymbolDefault{\textBeta}{LGR} \DeclareTextSymbolDefault{\textGamma}{LGR} @@ -1036,17 +939,16 @@ also for cases like <tt class="literal"><span class="pre">\ensuregreek{\'A}U</sp \DeclareTextSymbolDefault{\textphi}{LGR} \DeclareTextSymbolDefault{\textchi}{LGR} \DeclareTextSymbolDefault{\textpsi}{LGR} -\DeclareTextSymbolDefault{\textomega}{LGR} -</pre> +\DeclareTextSymbolDefault{\textomega}{LGR}</pre> +</div> <div class="section" id="additional-greek-symbols"> -<h4>Additional Greek symbols</h4> +<h3><a class="toc-backref" href="#id13">Additional Greek symbols</a></h3> <p>Including alias names for compatibility with hyperref’s puenc.def.</p> <p>Ancient Greek Numbers (Athenian Numerals):</p> <pre class="literal-block">\DeclareTextSymbolDefault{\textpentedeka}{LGR} % GREEK ACROPHONIC ATTIC FIFTY \DeclareTextSymbolDefault{\textpentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED \DeclareTextSymbolDefault{\textpenteqilioi}{LGR} % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\DeclareTextSymbolDefault{\textpentemurioi}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND -</pre> +\DeclareTextSymbolDefault{\textpentemurioi}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND</pre> <p>Archaic letters:</p> <pre class="literal-block">\DeclareTextSymbolDefault{\textstigma}{LGR} % ϛ \DeclareTextSymbolDefault{\textstigmagreek}{LGR} % ϛ (puenc.def) @@ -1066,16 +968,39 @@ also for cases like <tt class="literal"><span class="pre">\ensuregreek{\'A}U</sp \DeclareTextSymbolDefault{\textdigamma}{LGR} % ϝ \DeclareTextSymbolDefault{\textDigamma}{LGR} % Ϝ \DeclareTextSymbolDefault{\textdigammagreek}{LGR} % ϝ (puenc.def) -\DeclareTextSymbolDefault{\textDigammagreek}{LGR} % Ϝ (puenc.def) -</pre> +\DeclareTextSymbolDefault{\textDigammagreek}{LGR} % Ϝ (puenc.def)</pre> <p>numeral signs: <a class="reference external" href="http://en.wikipedia.org/wiki/Greek_numerals">http://en.wikipedia.org/wiki/Greek_numerals</a></p> <pre class="literal-block">\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR} % (puenc.def) -\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def) -</pre> +\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def)</pre> +<div class="section" id="variant-shape-symbols"> +<h4><a class="toc-backref" href="#id14">variant shape symbols</a></h4> +<p>Mathematical notation uses variant shapes of some Greek letters as +additional symbols. There are separate code points for the symbol variants +in Unicode but not in the LGR font encoding used for Greek in 8-bit TeX. +The variations have no syntactic meaning in Greek text.</p> +<pre class="literal-block">\DeclareTextSymbolDefault{\textbetasymbol}{LGR} % ϐ GREEK BETA SYMBOL +\DeclareTextSymbolDefault{\textthetasymbol}{LGR} % ϑ $\vartheta$ GREEK THETA SYMBOL +\DeclareTextSymbolDefault{\textphisymbol}{LGR} % ϕ $\phi$ GREEK PHI SYMBOL +\DeclareTextSymbolDefault{\textpisymbol}{LGR} % ϖ $\varpi$ GREEK PI SYMBOL +\DeclareTextSymbolDefault{\textkappasymbol}{LGR} % ϰ GREEK KAPPA SYMBOL +\DeclareTextSymbolDefault{\textrhosymbol}{LGR} % ϱ $\varrho$ GREEK RHO SYMBOL +\DeclareTextSymbolDefault{\textThetasymbol}{LGR} % ϴ GREEK CAPITAL THETA SYMBOL +\DeclareTextSymbolDefault{\textepsilonsymbol}{LGR} % ϵ $\epsilon$ GREEK LUNATE EPSILON SYMBOL</pre> +<p>Define compatibility mappings if the <a class="reference internal" href="#normalize-symbols">normalize-symbols</a> option is set:</p> +<pre class="literal-block">\iftextalpha@normalizeSymbols + \DeclareTextCommand{\textbetasymbol} {LGR}{\textbeta} + \DeclareTextCommand{\textthetasymbol} {LGR}{\texttheta} + \DeclareTextCommand{\textphisymbol} {LGR}{\textphi} + \DeclareTextCommand{\textpisymbol} {LGR}{\textpi} + \DeclareTextCommand{\textkappasymbol} {LGR}{\textkappa} + \DeclareTextCommand{\textrhosymbol} {LGR}{\textrho} + \DeclareTextCommand{\textThetasymbol} {LGR}{\textTheta} + \DeclareTextCommand{\textepsilonsymbol}{LGR}{\textepsilon} +\fi</pre> </div> </div> <div class="section" id="diacritics"> -<h3>Diacritics</h3> +<h3><a class="toc-backref" href="#id15">Diacritics</a></h3> <p>Greek diacritics via “named” macros:</p> <pre class="literal-block">\DeclareTextAccentDefault{\accdasia}{LGR} \DeclareTextAccentDefault{\accpsili}{LGR} @@ -1092,29 +1017,38 @@ also for cases like <tt class="literal"><span class="pre">\ensuregreek{\'A}U</sp \DeclareTextAccentDefault{\accpsiliperispomeni}{LGR} \DeclareTextAccentDefault{\accdialytikatonos}{LGR} \DeclareTextAccentDefault{\accdialytikavaria}{LGR} -\DeclareTextAccentDefault{\accdialytikaperispomeni}{LGR} -</pre> +\DeclareTextAccentDefault{\accdialytikaperispomeni}{LGR}</pre> <p>Symbol macros for the breathings:</p> <pre class="literal-block">\DeclareTextAccentDefault{\<}{LGR} -\DeclareTextAccentDefault{\>}{LGR} -</pre> +\DeclareTextAccentDefault{\>}{LGR}</pre> <p>Postfix accents:</p> <pre class="literal-block">\DeclareTextSymbolDefault{\ypogegrammeni}{LGR} % "small" sub-iota -\DeclareTextSymbolDefault{\prosgegrammeni}{LGR} % "capital" sub-iota -</pre> +\DeclareTextSymbolDefault{\prosgegrammeni}{LGR} % "capital" sub-iota</pre> <p>Other accents in LGR:</p> <pre class="literal-block">\DeclareTextAccentDefault{\accinvertedbrevebelow}{LGR} % INVERTED BREVE BELOW \DeclareTextAccentDefault{\textsubarch}{LGR} % tipa, Teubner name: ut -\DeclareTextAccentDefault{\accbrevebelow}{LGR} % BREVE BELOW -</pre> +\DeclareTextAccentDefault{\accbrevebelow}{LGR} % BREVE BELOW</pre> </div> <div class="section" id="auxiliary-macros"> -<h3>Auxiliary macros</h3> -<p><tt class="literal">\MakeUppercase</tt> requires three internal commands:</p> +<h3><a class="toc-backref" href="#id16">Auxiliary macros</a></h3> +<p><span class="docutils literal">\MakeUppercase</span> requires three internal commands:</p> <pre class="literal-block">\DeclareTextAccentDefault{\LGR@accdropped}{LGR} \DeclareTextAccentDefault{\LGR@accDialytika}{LGR} -\DeclareTextAccentDefault{\LGR@hiatus}{LGR} -</pre> +\DeclareTextAccentDefault{\LGR@hiatus}{LGR}</pre> +</div> +<div class="section" id="semicolon-as-erotimatiko"> +<h3><a class="toc-backref" href="#id17">semicolon as erotimatiko</a></h3> +<p>The text command <span class="docutils literal">\textsemicolon</span> inserts <span class="docutils literal">\texterotimatiko</span> +in LGR font encoding and a “normal” semicolon else:</p> +<pre class="literal-block">\ProvideTextCommandDefault{\textsemicolon}{;} +\ProvideTextCommand{\textsemicolon}{LGR}{\texterotimatiko}</pre> +<p>The LGR font encoding maps “;” to a middle dot (ano teleia). With the +<a class="reference internal" href="#keep-semicolon">keep-semicolon</a> option, the semicolon is made an active character and calls +<span class="docutils literal">\textsemicolon</span>:</p> +<pre class="literal-block">\iftextalpha@keepSemicolon + \catcode`;=\active + \newcommand{;}{\textsemicolon} +\fi</pre> <!-- References - - - - - - - - - - --> </div> |