diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-08 22:52:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-08 22:52:38 +0000 |
commit | d189ec20694dbb800e75ab2bf0a80f3af44c738c (patch) | |
tree | 7f159a9a5123046351d6e262edac1d15f1912e74 | |
parent | 117d3cf753beae31aec295e409a34c2bc1353613 (diff) |
new latex package lgrx (8may12)
git-svn-id: svn://tug.org/texlive/trunk@26262 c570f23f-e606-0410-a88d-b1316a301751
21 files changed, 7500 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/lgrx/README b/Master/texmf-dist/doc/latex/lgrx/README new file mode 100644 index 00000000000..cb4a68cee1e --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/README @@ -0,0 +1,220 @@ +.. -*- rst-mode -*- + +.. sectnum:: + :depth: 1 + +Greek text with the `LGR` font encoding +*************************************** + +:Copyright: © 2010 Günter Milde +:Licence: This work may be distributed and/or modified under the + conditions of the `LaTeX Project Public License`_, either + version 1.3 of this license or any later version. +:abstract: The LGRx bundle provides packages and definitions for typesetting + Greek text with fonts in the LGR encoding, the de-facto standard + set by babel. It includes a comprehensive font definition file, + support for Unicode input and macros for Greek letters in + non-Greek text. + +.. contents:: + +State of the Art +================ + +Up to now, there is no agreement on a Greek standard font encoding +(reserved name `T7`) because the restrictions for general text encodings +are too severe for typesetting polytonic Greek. + +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), +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 generates Greek characters via an ASCII +transliteration. This enables simple input with a Latin keyboard. +Characters with diacritics are selected by ligature definitions in the +font (see greek-usage.pdf__, teubner-doc.pdf__, or +`The CB Greek fonts`__). + +__ http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf +__ http://www.ctan.org/tex-archive/macros/latex/contrib/teubner/teubner-doc.pdf +__ http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf + +.. compound:: + + The name `LGR` does not reflect status of this font encoding due to + historical reasons. The encguide_ classifies encodings starting with `L` + as "local". Indeed, `LGR` started as a local encoding for the `CB Greek + fonts` by Claudio Beccari. Later, Apostolos Syropoulos advanced it to the + default font encoding for the `Babel`_ package's ``greek`` option. The + correct name would be ``OT7``: + + * It is an 'old' encoding. + * It implements a Latin transscription for a non-Latin script like the + ``OT2`` encoding. + * It is not confined to 128 bit but ``OT4`` shows that this is no + absolute requirement for an `OT` encoding. + + However, due to the fact that this font encoding has been used under its + current name for a long time, the name will not change for compatibility + reasons. + + +Problems +======== + +1. Ligatures with prefix notation prevent kerning (see the examples + linked below or the `LGR` documentation linked above). + +2. Sub-optimal results with the standard accent macros: + + * no combined accents, + * accents above (instead of before) capital letters, + * pre-composed characters are not used. + +3. The tilde character ``~`` is used for a non-breaking space by + default. Therefore the transliteration for the *perispomeni* accent is + not available without re-definition of this character. [#tildehack]_ + +4. The ``polutonikogreek`` `Babel` option redefines both, ``~`` and ``\~`` + to produce accents via input ligatures (restricted to the language + setting instead of the font encoding). This prevents the placing of a + tilde-accent on non-supported characters like in *niño* if the language + is set to polytonic Greek, even if ``\textlatin`` is used. [#poluhack]_ + +5. There is no Unicode support with `inputenc`_'s ``utf8`` option. + + The `ucs` package contributed by Dominique Unruh provides Unicode + support with the ``utf8x`` option. A `babel patch`_ by Werner Lemberg + for Greek Unicode support never got applied.) + +6. The LGR transliteration does not work for PDF bookmarks. + + +.. _babel patch: http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf + + +.. [#tildehack] Problem 3 can be solved by the simple one-liner :: + + \DeclareTextSymbol{\~}{LGR}{126} + + which results in ``\~`` inserting a plain tilde character if the + font encoding is `LGR`. + + Drawback: you cannot place a ~-accent on Greek characters except the + ones supported by an input ligature. + +.. [#poluhack] Fortunately, LaTeX saves copies of the accent macros: ``\~`` + is an alias of ``\a~`` (which is an alias of ``\@tabacckludge~``), so it + can be restored after loading `Babel` with:: + + \addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}} + \addto\extrasgreek{\renewcommand*{\~}{\a~}} + + With this addition, both the comprehensive font encoding definitions and + the workaround [#tildehack]_ also work with the ``polutonikogreek`` + `Babel` option. + + +lgrxenc.def: Comprehensive font encoding definitions +==================================================== + +``lgrxenc.def`` is an alternative to the rudimentary `LGR` font +definition file ``lgrenc.def`` which comes with Babel_'s Greek +support. It defines accent macros for the `LGR` font encoding that +select pre-composed glyphs if possible and places the diacritics +according to Greek typesetting rules else. Combined accents can be +specified as backslash + transliteration (``\~>a``) or iteratively +(``\~\>{a}``). + +:Source: `<lgrxenc.def>`_, `<lgrxenc.def.html>`__ +:Doc: `<lgrxenc.tex>`__, `<lgrxenc.pdf>`__ +:Tests: `<lgrxenc-test.tex>`__, `<lgrxenc-test.pdf>`__ + +Usage +----- + +To prevent confusion with Babel_'s ``lgrenc.def``, this file is named +``lgrxenc.def``. Load it by calling fontenc_ with the ``LGRx`` option. + +Example: + Select font encodings `T1` (as default) and `LGR` (with the comprehensive + font encoding definitions) + + ``\usepackage[LGRx,T1]{fontenc}`` + +.. Attention:: The name of the font encoding defined by the option ``LGRx`` + is **not** `LGRx` but `LGR`. Therefore, ``LGRx`` may not be the + last option (as fontenc uses the last option to select the default font + encoding). To set `LGR` as as default font encoding specify both, + `LGRx` and `LGR`, e.g. + + ``\usepackage[LGRx,T1,LGR]{fontenc}`` + + +lgrenc.dfu: Greek Unicode support +================================= + +Standards-compatible UTF-8 support for Greek based on the comprehensive +font encoding definitions. + +Cooperates with hyperref_ to enable Greek characters in section headers and +PDF bookmarks without the need for ``\texorpdfstring``. + +:Source: `<lgrenc.dfu>`__, `<lgrenc.dfu.html>`__ +:Example: `<greek-unicode.tex>`__, `<greek-unicode.pdf>`__ + +Usage +----- + +Requires comprehensive font encoding definitions from ``lgrxenc.def``: + + ``\usepackage[LGRx,T1]{fontenc}`` % define LGR and T1 encodings + ``\usepackage[utf8]{inputenc}`` % standard UTF-8 input encoding + +Unless combined with the textalpha_ package, text containing Greek Unicode +characters must be marked as requiring the LGR font encoding (either +directly or by setting the language to ``greek`` or ``polutonikogreek``). +This is a feature of inputenc_'s standard utf8 support, similar to the +behaviour for, e.g., Cyrillic characters. + + +.. _textalpha: + +textalpha.sty: Macros for Greek in text +======================================= + +Macros for Greek letters in text that work in any font encoding (see the +example below for limitations) and alias macros for compatibility with +existing packages. + +Cooperates with hyperref_ and bookmark_ to enable Greek characters in +section headers and PDF bookmarks without the need for ``\texorpdfstring``. + +.. note:: + + The package was renamed from `textgreek` to `textalpha` to prevent + confusion with the textgreek_ package by Leonard Michlmayr. + +:Source: `<textalpha.sty>`__, `<textalpha.sty.html>`__ +:Example: `<textalpha-test.tex>`__, `<textalpha-test.pdf>`__ +:Bookmarks: `<greekhyperref.tex>`__, `<greekhyperref.pdf>`__ + + +.. References + ========== + +.. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +.. _CB Fonts: http://www.ctan.org/pkg/cbgreek-complete +.. _grtimes: http://www.ctan.org/pkg/grtimes +.. _GFS font collection: http://www.ctan.org/pkg/gfs +.. _Kerkis: http://www.ctan.org/pkg/kerkis +.. _substitutefont: http://www.ctan.org/pkg/substitutefont +.. _encguide: http://tug.ctan.org/tex-archive/macros/latex/doc/encguide.pdf +.. _Babel: http://www.ctan.org/pkg/babel +.. _fontenc: http://www.ctan.org/pkg/fontenc +.. _inputenc: http://www.ctan.org/pkg/inputenc +.. _textgreek: http://www.ctan.org/pkg/textgreek +.. _hyperref: http://www.ctan.org/pkg/hyperref +.. _bookmark: http://www.ctan.org/pkg/bookmark diff --git a/Master/texmf-dist/doc/latex/lgrx/README.html b/Master/texmf-dist/doc/latex/lgrx/README.html new file mode 100644 index 00000000000..f4c821ce6b8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/README.html @@ -0,0 +1,913 @@ +<?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"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.10: http://docutils.sourceforge.net/" /> +<title>Greek text with the LGR font encoding</title> +<meta name="copyright" content="© 2010 Günter Milde" /> +<style type="text/css"> + +/* +:Author: David Goodger (goodger@python.org) +:Id: $Id: html4css1.css 7056 2011-06-17 10:50:48Z 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 } + +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; +} + +/* Uncomment (and remove this text!) to get bold-faced definition list terms +dl.docutils dt { + font-weight: bold } +*/ + +div.abstract { + margin: 2em 5em } + +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 { + 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 } +*/ + +div.dedication { + margin: 2em 5em ; + text-align: center ; + font-style: italic } + +div.dedication p.topic-title { + font-weight: bold ; + font-style: normal } + +div.figure { + margin-left: 2em ; + margin-right: 2em } + +div.footer, div.header { + clear: both; + font-size: smaller } + +div.line-block { + display: block ; + margin-top: 1em ; + margin-bottom: 1em } + +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 } + +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 } + +/* 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 { + margin-left: 2em ; + margin-right: 2em } + +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 } + +table.docutils th.field-name, table.docinfo th.docinfo-name { + font-weight: bold ; + text-align: left ; + white-space: nowrap ; + padding-left: 0 } + +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 } + +</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 */ +/* ============= */ + +body { + padding: 0 5%; + margin: 8px 0; + 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; + margin: auto; +} + +/* separate items except for compact lists */ +dl > dd { + margin-bottom: 1em; +} +.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; */ +} +dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +/* background: lightgreen; */ +} + +/* space around paragraphs */ +dl > dd p:first-child, td > p { + margin: 0; +} + +/* Sidebar */ +/* ------- */ + +div.sidebar { + margin-right: -5%; +} + +/* Special definition lists */ +/* ======================== */ + +/* 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 { + 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 */ +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 */ + +dl.docinfo > dd { + margin-left: 8em; +/* margin-bottom: 0.5em; */ +} + + +/* option list */ + +dl.option-list { + margin-left: 1em; + padding-left: 0; +} + +dl.option-list > dd { + margin-left: 8em; + /* margin-bottom: 0.5em; */ +} + +/* start description on a new line after long options */ +dl.option-list > dd p { + width: 100%; + display: inline-block; +} + +/* footnotes */ + +a.footnote-reference, a.fn-backref { + text-decoration: inherit; /* do not underline footnote links */ +} + +dl.footnote { + /* line on the left */ + padding-left: 1ex; + border-left: solid; + border-left-width: thin; + /* border-color: black; */ +} + +/* paragraph on same line as backrefs */ +dd > em { +/* background: green; */ + float: left; + margin-right: 1ex +} + + +/* +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 { + counter-reset: item; + list-style-type: none ! important; +} + +/* Set the negative indent of the list label as feature of the list item */ +ol > li { + text-indent: -40px; /* Mozillas default indent */ +} +/* reset for child elements */ +ol > li > * { + text-indent: 0px; + text-indent: 0; + margin-top: 0; + /* background: lightgreen; */ +} + +/* 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; + 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 { + margin-top: 0.5em ; + margin-bottom: 0.5em; +/* 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; +} + +/* "booktabs" style (no vertical lines) */ +table.booktabs { + border: 0; + border-top: 2px solid; + border-bottom: 2px solid; +} + +table.booktabs * { + border: 0; +} +table.booktabs th { + border-bottom: thin solid; +} + +table > caption { + text-align: left; +/* padding: 2em 0 1em 0; */ +} + +/* numbered tables*/ +table.numbered > caption:before { + counter-increment: table; /* defined/re-set in body */ + content: "Table " counter(table) ": "; + font-weight: bold; +} + + +/* literal text + ------------ +*/ +/* whitespace and wrapping in inline literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +tt.literal { + white-space: pre-wrap; +} + +/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ +/* pre.literal-block, pre.doctest-block { */ +/* margin-top: 0em ; */ +/* } */ + +/* Table of Contents */ + +/* don't indent like a topic */ +div.topic.contents { + margin: 0; +} +/* div.topic.contents ul { */ +/* list-style: none; */ +/* } */ + +div.topic.contents a { + text-decoration: none; /* no underline for links */ +} + +/* section numbers */ + +span.sectnum { + padding-right: 1ex; +} + +/* admonitions */ + +/* 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 } + +</style> +</head> +<body> +<div class="document" id="greek-text-with-the-lgr-font-encoding"> +<h1 class="title">Greek text with the <cite>LGR</cite> font encoding</h1> + +<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 +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> +</dd> +</dl> +<div class="abstract topic"> +<p class="topic-title first">Abstract</p> +<p>The LGRx bundle provides packages and definitions for typesetting +Greek text with fonts in the LGR encoding, the de-facto standard +set by babel. It includes a comprehensive font definition file, +support for Unicode input and macros for Greek letters in +non-Greek text.</p> +</div> +<!-- -*- rst-mode -*- --> +<div class="contents topic" id="contents"> +<p class="topic-title first">Contents</p> +<ul class="auto-toc simple"> +<li><p><a class="reference internal" href="#state-of-the-art" id="id8"><span class="sectnum">1</span> State of the Art</a></p></li> +<li><p><a class="reference internal" href="#problems" id="id9"><span class="sectnum">2</span> Problems</a></p></li> +<li><p><a class="reference internal" href="#lgrxenc-def-comprehensive-font-encoding-definitions" id="id10"><span class="sectnum">3</span> lgrxenc.def: Comprehensive font encoding definitions</a></p> +<ul> +<li><p><a class="reference internal" href="#usage" id="id11">Usage</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#lgrenc-dfu-greek-unicode-support" id="id12"><span class="sectnum">4</span> lgrenc.dfu: Greek Unicode support</a></p> +<ul> +<li><p><a class="reference internal" href="#id7" id="id13">Usage</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#textalpha-sty-macros-for-greek-in-text" id="id14"><span class="sectnum">5</span> textalpha.sty: Macros for Greek in text</a></p></li> +</ul> +</div> +<div class="section" id="state-of-the-art"> +<h1><a class="toc-backref" href="#id8"><span class="sectnum">1</span> State of the Art</a></h1> +<p>Up to now, there is no agreement on a Greek standard font encoding +(reserved name <cite>T7</cite>) because the restrictions for general text encodings +are too severe for typesetting polytonic Greek.</p> +<p>The <cite>LGR</cite> 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), +<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> +<p>The <cite>LGR</cite> font encoding generates Greek characters via an ASCII +transliteration. This enables simple input with a Latin keyboard. +Characters with diacritics are selected by ligature definitions in the +font (see <a class="reference external" href="http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf">greek-usage.pdf</a>, <a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/contrib/teubner/teubner-doc.pdf">teubner-doc.pdf</a>, or +<a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf">The CB Greek fonts</a>).</p> +<div class="compound"> +<p class="compound-first">The name <cite>LGR</cite> does not reflect status of this font encoding due to +historical reasons. The <a class="reference external" href="http://tug.ctan.org/tex-archive/macros/latex/doc/encguide.pdf">encguide</a> classifies encodings starting with <cite>L</cite> +as "local". Indeed, <cite>LGR</cite> started as a local encoding for the <cite>CB Greek +fonts</cite> by Claudio Beccari. Later, Apostolos Syropoulos advanced it to the +default font encoding for the <a class="reference external" href="http://www.ctan.org/pkg/babel">Babel</a> package's <tt class="literal">greek</tt> option. The +correct name would be <tt class="literal">OT7</tt>:</p> +<ul class="compound-middle simple"> +<li><p>It is an 'old' encoding.</p></li> +<li><p>It implements a Latin transscription for a non-Latin script like the +<tt class="literal">OT2</tt> encoding.</p></li> +<li><p>It is not confined to 128 bit but <tt class="literal">OT4</tt> shows that this is no +absolute requirement for an <cite>OT</cite> encoding.</p></li> +</ul> +<p class="compound-last">However, due to the fact that this font encoding has been used under its +current name for a long time, the name will not change for compatibility +reasons.</p> +</div> +</div> +<div class="section" id="problems"> +<h1><a class="toc-backref" href="#id9"><span class="sectnum">2</span> Problems</a></h1> +<ol class="arabic"> +<li><p>Ligatures with prefix notation prevent kerning (see the examples +linked below or the <cite>LGR</cite> documentation linked above).</p></li> +<li><p>Sub-optimal results with the standard accent macros:</p> +<ul class="simple"> +<li><p>no combined accents,</p></li> +<li><p>accents above (instead of before) capital letters,</p></li> +<li><p>pre-composed characters are not used.</p></li> +</ul> +</li> +<li><p>The tilde character <tt class="literal">~</tt> is used for a non-breaking space by +default. Therefore the transliteration for the <em>perispomeni</em> accent is +not available without re-definition of this character.<a class="footnote-reference" href="#tildehack" id="id4"><sup>1</sup></a></p></li> +<li><p>The <tt class="literal">polutonikogreek</tt> <cite>Babel</cite> option redefines both, <tt class="literal">~</tt> and <tt class="literal">\~</tt> +to produce accents via input ligatures (restricted to the language +setting instead of the font encoding). This prevents the placing of a +tilde-accent on non-supported characters like in <em>niño</em> if the language +is set to polytonic Greek, even if <tt class="literal">\textlatin</tt> is used.<a class="footnote-reference" href="#poluhack" id="id5"><sup>2</sup></a></p></li> +<li><p>There is no Unicode support with <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a>'s <tt class="literal">utf8</tt> option.</p> +<p>The <cite>ucs</cite> package contributed by Dominique Unruh provides Unicode +support with the <tt class="literal">utf8x</tt> option. A <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> by Werner Lemberg +for Greek Unicode support never got applied.)</p> +</li> +<li><p>The LGR transliteration does not work for PDF bookmarks.</p></li> +</ol> +<dl class="footnote"><dt class="label">1</dt> +<dd id="tildehack"> +<em>(<a class="fn-backref" href="#id4">1</a>, <a class="fn-backref" href="#id6">2</a>)</em> <p>Problem 3 can be solved by the simple one-liner</p> +<pre class="literal-block">\DeclareTextSymbol{\~}{LGR}{126} +</pre> +<p>which results in <tt class="literal">\~</tt> inserting a plain tilde character if the +font encoding is <cite>LGR</cite>.</p> +<p class="last">Drawback: you cannot place a ~-accent on Greek characters except the +ones supported by an input ligature.</p> +</dd> +<dt class="label"><a class="fn-backref" href="#id5">2</a></dt> +<dd id="poluhack"> +<p class="first">Fortunately, LaTeX saves copies of the accent macros: <tt class="literal">\~</tt> +is an alias of <tt class="literal">\a~</tt> (which is an alias of <tt class="literal">\@tabacckludge~</tt>), so it +can be restored after loading <cite>Babel</cite> with:</p> +<pre class="literal-block">\addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}} +\addto\extrasgreek{\renewcommand*{\~}{\a~}} +</pre> +<p class="last">With this addition, both the comprehensive font encoding definitions and +the workaround<a class="footnote-reference" href="#tildehack" id="id6"><sup>1</sup></a> also work with the <tt class="literal">polutonikogreek</tt> +<cite>Babel</cite> option.</p> +</dd> +</dl> +</div> +<div class="section" id="lgrxenc-def-comprehensive-font-encoding-definitions"> +<h1><a class="toc-backref" href="#id10"><span class="sectnum">3</span> lgrxenc.def: Comprehensive font encoding definitions</a></h1> +<p><tt class="literal">lgrxenc.def</tt> is an alternative to the rudimentary <cite>LGR</cite> font +definition file <tt class="literal">lgrenc.def</tt> which comes with <a class="reference external" href="http://www.ctan.org/pkg/babel">Babel</a>'s Greek +support. It defines accent macros for the <cite>LGR</cite> font encoding that +select pre-composed glyphs if possible and places the diacritics +according to Greek typesetting rules else. Combined accents can be +specified as backslash + transliteration (<tt class="literal"><span class="pre">\~>a</span></tt>) or iteratively +(<tt class="literal"><span class="pre">\~\>{a}</span></tt>).</p> +<dl class="field-list simple"> +<dt>Source</dt> +<dd><p><a class="reference external" href="lgrxenc.def">lgrxenc.def</a>, <a class="reference external" href="lgrxenc.def.html">lgrxenc.def.html</a></p> +</dd> +<dt>Doc</dt> +<dd><p><a class="reference external" href="lgrxenc.tex">lgrxenc.tex</a>, <a class="reference external" href="lgrxenc.pdf">lgrxenc.pdf</a></p> +</dd> +<dt>Tests</dt> +<dd><p><a class="reference external" href="lgrxenc-test.tex">lgrxenc-test.tex</a>, <a class="reference external" href="lgrxenc-test.pdf">lgrxenc-test.pdf</a></p> +</dd> +</dl> +<div class="section" id="usage"> +<h2><a class="toc-backref" href="#id11">Usage</a></h2> +<p>To prevent confusion with <a class="reference external" href="http://www.ctan.org/pkg/babel">Babel</a>'s <tt class="literal">lgrenc.def</tt>, this file is named +<tt class="literal">lgrxenc.def</tt>. Load it by calling <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> with the <tt class="literal">LGRx</tt> option.</p> +<dl class="docutils"> +<dt>Example:</dt> +<dd><p>Select font encodings <cite>T1</cite> (as default) and <cite>LGR</cite> (with the comprehensive +font encoding definitions)</p> +<blockquote> +<p><tt class="literal"><span class="pre">\usepackage[LGRx,T1]{fontenc}</span></tt></p> +</blockquote> +</dd> +</dl> +<div class="attention"> +<p class="admonition-title">Attention!</p> +<p>The name of the font encoding defined by the option <tt class="literal">LGRx</tt> +is <strong>not</strong> <cite>LGRx</cite> but <cite>LGR</cite>. Therefore, <tt class="literal">LGRx</tt> may not be the +last option (as fontenc uses the last option to select the default font +encoding). To set <cite>LGR</cite> as as default font encoding specify both, +<cite>LGRx</cite> and <cite>LGR</cite>, e.g.</p> +<blockquote> +<p><tt class="literal"><span class="pre">\usepackage[LGRx,T1,LGR]{fontenc}</span></tt></p> +</blockquote> +</div> +</div> +</div> +<div class="section" id="lgrenc-dfu-greek-unicode-support"> +<h1><a class="toc-backref" href="#id12"><span class="sectnum">4</span> lgrenc.dfu: Greek Unicode support</a></h1> +<p>Standards-compatible UTF-8 support for Greek based on the comprehensive +font encoding definitions.</p> +<p>Cooperates with <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> to enable Greek characters in section headers and +PDF bookmarks without the need for <tt class="literal">\texorpdfstring</tt>.</p> +<dl class="field-list simple"> +<dt>Source</dt> +<dd><p><a class="reference external" href="lgrenc.dfu">lgrenc.dfu</a>, <a class="reference external" href="lgrenc.dfu.html">lgrenc.dfu.html</a></p> +</dd> +<dt>Example</dt> +<dd><p><a class="reference external" href="greek-unicode.tex">greek-unicode.tex</a>, <a class="reference external" href="greek-unicode.pdf">greek-unicode.pdf</a></p> +</dd> +</dl> +<div class="section" id="id7"> +<h2><a class="toc-backref" href="#id13">Usage</a></h2> +<p>Requires comprehensive font encoding definitions from <tt class="literal">lgrxenc.def</tt>:</p> +<blockquote> +<p><tt class="literal"><span class="pre">\usepackage[LGRx,T1]{fontenc}</span></tt> % define LGR and T1 encodings +<tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> % standard UTF-8 input encoding</p> +</blockquote> +<p>Unless combined with the <a class="reference internal" href="#textalpha">textalpha</a> package, text containing Greek Unicode +characters must be marked as requiring the LGR font encoding (either +directly or by setting the language to <tt class="literal">greek</tt> or <tt class="literal">polutonikogreek</tt>). +This is a feature of <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a>'s standard utf8 support, similar to the +behaviour for, e.g., Cyrillic characters.</p> +</div> +</div> +<div class="section" id="textalpha-sty-macros-for-greek-in-text"> +<span id="textalpha"></span><h1><a class="toc-backref" href="#id14"><span class="sectnum">5</span> textalpha.sty: Macros for Greek in text</a></h1> +<p>Macros for Greek letters in text that work in any font encoding (see the +example below for limitations) and alias macros for compatibility with +existing packages.</p> +<p>Cooperates with <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> and <a class="reference external" href="http://www.ctan.org/pkg/bookmark">bookmark</a> to enable Greek characters in +section headers and PDF bookmarks without the need for <tt class="literal">\texorpdfstring</tt>.</p> +<div class="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="field-list simple"> +<dt>Source</dt> +<dd><p><a class="reference external" href="textalpha.sty">textalpha.sty</a>, <a class="reference external" href="textalpha.sty.html">textalpha.sty.html</a></p> +</dd> +<dt>Example</dt> +<dd><p><a class="reference external" href="textalpha-test.tex">textalpha-test.tex</a>, <a class="reference external" href="textalpha-test.pdf">textalpha-test.pdf</a></p> +</dd> +<dt>Bookmarks</dt> +<dd><p><a class="reference external" href="greekhyperref.tex">greekhyperref.tex</a>, <a class="reference external" href="greekhyperref.pdf">greekhyperref.pdf</a></p> +</dd> +</dl> +<!-- References +========== --> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf Binary files differnew file mode 100644 index 00000000000..03d9eddf3c9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf diff --git a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex new file mode 100644 index 00000000000..b0a144c0be4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex @@ -0,0 +1,262 @@ +\documentclass[a4]{article} +\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader +\usepackage[LGRx,T2A, T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{parskip} +\usepackage{booktabs} +% \usepackage{textcomp} + +\usepackage{lmodern} +% \usepackage{kerkis} +% \usepackage{gfsdidot} + + +\newcommand{\LGR}{\fontencoding{LGR}\selectfont} +\newcommand{\Latin}{\fontencoding{T1}\selectfont} + +\pagestyle{empty} +% \enlargethispage{1em} + +\begin{document} + +\subsection*{Greek Unicode with \texttt{lgrenc.dfu}} + +The definitions in \texttt{lgrenc.dfu} provide standards-compatible UTF-8 +support for Greek based on the extended font encoding definitions in +\texttt{lgrxenc.def}. + +Like other \emph{inputenc} Unicode definitions, they only work for text +in the correct font encoding (in this case LGR). +% e.g. Π produces: +% ! LaTeX Error: Command \textPi unavailable in encoding T1. +% just like Ж produces: +% ! LaTeX Error: Command \CYRZH unavailable in encoding T1. +% +The font encoding is automatically set to LGR by the babel-languages +\emph{greek} and \emph{polutonikogreek}. + +Combined with the accompanying package \texttt{textalpha.sty}, Greek Unicode +characters can be used without explicite language or font-encoding change -- +with some limitations (kerning, MakeUppercase/MakeLowercase, multiple +accents) described in \texttt{textalpha-test}. + +\Latin +\subsubsection*{Greek and Coptic} + +\LGR +\begin{tabular}{rrrrrrrrrrrrrrrrr} +\toprule +& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & + \Latin A & \Latin B & \Latin C & \Latin D & \Latin E & \Latin F\\ +\midrule +\Latin 370 & * & * & * & * & ʹ & ͵ & * & * & · & · & ͺ & * & * & * & ; & \\ +\Latin 380 & · & · & · & · & ΄ & ΅ & Ά & · & Έ & Ή & Ί & · & Ό & · & Ύ & Ώ\\ +\Latin 390 & ΐ & Α & Β & Γ & Δ & Ε & Ζ & Η & Θ & Ι & Κ & Λ & Μ & Ν & Ξ & Ο\\ +\Latin 3A0 & Π & Ρ & · & Σ & Τ & Υ & Φ & Χ & Ψ & Ω & Ϊ & Ϋ & ά & έ & ή & ί\\ +\Latin 3B0 & ΰ & α & β & γ & δ & ε & ζ & η & θ & ι & κ & λ & μ & ν & ξ & ο\\ +\Latin 3C0 & π & ρ & ς & σ & τ & υ & φ & χ & ψ & ω & ϊ & ϋ & ό & ύ & ώ & \\ +\Latin 3D0 & * & * & * & * & * & * & * & * & Ϙ & ϙ & Ϛ & ϛ & Ϝ & ϝ & * & ϟ\\ +\Latin 3E0 & Ϡ & ϡ & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ +\Latin 3F0 & * & * & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ +\bottomrule +\end{tabular} + +\Latin * glyph missing in LGR, · Unicode point not defined + +\subsubsection*{Greek Extended} + +\LGR +\begin{tabular}{rrrrrrrrrrrrrrrrr} +\toprule +& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & + \Latin A & \Latin B & \Latin C & \Latin D & \Latin E & \Latin F\\ +\midrule + \Latin 1F00 & ἀ & ἁ & ἂ & ἃ & ἄ & ἅ & ἆ & ἇ & Ἀ & Ἁ & Ἂ & Ἃ & Ἄ & Ἅ & Ἆ & Ἇ\\ + \Latin 1F10 & ἐ & ἑ & ἒ & ἓ & ἔ & ἕ & · & · & Ἐ & Ἑ & Ἒ & Ἓ & Ἔ & Ἕ & · & \\ + \Latin 1F20 & ἠ & ἡ & ἢ & ἣ & ἤ & ἥ & ἦ & ἧ & Ἠ & Ἡ & Ἢ & Ἣ & Ἤ & Ἥ & Ἦ & Ἧ\\ + \Latin 1F30 & ἰ & ἱ & ἲ & ἳ & ἴ & ἵ & ἶ & ἷ & Ἰ & Ἱ & Ἲ & Ἳ & Ἴ & Ἵ & Ἶ & Ἷ\\ + \Latin 1F40 & ὀ & ὁ & ὂ & ὃ & ὄ & ὅ & · & · & Ὀ & Ὁ & Ὂ & Ὃ & Ὄ & Ὅ & · & \\ + \Latin 1F50 & ὐ & ὑ & ὒ & ὓ & ὔ & ὕ & ὖ & ὗ & · & Ὑ & · & Ὓ & · & Ὕ & · & Ὗ\\ + \Latin 1F60 & ὠ & ὡ & ὢ & ὣ & ὤ & ὥ & ὦ & ὧ & Ὠ & Ὡ & Ὢ & Ὣ & Ὤ & Ὥ & Ὦ & Ὧ\\ + \Latin 1F70 & ὰ & ά & ὲ & έ & ὴ & ή & ὶ & ί & ὸ & ό & ὺ & ύ & ὼ & ώ & · & \\ + \Latin 1F80 & ᾀ & ᾁ & ᾂ & ᾃ & ᾄ & ᾅ & ᾆ & ᾇ & ᾈ & ᾉ & ᾊ & ᾋ & ᾌ & ᾍ & ᾎ & ᾏ\\ + \Latin 1F90 & ᾐ & ᾑ & ᾒ & ᾓ & ᾔ & ᾕ & ᾖ & ᾗ & ᾘ & ᾙ & ᾚ & ᾛ & ᾜ & ᾝ & ᾞ & ᾟ\\ + \Latin 1FA0 & ᾠ & ᾡ & ᾢ & ᾣ & ᾤ & ᾥ & ᾦ & ᾧ & ᾨ & ᾩ & ᾪ & ᾫ & ᾬ & ᾭ & ᾮ & ᾯ\\ + \Latin 1FB0 & ᾰ & ᾱ & ᾲ & ᾳ & ᾴ & · & ᾶ & ᾷ & Ᾰ & Ᾱ & Ὰ & Ά & ᾼ & ᾽ & ι & ᾿\\ + \Latin 1Fc0 & ῀ & ῁ & ῂ & ῃ & ῄ & · & ῆ & ῇ & Ὲ & Έ & Ὴ & Ή & ῌ & ῍ & ῎ & ῏\\ + \Latin 1FD0 & ῐ & ῑ & ῒ & ΐ & · & · & ῖ & ῗ & Ῐ & Ῑ & Ὶ & Ί & · & ῝ & ῞ & ῟\\ + \Latin 1FE0 & ῠ & ῡ & ῢ & ΰ & ῤ & ῥ & ῦ & ῧ & Ῠ & Ῡ & Ὺ & Ύ & Ῥ & ῭ & ΅ & `\\ + \Latin 1FF0 & · & · & ῲ & ῳ & ῴ & · & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & \\ +\bottomrule +\end{tabular} + + +\subsubsection*{Other Unicode Blocks} + +\Latin Latin-1 Supplement: \LGR ¨ « ¯ ´ · » + +\Latin IPA Extensions: \LGR ə + +\Latin Spacing Modifier Letters: \LGR ˘a % breve + +\Latin General Punctuation: ZWNJ\footnote{zero width no joiner}: + \LGR AU ({\Latin comp.} AU) – — ‘ ’ ‰ + +\Latin Currency Symbols: \LGR € + +% TODO: define this (as it looks like) or not (as it is not the same)? +% \Latin Letterlike Symbols: \LGR Ω + +\Latin Ancient Greek Numbers: +\LGR +𐅄 % \textPiDelta{} % GREEK ACROPHONIC ATTIC FIFTY +𐅅 % \textPiEta{} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +𐅆 % \textPiChi{} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +𐅇 % \textPiMu{} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +\Latin + + +\subsubsection*{MakeUppercase, MakeLowercase} + +Other Unicode Blocks + +\LGR +\MakeUppercase{¨ « ¯ ´ · »} \MakeLowercase{¨ « ¯ ´ · »} + +\MakeUppercase{ə} \MakeLowercase{ə} + +\MakeUppercase{˘a } \MakeLowercase{˘a } + +\MakeUppercase{AU ($\ne$ AU) – — ‘ ’ ‰} +\MakeLowercase{AU ($\ne$ AU) – — ‘ ’ ‰} + +\MakeUppercase{€} \MakeLowercase{€} + +% \MakeUppercase{Ω} \MakeLowercase{Ω} + +\MakeUppercase{ +𐅄 % GREEK ACROPHONIC ATTIC FIFTY +𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED +𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND +𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +} \MakeLowercase{ +𐅄 % GREEK ACROPHONIC ATTIC FIFTY +𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED +𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND +𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +} + + +\Latin Greek and Coptic + +\LGR +\MakeUppercase{ ʹ ͵ ͺ ; }\\ +\MakeUppercase{ ΄ ΅ Ά · Έ Ή Ί Ό Ύ Ώ }\\ +\MakeUppercase{ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο }\\ +\MakeUppercase{ Π Ρ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί }\\ +\MakeUppercase{ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο }\\ +\MakeUppercase{ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ }\\ +\MakeUppercase{ Ϙ ϙ Ϛ ϛ Ϝ ϝ ϟ }\\ +\MakeUppercase{ Ϡ ϡ }\\ +\MakeUppercase{ } + + +\MakeLowercase{ ʹ ͵ ͺ ; }\\ +\MakeLowercase{ ΄ ΅ Ά · Έ Ή Ί Ό Ύ Ώ }\\ +\MakeLowercase{ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο }\\ +\MakeLowercase{ Π Ρ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί }\\ +\MakeLowercase{ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο }\\ +\MakeLowercase{ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ }\\ +\MakeLowercase{ Ϙ ϙ Ϛ ϛ Ϝ ϝ ϟ }\\ +\MakeLowercase{ Ϡ ϡ }\\ +\MakeLowercase{ } + +\Latin The lowercase of {\LGR Σ} is the «auto-sigma»: +\LGR Σ $\mapsto$ \MakeLowercase{Σ}, ΣΤ $\mapsto$ \MakeLowercase{ΣΤ}. +\Latin Add a ZWNJ or use the \verb+\noboundary+ macro to prevent + conversion to final sigma: +\LGR \MakeLowercase{Σ \textSigma\noboundary}. +\Latin The lowercase of {\LGR Ϛ} is {\LGR\MakeLowercase{Ϛ}}. + +\newpage + +\Latin Greek extended + +\LGR +\MakeUppercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ +\MakeUppercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ +\MakeUppercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ +\MakeUppercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ +\MakeUppercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ +\MakeUppercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ +\MakeUppercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ +\MakeUppercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ +\MakeUppercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ +\MakeUppercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ +\MakeUppercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ +\MakeUppercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ +\MakeUppercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ +\MakeUppercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ +\MakeUppercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ +\MakeUppercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } + + +\MakeLowercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ +\MakeLowercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ +\MakeLowercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ +\MakeLowercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ +\MakeLowercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ +\MakeLowercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ +\MakeLowercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ +\MakeLowercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ +\MakeLowercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ +\MakeLowercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ +\MakeLowercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ +\MakeLowercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ +\MakeLowercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ +\MakeLowercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ +\MakeLowercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ +\MakeLowercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } + +\end{document} + + +Problems with text-extraction from PDF with Kerkis: + + 0 1 2 3 4 5 6 7 8 9 A B C D E F +370 * * * * ΄ ͵ * * ι * * * ; +380 ΄ ΅ ΄Α ΄Ε ΄Η ΄Ι ΄Ο ΄Υ ΄Ω +390 ΐ Α Β Γ ∆ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο +3Α0 Π Ρ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί +3Β0 ΰ α ϐ γ δ ε Ϲ η ϑ ι κ λ µ ν ξ ο +3῝0 π ϱ ς σ τ υ ϕ χ ψ ω ϊ ϋ ό ύ ώ +3∆0 * * * * * * * * Ϟ Ϝ ϝ Ϝ ϝ * ϟ +3Ε0 ϡ * * * * * * * * * * * * * * +3Φ0 * * * * * * * * * * * * * * * * + + +0387 GREEK ANO TELEIA missing +03B6 zeta replaced by 03F9 GREEK CAPITAL LUNATE SIGMA SYMBOL +03B8 GREEK SMALL LETTER THETA replaced by 03D1 GREEK THETA SYMBOL +03C1 GREEK SMALL LETTER RHO replaced by 03F1 GREEK RHO SYMBOL +03C6 GREEK SMALL LETTER PHI replaced by 03D5 GREEK PHI SYMBOL + + +and GFS Didot: + + 0 1 2 3 4 5 6 7 8 9 A B C D E F +370 * * * * ´ ͵ * * ι * * * ; +380 ´ ῆ Α + ´ ´ ´Ε ´Η ´Ι ´Ο ´Υ ´Ω +390 ῆ ´ι Α Β Γ ∆ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο +3Α0 Π Ρ Σ Τ Υ Φ Χ Ψ Ω ῆ + Ι ῆ + Υ ά έ ή ί +3Β0 ῆ ´υ α β γ δ ε ζ η ϑ ι κ λ μ ν ξ ο + 3῝0 π ρ ς σ τ υ φ χ ψ ω ι + ῆ υ + ῆ ό ύ ώ +3∆0 * * * * * * * * Ϛ Ϝ Ϝ * Ϟ +3Ε0 * * * * * * * * * * * * * * +3Φ0 * * * * * * * * * * * * * * * * + diff --git a/Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf b/Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf Binary files differnew file mode 100644 index 00000000000..93067f97b5b --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf diff --git a/Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex b/Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex new file mode 100644 index 00000000000..2cd9ff848d1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex @@ -0,0 +1,63 @@ +\documentclass{article} +\usepackage{fixltx2e} % LaTeX patches, \textsubscript +\usepackage{cmap} % fix search and cut-and-paste in Acrobat +\usepackage[LGR,T1]{fontenc} +\usepackage{lmodern} + +\usepackage[greek,english]{babel} +\usepackage{textalpha} +\usepackage[utf8]{inputenc} + +\usepackage[unicode,colorlinks=true,linkcolor=blue]{hyperref} +\usepackage{bookmark} + +\begin{document} + +\section{Greek and hyperref bookmarks} + +\subsection{\textgreek{logos} one} + +\textbackslash{}textgreek + LGR transkription: + +In the PDF-bookmark are Latin letters instead of Greek ones. + +\subsection{\foreignlanguage{greek}{logos} two} + +Greek language (babel) + LGR transkription: + +In the PDF-bookmark are Latin letters instead of Greek ones. + +\subsection{\textlambda\textomicron\textgamma\textomicron\textvarsigma{} three} + +textalpha package with \textbackslash{}textgreek* macros: + +Works, if the "unicode" option is given to hyperref. +(With xpdf, Greek letters are not shown in PDF bookmarks.) + +\subsection{λογος four} + +Literal Greek Unicode characters without babel language switch. + +\subsection{\foreignlanguage{greek}{λογος} five} + +Greek language (babel) + Literal Greek Unicode characters + +\subsection{Kerning: \textAlpha\textUpsilon\textLambda{} +\textgreek{\textAlpha\textUpsilon\textLambda} +\foreignlanguage{greek}{\textAlpha\textUpsilon\textLambda}} + +Kerning is impossible, if the font encoding is switched for every single +character. Wrap the Greek part in a command switching to LGR font encoding +to fix this. + +\subsection{Conclusion} + +For Greek text parts in section headers use either +literal Unicode characters or single \verb+\text...+ macros. + +For proper kerning in the main document, combine this with the +\verb+\textgreek+ or \verb+\foreignlanguage{greek}+ macros. + + + +\end{document} diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu b/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu new file mode 100644 index 00000000000..de8fcb5a565 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu @@ -0,0 +1,476 @@ +% lgrenc.dfu: Greek Unicode support using LGR fonts +% ================================================== +% +% :Copyright: © 2010 Günter Milde +% :Licence: This work may be distributed and/or modified under the +% conditions of the `LaTeX Project Public License`_, either +% version 1.3 of this license or any later version. +% +% Based on a `babel patch`_ by Werner Lemberg, with input from the ucs +% package (``ucsencs.def``) by Dominique Unruh and ``CB.enc`` by +% Apostolos Syropoulos. +% +% :: + +\ProvidesFile{lgrenc.dfu}[2010/06/15 0.1 UTF-8 support for Greek] + +% Usage +% ----- +% +% Requires extended font encoding definitions from ``lgrxenc.def``: +% +% ``\usepackage[LGRx,T1]{fontenc}`` % define LGR and T1 encodings +% ``\usepackage[utf8]{inputenc}`` % standard UTF-8 input encoding +% +% Note: as the LGRx option define the ``LGR`` (not ``LGRx``) font +% encoding, it cannot be given as last option! Use, e.g., +% ``\usepackage[LGRx,T1,LGR]{fontenc}`` to make LGR the default. +% +% All text containing Greek Unicode characters must be marked as +% requiring the LGR font encoding (either directly or by setting the +% language to ``greek`` or ``polutonikogreek``). +% +% +% Character Declarations +% ---------------------- +% +% Some characters exist in other font encodings too. Care has been taken +% to ensure the definitions match with other ``*.dfu`` and ``*enc.def`` +% files. +% +% Latin-1 Supplement (T1) +% ~~~~~~~~~~~~~~~~~~~~~~~ +% :: + +\DeclareUnicodeCharacter{00A8}{\textasciidieresis} % ¨ +\DeclareUnicodeCharacter{00AB}{\guillemotleft} % « +\DeclareUnicodeCharacter{00AF}{\textasciimacron} % ¯ +\DeclareUnicodeCharacter{00B4}{\textasciiacute} % ´ +\DeclareUnicodeCharacter{00B7}{\textperiodcentered} % · +\DeclareUnicodeCharacter{00BB}{\guillemotright} % » + +% IPA Extensions (T3) +% ~~~~~~~~~~~~~~~~~~~ +% :: + +\DeclareUnicodeCharacter{0259}{\textschwa} % ə + +% Spacing Modifier Letters +% ~~~~~~~~~~~~~~~~~~~~~~~~ +% :: + +\DeclareUnicodeCharacter{02D8}{\textasciibreve} % ˘ + + +% General Punctuation +% ~~~~~~~~~~~~~~~~~~~ +% :: + +\DeclareUnicodeCharacter{200C}{\textcompwordmark} % ZWNJ +\DeclareUnicodeCharacter{2013}{\textendash} % – +\DeclareUnicodeCharacter{2014}{\textemdash} % — +\DeclareUnicodeCharacter{2018}{\textquoteleft} % ‘ +\DeclareUnicodeCharacter{2019}{\textquoteright} % ’ +\DeclareUnicodeCharacter{201A}{\quotesinglbase} % ‚ +\DeclareUnicodeCharacter{2030}{\textperthousand} % ‰ +\DeclareUnicodeCharacter{2039}{\guilsinglleft} % ‹ +\DeclareUnicodeCharacter{203A}{\guilsinglright} % › + +% Currency Symbols +% ~~~~~~~~~~~~~~~~ +% :: + +\DeclareUnicodeCharacter{20AC}{\texteuro} % € + +% Letterlike Symbols +% ~~~~~~~~~~~~~~~~~~ +% :: + +% TODO: define this (as it looks like) or not (as it is not the same)? +% \DeclareUnicodeCharacter{2126}{\textohm} % Ω (Ohm sign ≠ Omega) + +% Greek and Coptic +% ~~~~~~~~~~~~~~~~ +% :: + +% NR Unicode Name % UCS-name, PU-(hyperre)-fname +% 0370 GREEK CAPITAL LETTER HETA % Ͱ +% 0371 GREEK SMALL LETTER HETA % ͱ +% 0372 GREEK CAPITAL LETTER ARCHAIC SAMPI % Ͳ +% 0373 GREEK SMALL LETTER ARCHAIC SAMPI % Ͳ +\DeclareUnicodeCharacter{0374}{\anwtonos} % ʹ \textdexiakeraia, \textnumeralsigngreek +\DeclareUnicodeCharacter{0375}{\katwtonos} % ͵ \textaristerikeraia, \textnumeralsignlowergreek +% 0376 GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA % Ͷ +% 0377 GREEK SMALL LETTER PAMPHYLIAN DIGAMMA % ͷ + +\DeclareUnicodeCharacter{037A}{\textcompwordmark\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 % +\DeclareUnicodeCharacter{037E}{\erotimatiko} % ; \textquestion + +\DeclareUnicodeCharacter{0384}{\@tabacckludge'\textcompwordmark} % ΄ +\DeclareUnicodeCharacter{0385}{\"'\textcompwordmark} % ΅ \textdialytikatonos{\empty} +\DeclareUnicodeCharacter{0386}{\@tabacckludge'\textAlpha} % Ά +\DeclareUnicodeCharacter{0387}{\anoteleia} % · \textanoteleia +\DeclareUnicodeCharacter{0388}{\@tabacckludge'\textEpsilon} % Έ +\DeclareUnicodeCharacter{0389}{\@tabacckludge'\textEta} % Ή +\DeclareUnicodeCharacter{038A}{\@tabacckludge'\textIota} % Ί +\DeclareUnicodeCharacter{038C}{\@tabacckludge'\textOmicron} % Ό +\DeclareUnicodeCharacter{038E}{\@tabacckludge'\textUpsilon} % Ύ +\DeclareUnicodeCharacter{038F}{\@tabacckludge'\textOmega} % Ώ +\DeclareUnicodeCharacter{0390}{\"'\textiota} % ΐ \textdialytikatonos\textiota + +\DeclareUnicodeCharacter{0391}{\textAlpha} % Α +\DeclareUnicodeCharacter{0392}{\textBeta} % Β +\DeclareUnicodeCharacter{0393}{\textGamma} % Γ +\DeclareUnicodeCharacter{0394}{\textDelta} % Δ +\DeclareUnicodeCharacter{0395}{\textEpsilon} % Ε +\DeclareUnicodeCharacter{0396}{\textZeta} % Ζ +\DeclareUnicodeCharacter{0397}{\textEta} % Η +\DeclareUnicodeCharacter{0398}{\textTheta} % Θ +\DeclareUnicodeCharacter{0399}{\textIota} % Ι +\DeclareUnicodeCharacter{039A}{\textKappa} % Κ +\DeclareUnicodeCharacter{039B}{\textLambda} % Λ +\DeclareUnicodeCharacter{039C}{\textMu} % Μ +\DeclareUnicodeCharacter{039D}{\textNu} % Ν +\DeclareUnicodeCharacter{039E}{\textXi} % Ξ +\DeclareUnicodeCharacter{039F}{\textOmicron} % Ο +\DeclareUnicodeCharacter{03A0}{\textPi} % Π +\DeclareUnicodeCharacter{03A1}{\textRho} % Ρ +\DeclareUnicodeCharacter{03A3}{\textSigma} % Σ +\DeclareUnicodeCharacter{03A4}{\textTau} % Τ +\DeclareUnicodeCharacter{03A5}{\textUpsilon} % Υ +\DeclareUnicodeCharacter{03A6}{\textPhi} % Φ +\DeclareUnicodeCharacter{03A7}{\textChi} % Χ +\DeclareUnicodeCharacter{03A8}{\textPsi} % Ψ +\DeclareUnicodeCharacter{03A9}{\textOmega} % Ω + +\DeclareUnicodeCharacter{03AA}{\"\textIota} % Ϊ +\DeclareUnicodeCharacter{03AB}{\"\textUpsilon} % Ϋ +\DeclareUnicodeCharacter{03AC}{\@tabacckludge'\textalpha} % ά +\DeclareUnicodeCharacter{03AD}{\@tabacckludge'\textepsilon} % έ +\DeclareUnicodeCharacter{03AE}{\@tabacckludge'\texteta} % ή +\DeclareUnicodeCharacter{03AF}{\@tabacckludge'\textiota} % ί +\DeclareUnicodeCharacter{03B0}{\"'\textupsilon} % ΰ \textdialytikatonos\textupsilon, \"\textupsilonacute + +\DeclareUnicodeCharacter{03B1}{\textalpha} % α +\DeclareUnicodeCharacter{03B2}{\textbeta} % β +\DeclareUnicodeCharacter{03B3}{\textgamma} % γ +\DeclareUnicodeCharacter{03B4}{\textdelta} % δ +\DeclareUnicodeCharacter{03B5}{\textepsilon} % ε +\DeclareUnicodeCharacter{03B6}{\textzeta} % ζ +\DeclareUnicodeCharacter{03B7}{\texteta} % η +\DeclareUnicodeCharacter{03B8}{\texttheta} % θ +\DeclareUnicodeCharacter{03B9}{\textiota} % ι +\DeclareUnicodeCharacter{03BA}{\textkappa} % κ +\DeclareUnicodeCharacter{03BB}{\textlambda} % λ +\DeclareUnicodeCharacter{03BC}{\textmu} % μ \textmu, \textmugreek +\DeclareUnicodeCharacter{03BD}{\textnu} % ν +\DeclareUnicodeCharacter{03BE}{\textxi} % ξ +\DeclareUnicodeCharacter{03BF}{\textomicron} % ο +\DeclareUnicodeCharacter{03C0}{\textpi} % π +\DeclareUnicodeCharacter{03C1}{\textrho} % ρ +\DeclareUnicodeCharacter{03C2}{\textvarsigma} % ς +\DeclareUnicodeCharacter{03C3}{\textsigma} % σ +\DeclareUnicodeCharacter{03C4}{\texttau} % τ +\DeclareUnicodeCharacter{03C5}{\textupsilon} % υ +\DeclareUnicodeCharacter{03C6}{\textphi} % φ +\DeclareUnicodeCharacter{03C7}{\textchi} % χ +\DeclareUnicodeCharacter{03C8}{\textpsi} % ψ +\DeclareUnicodeCharacter{03C9}{\textomega} % ω + +\DeclareUnicodeCharacter{03CA}{\"\textiota} % ϊ +\DeclareUnicodeCharacter{03CB}{\"\textupsilon} % ϋ +\DeclareUnicodeCharacter{03CC}{\@tabacckludge'\textomicron} % ό +\DeclareUnicodeCharacter{03CD}{\@tabacckludge'\textupsilon} % ύ +\DeclareUnicodeCharacter{03CE}{\@tabacckludge'\textomega} % ώ + +\DeclareUnicodeCharacter{03D8}{\Qoppa} % Ϙ +\DeclareUnicodeCharacter{03D9}{\qoppa} % ϙ +\DeclareUnicodeCharacter{03DA}{\Stigma} % Ϛ \textStigmagreek +\DeclareUnicodeCharacter{03DB}{\stigma} % ϛ \textstigma \textstigmagreek +\DeclareUnicodeCharacter{03DC}{\Digamma} % Ϝ \textDigamma \textDigammagreek +\DeclareUnicodeCharacter{03DD}{\ddigamma} % ϝ \textdigamma \textdigammagreek +%03DE GREEK LETTER KOPPA % Ϟ \textKoppagreek +\DeclareUnicodeCharacter{03DF}{\koppa} % ϟ \textqoppa [sic!] \textkoppagreek +\DeclareUnicodeCharacter{03E0}{\Sampi} % Ϡ \textSampigreek +\DeclareUnicodeCharacter{03E1}{\sampi} % ϡ \textsanpi \textsampigreek + +% Greek Extended +% ~~~~~~~~~~~~~~ +% :: + +\DeclareUnicodeCharacter{1F00}{\@tabacckludge>\textalpha} % ἀ +\DeclareUnicodeCharacter{1F01}{\@tabacckludge<\textalpha} % ἁ +\DeclareUnicodeCharacter{1F02}{\@tabacckludge>`\textalpha} % ἂ +\DeclareUnicodeCharacter{1F03}{\@tabacckludge<`\textalpha} % ἃ +\DeclareUnicodeCharacter{1F04}{\@tabacckludge>'\textalpha} % ἄ +\DeclareUnicodeCharacter{1F05}{\@tabacckludge<'\textalpha} % ἅ +\DeclareUnicodeCharacter{1F06}{\@tabacckludge>~\textalpha} % ἆ +\DeclareUnicodeCharacter{1F07}{\@tabacckludge<\~\textalpha} % ἇ +\DeclareUnicodeCharacter{1F08}{\@tabacckludge>\textAlpha} % Ἀ +\DeclareUnicodeCharacter{1F09}{\@tabacckludge<\textAlpha} % Ἁ +\DeclareUnicodeCharacter{1F0A}{\@tabacckludge>`\textAlpha} % Ἂ +\DeclareUnicodeCharacter{1F0B}{\@tabacckludge<`\textAlpha} % Ἃ +\DeclareUnicodeCharacter{1F0C}{\@tabacckludge>'\textAlpha} % Ἄ +\DeclareUnicodeCharacter{1F0D}{\@tabacckludge<'\textAlpha} % Ἅ +\DeclareUnicodeCharacter{1F0E}{\@tabacckludge>~\textAlpha} % Ἆ +\DeclareUnicodeCharacter{1F0F}{\@tabacckludge<\~\textAlpha} % Ἇ + +\DeclareUnicodeCharacter{1F10}{\@tabacckludge>\textepsilon} % ἐ +\DeclareUnicodeCharacter{1F11}{\@tabacckludge<\textepsilon} % ἑ +\DeclareUnicodeCharacter{1F12}{\@tabacckludge>`\textepsilon} % ἒ +\DeclareUnicodeCharacter{1F13}{\@tabacckludge<`\textepsilon} % ἓ +\DeclareUnicodeCharacter{1F14}{\@tabacckludge>'\textepsilon} % ἔ +\DeclareUnicodeCharacter{1F15}{\@tabacckludge<'\textepsilon} % ἕ +\DeclareUnicodeCharacter{1F18}{\@tabacckludge>\textEpsilon} % Ἐ +\DeclareUnicodeCharacter{1F19}{\@tabacckludge<\textEpsilon} % Ἑ +\DeclareUnicodeCharacter{1F1A}{\@tabacckludge>`\textEpsilon} % Ἒ +\DeclareUnicodeCharacter{1F1B}{\@tabacckludge<`\textEpsilon} % Ἓ +\DeclareUnicodeCharacter{1F1C}{\@tabacckludge>'\textEpsilon} % Ἔ +\DeclareUnicodeCharacter{1F1D}{\@tabacckludge<'\textEpsilon} % Ἕ + +\DeclareUnicodeCharacter{1F20}{\@tabacckludge>\texteta} % ἠ +\DeclareUnicodeCharacter{1F21}{\@tabacckludge<\texteta} % ἡ +\DeclareUnicodeCharacter{1F22}{\@tabacckludge>`\texteta} % ἢ +\DeclareUnicodeCharacter{1F23}{\@tabacckludge<`\texteta} % ἣ +\DeclareUnicodeCharacter{1F24}{\@tabacckludge>'\texteta} % ἤ +\DeclareUnicodeCharacter{1F25}{\@tabacckludge<'\texteta} % ἥ +\DeclareUnicodeCharacter{1F26}{\@tabacckludge>~\texteta} % ἦ +\DeclareUnicodeCharacter{1F27}{\@tabacckludge<\~\texteta} % ἧ +\DeclareUnicodeCharacter{1F28}{\@tabacckludge>\textEta} % Ἠ +\DeclareUnicodeCharacter{1F29}{\@tabacckludge<\textEta} % Ἡ +\DeclareUnicodeCharacter{1F2A}{\@tabacckludge>`\textEta} % Ἢ +\DeclareUnicodeCharacter{1F2B}{\@tabacckludge<`\textEta} % Ἣ +\DeclareUnicodeCharacter{1F2C}{\@tabacckludge>'\textEta} % Ἤ +\DeclareUnicodeCharacter{1F2D}{\@tabacckludge<'\textEta} % Ἥ +\DeclareUnicodeCharacter{1F2E}{\@tabacckludge>~\textEta} % Ἦ +\DeclareUnicodeCharacter{1F2F}{\@tabacckludge<\~\textEta} % Ἧ + +\DeclareUnicodeCharacter{1F30}{\@tabacckludge>\textiota} % ἰ +\DeclareUnicodeCharacter{1F31}{\@tabacckludge<\textiota} % ἱ +\DeclareUnicodeCharacter{1F32}{\@tabacckludge>`\textiota} % ἲ +\DeclareUnicodeCharacter{1F33}{\@tabacckludge<`\textiota} % ἳ +\DeclareUnicodeCharacter{1F34}{\@tabacckludge>'\textiota} % ἴ +\DeclareUnicodeCharacter{1F35}{\@tabacckludge<'\textiota} % ἵ +\DeclareUnicodeCharacter{1F36}{\@tabacckludge>~\textiota} % ἶ +\DeclareUnicodeCharacter{1F37}{\@tabacckludge<\~\textiota} % ἷ +\DeclareUnicodeCharacter{1F38}{\@tabacckludge>\textIota} % Ἰ +\DeclareUnicodeCharacter{1F39}{\@tabacckludge<\textIota} % Ἱ +\DeclareUnicodeCharacter{1F3A}{\@tabacckludge>`\textIota} % Ἲ +\DeclareUnicodeCharacter{1F3B}{\@tabacckludge<`\textIota} % Ἳ +\DeclareUnicodeCharacter{1F3C}{\@tabacckludge>'\textIota} % Ἴ +\DeclareUnicodeCharacter{1F3D}{\@tabacckludge<'\textIota} % Ἵ +\DeclareUnicodeCharacter{1F3E}{\@tabacckludge>~\textIota} % Ἶ +\DeclareUnicodeCharacter{1F3F}{\@tabacckludge<\~\textIota} % Ἷ + +\DeclareUnicodeCharacter{1F40}{\@tabacckludge>\textomicron} % ὀ +\DeclareUnicodeCharacter{1F41}{\@tabacckludge<\textomicron} % ὁ +\DeclareUnicodeCharacter{1F42}{\@tabacckludge>`\textomicron} % ὂ +\DeclareUnicodeCharacter{1F43}{\@tabacckludge<`\textomicron} % ὃ +\DeclareUnicodeCharacter{1F44}{\@tabacckludge>'\textomicron} % ὄ +\DeclareUnicodeCharacter{1F45}{\@tabacckludge<'\textomicron} % ὅ +\DeclareUnicodeCharacter{1F48}{\@tabacckludge>\textOmicron} % Ὀ +\DeclareUnicodeCharacter{1F49}{\@tabacckludge<\textOmicron} % Ὁ +\DeclareUnicodeCharacter{1F4A}{\@tabacckludge>`\textOmicron} % Ὂ +\DeclareUnicodeCharacter{1F4B}{\@tabacckludge<`\textOmicron} % Ὃ +\DeclareUnicodeCharacter{1F4C}{\@tabacckludge>'\textOmicron} % Ὄ +\DeclareUnicodeCharacter{1F4D}{\@tabacckludge<'\textOmicron} % Ὅ + +\DeclareUnicodeCharacter{1F50}{\@tabacckludge>\textupsilon} % ὐ +\DeclareUnicodeCharacter{1F51}{\@tabacckludge<\textupsilon} % ὑ +\DeclareUnicodeCharacter{1F52}{\@tabacckludge>`\textupsilon} % ὒ +\DeclareUnicodeCharacter{1F53}{\@tabacckludge<`\textupsilon} % ὓ +\DeclareUnicodeCharacter{1F54}{\@tabacckludge>'\textupsilon} % ὔ +\DeclareUnicodeCharacter{1F55}{\@tabacckludge<'\textupsilon} % ὕ +\DeclareUnicodeCharacter{1F56}{\@tabacckludge>~\textupsilon} % ὖ +\DeclareUnicodeCharacter{1F57}{\@tabacckludge<\~\textupsilon} % ὗ +\DeclareUnicodeCharacter{1F59}{\@tabacckludge<\textUpsilon} % Ὑ +\DeclareUnicodeCharacter{1F5B}{\@tabacckludge<`\textUpsilon} % Ὓ +\DeclareUnicodeCharacter{1F5D}{\@tabacckludge<'\textUpsilon} % Ὕ +\DeclareUnicodeCharacter{1F5F}{\@tabacckludge<\~\textUpsilon} % Ὗ + +\DeclareUnicodeCharacter{1F60}{\@tabacckludge>\textomega} % ὠ +\DeclareUnicodeCharacter{1F61}{\@tabacckludge<\textomega} % ὡ +\DeclareUnicodeCharacter{1F62}{\@tabacckludge>`\textomega} % ὢ +\DeclareUnicodeCharacter{1F63}{\@tabacckludge<`\textomega} % ὣ +\DeclareUnicodeCharacter{1F64}{\@tabacckludge>'\textomega} % ὤ +\DeclareUnicodeCharacter{1F65}{\@tabacckludge<'\textomega} % ὥ +\DeclareUnicodeCharacter{1F66}{\@tabacckludge>~\textomega} % ὦ +\DeclareUnicodeCharacter{1F67}{\@tabacckludge<\~\textomega} % ὧ +\DeclareUnicodeCharacter{1F68}{\@tabacckludge>\textOmega} % Ὠ +\DeclareUnicodeCharacter{1F69}{\@tabacckludge<\textOmega} % Ὡ +\DeclareUnicodeCharacter{1F6A}{\@tabacckludge>`\textOmega} % Ὢ +\DeclareUnicodeCharacter{1F6B}{\@tabacckludge<`\textOmega} % Ὣ +\DeclareUnicodeCharacter{1F6C}{\@tabacckludge>'\textOmega} % Ὤ +\DeclareUnicodeCharacter{1F6D}{\@tabacckludge<'\textOmega} % Ὥ +\DeclareUnicodeCharacter{1F6E}{\@tabacckludge>~\textOmega} % Ὦ +\DeclareUnicodeCharacter{1F6F}{\@tabacckludge<\~\textOmega} % Ὧ + +\DeclareUnicodeCharacter{1F70}{\@tabacckludge`\textalpha} % ὰ +\DeclareUnicodeCharacter{1F71}{\@tabacckludge'\textalpha} % ά +\DeclareUnicodeCharacter{1F72}{\@tabacckludge`\textepsilon} % ὲ +\DeclareUnicodeCharacter{1F73}{\@tabacckludge'\textepsilon} % έ +\DeclareUnicodeCharacter{1F74}{\@tabacckludge`\texteta} % ὴ +\DeclareUnicodeCharacter{1F75}{\@tabacckludge'\texteta} % ή +\DeclareUnicodeCharacter{1F76}{\@tabacckludge`\textiota} % ὶ +\DeclareUnicodeCharacter{1F77}{\@tabacckludge'\textiota} % ί +\DeclareUnicodeCharacter{1F78}{\@tabacckludge`\textomicron} % ὸ +\DeclareUnicodeCharacter{1F79}{\@tabacckludge'\textomicron} % ό +\DeclareUnicodeCharacter{1F7A}{\@tabacckludge`\textupsilon} % ὺ +\DeclareUnicodeCharacter{1F7B}{\@tabacckludge'\textupsilon} % ύ +\DeclareUnicodeCharacter{1F7C}{\@tabacckludge`\textomega} % ὼ +\DeclareUnicodeCharacter{1F7D}{\@tabacckludge'\textomega} % ώ + +\DeclareUnicodeCharacter{1F80}{\@tabacckludge>\textalpha|} % ᾀ +\DeclareUnicodeCharacter{1F81}{\@tabacckludge<\textalpha|} % ᾁ +\DeclareUnicodeCharacter{1F82}{\@tabacckludge>`\textalpha|} % ᾂ +\DeclareUnicodeCharacter{1F83}{\@tabacckludge<`\textalpha|} % ᾃ +\DeclareUnicodeCharacter{1F84}{\@tabacckludge>'\textalpha|} % ᾄ +\DeclareUnicodeCharacter{1F85}{\@tabacckludge<'\textalpha|} % ᾅ +\DeclareUnicodeCharacter{1F86}{\@tabacckludge>~\textalpha|} % ᾆ +\DeclareUnicodeCharacter{1F87}{\@tabacckludge<\~\textalpha|} % ᾇ +\DeclareUnicodeCharacter{1F88}{\@tabacckludge>\textAlpha|} % ᾈ +\DeclareUnicodeCharacter{1F89}{\@tabacckludge<\textAlpha|} % ᾉ +\DeclareUnicodeCharacter{1F8A}{\@tabacckludge>`\textAlpha|} % ᾊ +\DeclareUnicodeCharacter{1F8B}{\@tabacckludge<`\textAlpha|} % ᾋ +\DeclareUnicodeCharacter{1F8C}{\@tabacckludge>'\textAlpha|} % ᾌ +\DeclareUnicodeCharacter{1F8D}{\@tabacckludge<'\textAlpha|} % ᾍ +\DeclareUnicodeCharacter{1F8E}{\@tabacckludge>~\textAlpha|} % ᾎ +\DeclareUnicodeCharacter{1F8F}{\@tabacckludge<\~\textAlpha|} % ᾏ + +\DeclareUnicodeCharacter{1F90}{\@tabacckludge>\texteta|} % ᾐ +\DeclareUnicodeCharacter{1F91}{\@tabacckludge<\texteta|} % ᾑ +\DeclareUnicodeCharacter{1F92}{\@tabacckludge>`\texteta|} % ᾒ +\DeclareUnicodeCharacter{1F93}{\@tabacckludge<`\texteta|} % ᾓ +\DeclareUnicodeCharacter{1F94}{\@tabacckludge>'\texteta|} % ᾔ +\DeclareUnicodeCharacter{1F95}{\@tabacckludge<'\texteta|} % ᾕ +\DeclareUnicodeCharacter{1F96}{\@tabacckludge>~\texteta|} % ᾖ +\DeclareUnicodeCharacter{1F97}{\@tabacckludge<\~\texteta|} % ᾗ +\DeclareUnicodeCharacter{1F98}{\@tabacckludge>\textEta|} % ᾘ +\DeclareUnicodeCharacter{1F99}{\@tabacckludge<\textEta|} % ᾙ +\DeclareUnicodeCharacter{1F9A}{\@tabacckludge>`\textEta|} % ᾚ +\DeclareUnicodeCharacter{1F9B}{\@tabacckludge<`\textEta|} % ᾛ +\DeclareUnicodeCharacter{1F9C}{\@tabacckludge>'\textEta|} % ᾜ +\DeclareUnicodeCharacter{1F9D}{\@tabacckludge<'\textEta|} % ᾝ +\DeclareUnicodeCharacter{1F9E}{\@tabacckludge>~\textEta|} % ᾞ +\DeclareUnicodeCharacter{1F9F}{\@tabacckludge<\~\textEta|} % ᾟ + +\DeclareUnicodeCharacter{1FA0}{\@tabacckludge>\textomega|} % ᾠ +\DeclareUnicodeCharacter{1FA1}{\@tabacckludge<\textomega|} % ᾡ +\DeclareUnicodeCharacter{1FA2}{\@tabacckludge>`\textomega|} % ᾢ +\DeclareUnicodeCharacter{1FA3}{\@tabacckludge<`\textomega|} % ᾣ +\DeclareUnicodeCharacter{1FA4}{\@tabacckludge>'\textomega|} % ᾤ +\DeclareUnicodeCharacter{1FA5}{\@tabacckludge<'\textomega|} % ᾥ +\DeclareUnicodeCharacter{1FA6}{\@tabacckludge>~\textomega|} % ᾦ +\DeclareUnicodeCharacter{1FA7}{\@tabacckludge<\~\textomega|} % ᾧ +\DeclareUnicodeCharacter{1FA8}{\@tabacckludge>\textOmega|} % ᾨ +\DeclareUnicodeCharacter{1FA9}{\@tabacckludge<\textOmega|} % ᾩ +\DeclareUnicodeCharacter{1FAA}{\@tabacckludge>`\textOmega|} % ᾪ +\DeclareUnicodeCharacter{1FAB}{\@tabacckludge<`\textOmega|} % ᾫ +\DeclareUnicodeCharacter{1FAC}{\@tabacckludge>'\textOmega|} % ᾬ +\DeclareUnicodeCharacter{1FAD}{\@tabacckludge<'\textOmega|} % ᾭ +\DeclareUnicodeCharacter{1FAE}{\@tabacckludge>~\textOmega|} % ᾮ +\DeclareUnicodeCharacter{1FAF}{\@tabacckludge<\~\textOmega|} % ᾯ + +\DeclareUnicodeCharacter{1FB0}{\u\textalpha} % ᾰ +\DeclareUnicodeCharacter{1FB1}{\@tabacckludge=\textalpha} % ᾱ +\DeclareUnicodeCharacter{1FB2}{\@tabacckludge`\textalpha|} % ᾲ +\DeclareUnicodeCharacter{1FB3}{\textalpha|} % ᾳ +\DeclareUnicodeCharacter{1FB4}{\@tabacckludge'\textalpha|} % ᾴ +\DeclareUnicodeCharacter{1FB6}{\~\textalpha} % ᾶ +\DeclareUnicodeCharacter{1FB7}{\~\textalpha|} % ᾷ +\DeclareUnicodeCharacter{1FB8}{\u\textAlpha} % Ᾰ +\DeclareUnicodeCharacter{1FB9}{\@tabacckludge=\textAlpha} % Ᾱ +\DeclareUnicodeCharacter{1FBA}{\@tabacckludge`\textAlpha} % Ὰ +\DeclareUnicodeCharacter{1FBB}{\@tabacckludge'\textAlpha} % Ά +\DeclareUnicodeCharacter{1FBC}{\textAlpha|} % ᾼ +\DeclareUnicodeCharacter{1FBD}{\@tabacckludge>\textcompwordmark} % ᾽ +\DeclareUnicodeCharacter{1FBE}{\textcompwordmark\Prosgegrammeni} % ι +\DeclareUnicodeCharacter{1FBF}{\@tabacckludge>\textcompwordmark} % ᾿ + +\DeclareUnicodeCharacter{1FC0}{\~\textcompwordmark} % ῀ +\DeclareUnicodeCharacter{1FC1}{\"\~\textcompwordmark} % ῁ +\DeclareUnicodeCharacter{1FC2}{\@tabacckludge`\texteta|} % ῂ +\DeclareUnicodeCharacter{1FC3}{\texteta|} % ῃ +\DeclareUnicodeCharacter{1FC4}{\@tabacckludge'\texteta|} % ῄ +\DeclareUnicodeCharacter{1FC6}{\~\texteta} % ῆ +\DeclareUnicodeCharacter{1FC7}{\~\texteta|} % ῇ +\DeclareUnicodeCharacter{1FC8}{\@tabacckludge`\textEpsilon} % Ὲ +\DeclareUnicodeCharacter{1FC9}{\@tabacckludge'\textEpsilon} % Έ +\DeclareUnicodeCharacter{1FCA}{\@tabacckludge`\textEta} % Ὴ +\DeclareUnicodeCharacter{1FCB}{\@tabacckludge'\textEta} % Ή +\DeclareUnicodeCharacter{1FCC}{\textEta|} % ῌ +\DeclareUnicodeCharacter{1FCD}{\@tabacckludge>`\textcompwordmark} % ῍ +\DeclareUnicodeCharacter{1FCE}{\@tabacckludge>'\textcompwordmark} % ῎ +\DeclareUnicodeCharacter{1FCF}{\@tabacckludge>~\textcompwordmark} % ῏ + +\DeclareUnicodeCharacter{1FD0}{\u\textiota} % ῐ +\DeclareUnicodeCharacter{1FD1}{\@tabacckludge=\textiota} % ῑ +\DeclareUnicodeCharacter{1FD2}{\"`\textiota} % ῒ +\DeclareUnicodeCharacter{1FD3}{\"'\textiota} % ΐ +\DeclareUnicodeCharacter{1FD6}{\~\textiota} % ῖ +\DeclareUnicodeCharacter{1FD7}{\"\~\textiota} % ῗ +\DeclareUnicodeCharacter{1FD8}{\u\textIota} % Ῐ +\DeclareUnicodeCharacter{1FD9}{\@tabacckludge=\textIota} % Ῑ +\DeclareUnicodeCharacter{1FDA}{\@tabacckludge`\textIota} % Ὶ +\DeclareUnicodeCharacter{1FDB}{\@tabacckludge'\textIota} % Ί +\DeclareUnicodeCharacter{1FDD}{\@tabacckludge<`\textcompwordmark} % ῝ +\DeclareUnicodeCharacter{1FDE}{\@tabacckludge<'\textcompwordmark} % ῞ +\DeclareUnicodeCharacter{1FDF}{\@tabacckludge<\~\textcompwordmark} % ῟ + +\DeclareUnicodeCharacter{1FE0}{\u\textupsilon} % ῠ +\DeclareUnicodeCharacter{1FE1}{\@tabacckludge=\textupsilon} % ῡ +\DeclareUnicodeCharacter{1FE2}{\"`\textupsilon} % ῢ +\DeclareUnicodeCharacter{1FE3}{\"'\textupsilon} % ΰ +\DeclareUnicodeCharacter{1FE4}{\@tabacckludge>r} % ῤ +\DeclareUnicodeCharacter{1FE5}{\@tabacckludge<r} % ῥ +\DeclareUnicodeCharacter{1FE6}{\~\textupsilon} % ῦ +\DeclareUnicodeCharacter{1FE7}{\"\~\textupsilon} % ῧ +\DeclareUnicodeCharacter{1FE8}{\u\textUpsilon} % Ῠ +\DeclareUnicodeCharacter{1FE9}{\@tabacckludge=\textUpsilon} % Ῡ +\DeclareUnicodeCharacter{1FEA}{\@tabacckludge`\textUpsilon} % Ὺ +\DeclareUnicodeCharacter{1FEB}{\@tabacckludge'\textUpsilon} % Ύ +\DeclareUnicodeCharacter{1FEC}{\@tabacckludge<\textRho} % Ῥ +\DeclareUnicodeCharacter{1FED}{\"`\textcompwordmark} % ῭ +\DeclareUnicodeCharacter{1FEE}{\"'\textcompwordmark} % ΅ +\DeclareUnicodeCharacter{1FEF}{\@tabacckludge`\textcompwordmark} % ` + +\DeclareUnicodeCharacter{1FF2}{\@tabacckludge`\textomega|} % ῲ +\DeclareUnicodeCharacter{1FF3}{\textomega|} % ῳ +\DeclareUnicodeCharacter{1FF4}{\@tabacckludge'\textomega|} % ῴ +\DeclareUnicodeCharacter{1FF6}{\~\textomega} % ῶ +\DeclareUnicodeCharacter{1FF7}{\~\textomega|} % ῷ +\DeclareUnicodeCharacter{1FF8}{\@tabacckludge`\textOmicron} % Ὸ +\DeclareUnicodeCharacter{1FF9}{\@tabacckludge'\textOmicron} % Ό +\DeclareUnicodeCharacter{1FFA}{\@tabacckludge`\textOmega} % Ὼ +\DeclareUnicodeCharacter{1FFB}{\@tabacckludge'\textOmega} % Ώ +\DeclareUnicodeCharacter{1FFC}{\textOmega|} % ῼ +\DeclareUnicodeCharacter{1FFD}{\@tabacckludge'\textcompwordmark} % ´ +\DeclareUnicodeCharacter{1FFE}{\@tabacckludge<\textcompwordmark} % ῾ + +% General Punctuation +% ~~~~~~~~~~~~~~~~~~~ +% :: + +\DeclareUnicodeCharacter{2013}{\textendash} % – +\DeclareUnicodeCharacter{2014}{\textemdash} % — +\DeclareUnicodeCharacter{2018}{\textquoteleft} % ‘ +\DeclareUnicodeCharacter{2019}{\textquoteright} % ’ +\DeclareUnicodeCharacter{2030}{\textperthousand} % ‰ +\DeclareUnicodeCharacter{20AC}{\texteuro} % € + +% Ancient Greek Numbers +% ~~~~~~~~~~~~~~~~~~~~~ +% TODO: map other chars to corresponding Greek letters. +% See also the athnum_ package:: + +\DeclareUnicodeCharacter{10144}{\PiDelta} % GREEK ACROPHONIC ATTIC FIFTY +\DeclareUnicodeCharacter{10145}{\PiEta} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\DeclareUnicodeCharacter{10146}{\PiChi} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\DeclareUnicodeCharacter{10147}{\PiMu} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND + +% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +% .. _babel patch: http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf +% .. _athnum: http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=grnumalt diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu.html b/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu.html new file mode 100644 index 00000000000..b574988f15c --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu.html @@ -0,0 +1,1149 @@ +<?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"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.10: http://docutils.sourceforge.net/" /> +<title>lgrenc.dfu: Greek Unicode support using LGR fonts</title> +<meta name="copyright" content="© 2010 Günter Milde" /> +<style type="text/css"> + +/* +:Author: David Goodger (goodger@python.org) +:Id: $Id: html4css1.css 7056 2011-06-17 10:50:48Z 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 } + +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; +} + +/* Uncomment (and remove this text!) to get bold-faced definition list terms +dl.docutils dt { + font-weight: bold } +*/ + +div.abstract { + margin: 2em 5em } + +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 { + 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 } +*/ + +div.dedication { + margin: 2em 5em ; + text-align: center ; + font-style: italic } + +div.dedication p.topic-title { + font-weight: bold ; + font-style: normal } + +div.figure { + margin-left: 2em ; + margin-right: 2em } + +div.footer, div.header { + clear: both; + font-size: smaller } + +div.line-block { + display: block ; + margin-top: 1em ; + margin-bottom: 1em } + +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 } + +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 } + +/* 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 { + margin-left: 2em ; + margin-right: 2em } + +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 } + +table.docutils th.field-name, table.docinfo th.docinfo-name { + font-weight: bold ; + text-align: left ; + white-space: nowrap ; + padding-left: 0 } + +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 } + +</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 */ +/* ============= */ + +body { + padding: 0 5%; + margin: 8px 0; + 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; + margin: auto; +} + +/* separate items except for compact lists */ +dl > dd { + margin-bottom: 1em; +} +.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; */ +} +dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +/* background: lightgreen; */ +} + +/* space around paragraphs */ +dl > dd p:first-child, td > p { + margin: 0; +} + +/* Sidebar */ +/* ------- */ + +div.sidebar { + margin-right: -5%; +} + +/* Special definition lists */ +/* ======================== */ + +/* 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 { + 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 */ +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 */ + +dl.docinfo > dd { + margin-left: 8em; +/* margin-bottom: 0.5em; */ +} + + +/* option list */ + +dl.option-list { + margin-left: 1em; + padding-left: 0; +} + +dl.option-list > dd { + margin-left: 8em; + /* margin-bottom: 0.5em; */ +} + +/* start description on a new line after long options */ +dl.option-list > dd p { + width: 100%; + display: inline-block; +} + +/* footnotes */ + +a.footnote-reference, a.fn-backref { + text-decoration: inherit; /* do not underline footnote links */ +} + +dl.footnote { + /* line on the left */ + padding-left: 1ex; + border-left: solid; + border-left-width: thin; + /* border-color: black; */ +} + +/* paragraph on same line as backrefs */ +dd > em { +/* background: green; */ + float: left; + margin-right: 1ex +} + + +/* +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 { + counter-reset: item; + list-style-type: none ! important; +} + +/* Set the negative indent of the list label as feature of the list item */ +ol > li { + text-indent: -40px; /* Mozillas default indent */ +} +/* reset for child elements */ +ol > li > * { + text-indent: 0px; + text-indent: 0; + margin-top: 0; + /* background: lightgreen; */ +} + +/* 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; + 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 { + margin-top: 0.5em ; + margin-bottom: 0.5em; +/* 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; +} + +/* "booktabs" style (no vertical lines) */ +table.booktabs { + border: 0; + border-top: 2px solid; + border-bottom: 2px solid; +} + +table.booktabs * { + border: 0; +} +table.booktabs th { + border-bottom: thin solid; +} + +table > caption { + text-align: left; +/* padding: 2em 0 1em 0; */ +} + +/* numbered tables*/ +table.numbered > caption:before { + counter-increment: table; /* defined/re-set in body */ + content: "Table " counter(table) ": "; + font-weight: bold; +} + + +/* literal text + ------------ +*/ +/* whitespace and wrapping in inline literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +tt.literal { + white-space: pre-wrap; +} + +/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ +/* pre.literal-block, pre.doctest-block { */ +/* margin-top: 0em ; */ +/* } */ + +/* Table of Contents */ + +/* don't indent like a topic */ +div.topic.contents { + margin: 0; +} +/* div.topic.contents ul { */ +/* list-style: none; */ +/* } */ + +div.topic.contents a { + text-decoration: none; /* no underline for links */ +} + +/* section numbers */ + +span.sectnum { + padding-right: 1ex; +} + +/* admonitions */ + +/* 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 } + +</style> +</head> +<body> +<div class="document" id="lgrenc-dfu-greek-unicode-support-using-lgr-fonts"> +<h1 class="title">lgrenc.dfu: Greek Unicode support using LGR fonts</h1> + +<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 +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> +</dd> +</dl> +<p>Based on a <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> by Werner Lemberg, with input from the ucs +package (<tt class="literal">ucsencs.def</tt>) by Dominique Unruh and <tt class="literal">CB.enc</tt> by +Apostolos Syropoulos.</p> +<pre class="literal-block">\ProvidesFile{lgrenc.dfu}[2010/06/15 0.1 UTF-8 support for Greek] +</pre> +<div class="section" id="usage"> +<h1>Usage</h1> +<p>Requires extended font encoding definitions from <tt class="literal">lgrxenc.def</tt>:</p> +<blockquote> +<p><tt class="literal"><span class="pre">\usepackage[LGRx,T1]{fontenc}</span></tt> % define LGR and T1 encodings +<tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> % standard UTF-8 input encoding</p> +</blockquote> +<p>Note: as the LGRx option define the <tt class="literal">LGR</tt> (not <tt class="literal">LGRx</tt>) font +encoding, it cannot be given as last option! Use, e.g., +<tt class="literal"><span class="pre">\usepackage[LGRx,T1,LGR]{fontenc}</span></tt> to make LGR the default.</p> +<p>All text containing Greek Unicode characters must be marked as +requiring the LGR font encoding (either directly or by setting the +language to <tt class="literal">greek</tt> or <tt class="literal">polutonikogreek</tt>).</p> +</div> +<div class="section" id="character-declarations"> +<h1>Character Declarations</h1> +<p>Some characters exist in other font encodings too. Care has been taken +to ensure the definitions match with other <tt class="literal">*.dfu</tt> and <tt class="literal">*enc.def</tt> +files.</p> +<div class="section" id="latin-1-supplement-t1"> +<h2>Latin-1 Supplement (T1)</h2> +<pre class="literal-block">\DeclareUnicodeCharacter{00A8}{\textasciidieresis} % ¨ +\DeclareUnicodeCharacter{00AB}{\guillemotleft} % « +\DeclareUnicodeCharacter{00AF}{\textasciimacron} % ¯ +\DeclareUnicodeCharacter{00B4}{\textasciiacute} % ´ +\DeclareUnicodeCharacter{00B7}{\textperiodcentered} % · +\DeclareUnicodeCharacter{00BB}{\guillemotright} % » +</pre> +</div> +<div class="section" id="ipa-extensions-t3"> +<h2>IPA Extensions (T3)</h2> +<pre class="literal-block">\DeclareUnicodeCharacter{0259}{\textschwa} % ə +</pre> +</div> +<div class="section" id="spacing-modifier-letters"> +<h2>Spacing Modifier Letters</h2> +<pre class="literal-block">\DeclareUnicodeCharacter{02D8}{\textasciibreve} % ˘ +</pre> +</div> +<div class="section" id="general-punctuation"> +<h2>General Punctuation</h2> +<pre class="literal-block">\DeclareUnicodeCharacter{200C}{\textcompwordmark} % ZWNJ +\DeclareUnicodeCharacter{2013}{\textendash} % – +\DeclareUnicodeCharacter{2014}{\textemdash} % — +\DeclareUnicodeCharacter{2018}{\textquoteleft} % ‘ +\DeclareUnicodeCharacter{2019}{\textquoteright} % ’ +\DeclareUnicodeCharacter{201A}{\quotesinglbase} % ‚ +\DeclareUnicodeCharacter{2030}{\textperthousand} % ‰ +\DeclareUnicodeCharacter{2039}{\guilsinglleft} % ‹ +\DeclareUnicodeCharacter{203A}{\guilsinglright} % › +</pre> +</div> +<div class="section" id="currency-symbols"> +<h2>Currency Symbols</h2> +<pre class="literal-block">\DeclareUnicodeCharacter{20AC}{\texteuro} % € +</pre> +</div> +<div class="section" id="letterlike-symbols"> +<h2>Letterlike Symbols</h2> +<pre class="literal-block">%% TODO: define this (as it looks like) or not (as it is not the same)? +% \DeclareUnicodeCharacter{2126}{\textohm} % Ω (Ohm sign ≠ Omega) +</pre> +</div> +<div class="section" id="greek-and-coptic"> +<h2>Greek and Coptic</h2> +<pre class="literal-block">% NR Unicode Name % UCS-name, PU-(hyperre)-fname +% 0370 GREEK CAPITAL LETTER HETA % Ͱ +% 0371 GREEK SMALL LETTER HETA % ͱ +% 0372 GREEK CAPITAL LETTER ARCHAIC SAMPI % Ͳ +% 0373 GREEK SMALL LETTER ARCHAIC SAMPI % Ͳ +\DeclareUnicodeCharacter{0374}{\anwtonos} % ʹ \textdexiakeraia, \textnumeralsigngreek +\DeclareUnicodeCharacter{0375}{\katwtonos} % ͵ \textaristerikeraia, \textnumeralsignlowergreek +% 0376 GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA % Ͷ +% 0377 GREEK SMALL LETTER PAMPHYLIAN DIGAMMA % ͷ + +\DeclareUnicodeCharacter{037A}{\textcompwordmark\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 % +\DeclareUnicodeCharacter{037E}{\erotimatiko} % ; \textquestion + +\DeclareUnicodeCharacter{0384}{\@tabacckludge'\textcompwordmark} % ΄ +\DeclareUnicodeCharacter{0385}{\"'\textcompwordmark} % ΅ \textdialytikatonos{\empty} +\DeclareUnicodeCharacter{0386}{\@tabacckludge'\textAlpha} % Ά +\DeclareUnicodeCharacter{0387}{\anoteleia} % · \textanoteleia +\DeclareUnicodeCharacter{0388}{\@tabacckludge'\textEpsilon} % Έ +\DeclareUnicodeCharacter{0389}{\@tabacckludge'\textEta} % Ή +\DeclareUnicodeCharacter{038A}{\@tabacckludge'\textIota} % Ί +\DeclareUnicodeCharacter{038C}{\@tabacckludge'\textOmicron} % Ό +\DeclareUnicodeCharacter{038E}{\@tabacckludge'\textUpsilon} % Ύ +\DeclareUnicodeCharacter{038F}{\@tabacckludge'\textOmega} % Ώ +\DeclareUnicodeCharacter{0390}{\"'\textiota} % ΐ \textdialytikatonos\textiota + +\DeclareUnicodeCharacter{0391}{\textAlpha} % Α +\DeclareUnicodeCharacter{0392}{\textBeta} % Β +\DeclareUnicodeCharacter{0393}{\textGamma} % Γ +\DeclareUnicodeCharacter{0394}{\textDelta} % Δ +\DeclareUnicodeCharacter{0395}{\textEpsilon} % Ε +\DeclareUnicodeCharacter{0396}{\textZeta} % Ζ +\DeclareUnicodeCharacter{0397}{\textEta} % Η +\DeclareUnicodeCharacter{0398}{\textTheta} % Θ +\DeclareUnicodeCharacter{0399}{\textIota} % Ι +\DeclareUnicodeCharacter{039A}{\textKappa} % Κ +\DeclareUnicodeCharacter{039B}{\textLambda} % Λ +\DeclareUnicodeCharacter{039C}{\textMu} % Μ +\DeclareUnicodeCharacter{039D}{\textNu} % Ν +\DeclareUnicodeCharacter{039E}{\textXi} % Ξ +\DeclareUnicodeCharacter{039F}{\textOmicron} % Ο +\DeclareUnicodeCharacter{03A0}{\textPi} % Π +\DeclareUnicodeCharacter{03A1}{\textRho} % Ρ +\DeclareUnicodeCharacter{03A3}{\textSigma} % Σ +\DeclareUnicodeCharacter{03A4}{\textTau} % Τ +\DeclareUnicodeCharacter{03A5}{\textUpsilon} % Υ +\DeclareUnicodeCharacter{03A6}{\textPhi} % Φ +\DeclareUnicodeCharacter{03A7}{\textChi} % Χ +\DeclareUnicodeCharacter{03A8}{\textPsi} % Ψ +\DeclareUnicodeCharacter{03A9}{\textOmega} % Ω + +\DeclareUnicodeCharacter{03AA}{\"\textIota} % Ϊ +\DeclareUnicodeCharacter{03AB}{\"\textUpsilon} % Ϋ +\DeclareUnicodeCharacter{03AC}{\@tabacckludge'\textalpha} % ά +\DeclareUnicodeCharacter{03AD}{\@tabacckludge'\textepsilon} % έ +\DeclareUnicodeCharacter{03AE}{\@tabacckludge'\texteta} % ή +\DeclareUnicodeCharacter{03AF}{\@tabacckludge'\textiota} % ί +\DeclareUnicodeCharacter{03B0}{\"'\textupsilon} % ΰ \textdialytikatonos\textupsilon, \"\textupsilonacute + +\DeclareUnicodeCharacter{03B1}{\textalpha} % α +\DeclareUnicodeCharacter{03B2}{\textbeta} % β +\DeclareUnicodeCharacter{03B3}{\textgamma} % γ +\DeclareUnicodeCharacter{03B4}{\textdelta} % δ +\DeclareUnicodeCharacter{03B5}{\textepsilon} % ε +\DeclareUnicodeCharacter{03B6}{\textzeta} % ζ +\DeclareUnicodeCharacter{03B7}{\texteta} % η +\DeclareUnicodeCharacter{03B8}{\texttheta} % θ +\DeclareUnicodeCharacter{03B9}{\textiota} % ι +\DeclareUnicodeCharacter{03BA}{\textkappa} % κ +\DeclareUnicodeCharacter{03BB}{\textlambda} % λ +\DeclareUnicodeCharacter{03BC}{\textmu} % μ \textmu, \textmugreek +\DeclareUnicodeCharacter{03BD}{\textnu} % ν +\DeclareUnicodeCharacter{03BE}{\textxi} % ξ +\DeclareUnicodeCharacter{03BF}{\textomicron} % ο +\DeclareUnicodeCharacter{03C0}{\textpi} % π +\DeclareUnicodeCharacter{03C1}{\textrho} % ρ +\DeclareUnicodeCharacter{03C2}{\textvarsigma} % ς +\DeclareUnicodeCharacter{03C3}{\textsigma} % σ +\DeclareUnicodeCharacter{03C4}{\texttau} % τ +\DeclareUnicodeCharacter{03C5}{\textupsilon} % υ +\DeclareUnicodeCharacter{03C6}{\textphi} % φ +\DeclareUnicodeCharacter{03C7}{\textchi} % χ +\DeclareUnicodeCharacter{03C8}{\textpsi} % ψ +\DeclareUnicodeCharacter{03C9}{\textomega} % ω + +\DeclareUnicodeCharacter{03CA}{\"\textiota} % ϊ +\DeclareUnicodeCharacter{03CB}{\"\textupsilon} % ϋ +\DeclareUnicodeCharacter{03CC}{\@tabacckludge'\textomicron} % ό +\DeclareUnicodeCharacter{03CD}{\@tabacckludge'\textupsilon} % ύ +\DeclareUnicodeCharacter{03CE}{\@tabacckludge'\textomega} % ώ + +\DeclareUnicodeCharacter{03D8}{\Qoppa} % Ϙ +\DeclareUnicodeCharacter{03D9}{\qoppa} % ϙ +\DeclareUnicodeCharacter{03DA}{\Stigma} % Ϛ \textStigmagreek +\DeclareUnicodeCharacter{03DB}{\stigma} % ϛ \textstigma \textstigmagreek +\DeclareUnicodeCharacter{03DC}{\Digamma} % Ϝ \textDigamma \textDigammagreek +\DeclareUnicodeCharacter{03DD}{\ddigamma} % ϝ \textdigamma \textdigammagreek +%03DE GREEK LETTER KOPPA % Ϟ \textKoppagreek +\DeclareUnicodeCharacter{03DF}{\koppa} % ϟ \textqoppa [sic!] \textkoppagreek +\DeclareUnicodeCharacter{03E0}{\Sampi} % Ϡ \textSampigreek +\DeclareUnicodeCharacter{03E1}{\sampi} % ϡ \textsanpi \textsampigreek +</pre> +</div> +<div class="section" id="greek-extended"> +<h2>Greek Extended</h2> +<pre class="literal-block">\DeclareUnicodeCharacter{1F00}{\@tabacckludge>\textalpha} % ἀ +\DeclareUnicodeCharacter{1F01}{\@tabacckludge<\textalpha} % ἁ +\DeclareUnicodeCharacter{1F02}{\@tabacckludge>`\textalpha} % ἂ +\DeclareUnicodeCharacter{1F03}{\@tabacckludge<`\textalpha} % ἃ +\DeclareUnicodeCharacter{1F04}{\@tabacckludge>'\textalpha} % ἄ +\DeclareUnicodeCharacter{1F05}{\@tabacckludge<'\textalpha} % ἅ +\DeclareUnicodeCharacter{1F06}{\@tabacckludge>~\textalpha} % ἆ +\DeclareUnicodeCharacter{1F07}{\@tabacckludge<\~\textalpha} % ἇ +\DeclareUnicodeCharacter{1F08}{\@tabacckludge>\textAlpha} % Ἀ +\DeclareUnicodeCharacter{1F09}{\@tabacckludge<\textAlpha} % Ἁ +\DeclareUnicodeCharacter{1F0A}{\@tabacckludge>`\textAlpha} % Ἂ +\DeclareUnicodeCharacter{1F0B}{\@tabacckludge<`\textAlpha} % Ἃ +\DeclareUnicodeCharacter{1F0C}{\@tabacckludge>'\textAlpha} % Ἄ +\DeclareUnicodeCharacter{1F0D}{\@tabacckludge<'\textAlpha} % Ἅ +\DeclareUnicodeCharacter{1F0E}{\@tabacckludge>~\textAlpha} % Ἆ +\DeclareUnicodeCharacter{1F0F}{\@tabacckludge<\~\textAlpha} % Ἇ + +\DeclareUnicodeCharacter{1F10}{\@tabacckludge>\textepsilon} % ἐ +\DeclareUnicodeCharacter{1F11}{\@tabacckludge<\textepsilon} % ἑ +\DeclareUnicodeCharacter{1F12}{\@tabacckludge>`\textepsilon} % ἒ +\DeclareUnicodeCharacter{1F13}{\@tabacckludge<`\textepsilon} % ἓ +\DeclareUnicodeCharacter{1F14}{\@tabacckludge>'\textepsilon} % ἔ +\DeclareUnicodeCharacter{1F15}{\@tabacckludge<'\textepsilon} % ἕ +\DeclareUnicodeCharacter{1F18}{\@tabacckludge>\textEpsilon} % Ἐ +\DeclareUnicodeCharacter{1F19}{\@tabacckludge<\textEpsilon} % Ἑ +\DeclareUnicodeCharacter{1F1A}{\@tabacckludge>`\textEpsilon} % Ἒ +\DeclareUnicodeCharacter{1F1B}{\@tabacckludge<`\textEpsilon} % Ἓ +\DeclareUnicodeCharacter{1F1C}{\@tabacckludge>'\textEpsilon} % Ἔ +\DeclareUnicodeCharacter{1F1D}{\@tabacckludge<'\textEpsilon} % Ἕ + +\DeclareUnicodeCharacter{1F20}{\@tabacckludge>\texteta} % ἠ +\DeclareUnicodeCharacter{1F21}{\@tabacckludge<\texteta} % ἡ +\DeclareUnicodeCharacter{1F22}{\@tabacckludge>`\texteta} % ἢ +\DeclareUnicodeCharacter{1F23}{\@tabacckludge<`\texteta} % ἣ +\DeclareUnicodeCharacter{1F24}{\@tabacckludge>'\texteta} % ἤ +\DeclareUnicodeCharacter{1F25}{\@tabacckludge<'\texteta} % ἥ +\DeclareUnicodeCharacter{1F26}{\@tabacckludge>~\texteta} % ἦ +\DeclareUnicodeCharacter{1F27}{\@tabacckludge<\~\texteta} % ἧ +\DeclareUnicodeCharacter{1F28}{\@tabacckludge>\textEta} % Ἠ +\DeclareUnicodeCharacter{1F29}{\@tabacckludge<\textEta} % Ἡ +\DeclareUnicodeCharacter{1F2A}{\@tabacckludge>`\textEta} % Ἢ +\DeclareUnicodeCharacter{1F2B}{\@tabacckludge<`\textEta} % Ἣ +\DeclareUnicodeCharacter{1F2C}{\@tabacckludge>'\textEta} % Ἤ +\DeclareUnicodeCharacter{1F2D}{\@tabacckludge<'\textEta} % Ἥ +\DeclareUnicodeCharacter{1F2E}{\@tabacckludge>~\textEta} % Ἦ +\DeclareUnicodeCharacter{1F2F}{\@tabacckludge<\~\textEta} % Ἧ + +\DeclareUnicodeCharacter{1F30}{\@tabacckludge>\textiota} % ἰ +\DeclareUnicodeCharacter{1F31}{\@tabacckludge<\textiota} % ἱ +\DeclareUnicodeCharacter{1F32}{\@tabacckludge>`\textiota} % ἲ +\DeclareUnicodeCharacter{1F33}{\@tabacckludge<`\textiota} % ἳ +\DeclareUnicodeCharacter{1F34}{\@tabacckludge>'\textiota} % ἴ +\DeclareUnicodeCharacter{1F35}{\@tabacckludge<'\textiota} % ἵ +\DeclareUnicodeCharacter{1F36}{\@tabacckludge>~\textiota} % ἶ +\DeclareUnicodeCharacter{1F37}{\@tabacckludge<\~\textiota} % ἷ +\DeclareUnicodeCharacter{1F38}{\@tabacckludge>\textIota} % Ἰ +\DeclareUnicodeCharacter{1F39}{\@tabacckludge<\textIota} % Ἱ +\DeclareUnicodeCharacter{1F3A}{\@tabacckludge>`\textIota} % Ἲ +\DeclareUnicodeCharacter{1F3B}{\@tabacckludge<`\textIota} % Ἳ +\DeclareUnicodeCharacter{1F3C}{\@tabacckludge>'\textIota} % Ἴ +\DeclareUnicodeCharacter{1F3D}{\@tabacckludge<'\textIota} % Ἵ +\DeclareUnicodeCharacter{1F3E}{\@tabacckludge>~\textIota} % Ἶ +\DeclareUnicodeCharacter{1F3F}{\@tabacckludge<\~\textIota} % Ἷ + +\DeclareUnicodeCharacter{1F40}{\@tabacckludge>\textomicron} % ὀ +\DeclareUnicodeCharacter{1F41}{\@tabacckludge<\textomicron} % ὁ +\DeclareUnicodeCharacter{1F42}{\@tabacckludge>`\textomicron} % ὂ +\DeclareUnicodeCharacter{1F43}{\@tabacckludge<`\textomicron} % ὃ +\DeclareUnicodeCharacter{1F44}{\@tabacckludge>'\textomicron} % ὄ +\DeclareUnicodeCharacter{1F45}{\@tabacckludge<'\textomicron} % ὅ +\DeclareUnicodeCharacter{1F48}{\@tabacckludge>\textOmicron} % Ὀ +\DeclareUnicodeCharacter{1F49}{\@tabacckludge<\textOmicron} % Ὁ +\DeclareUnicodeCharacter{1F4A}{\@tabacckludge>`\textOmicron} % Ὂ +\DeclareUnicodeCharacter{1F4B}{\@tabacckludge<`\textOmicron} % Ὃ +\DeclareUnicodeCharacter{1F4C}{\@tabacckludge>'\textOmicron} % Ὄ +\DeclareUnicodeCharacter{1F4D}{\@tabacckludge<'\textOmicron} % Ὅ + +\DeclareUnicodeCharacter{1F50}{\@tabacckludge>\textupsilon} % ὐ +\DeclareUnicodeCharacter{1F51}{\@tabacckludge<\textupsilon} % ὑ +\DeclareUnicodeCharacter{1F52}{\@tabacckludge>`\textupsilon} % ὒ +\DeclareUnicodeCharacter{1F53}{\@tabacckludge<`\textupsilon} % ὓ +\DeclareUnicodeCharacter{1F54}{\@tabacckludge>'\textupsilon} % ὔ +\DeclareUnicodeCharacter{1F55}{\@tabacckludge<'\textupsilon} % ὕ +\DeclareUnicodeCharacter{1F56}{\@tabacckludge>~\textupsilon} % ὖ +\DeclareUnicodeCharacter{1F57}{\@tabacckludge<\~\textupsilon} % ὗ +\DeclareUnicodeCharacter{1F59}{\@tabacckludge<\textUpsilon} % Ὑ +\DeclareUnicodeCharacter{1F5B}{\@tabacckludge<`\textUpsilon} % Ὓ +\DeclareUnicodeCharacter{1F5D}{\@tabacckludge<'\textUpsilon} % Ὕ +\DeclareUnicodeCharacter{1F5F}{\@tabacckludge<\~\textUpsilon} % Ὗ + +\DeclareUnicodeCharacter{1F60}{\@tabacckludge>\textomega} % ὠ +\DeclareUnicodeCharacter{1F61}{\@tabacckludge<\textomega} % ὡ +\DeclareUnicodeCharacter{1F62}{\@tabacckludge>`\textomega} % ὢ +\DeclareUnicodeCharacter{1F63}{\@tabacckludge<`\textomega} % ὣ +\DeclareUnicodeCharacter{1F64}{\@tabacckludge>'\textomega} % ὤ +\DeclareUnicodeCharacter{1F65}{\@tabacckludge<'\textomega} % ὥ +\DeclareUnicodeCharacter{1F66}{\@tabacckludge>~\textomega} % ὦ +\DeclareUnicodeCharacter{1F67}{\@tabacckludge<\~\textomega} % ὧ +\DeclareUnicodeCharacter{1F68}{\@tabacckludge>\textOmega} % Ὠ +\DeclareUnicodeCharacter{1F69}{\@tabacckludge<\textOmega} % Ὡ +\DeclareUnicodeCharacter{1F6A}{\@tabacckludge>`\textOmega} % Ὢ +\DeclareUnicodeCharacter{1F6B}{\@tabacckludge<`\textOmega} % Ὣ +\DeclareUnicodeCharacter{1F6C}{\@tabacckludge>'\textOmega} % Ὤ +\DeclareUnicodeCharacter{1F6D}{\@tabacckludge<'\textOmega} % Ὥ +\DeclareUnicodeCharacter{1F6E}{\@tabacckludge>~\textOmega} % Ὦ +\DeclareUnicodeCharacter{1F6F}{\@tabacckludge<\~\textOmega} % Ὧ + +\DeclareUnicodeCharacter{1F70}{\@tabacckludge`\textalpha} % ὰ +\DeclareUnicodeCharacter{1F71}{\@tabacckludge'\textalpha} % ά +\DeclareUnicodeCharacter{1F72}{\@tabacckludge`\textepsilon} % ὲ +\DeclareUnicodeCharacter{1F73}{\@tabacckludge'\textepsilon} % έ +\DeclareUnicodeCharacter{1F74}{\@tabacckludge`\texteta} % ὴ +\DeclareUnicodeCharacter{1F75}{\@tabacckludge'\texteta} % ή +\DeclareUnicodeCharacter{1F76}{\@tabacckludge`\textiota} % ὶ +\DeclareUnicodeCharacter{1F77}{\@tabacckludge'\textiota} % ί +\DeclareUnicodeCharacter{1F78}{\@tabacckludge`\textomicron} % ὸ +\DeclareUnicodeCharacter{1F79}{\@tabacckludge'\textomicron} % ό +\DeclareUnicodeCharacter{1F7A}{\@tabacckludge`\textupsilon} % ὺ +\DeclareUnicodeCharacter{1F7B}{\@tabacckludge'\textupsilon} % ύ +\DeclareUnicodeCharacter{1F7C}{\@tabacckludge`\textomega} % ὼ +\DeclareUnicodeCharacter{1F7D}{\@tabacckludge'\textomega} % ώ + +\DeclareUnicodeCharacter{1F80}{\@tabacckludge>\textalpha|} % ᾀ +\DeclareUnicodeCharacter{1F81}{\@tabacckludge<\textalpha|} % ᾁ +\DeclareUnicodeCharacter{1F82}{\@tabacckludge>`\textalpha|} % ᾂ +\DeclareUnicodeCharacter{1F83}{\@tabacckludge<`\textalpha|} % ᾃ +\DeclareUnicodeCharacter{1F84}{\@tabacckludge>'\textalpha|} % ᾄ +\DeclareUnicodeCharacter{1F85}{\@tabacckludge<'\textalpha|} % ᾅ +\DeclareUnicodeCharacter{1F86}{\@tabacckludge>~\textalpha|} % ᾆ +\DeclareUnicodeCharacter{1F87}{\@tabacckludge<\~\textalpha|} % ᾇ +\DeclareUnicodeCharacter{1F88}{\@tabacckludge>\textAlpha|} % ᾈ +\DeclareUnicodeCharacter{1F89}{\@tabacckludge<\textAlpha|} % ᾉ +\DeclareUnicodeCharacter{1F8A}{\@tabacckludge>`\textAlpha|} % ᾊ +\DeclareUnicodeCharacter{1F8B}{\@tabacckludge<`\textAlpha|} % ᾋ +\DeclareUnicodeCharacter{1F8C}{\@tabacckludge>'\textAlpha|} % ᾌ +\DeclareUnicodeCharacter{1F8D}{\@tabacckludge<'\textAlpha|} % ᾍ +\DeclareUnicodeCharacter{1F8E}{\@tabacckludge>~\textAlpha|} % ᾎ +\DeclareUnicodeCharacter{1F8F}{\@tabacckludge<\~\textAlpha|} % ᾏ + +\DeclareUnicodeCharacter{1F90}{\@tabacckludge>\texteta|} % ᾐ +\DeclareUnicodeCharacter{1F91}{\@tabacckludge<\texteta|} % ᾑ +\DeclareUnicodeCharacter{1F92}{\@tabacckludge>`\texteta|} % ᾒ +\DeclareUnicodeCharacter{1F93}{\@tabacckludge<`\texteta|} % ᾓ +\DeclareUnicodeCharacter{1F94}{\@tabacckludge>'\texteta|} % ᾔ +\DeclareUnicodeCharacter{1F95}{\@tabacckludge<'\texteta|} % ᾕ +\DeclareUnicodeCharacter{1F96}{\@tabacckludge>~\texteta|} % ᾖ +\DeclareUnicodeCharacter{1F97}{\@tabacckludge<\~\texteta|} % ᾗ +\DeclareUnicodeCharacter{1F98}{\@tabacckludge>\textEta|} % ᾘ +\DeclareUnicodeCharacter{1F99}{\@tabacckludge<\textEta|} % ᾙ +\DeclareUnicodeCharacter{1F9A}{\@tabacckludge>`\textEta|} % ᾚ +\DeclareUnicodeCharacter{1F9B}{\@tabacckludge<`\textEta|} % ᾛ +\DeclareUnicodeCharacter{1F9C}{\@tabacckludge>'\textEta|} % ᾜ +\DeclareUnicodeCharacter{1F9D}{\@tabacckludge<'\textEta|} % ᾝ +\DeclareUnicodeCharacter{1F9E}{\@tabacckludge>~\textEta|} % ᾞ +\DeclareUnicodeCharacter{1F9F}{\@tabacckludge<\~\textEta|} % ᾟ + +\DeclareUnicodeCharacter{1FA0}{\@tabacckludge>\textomega|} % ᾠ +\DeclareUnicodeCharacter{1FA1}{\@tabacckludge<\textomega|} % ᾡ +\DeclareUnicodeCharacter{1FA2}{\@tabacckludge>`\textomega|} % ᾢ +\DeclareUnicodeCharacter{1FA3}{\@tabacckludge<`\textomega|} % ᾣ +\DeclareUnicodeCharacter{1FA4}{\@tabacckludge>'\textomega|} % ᾤ +\DeclareUnicodeCharacter{1FA5}{\@tabacckludge<'\textomega|} % ᾥ +\DeclareUnicodeCharacter{1FA6}{\@tabacckludge>~\textomega|} % ᾦ +\DeclareUnicodeCharacter{1FA7}{\@tabacckludge<\~\textomega|} % ᾧ +\DeclareUnicodeCharacter{1FA8}{\@tabacckludge>\textOmega|} % ᾨ +\DeclareUnicodeCharacter{1FA9}{\@tabacckludge<\textOmega|} % ᾩ +\DeclareUnicodeCharacter{1FAA}{\@tabacckludge>`\textOmega|} % ᾪ +\DeclareUnicodeCharacter{1FAB}{\@tabacckludge<`\textOmega|} % ᾫ +\DeclareUnicodeCharacter{1FAC}{\@tabacckludge>'\textOmega|} % ᾬ +\DeclareUnicodeCharacter{1FAD}{\@tabacckludge<'\textOmega|} % ᾭ +\DeclareUnicodeCharacter{1FAE}{\@tabacckludge>~\textOmega|} % ᾮ +\DeclareUnicodeCharacter{1FAF}{\@tabacckludge<\~\textOmega|} % ᾯ + +\DeclareUnicodeCharacter{1FB0}{\u\textalpha} % ᾰ +\DeclareUnicodeCharacter{1FB1}{\@tabacckludge=\textalpha} % ᾱ +\DeclareUnicodeCharacter{1FB2}{\@tabacckludge`\textalpha|} % ᾲ +\DeclareUnicodeCharacter{1FB3}{\textalpha|} % ᾳ +\DeclareUnicodeCharacter{1FB4}{\@tabacckludge'\textalpha|} % ᾴ +\DeclareUnicodeCharacter{1FB6}{\~\textalpha} % ᾶ +\DeclareUnicodeCharacter{1FB7}{\~\textalpha|} % ᾷ +\DeclareUnicodeCharacter{1FB8}{\u\textAlpha} % Ᾰ +\DeclareUnicodeCharacter{1FB9}{\@tabacckludge=\textAlpha} % Ᾱ +\DeclareUnicodeCharacter{1FBA}{\@tabacckludge`\textAlpha} % Ὰ +\DeclareUnicodeCharacter{1FBB}{\@tabacckludge'\textAlpha} % Ά +\DeclareUnicodeCharacter{1FBC}{\textAlpha|} % ᾼ +\DeclareUnicodeCharacter{1FBD}{\@tabacckludge>\textcompwordmark} % ᾽ +\DeclareUnicodeCharacter{1FBE}{\textcompwordmark\Prosgegrammeni} % ι +\DeclareUnicodeCharacter{1FBF}{\@tabacckludge>\textcompwordmark} % ᾿ + +\DeclareUnicodeCharacter{1FC0}{\~\textcompwordmark} % ῀ +\DeclareUnicodeCharacter{1FC1}{\"\~\textcompwordmark} % ῁ +\DeclareUnicodeCharacter{1FC2}{\@tabacckludge`\texteta|} % ῂ +\DeclareUnicodeCharacter{1FC3}{\texteta|} % ῃ +\DeclareUnicodeCharacter{1FC4}{\@tabacckludge'\texteta|} % ῄ +\DeclareUnicodeCharacter{1FC6}{\~\texteta} % ῆ +\DeclareUnicodeCharacter{1FC7}{\~\texteta|} % ῇ +\DeclareUnicodeCharacter{1FC8}{\@tabacckludge`\textEpsilon} % Ὲ +\DeclareUnicodeCharacter{1FC9}{\@tabacckludge'\textEpsilon} % Έ +\DeclareUnicodeCharacter{1FCA}{\@tabacckludge`\textEta} % Ὴ +\DeclareUnicodeCharacter{1FCB}{\@tabacckludge'\textEta} % Ή +\DeclareUnicodeCharacter{1FCC}{\textEta|} % ῌ +\DeclareUnicodeCharacter{1FCD}{\@tabacckludge>`\textcompwordmark} % ῍ +\DeclareUnicodeCharacter{1FCE}{\@tabacckludge>'\textcompwordmark} % ῎ +\DeclareUnicodeCharacter{1FCF}{\@tabacckludge>~\textcompwordmark} % ῏ + +\DeclareUnicodeCharacter{1FD0}{\u\textiota} % ῐ +\DeclareUnicodeCharacter{1FD1}{\@tabacckludge=\textiota} % ῑ +\DeclareUnicodeCharacter{1FD2}{\"`\textiota} % ῒ +\DeclareUnicodeCharacter{1FD3}{\"'\textiota} % ΐ +\DeclareUnicodeCharacter{1FD6}{\~\textiota} % ῖ +\DeclareUnicodeCharacter{1FD7}{\"\~\textiota} % ῗ +\DeclareUnicodeCharacter{1FD8}{\u\textIota} % Ῐ +\DeclareUnicodeCharacter{1FD9}{\@tabacckludge=\textIota} % Ῑ +\DeclareUnicodeCharacter{1FDA}{\@tabacckludge`\textIota} % Ὶ +\DeclareUnicodeCharacter{1FDB}{\@tabacckludge'\textIota} % Ί +\DeclareUnicodeCharacter{1FDD}{\@tabacckludge<`\textcompwordmark} % ῝ +\DeclareUnicodeCharacter{1FDE}{\@tabacckludge<'\textcompwordmark} % ῞ +\DeclareUnicodeCharacter{1FDF}{\@tabacckludge<\~\textcompwordmark} % ῟ + +\DeclareUnicodeCharacter{1FE0}{\u\textupsilon} % ῠ +\DeclareUnicodeCharacter{1FE1}{\@tabacckludge=\textupsilon} % ῡ +\DeclareUnicodeCharacter{1FE2}{\"`\textupsilon} % ῢ +\DeclareUnicodeCharacter{1FE3}{\"'\textupsilon} % ΰ +\DeclareUnicodeCharacter{1FE4}{\@tabacckludge>r} % ῤ +\DeclareUnicodeCharacter{1FE5}{\@tabacckludge<r} % ῥ +\DeclareUnicodeCharacter{1FE6}{\~\textupsilon} % ῦ +\DeclareUnicodeCharacter{1FE7}{\"\~\textupsilon} % ῧ +\DeclareUnicodeCharacter{1FE8}{\u\textUpsilon} % Ῠ +\DeclareUnicodeCharacter{1FE9}{\@tabacckludge=\textUpsilon} % Ῡ +\DeclareUnicodeCharacter{1FEA}{\@tabacckludge`\textUpsilon} % Ὺ +\DeclareUnicodeCharacter{1FEB}{\@tabacckludge'\textUpsilon} % Ύ +\DeclareUnicodeCharacter{1FEC}{\@tabacckludge<\textRho} % Ῥ +\DeclareUnicodeCharacter{1FED}{\"`\textcompwordmark} % ῭ +\DeclareUnicodeCharacter{1FEE}{\"'\textcompwordmark} % ΅ +\DeclareUnicodeCharacter{1FEF}{\@tabacckludge`\textcompwordmark} % ` + +\DeclareUnicodeCharacter{1FF2}{\@tabacckludge`\textomega|} % ῲ +\DeclareUnicodeCharacter{1FF3}{\textomega|} % ῳ +\DeclareUnicodeCharacter{1FF4}{\@tabacckludge'\textomega|} % ῴ +\DeclareUnicodeCharacter{1FF6}{\~\textomega} % ῶ +\DeclareUnicodeCharacter{1FF7}{\~\textomega|} % ῷ +\DeclareUnicodeCharacter{1FF8}{\@tabacckludge`\textOmicron} % Ὸ +\DeclareUnicodeCharacter{1FF9}{\@tabacckludge'\textOmicron} % Ό +\DeclareUnicodeCharacter{1FFA}{\@tabacckludge`\textOmega} % Ὼ +\DeclareUnicodeCharacter{1FFB}{\@tabacckludge'\textOmega} % Ώ +\DeclareUnicodeCharacter{1FFC}{\textOmega|} % ῼ +\DeclareUnicodeCharacter{1FFD}{\@tabacckludge'\textcompwordmark} % ´ +\DeclareUnicodeCharacter{1FFE}{\@tabacckludge<\textcompwordmark} % ῾ +</pre> +</div> +<div class="section" id="id1"> +<h2>General Punctuation</h2> +<pre class="literal-block">\DeclareUnicodeCharacter{2013}{\textendash} % – +\DeclareUnicodeCharacter{2014}{\textemdash} % — +\DeclareUnicodeCharacter{2018}{\textquoteleft} % ‘ +\DeclareUnicodeCharacter{2019}{\textquoteright} % ’ +\DeclareUnicodeCharacter{2030}{\textperthousand} % ‰ +\DeclareUnicodeCharacter{20AC}{\texteuro} % € +</pre> +</div> +<div class="section" id="ancient-greek-numbers"> +<h2>Ancient Greek Numbers</h2> +<p>TODO: map other chars to corresponding Greek letters. +See also the <a class="reference external" href="http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=grnumalt">athnum</a> package:</p> +<pre class="literal-block">\DeclareUnicodeCharacter{10144}{\PiDelta} % GREEK ACROPHONIC ATTIC FIFTY +\DeclareUnicodeCharacter{10145}{\PiEta} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\DeclareUnicodeCharacter{10146}{\PiChi} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\DeclareUnicodeCharacter{10147}{\PiMu} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +</pre> +</div> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf Binary files differnew file mode 100644 index 00000000000..dabafa1484a --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex new file mode 100644 index 00000000000..41218bcfb09 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex @@ -0,0 +1,334 @@ +\documentclass{article} +\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader + +\usepackage% +{lmodern} +% {gfsartemisia} +% {gfsbaskerville} +% [default]{gfsbodoni} +% [default]{gfscomplutum} +% {gfsdidot} +% [default]{gfsneohellenic} +% {lmodern} \usepackage{gfsporson} \renewcommand*\rmdefault{porson} +% [default]{gfssolomos} +% {kerkis} % lacks some chars (\Stigma, \Sampi, double quotesv) +% {teubner} +\renewcommand{\ttdefault}{txtt} + + +\usepackage{parskip} +\usepackage{textcomp} +\usepackage[LGRx,T1]{fontenc} % LGR with accent definitions +% \usepackage[utf8]{inputenc} + +\newcommand{\LGR}{\fontencoding{LGR}\selectfont} +\newcommand{\Latin}{\fontencoding{T1}\selectfont} + +\pagestyle{empty} +% ------------------------------------------------------------------------- + +\begin{document} + +\section*{Test the extended LGR font encoding definitions} + +The file lgrxenc.def allows convenient typesetting of Greek letters +with diacritics. It works independent of the babel package. + +\subsection*{Symbols} + +See the source file lgrenc-test.tex for the macros used to produce the +symbols. + +\subsubsection*{Generic text symbols} + +Latin: ++ - = < > -- --- \textbraceleft{} [ () ] \textbraceright{} +% +\textbackslash{} +\textbar{} +\textperthousand{} +\textpertenthousand{} +\textvisiblespace{} + +LGR: +\LGR ++ - = \textless{} \textgreater{} -- --- +\textbraceleft{} [ () ] \textbraceright{} +% +\textbackslash{} \textbar{} +\textperthousand{} +% \textpertenthousand{} +\textvisiblespace{} +\Latin (Per-mille symbol is missign in LGR.) + +Quotes: +% +\Latin \guillemotleft{}a\guillemotright{} +\LGR \guillemotleft{}a\guillemotright{}, +% +\Latin \textquoteleft{}a\textquoteright{} +\LGR \textquoteleft{}a\textquoteright{}, +% +\Latin \textquotedblleft{}a\textquotedblright{} +\LGR \textquotedblleft{}a\textquotedblright{} +\Latin (double quotes wrong with Kerkis fonts), + +\Latin \guilsinglleft{}a\guilsinglright{} + \quotedblbase{}a\textquotedblright{} +Single guillemots and base-quotes are missing in LGR. + + +Ligature break up: AY fi \LGR AU "i $\mapsto$ +\Latin A\textcompwordmark{}Y f\textcompwordmark i +\LGR A\textcompwordmark{}U "\textcompwordmark i + + +\Latin Spacing accent chars: +% +\Latin \textasciicircum a +\LGR \textasciicircum a \textasciicircum i % using textsym glyph +% +\Latin \textasciitilde a +\LGR \textasciitilde a \textasciitilde i +% +\Latin \textasciibreve a +\LGR \textasciibreve a \textasciibreve i +% +\Latin \textasciimacron a +\LGR \textasciimacron a \textasciimacron i +% +\Latin \textasciidieresis a +\LGR \textasciidieresis a \textasciidieresis i +% +\Latin \textasciiacute a +\LGR \textasciiacute a \textasciiacute i +% +\Latin \textasciigrave a +\LGR \textasciigrave a \textasciigrave i + +\Latin Symbols for SI-units: +\Latin 5\,\textmu{}m, 5\,k\textohm{}; +\LGR 5\,\textmu{}{\Latin m}, 5\,{\Latin k}\textohm{} + +\Latin Letter schwa and Euro symbol: % \textschwa (needs e.g. T3) +\LGR \textschwa{}, \texteuro{} + + +\Latin Some symbol definitions expect a Latin font: +% +\textcopyright{} +\textregistered{} +\texttrademark{} +\SS{} (uppercase of \ss) +% $\Longrightarrow$ +% \LGR +% \textcopyright{} +% \textregistered{} +% \texttrademark{} +% \ss$\mapsto$\SS{} +% +\Latin Babel's lgrenc.def defines them with \verb|\latintext|, however +this macro is not guaranteed to be defined, so it should not be used +in a font encoding definition file. Instead, the textcomp.sty package +should be used to provide the symbols for all font encodings (using the +sharp s (\ss) in Greek is bound to fail anyway). + +\subsubsection*{Greek alphabet} + +Greek letters via Latin transscription in LGR font encoding: + +\LGR +\MakeUppercase{a b g d e z h j i k l m n x o p r s t u f q y w} + +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 + +\Latin + +\subsubsection*{Additional Greek symbols} + +\LGR \koppa{} \Latin koppa, % ϟ +\LGR \qoppa{} \Latin archaic koppa, % ϙ +\LGR \Qoppa{} \Latin archaic Koppa, % Ϙ +\LGR \stigma{} \Latin stigma, % ϛ +\LGR \varstigma{} \Latin stigma variant, +\LGR \Stigma{} \Latin Stigma (Sigma-Tau-Ligature in CB-fonts), +\LGR \sampi{} \Latin sampi, % ϡ +\LGR \Sampi{} \Latin Sampi, % Ϡ +\LGR \ddigamma{} \Latin digamma, % ϝ (\digamma used by amsmath!) +\LGR \Digamma{} \Latin Digamma, % Ϝ +% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals +\LGR \anwtonos{} \Latin Dexia keraia, % ʹ +\LGR \katwtonos{} \Latin Aristeri keraia, % ͵ + +\Latin Variant symbols for pi ($\varpi$), kappa (\emph{no TeX symbol +available}), rho ($\varrho$), and theta ($\vartheta$) are missing in +LGR. + + +\subsection*{Diacritics} + +Capital Greek letters have diacritics (except the dialytika) to the +left (instead of above) and drop them in UPPERCASE. This is +implemented for all combinations for which a precomposed Unicode +character exists. + +% When a word is written entirely in capital letters, diacritics are +% never used; the word Ἢ (or), is an exception to this rule because of +% the need to distinguish it from the nominative feminine article Η. + +LaTeX standard accents (Latin, Greek, Greek Capitals) +$\mapsto$ UPPERCASE + +\`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a} +\b{a} \c{a} \d{a} \k{a} +$\mapsto$ \MakeUppercase{% +\`{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} +$\mapsto$ \MakeUppercase{% +\`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a} +\b{a} \c{a} \d{a} +} + +\`{A} \'{A} \~{A} \"{A} \^{A} \={A} \H{A} \.{A} \r{A} \u{A} \v{A} +\b{A} \c{A} \d{A} +$\mapsto$ \MakeUppercase{% +\`{A} \'{A} \~{A} \"{A} \^{A} \={A} \H{A} \.{A} \r{A} \u{A} \v{A} +\b{A} \c{A} \d{A} +} + +\Latin +The komma-below (\verb|\k|) is not defined in LGR. + +Additional Greek diacritics + +\LGR +\<{a} \>{e} \`<{i} \"'i \"`i \~"i \`>{h} \'<{o} \'>{o} \~<{u} \~>{w} +$\mapsto$ \MakeUppercase{% +\<{a} \>{e} \<`{i} \"'i \"`i \~"i \`>{h} \'<{o} \'>{o} \~<{u} \~>{w} +} + +% The dialytika is not used on Initial letters ("'I \"`I \~"I) +\<{A} \>{E} \`<{I} \"'I \"`I \~"I \`>{H} \'<{O} \'>{O} \~<{U} \~>{W} +$\mapsto$ \MakeUppercase{% +\<{A} \>{E} \`<{I} \"'I \"`I \~"I \`>{H} \'<{O} \'>{O} \~<{U} \~>{W} +} + +\Latin Input variants and their conversion with MakeUppercase:% + +\begin{quote} \LGR +\~>a \>\~a \~\>{a}, \~<a \<\~a \<~a \~\<a \~<a, +\>\~{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. + +\MakeUppercase{ +\~>a \>\~a \~\>{a}, \~<a \<\~a \<~a \~\<a \~<a, +\>\~{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. +} + +\<'A \<\'A \'<A \'\<A $\mapsto$ \MakeUppercase{\<'A \<\'A \'<A \'\<A}. +\end{quote} + +\Latin The tilde character can be used in combined accents. +However, if converted with \verb|\MakeUppercase| it will produce a +no-break space: + +\LGR \"~i \<~i \`>i \"~u \<~u \`>u $\mapsto$ +\LGR \MakeUppercase{\"~i \<~i \`>i \"~u \<~u \`>u} +\\ +\Latin Use the tilde-accent macro: +\LGR \MakeUppercase{\"\~i \~"u}. + + +\Latin Combinations with named accents are not defined: +\LGR \Dasia'a \Dasia`a \Dasia~a. +\\ +\Latin Use long name +\LGR (\DasiaOxia{a} \DasiaVaria{a} \DasiaPerispomeni{a}) +\Latin or shortcut \LGR (\<'a \<`a \<~a). + +\Latin The dialytika must be kept in UPPERCASE, e.\,g. +% from http://diacritics.typo.cz/index.php?id=70 μαΐστρος -> ΜΑΪΣΤΡΟΣ. +\LGR ma\"'istros $\mapsto$ \MakeUppercase{ma\"'istros} + +\LGR \"i \"'i \"`i \"\~i \"u \"'u \"`u \"\~u $\mapsto$ +\MakeUppercase{\"i \"'i \"`i \"\~i \"u \"'u \"`u \"\~u}, + +\Latin even where it is redundant in lowercase, e.\,g. + +\LGR % άυλος/ΑΫΛΟΣ +\'aulos $\mapsto$ \MakeUppercase{\'aulos}, +\>'aulos $\mapsto$ \MakeUppercase{\>'aulos}, +% from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ +m\'aina $\mapsto$ \MakeUppercase{m\'aina}, + +% from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema +\LGR % κέικ, ἀυπνία/αϋπνία +k\'eik, $\mapsto$ \MakeUppercase{k\'eik} +\>aupn\'ia $\mapsto$ \MakeUppercase{\>aupn\'ia} + + +\Latin Test: The auto-hiatus feature must keep proper working of tonos +and psili: + +\LGR \MakeUppercase{\'a b}: \Latin space beween A and B kept + +\LGR +\newcommand\md{\char127} +\newcommand\MU{\MakeUppercase} + + \md \MU{ AO AY AI AU RA OA UA DU} [ \\ +\<\md \MU{ \<AO \<AY \<AI \<AU \<RA \<OA U\<A D\<U} [ \\ +\>\md \MU{ \>AO \>AY \>AI \>AU \>RA \>OA U\>A D\>U} [ \\ +\>'\md\MU{ \>'AO \>'AY \>'AI \>'AU \>'RA \>'OA U\>'A D\>'U} [ \\ +\'\md \MU{ \'AO \'AY \'AI \'AU \'RA \'OA U\'A D\'U} [ \\ +\>`\md\MU{ \>`AO \>`AY \>`AI \>`AU \>`RA \>`OA U\>`A D\>`U} [ \\ +\<'\md\MU{ \<'AO \<'AY \<'AI \<'AU \<'RA \<'OA U\<'A D\<'U} [ \\ +\`\md \MU{ \`AO \`AY \`AI \`AU \`RA \`OA U\`A D\`U} [ \\ +\<`\md\MU{ \<`AO \<`AY \<`AI \<`AU \<`RA \<`OA U\<`A D\<`U} [ \\ +\~\md \MU{ \~AO \~AY \~AI \~AU \~RA \~OA U\~A D\~U} [ \\ +\~>\md\MU{ \~>AO \~>AY \~>AI \~>AU \~>RA \~>OA U\~>A D\~>U} [ \\ +\~<\md\MU{ \~<AO \~<AY \~<AI \~<AU \~<RA \~<OA U\~<A D\~<U} [ \\ +\~<\md\MU{ \~<ao \~<ay \~<ai \~<au \~<ra \~<oa u\~<a d\~<u} [ \\ +\"\md \MU{ AO AY A\"I A\"U RA OA \"UA DU} [ \\ +\"\md \MU{ \"AO \"AY \"AI \"AU \"RA \"OA U\"A D\"U} [ \\ +\"~\md\MU{ \~"AO \~"AY \~"AI \~"AU \~"RA \~"OA U\~"A D\~"U} [ \\ + + +\Latin +Lookahead (to check for a hiatus) breaks kerning before A with tonos +or psili. + +% \'AA \'AB \'AG \'AD \'AE \'AZ \'AH \'AJ \'AI \'AK \'AL \'AM \'AN \'AX +% \'AO \'AP \'AR \'AS \'AC \'AT \'AU \'AF \'AQ \'AY \'AW + +Like in any font encoding, there is no kerning for non-defined +accent-letter-combinations (dialytica on \LGR A O D\Latin). +(However, with the Kerkis fonts, kerning is kept. Why?) + +The uppercase of the zero-width space at the place of ``v`` is the +DasiaOxia accent~\LGR \MakeUppercase{v}\Latin , the glyph at the +position of ``V``. It is suppressed for uppercased accents: + +\LGR +\<v, \>v, \>'v, \'v, \>`v, \<'v, \`v, \<`v, \~v, \~>v, \~<v, \"v, \~"v +$\mapsto$ \MakeUppercase{ +\<v, \>v, \>'v, \'v, \>`v, \<'v, \`v, \<`v, \~v, \~>v, \~<v, \"v, \~"v +} + +\Latin + +Downcasing should keep diacritics (of course, it cannot regenerate +dropped ones): +\LGR 'A \"I \"U \~"A $\mapsto$ \MakeLowercase{\'A \"I \"U \~"A} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html new file mode 100644 index 00000000000..ecc837ea909 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html @@ -0,0 +1,1731 @@ +<?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"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.10: http://docutils.sourceforge.net/" /> +<title>lgrxenc.def</title> +<meta name="copyright" content="© 2010 Günter Milde" /> +<style type="text/css"> + +/* +:Author: David Goodger (goodger@python.org) +:Id: $Id: html4css1.css 7056 2011-06-17 10:50:48Z 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 } + +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; +} + +/* Uncomment (and remove this text!) to get bold-faced definition list terms +dl.docutils dt { + font-weight: bold } +*/ + +div.abstract { + margin: 2em 5em } + +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 { + 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 } +*/ + +div.dedication { + margin: 2em 5em ; + text-align: center ; + font-style: italic } + +div.dedication p.topic-title { + font-weight: bold ; + font-style: normal } + +div.figure { + margin-left: 2em ; + margin-right: 2em } + +div.footer, div.header { + clear: both; + font-size: smaller } + +div.line-block { + display: block ; + margin-top: 1em ; + margin-bottom: 1em } + +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 } + +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 } + +/* 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 { + margin-left: 2em ; + margin-right: 2em } + +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 } + +table.docutils th.field-name, table.docinfo th.docinfo-name { + font-weight: bold ; + text-align: left ; + white-space: nowrap ; + padding-left: 0 } + +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 } + +</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 */ +/* ============= */ + +body { + padding: 0 5%; + margin: 8px 0; + 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; + margin: auto; +} + +/* separate items except for compact lists */ +dl > dd { + margin-bottom: 1em; +} +.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; */ +} +dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +/* background: lightgreen; */ +} + +/* space around paragraphs */ +dl > dd p:first-child { + margin: 0; +} + +/* Sidebar */ +/* ------- */ + +div.sidebar { + margin-right: -5%; +} + +/* Special definition lists */ +/* ======================== */ + +/* 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 { + 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 */ +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 */ + +dl.docinfo > dd { + margin-left: 8em; +/* margin-bottom: 0.5em; */ +} + + +/* option list */ + +dl.option-list { + margin-left: 1em; + padding-left: 0; +} + +dl.option-list > dd { + margin-left: 8em; + /* margin-bottom: 0.5em; */ +} + +/* start description on a new line after long options */ +dl.option-list > dd p { + width: 100%; + display: inline-block; +} + +/* footnotes */ + +a.footnote-reference, a.fn-backref { + text-decoration: inherit; /* do not underline footnote links */ +} + +dl.footnote { + /* line on the left */ + padding-left: 1ex; + border-left: solid; + border-left-width: thin; + /* border-color: black; */ +} + +/* paragraph on same line as backrefs */ +dd > em { +/* background: green; */ + float: left; + margin-right: 1ex +} + + +/* +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 { + counter-reset: item; + list-style-type: none ! important; +} + +/* Set the negative indent of the list label as feature of the list item */ +ol > li { + text-indent: -40px; /* Mozillas default indent */ +} +/* reset for child elements */ +ol > li > * { + text-indent: 0px; + text-indent: 0; + margin-top: 0; + /* background: lightgreen; */ +} + +/* 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; + 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 { + margin-top: 0.5em ; + margin-bottom: 0.5em; +/* 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; +} + +/* "booktabs" style (no vertical lines) */ +table.booktabs { + border: 0; + border-top: 2px solid; + border-bottom: 2px solid; +} + +table.booktabs * { + border: 0; +} +table.booktabs th { + border-bottom: thin solid; +} + +table > caption { + text-align: left; +/* padding: 2em 0 1em 0; */ +} + +/* numbered tables*/ +table.numbered > caption:before { + counter-increment: table; /* defined/re-set in body */ + content: "Table " counter(table) ": "; + font-weight: bold; +} + + +/* literal text + ------------ +*/ +/* whitespace and wrapping in inline literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +tt.literal { + white-space: pre-wrap; +} + +/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ +/* pre.literal-block, pre.doctest-block { */ +/* margin-top: 0em ; */ +/* } */ + +/* Table of Contents */ + +/* don't indent like a topic */ +div.topic.contents { + margin: 0; +} +/* div.topic.contents ul { */ +/* list-style: none; */ +/* } */ + +div.topic.contents a { + text-decoration: none; /* no underline for links */ +} + +/* section numbers */ + +span.sectnum { + padding-right: 1ex; +} + +/* admonitions */ + +/* 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 } + +</style> +</head> +<body> +<div class="document" id="lgrxenc-def"> +<h1 class="title">lgrxenc.def</h1> +<h2 class="subtitle" id="comprehensive-lgr-greek-font-encoding-definitions">comprehensive LGR Greek font encoding definitions</h2> + +<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 +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> +</dd> +</dl> +<div class="abstract topic"> +<p class="topic-title first">Abstract</p> +<p>The LGR font encoding is the de-facto standard for Greek +typesetting with LaTeX. However, the encoding definition +file that ships with babel misses many of the definitions +common since the advent of the NFSS (see <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">fntguide</a> "Encodings").</p> +<p>This file provides a comprehensive set of macros to +typeset Greek with LGR encoded fonts. It works for both, +monotonic and polytonic Greek, independent of the <cite>babel</cite> +package.</p> +</div> +<div class="contents topic" id="contents"> +<p class="topic-title first">Contents</p> +<ul class="simple"> +<li><p><a class="reference internal" href="#changelog" id="id1">Changelog</a></p></li> +<li><p><a class="reference internal" href="#usage" id="id2">Usage</a></p></li> +<li><p><a class="reference internal" href="#macro-names" id="id3">Macro names</a></p></li> +<li><p><a class="reference internal" href="#implementation" id="id4">Implementation</a></p> +<ul> +<li><p><a class="reference internal" href="#read-this-file-only-once" id="id5">Read this file only once</a></p></li> +<li><p><a class="reference internal" href="#announcement" id="id6">Announcement</a></p></li> +<li><p><a class="reference internal" href="#base-setup" id="id7">Base setup</a></p></li> +<li><p><a class="reference internal" href="#text-symbols" id="id8">Text symbols</a></p> +<ul> +<li><p><a class="reference internal" href="#greek-alphabet" id="id9">Greek Alphabet</a></p></li> +<li><p><a class="reference internal" href="#additional-greek-symbols" id="id10">Additional Greek symbols</a></p></li> +<li><p><a class="reference internal" href="#other" id="id11">Other</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#diacritics" id="id12">Diacritics</a></p> +<ul> +<li><p><a class="reference internal" href="#simple-diacritics" id="id13">simple diacritics</a></p></li> +<li><p><a class="reference internal" href="#composite-diacritics" id="id14">composite diacritics</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#capital-letters" id="id15">Capital letters</a></p> +<ul> +<li><p><a class="reference internal" href="#title-case" id="id16">Title Case</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#uppercase" id="id17">UPPERCASE</a></p> +<ul> +<li><p><a class="reference internal" href="#uclclist-extension" id="id18">@uclclist extension</a></p></li> +<li><p><a class="reference internal" href="#substitution-macros" id="id19">Substitution macros</a></p> +<ul> +<li><p><a class="reference internal" href="#drop-diacritics" id="id20">Drop diacritics</a></p></li> +<li><p><a class="reference internal" href="#keep-dialytika" id="id21">Keep dialytika.</a></p></li> +<li><p><a class="reference internal" href="#mark-hiatus" id="id22">Mark hiatus</a></p></li> +</ul> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="section" id="changelog"> +<h1><a class="toc-backref" href="#id1">Changelog</a></h1> +<table> +<colgroup> +<col width="7%" /> +<col width="18%" /> +<col width="75%" /> +</colgroup> +<tbody valign="top"> +<tr><td><p>0.1</p></td> +<td><p>2010-03-31</p></td> +<td><p>initial attempt</p></td> +</tr> +<tr><td><p>0.2</p></td> +<td><p>2010-04-20</p></td> +<td><p>diacritics dropped in UPPERCASE</p></td> +</tr> +<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> +</tr> +<tr><td><p>0.3.1</p></td> +<td><p>2010-06-10</p></td> +<td><p>code cleanup: replace dummy accent hack +with TextCommand</p></td> +</tr> +<tr><td><p>0.4</p></td> +<td><p>2010-06-15</p></td> +<td><p>more text symbols</p></td> +</tr> +<tr><td><p>0.4.1</p></td> +<td><p>2010-08-06</p></td> +<td><p>prevent multiple evaluation</p></td> +</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> +</tr> +<tr><td><p>0.5.1</p></td> +<td><p>2012-05-08</p></td> +<td><p>upload to CTAN</p></td> +</tr> +</tbody> +</table> +</div> +<div class="section" id="usage"> +<h1><a class="toc-backref" href="#id2">Usage</a></h1> +<p>To prevent mixing up with <cite>Babel</cite>'s <tt class="literal">lgrenc.def</tt>, the comprehensive +font encoding definitions must be loaded via the <tt class="literal">LGRx</tt> option.</p> +<dl class="docutils"> +<dt>Example:</dt> +<dd><p>Select font encodings <cite>T1</cite> (as default) and <cite>LGR</cite> with comprehensive +font encoding definitions:</p> +<pre class="literal-block">\usepackage[LGRx,T1]{fontenc} +</pre> +</dd> +</dl> +<div class="attention"> +<p class="admonition-title">Attention!</p> +<p>The font encoding defined by the option <tt class="literal">LGRx</tt> is <strong>not</strong> <cite>LGRx</cite> but +<cite>LGR</cite>. Therefore, <tt class="literal">LGRx</tt> must not be given as last option. To set +<cite>LGR</cite> as as default font encoding specify both, <cite>LGRx</cite> and <cite>LGR</cite>, e.g.</p> +<pre class="literal-block">\usepackage[LGRx,T1,LGR]{fontenc} +</pre> +</div> +</div> +<div class="section" id="macro-names"> +<h1><a class="toc-backref" href="#id3">Macro names</a></h1> +<p>The <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">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> +</blockquote> +<p>Open questions:</p> +<ul> +<li><p>Can we omit the <tt class="literal">text</tt> prefix for macros that are already +established in short form (e.g. via babel's <tt class="literal">greek.ldf</tt>) and do +not have a math counterpart?</p> +<dl class="docutils"> +<dt>Pro:</dt> +<dd><ul> +<li><p>Simpler.</p></li> +<li><p>Ease of use (less typing, better readability of source text).</p></li> +<li><p>Backwards compatible (many established macro names).</p></li> +<li><p>There are examples of encoding-specific macros +without the <tt class="literal">text</tt>-prefix, especially for letters:</p> +<ul class="simple"> +<li><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> +in <cite>T1</cite> and <cite>OT1</cite>,</p></li> +<li><p><tt class="literal">\CYR*</tt> and <tt class="literal">\cyr*</tt> in <cite>T2*</cite></p></li> +<li><p><tt class="literal">\heb*</tt> or no prefix in <cite>HE8</cite></p></li> +<li><p>short descriptive names in the arabic part of <cite>PU</cite> +(<tt class="literal">puarenc.def</tt>) (but e.g. <tt class="literal">\textkoppagreek</tt> in +<tt class="literal">puenc.def</tt>)</p></li> +</ul> +</li> +<li><p><tt class="literal">text</tt> prefix does <strong>not</strong> mark a macro as</p> +<ul class="simple"> +<li><p>encoding-specific</p></li> +<li><p>inserting a glyph</p></li> +</ul> +<p>as 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> +</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 mode</p></li> +<li><p>Short forms can be defined in a package.</p></li> +</ul> +</dd> +</dl> +</li> +<li><p>How to name <em>accent macros</em> (<tt class="literal">\DeclareTextAccent</tt> definitions)?</p> +<ul class="simple"> +<li><p>Should <tt class="literal">\texttonos</tt> be an accent macro or a spacing character?</p></li> +<li><p>How about a common prefix <tt class="literal"><span class="pre">\accent...</span></tt> or postfix <tt class="literal"><span class="pre">\...Accent</span></tt>?</p></li> +</ul> +</li> +<li><p>How about glyph names with numbers and dots?</p> +<ul> +<li><p>Adobe recommends <tt class="literal">uni</tt> (or <tt class="literal">u</tt>) + Unicode number for all +Unicode characters without established name.</p> +<p>While it is <em>possible</em> to apply this scheme to TeX macros, it is +hardly advisable: <tt class="literal">\koppa</tt> is far better readable than +<tt class="literal">\csname uni03DF\endcsname</tt>.</p> +</li> +</ul> +</li> +<li><p>If there exists a math-mode macro for a symbol, the corresponding text +macro should be formed by prepending <tt class="literal">text</tt>.</p> +<blockquote> +<p>Example: The glyph name for the final sigma is <tt class="literal">sigma1</tt>, but the +corresponding math-macro is <tt class="literal">\varsigma</tt>. IMO, the text symbol +should be available as <tt class="literal">\textvarsigma</tt> and not +<tt class="literal">\csname textsigma1\endcsname</tt>.</p> +</blockquote> +<p>Could this become a general rule?</p> +<dl class="docutils"> +<dt>Problems:</dt> +<dd><ul class="simple"> +<li><p><tt class="literal">\varepsilon</tt> and <tt class="literal">\varphi</tt> math macros map to "GREEK SMALL +LETTER *", while others map to "GREEK * SYMBOL" Unicode chars.</p></li> +</ul> +</dd> +</dl> +</li> +</ul> +<p>The <a class="reference external" href="http://www.adobe.com/devnet/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>.</p> +<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 <cite>libertine</cite> 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> +from the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/unicode.html">ucs</a> package.</p> +<p>Using the names from <tt class="literal">puenc.def</tt> ensures that the <cite>hyperref</cite> package +will do the right conversion to a PDF-string +(see <a class="reference external" href="greek-part-of-puenc.def">greek-part-of-puenc.def</a>).</p> +<p>For accent macros, this file uses Greek names like in Unicode and +ucsencs.def (without <tt class="literal">text</tt> prefix). Accent macro names are Capitalized or +CamelCase, as they are intended for use in packages or classes. For the +end-user "symbol macros" (<tt class="literal">\~ \' \` \" \< \></tt>) are provided.</p> +</div> +<div class="section" id="implementation"> +<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> +<pre class="literal-block">\@ifundefined{ver@lgrxenc.def} + {\message{setting up comprehensive LGR font encoding definitions.}} + {\message{comprehensive LGR font encoding definitions already loaded} + \expandafter\endinput % "return" + } +</pre> +</div> +<div class="section" id="announcement"> +<h2><a class="toc-backref" href="#id6">Announcement</a></h2> +<blockquote> +<dl class="docutils"> +<dt>ProvidesFile{lgrxenc.def}</dt> +<dd><dl class="docutils"> +<dt>[2010/06/08 v0.5.1 %</dt> +<dd><p>comprehensive LGR Greek Font Encoding definitions]</p> +</dd> +</dl> +</dd> +</dl> +</blockquote> +</div> +<div class="section" id="base-setup"> +<h2><a class="toc-backref" href="#id7">Base setup</a></h2> +<p>The base setup is copied from the standard encoding file +<tt class="literal">lgrenc.def</tt> that comes with the Babel package:</p> +<pre class="literal-block">\DeclareFontEncoding{LGR}{}{} +\DeclareFontSubstitution{LGR}{cmr}{m}{n} +\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> +<div class="section" id="greek-alphabet"> +<h3><a class="toc-backref" href="#id9">Greek Alphabet</a></h3> +<p>All letters are accessible by the Latin transcription. However, as +they are distinct text symbols, <tt class="literal">\text*</tt> macros are defined. +The <cite>textalpha.sty</cite> package makes these macros available in any font +encoding.</p> +<pre class="literal-block">\DeclareTextSymbol{\textAlpha}{LGR}{65} +\DeclareTextSymbol{\textBeta}{LGR}{66} +\DeclareTextSymbol{\textGamma}{LGR}{71} +\DeclareTextSymbol{\textDelta}{LGR}{68} +\DeclareTextSymbol{\textEpsilon}{LGR}{69} +\DeclareTextSymbol{\textZeta}{LGR}{90} +\DeclareTextSymbol{\textEta}{LGR}{72} +\DeclareTextSymbol{\textTheta}{LGR}{74} +\DeclareTextSymbol{\textIota}{LGR}{73} +\DeclareTextSymbol{\textKappa}{LGR}{75} +\DeclareTextSymbol{\textLambda}{LGR}{76} +\DeclareTextSymbol{\textMu}{LGR}{77} +\DeclareTextSymbol{\textNu}{LGR}{78} +\DeclareTextSymbol{\textXi}{LGR}{88} +\DeclareTextSymbol{\textOmicron}{LGR}{79} +\DeclareTextSymbol{\textPi}{LGR}{80} +\DeclareTextSymbol{\textRho}{LGR}{82} +\DeclareTextSymbol{\textSigma}{LGR}{83} +\DeclareTextSymbol{\textTau}{LGR}{84} +\DeclareTextSymbol{\textUpsilon}{LGR}{85} +\DeclareTextSymbol{\textPhi}{LGR}{70} +\DeclareTextSymbol{\textChi}{LGR}{81} +\DeclareTextSymbol{\textPsi}{LGR}{89} +\DeclareTextSymbol{\textOmega}{LGR}{87} +% +\DeclareTextSymbol{\textalpha}{LGR}{97} +\DeclareTextSymbol{\textbeta}{LGR}{98} +\DeclareTextSymbol{\textgamma}{LGR}{103} +\DeclareTextSymbol{\textdelta}{LGR}{100} +\DeclareTextSymbol{\textepsilon}{LGR}{101} +\DeclareTextSymbol{\textzeta}{LGR}{122} +\DeclareTextSymbol{\texteta}{LGR}{104} +\DeclareTextSymbol{\texttheta}{LGR}{106} +\DeclareTextSymbol{\textiota}{LGR}{105} +\DeclareTextSymbol{\textkappa}{LGR}{107} +\DeclareTextSymbol{\textlambda}{LGR}{108} +\DeclareTextSymbol{\textmu}{LGR}{109} +\DeclareTextSymbol{\textnu}{LGR}{110} +\DeclareTextSymbol{\textxi}{LGR}{120} +\DeclareTextSymbol{\textomicron}{LGR}{111} +\DeclareTextSymbol{\textpi}{LGR}{112} +\DeclareTextSymbol{\textrho}{LGR}{114} +\DeclareTextCommand{\textsigma}{LGR}{s\noboundary} % σ +\DeclareTextSymbol{\textvarsigma}{LGR}{99} % ς final sigma +\DeclareTextSymbol{\textautosigma}{LGR}{115} % σ (ς at end of word) +\DeclareTextSymbol{\texttau}{LGR}{116} +\DeclareTextSymbol{\textupsilon}{LGR}{117} +\DeclareTextSymbol{\textphi}{LGR}{102} +\DeclareTextSymbol{\textchi}{LGR}{113} +\DeclareTextSymbol{\textpsi}{LGR}{121} +\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> +<p>Ancient Greek Numbers (Athenian Numerals) +named like in the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/athnum.html">athnum</a> package:</p> +<pre class="literal-block">\DeclareTextSymbol{\PiDelta}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY +\DeclareTextSymbol{\PiEta}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\DeclareTextSymbol{\PiChi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\DeclareTextSymbol{\PiMu}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +</pre> +<p>or using Greek numerals (as in <tt class="literal"><span class="pre">xl-lgr.enc</span></tt>):</p> +<pre class="literal-block">%\DeclareTextSymbol{\pentedeka}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY +%\DeclareTextSymbol{\pentehekaton}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +%\DeclareTextSymbol{\penteqilioi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +%\DeclareTextSymbol{\pentemurioi}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +</pre> +<p>after babel's <tt class="literal">greek.ldf</tt> and <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a>:</p> +<pre class="literal-block">\DeclareTextSymbol{\stigma}{LGR}{6} % ϛ +\DeclareTextSymbol{\varstigma}{LGR}{7} % stigma variant (CB.enc, teubner) +% \DeclareTextSymbol{\vardigamma}{LGR}{7} % digamma variant (greek.ldf) +\DeclareTextSymbol{\koppa}{LGR}{18} % ϟ (greek small letter koppa) +\DeclareTextSymbol{\qoppa}{LGR}{19} % ϙ (archaic koppa) +\DeclareTextSymbol{\Qoppa}{LGR}{21} % Ϙ (archaic Koppa) +\DeclareTextSymbol{\Stigma}{LGR}{22} % ϹΤ ligature (teubner) +% \DeclareTextSymbol{\Stigma}{LGR}{??} % Ϛ +\DeclareTextSymbol{\Sampi}{LGR}{23} % Ϡ +\DeclareTextSymbol{\sampi}{LGR}{27} % ϡ +\DeclareTextSymbol{\anoteleia}{LGR}{38} % · +\DeclareTextSymbol{\erotimatiko}{LGR}{63} % ; +\DeclareTextSymbol{\ddigamma}{LGR}{147} % ϝ (\digamma used by amsmath!) +\DeclareTextSymbol{\Digamma}{LGR}{195} % Ϝ +% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals +\DeclareTextSymbol{\anwtonos}{LGR}{254} % ʹ (Dexia keraia) +\DeclareTextSymbol{\katwtonos}{LGR}{255} % ͵ (Aristeri keraia) +</pre> +<p>As <tt class="literal">\digamma</tt> is a math macro (defined in amsmath), provide aliases +named as <tt class="literal">\text</tt> followed by the glyph name (as recommended in +<tt class="literal">fntguide.pdf</tt>:</p> +<pre class="literal-block">\DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ alias using "text" prefix +\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ +</pre> +</div> +<div class="section" id="other"> +<h3><a class="toc-backref" href="#id11">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, +so that they work if LGR is the only chosen font encoding.</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> +</ul> +<pre class="literal-block">% all encodings: See usrguide.pdf, chapter 3.14 ff +\DeclareTextSymbol{\textendash}{LGR}{0} % EN DASH +\DeclareTextSymbol{\textquoteleft}{LGR}{28} % ‘ +\DeclareTextSymbol{\textquoteright}{LGR}{29} % ’ +\DeclareTextSymbol{\textperiodcentered}{LGR}{46} % · = \textanoteleia +\DeclareTextSymbol{\textcompwordmark}{LGR}{118} % ZERO WIDTH NO JOINER +\DeclareTextSymbol{\textemdash}{LGR}{127} % EM DASH + +% T1 +\DeclareTextSymbol{\guillemotleft}{LGR}{123} % « +\DeclareTextSymbol{\guillemotright}{LGR}{125} % » + +% TS1 +\ProvideTextCommand{\textasciibreve}{LGR}{\char30\textcompwordmark} % ˘ +\ProvideTextCommand{\textasciimacron}{LGR}{\char31\textcompwordmark} % ¯ +\ProvideTextCommand{\textasciidieresis}{LGR}{\char34\textcompwordmark} % " +\ProvideTextCommand{\textasciiacute}{LGR}{\char39\textcompwordmark} % ' +\ProvideTextCommand{\textasciigrave}{LGR}{\char96\textcompwordmark} % ` +\DeclareTextCommand{\textasciitilde}{LGR}{\char126\textcompwordmark} % ~ + +% \DeclareTextSymbol{\textohm}{LGR}{87} % Ω (Ohm sign ≠ Omega) +\DeclareTextSymbol{\texteuro}{LGR}{24} % € \euro in greek.ldf +\DeclareTextSymbol{\textpercent}{LGR}{37} % % +\DeclareTextSymbol{\textperthousand}{LGR}{25} % ‰ \permille in greek.ldf + +% T3 +\DeclareTextSymbol{\textschwa}{LGR}{26} % ə +</pre> +<p>Babel's <tt class="literal">lgrenc.def</tt> has some definitions to prevent surprises with +macros that expect a Latin script. These definitions are problematic +in the font-encoding definition file as they</p> +<ul class="simple"> +<li><p>require <tt class="literal">\textlatin</tt> which is defined in <tt class="literal">babel.def</tt>,</p></li> +<li><p>overwrite TS1 symbols set as default by <tt class="literal">textcomp.sty</tt>.</p></li> +</ul> +<pre class="literal-block">%\ProvideTextCommand{\textcopyright}{LGR}{\textcircled{\textlatin{c}}} +%\ProvideTextCommand{\textregistered}{LGR}{\textcircled{\textlatin{\textsc r}}} +%\ProvideTextCommand{\texttrademark}{LGR}{\textsuperscript{\textlatin{TM}}} +%\ProvideTextCommand{\SS}{LGR}{\textlatin{SS}} +</pre> +<p>How about:</p> +<pre class="literal-block">%\ProvideTextCommand{\SS}{LGR}{\UseTextSymbol{T1}{\SS}} +%\ProvideTextCommand{\textcopyright}{LGR}{{\UseTextSymbol{T1}{\textcopyright}}} +% ...? +</pre> +</div> +</div> +<div class="section" id="diacritics"> +<h2><a class="toc-backref" href="#id12">Diacritics</a></h2> +<p>Based on the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a> package by Claudio Beccari and the <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel +patch</a> by Werner Lemberg but with composite diacritic definitions +(iterative diacritics).</p> +<p>Advantages:</p> +<ul class="simple"> +<li><p>get accented 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>reduced probability of incompatibilities (compared to <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a> +diacritic macros).</p></li> +<li><p>input convention similar to LGR input encodings (just prepend a <tt class="literal">\</tt>).</p></li> +</ul> +<div class="section" id="simple-diacritics"> +<h3><a class="toc-backref" href="#id13">simple diacritics</a></h3> +<p>Define Greek diacritics as named macros with shortcut alias.</p> +<p>Direct defining of <tt class="literal">\<</tt> and <tt class="literal">\></tt> fails with +<tt class="literal">`! Missing $ inserted.'</tt> (clash with math definitions). +Also, we need aliases for proper upcasing (cf. <a class="reference internal" href="#uppercase">UPPERCASE</a> below).</p> +<pre class="literal-block">\DeclareTextAccent{\Dasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing) +\DeclareTextAccent{\Psili}{LGR}{62} % ψιλή spiritus lenis (smooth breathing) +\DeclareTextAccent{\Tonos}{LGR}{39} % τόνος/ὀξεῖα tonos/oxia (acute) +\DeclareTextAccent{\Varia}{LGR}{96} % βαρεῖα (grave) +\DeclareTextAccent{\Perispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde) +\DeclareTextAccent{\Dialytika}{LGR}{34} % διαλυτικά (diaeresis/trema) + +\DeclareTextCommand{\<}{LGR}{\Dasia} +\DeclareTextCommand{\>}{LGR}{\Psili} +\DeclareTextCommand{\'}{LGR}{\Tonos} +\DeclareTextCommand{\`}{LGR}{\Varia} +\DeclareTextCommand{\~}{LGR}{\Perispomeni} +\DeclareTextCommand{\"}{LGR}{\Dialytika} +</pre> +<p>These are not required as the postfix ligature +does not interfere with kerning:</p> +<pre class="literal-block">\DeclareTextSymbol{\Ypogegrammeni}{LGR}{124} % "small" sub-iota +\DeclareTextSymbol{\Prosgegrammeni}{LGR}{8} % "capital" sub-iota +</pre> +<p>for critical editions or classical Greek:</p> +<pre class="literal-block">\DeclareTextAccent{\lowbreve}{LGR}{20} % low breve +\DeclareTextAccent{\u}{LGR}{30} % breve +\DeclareTextAccent{\=}{LGR}{31} % macron +</pre> +<p>The characters at position 16 and 17 are used in the <tt class="literal">\nexus</tt> macro +of the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a> package to form an extensible, hat-like bracket. In +<tt class="literal">CB.enc</tt>, they are mapped to</p> +<blockquote> +<p>16--MODIFIER LETTER LOW ACUTE ACCENT +17--MODIFIER LETTER LOW GRAVE ACCENT</p> +</blockquote> +<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> +</div> +<div class="section" id="composite-diacritics"> +<h3><a class="toc-backref" href="#id14">composite diacritics</a></h3> +<p>Definitions:</p> +<pre class="literal-block">% Unicode Name Teubner name +\DeclareTextAccent{\DasiaOxia}{LGR}{86} % Ar +\DeclareTextAccent{\DasiaVaria}{LGR}{67} % Gr +\DeclareTextAccent{\DasiaPerispomeni}{LGR}{64} % Cr + +\DeclareTextAccent{\PsiliOxia}{LGR}{94} % As +\DeclareTextAccent{\PsiliVaria}{LGR}{95} % Gs +\DeclareTextAccent{\PsiliPerispomeni}{LGR}{92} % Cs + +\DeclareTextAccent{\DialytikaTonos}{LGR}{35} % Ad, tonos/oxia +\DeclareTextAccent{\DialytikaVaria}{LGR}{36} % Gd +\DeclareTextAccent{\DialytikaPerispomeni}{LGR}{32} % Cd +</pre> +<p>Composition from simple diacritics +(the composition with simple "transcription characters" is done for +the shortcut marcros, otherwise it fails with <tt class="literal">\Makeuppercase</tt>):</p> +<pre class="literal-block">\DeclareTextCompositeCommand{\Dialytika}{LGR}{\Tonos}{\DialytikaTonos} +\DeclareTextCompositeCommand{\"}{LGR}{'}{\DialytikaTonos} +\DeclareTextCompositeCommand{\"}{LGR}{\'}{\DialytikaTonos} +\DeclareTextCompositeCommand{\Dialytika}{LGR}{\Varia}{\DialytikaVaria} +\DeclareTextCompositeCommand{\"}{LGR}{`}{\DialytikaVaria} +\DeclareTextCompositeCommand{\"}{LGR}{\`}{\DialytikaVaria} +\DeclareTextCompositeCommand{\Dialytika}{LGR}{\Perispomeni}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\"}{LGR}{~}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\"}{LGR}{\~}{\DialytikaPerispomeni} + +\DeclareTextCompositeCommand{\Tonos}{LGR}{\Dialytika}{\DialytikaTonos} +\DeclareTextCompositeCommand{\'}{LGR}{"}{\DialytikaTonos} +\DeclareTextCompositeCommand{\'}{LGR}{\"}{\DialytikaTonos} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\Dasia}{\DasiaOxia} +\DeclareTextCompositeCommand{\'}{LGR}{<}{\DasiaOxia} +\DeclareTextCompositeCommand{\'}{LGR}{\<}{\DasiaOxia} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\Psili}{\PsiliOxia} +\DeclareTextCompositeCommand{\'}{LGR}{>}{\PsiliOxia} +\DeclareTextCompositeCommand{\'}{LGR}{\>}{\PsiliOxia} + +\DeclareTextCompositeCommand{\Varia}{LGR}{\Dialytika}{\DialytikaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{"}{\DialytikaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{\"}{\DialytikaVaria} +\DeclareTextCompositeCommand{\Varia}{LGR}{\Dasia}{\DasiaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{<}{\DasiaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{\<}{\DasiaVaria} +\DeclareTextCompositeCommand{\Varia}{LGR}{\Psili}{\PsiliVaria} +\DeclareTextCompositeCommand{\`}{LGR}{>}{\PsiliVaria} +\DeclareTextCompositeCommand{\`}{LGR}{\>}{\PsiliVaria} + +\DeclareTextCompositeCommand{\Perispomeni}{LGR}{\Dialytika}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{"}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{\"}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\Perispomeni}{LGR}{\Dasia}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{<}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{\<}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\Perispomeni}{LGR}{\Psili}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{>}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{\>}{\PsiliPerispomeni} + +\DeclareTextCompositeCommand{\Psili}{LGR}{\Tonos}{\PsiliOxia} +\DeclareTextCompositeCommand{\>}{LGR}{'}{\PsiliOxia} +\DeclareTextCompositeCommand{\>}{LGR}{\'}{\PsiliOxia} +\DeclareTextCompositeCommand{\Psili}{LGR}{\Varia}{\PsiliVaria} +\DeclareTextCompositeCommand{\>}{LGR}{`}{\PsiliVaria} +\DeclareTextCompositeCommand{\>}{LGR}{\`}{\PsiliVaria} +\DeclareTextCompositeCommand{\Psili}{LGR}{\Perispomeni}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\>}{LGR}{~}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\>}{LGR}{\~}{\PsiliPerispomeni} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\Tonos}{\DasiaOxia} +\DeclareTextCompositeCommand{\<}{LGR}{'}{\DasiaOxia} +\DeclareTextCompositeCommand{\<}{LGR}{\'}{\DasiaOxia} +\DeclareTextCompositeCommand{\Dasia}{LGR}{\Varia}{\DasiaVaria} +\DeclareTextCompositeCommand{\<}{LGR}{`}{\DasiaVaria} +\DeclareTextCompositeCommand{\<}{LGR}{\`}{\DasiaVaria} +\DeclareTextCompositeCommand{\Dasia}{LGR}{\Perispomeni}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\<}{LGR}{~}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\<}{LGR}{\~}{\DasiaPerispomeni} +</pre> +<p>Pre-composed letters with diacritics +(from <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a> with changed names of the composite accents):</p> +<pre class="literal-block">\DeclareTextComposite{\Varia}{LGR}{a}{128} +\DeclareTextComposite{\Dasia}{LGR}{a}{129} +\DeclareTextComposite{\Psili}{LGR}{a}{130} +\DeclareTextComposite{\DasiaVaria}{LGR}{a}{131} +\DeclareTextComposite{\Tonos}{LGR}{a}{136} +\DeclareTextComposite{\DasiaOxia}{LGR}{a}{137} +\DeclareTextComposite{\PsiliOxia}{LGR}{a}{138} +\DeclareTextComposite{\PsiliVaria}{LGR}{a}{139} +\DeclareTextComposite{\Perispomeni}{LGR}{a}{144} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{a}{145} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{a}{146} +\DeclareTextComposite{\Varia}{LGR}{h}{152} +\DeclareTextComposite{\Dasia}{LGR}{h}{153} +\DeclareTextComposite{\Psili}{LGR}{h}{154} +\DeclareTextComposite{\Tonos}{LGR}{h}{160} +\DeclareTextComposite{\DasiaOxia}{LGR}{h}{161} +\DeclareTextComposite{\PsiliOxia}{LGR}{h}{162} +\DeclareTextComposite{\DasiaVaria}{LGR}{h}{163} +\DeclareTextComposite{\Perispomeni}{LGR}{h}{168} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{h}{169} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{h}{170} +\DeclareTextComposite{\PsiliVaria}{LGR}{h}{171} +\DeclareTextComposite{\Varia}{LGR}{w}{176} +\DeclareTextComposite{\Dasia}{LGR}{w}{177} +\DeclareTextComposite{\Psili}{LGR}{w}{178} +\DeclareTextComposite{\DasiaVaria}{LGR}{w}{179} +\DeclareTextComposite{\Tonos}{LGR}{w}{184} +\DeclareTextComposite{\DasiaOxia}{LGR}{w}{185} +\DeclareTextComposite{\PsiliOxia}{LGR}{w}{186} +\DeclareTextComposite{\PsiliVaria}{LGR}{w}{187} +\DeclareTextComposite{\Perispomeni}{LGR}{w}{192} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{w}{193} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{w}{194} +\DeclareTextComposite{\Varia}{LGR}{i}{200} +\DeclareTextComposite{\Dasia}{LGR}{i}{201} +\DeclareTextComposite{\Psili}{LGR}{i}{202} +\DeclareTextComposite{\DasiaVaria}{LGR}{i}{203} +\DeclareTextComposite{\Tonos}{LGR}{i}{208} +\DeclareTextComposite{\DasiaOxia}{LGR}{i}{209} +\DeclareTextComposite{\PsiliOxia}{LGR}{i}{210} +\DeclareTextComposite{\PsiliVaria}{LGR}{i}{211} +\DeclareTextComposite{\Perispomeni}{LGR}{i}{216} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{i}{217} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{i}{218} +\DeclareTextComposite{\Dialytika}{LGR}{i}{240} +\DeclareTextComposite{\DialytikaVaria}{LGR}{i}{241} +\DeclareTextComposite{\DialytikaTonos}{LGR}{i}{242} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{i}{243} +\DeclareTextComposite{\Varia}{LGR}{u}{204} +\DeclareTextComposite{\Dasia}{LGR}{u}{205} +\DeclareTextComposite{\Psili}{LGR}{u}{206} +\DeclareTextComposite{\DasiaVaria}{LGR}{u}{207} +\DeclareTextComposite{\Tonos}{LGR}{u}{212} +\DeclareTextComposite{\DasiaOxia}{LGR}{u}{213} +\DeclareTextComposite{\PsiliOxia}{LGR}{u}{214} +\DeclareTextComposite{\PsiliVaria}{LGR}{u}{215} +\DeclareTextComposite{\Perispomeni}{LGR}{u}{220} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{u}{221} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{u}{222} +\DeclareTextComposite{\Dialytika}{LGR}{u}{244} +\DeclareTextComposite{\DialytikaVaria}{LGR}{u}{245} +\DeclareTextComposite{\DialytikaTonos}{LGR}{u}{246} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{u}{247} +\DeclareTextComposite{\Varia}{LGR}{e}{224} +\DeclareTextComposite{\Dasia}{LGR}{e}{225} +\DeclareTextComposite{\Psili}{LGR}{e}{226} +\DeclareTextComposite{\DasiaVaria}{LGR}{e}{227} +\DeclareTextComposite{\Tonos}{LGR}{e}{232} +\DeclareTextComposite{\DasiaOxia}{LGR}{e}{233} +\DeclareTextComposite{\PsiliOxia}{LGR}{e}{234} +\DeclareTextComposite{\PsiliVaria}{LGR}{e}{235} +\DeclareTextComposite{\Varia}{LGR}{o}{228} +\DeclareTextComposite{\Dasia}{LGR}{o}{229} +\DeclareTextComposite{\Psili}{LGR}{o}{230} +\DeclareTextComposite{\DasiaVaria}{LGR}{o}{231} +\DeclareTextComposite{\Tonos}{LGR}{o}{236} +\DeclareTextComposite{\DasiaOxia}{LGR}{o}{237} +\DeclareTextComposite{\PsiliOxia}{LGR}{o}{238} +\DeclareTextComposite{\PsiliVaria}{LGR}{o}{239} +\DeclareTextComposite{\Dasia}{LGR}{r}{251} +\DeclareTextComposite{\Psili}{LGR}{r}{252} +</pre> +<p>Do the same for the <tt class="literal">\text*</tt> macros:</p> +<pre class="literal-block">\DeclareTextComposite{\Varia}{LGR}{\textalpha}{128} +\DeclareTextComposite{\Dasia}{LGR}{\textalpha}{129} +\DeclareTextComposite{\Psili}{LGR}{\textalpha}{130} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textalpha}{131} +\DeclareTextComposite{\Tonos}{LGR}{\textalpha}{136} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textalpha}{137} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textalpha}{138} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textalpha}{139} +\DeclareTextComposite{\Perispomeni}{LGR}{\textalpha}{144} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textalpha}{145} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textalpha}{146} +\DeclareTextComposite{\Varia}{LGR}{\texteta}{152} +\DeclareTextComposite{\Dasia}{LGR}{\texteta}{153} +\DeclareTextComposite{\Psili}{LGR}{\texteta}{154} +\DeclareTextComposite{\Tonos}{LGR}{\texteta}{160} +\DeclareTextComposite{\DasiaOxia}{LGR}{\texteta}{161} +\DeclareTextComposite{\PsiliOxia}{LGR}{\texteta}{162} +\DeclareTextComposite{\DasiaVaria}{LGR}{\texteta}{163} +\DeclareTextComposite{\Perispomeni}{LGR}{\texteta}{168} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\texteta}{169} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\texteta}{170} +\DeclareTextComposite{\PsiliVaria}{LGR}{\texteta}{171} +\DeclareTextComposite{\Varia}{LGR}{\textomega}{176} +\DeclareTextComposite{\Dasia}{LGR}{\textomega}{177} +\DeclareTextComposite{\Psili}{LGR}{\textomega}{178} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textomega}{179} +\DeclareTextComposite{\Tonos}{LGR}{\textomega}{184} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textomega}{185} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textomega}{186} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textomega}{187} +\DeclareTextComposite{\Perispomeni}{LGR}{\textomega}{192} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textomega}{193} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textomega}{194} +\DeclareTextComposite{\Varia}{LGR}{\textiota}{200} +\DeclareTextComposite{\Dasia}{LGR}{\textiota}{201} +\DeclareTextComposite{\Psili}{LGR}{\textiota}{202} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textiota}{203} +\DeclareTextComposite{\Tonos}{LGR}{\textiota}{208} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textiota}{209} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textiota}{210} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textiota}{211} +\DeclareTextComposite{\Perispomeni}{LGR}{\textiota}{216} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textiota}{217} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textiota}{218} +\DeclareTextComposite{\Dialytika}{LGR}{\textiota}{240} +\DeclareTextComposite{\DialytikaVaria}{LGR}{\textiota}{241} +\DeclareTextComposite{\DialytikaTonos}{LGR}{\textiota}{242} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{\textiota}{243} +\DeclareTextComposite{\Varia}{LGR}{\textupsilon}{204} +\DeclareTextComposite{\Dasia}{LGR}{\textupsilon}{205} +\DeclareTextComposite{\Psili}{LGR}{\textupsilon}{206} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textupsilon}{207} +\DeclareTextComposite{\Tonos}{LGR}{\textupsilon}{212} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textupsilon}{213} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textupsilon}{214} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textupsilon}{215} +\DeclareTextComposite{\Perispomeni}{LGR}{\textupsilon}{220} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textupsilon}{221} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textupsilon}{222} +\DeclareTextComposite{\Dialytika}{LGR}{\textupsilon}{244} +\DeclareTextComposite{\DialytikaVaria}{LGR}{\textupsilon}{245} +\DeclareTextComposite{\DialytikaTonos}{LGR}{\textupsilon}{246} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{\textupsilon}{247} +\DeclareTextComposite{\Varia}{LGR}{\textepsilon}{224} +\DeclareTextComposite{\Dasia}{LGR}{\textepsilon}{225} +\DeclareTextComposite{\Psili}{LGR}{\textepsilon}{226} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textepsilon}{227} +\DeclareTextComposite{\Tonos}{LGR}{\textepsilon}{232} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textepsilon}{233} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textepsilon}{234} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textepsilon}{235} +\DeclareTextComposite{\Varia}{LGR}{\textomicron}{228} +\DeclareTextComposite{\Dasia}{LGR}{\textomicron}{229} +\DeclareTextComposite{\Psili}{LGR}{\textomicron}{230} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textomicron}{231} +\DeclareTextComposite{\Tonos}{LGR}{\textomicron}{236} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textomicron}{237} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textomicron}{238} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textomicron}{239} +\DeclareTextComposite{\Dasia}{LGR}{r}{251} +\DeclareTextComposite{\Psili}{LGR}{r}{252} +</pre> +</div> +</div> +<div class="section" id="capital-letters"> +<h2><a class="toc-backref" href="#id15">Capital letters</a></h2> +<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> +</blockquote> +<div class="section" id="title-case"> +<h3><a class="toc-backref" href="#id16">Title Case</a></h3> +<p>Place diacritics before instead of above:</p> +<pre class="literal-block">\DeclareTextCompositeCommand{\Dasia}{LGR}{A}{<A} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{A}{<`A} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{A}{<'A} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{A}{<\char126A} +\DeclareTextCompositeCommand{\Psili}{LGR}{A}{>A} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{A}{>`A} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{A}{>'A} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{A}{>\char126A} +\DeclareTextCompositeCommand{\Tonos}{LGR}{A}{'A} +\DeclareTextCompositeCommand{\Varia}{LGR}{A}{`A} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{E}{<E} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{E}{<'E} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{E}{<`E} +\DeclareTextCompositeCommand{\Psili}{LGR}{E}{>E} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{E}{>'E} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{E}{>`E} +\DeclareTextCompositeCommand{\Tonos}{LGR}{E}{'E} +\DeclareTextCompositeCommand{\Varia}{LGR}{E}{`E} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{H}{<H} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{H}{<`H} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{H}{<'H} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{H}{<\char126H} +\DeclareTextCompositeCommand{\Psili}{LGR}{H}{>H} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{H}{>`H} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{H}{>'H} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{H}{>\char126H} +\DeclareTextCompositeCommand{\Tonos}{LGR}{H}{'H} +\DeclareTextCompositeCommand{\Varia}{LGR}{H}{`H} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{I}{<I} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{I}{<`I} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{I}{<'I} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{I}{<\char126I} +\DeclareTextCompositeCommand{\Psili}{LGR}{I}{>I} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{I}{>`I} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{I}{>'I} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{I}{>\char126I} +\DeclareTextCompositeCommand{\Tonos}{LGR}{I}{'I} +\DeclareTextCompositeCommand{\Varia}{LGR}{I}{`I} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{O}{<O} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{O}{<`O} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{O}{<'O} +\DeclareTextCompositeCommand{\Psili}{LGR}{O}{>O} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{O}{>`O} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{O}{>'O} +\DeclareTextCompositeCommand{\Tonos}{LGR}{O}{'O} +\DeclareTextCompositeCommand{\Varia}{LGR}{O}{`O} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{U}{<U} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{U}{<`U} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{U}{<'U} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{U}{<\char126U} +\DeclareTextCompositeCommand{\Tonos}{LGR}{U}{'U} +\DeclareTextCompositeCommand{\Varia}{LGR}{U}{`U} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{W}{<W} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{W}{<`W} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{W}{<'W} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{W}{<\char126W} +\DeclareTextCompositeCommand{\Psili}{LGR}{W}{>W} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{W}{>`W} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{W}{>'W} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{W}{>\char126W} +\DeclareTextCompositeCommand{\Tonos}{LGR}{W}{'W} +\DeclareTextCompositeCommand{\Varia}{LGR}{W}{`W} +</pre> +<p>Except for the dialytika:</p> +<pre class="literal-block">\DeclareTextComposite{\Dialytika}{LGR}{I}{219} +\DeclareTextComposite{\Dialytika}{LGR}{U}{223} +</pre> +<p>Do the same for the <tt class="literal">\text*</tt> macros:</p> +<pre class="literal-block">\DeclareTextCompositeCommand{\Dasia}{LGR}{\textAlpha}{<A} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textAlpha}{<`A} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textAlpha}{<'A} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textAlpha}{<\char126A} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textAlpha}{>A} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textAlpha}{>`A} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textAlpha}{>'A} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textAlpha}{>\char126A} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textAlpha}{'A} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textAlpha}{`A} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textEpsilon}{<E} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textEpsilon}{<'E} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textEpsilon}{<`E} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textEpsilon}{>E} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textEpsilon}{>'E} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textEpsilon}{>`E} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textEpsilon}{'E} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textEpsilon}{`E} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textEta}{<H} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textEta}{<`H} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textEta}{<'H} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textEta}{<\char126H} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textEta}{>H} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textEta}{>`H} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textEta}{>'H} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textEta}{>\char126H} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textEta}{'H} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textEta}{`H} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textIota}{<I} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textIota}{<`I} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textIota}{<'I} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textIota}{<\char126I} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textIota}{>I} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textIota}{>`I} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textIota}{>'I} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textIota}{>\char126I} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textIota}{'I} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textIota}{`I} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textOmicron}{<O} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textOmicron}{<`O} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textOmicron}{<'O} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textOmicron}{>O} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textOmicron}{>`O} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textOmicron}{>'O} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textOmicron}{'O} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textOmicron}{`O} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textUpsilon}{<U} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textUpsilon}{<`U} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textUpsilon}{<'U} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textUpsilon}{<\char126U} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textUpsilon}{'U} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textUpsilon}{`U} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textOmega}{<W} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textOmega}{<`W} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textOmega}{<'W} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textOmega}{<\char126W} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textOmega}{>W} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textOmega}{>`W} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textOmega}{>'W} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textOmega}{>\char126W} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textOmega}{'W} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textOmega}{`W} +</pre> +<p>Except for the dialytika:</p> +<pre class="literal-block">\DeclareTextComposite{\Dialytika}{LGR}{\textIota}{219} +\DeclareTextComposite{\Dialytika}{LGR}{\textUpsilon}{223} +</pre> +</div> +</div> +<div class="section" id="uppercase"> +<h2><a class="toc-backref" href="#id17">UPPERCASE</a></h2> +<div class="section" id="uclclist-extension"> +<h3><a class="toc-backref" href="#id18">@uclclist extension</a></h3> +<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 +diacritics (except dialytika).</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 <tt class="literal">fontenc.sty</tt>. +(The first two lines are TeX' way of writing <tt class="literal">uclclist += …</tt>):</p> +<pre class="literal-block">\expandafter\def\expandafter\@uclclist\expandafter{% + \@uclclist + \Dasia\do@nothing + \DasiaOxia\@hiatus + \DasiaVaria\do@nothing + \DasiaPerispomeni\do@nothing + \Psili\@hiatus + \PsiliOxia\@hiatus + \PsiliVaria\@hiatus + \PsiliPerispomeni\do@nothing + \Tonos\@hiatus + \Varia\do@nothing + \DialytikaTonos\up@Dialytika + \DialytikaVaria\up@Dialytika + \DialytikaPerispomeni\up@Dialytika + \Perispomeni\do@nothing + \Ypogegrammeni\Prosgegrammeni + % + \textalpha \textAlpha + \textbeta \textBeta + \textgamma \textGamma + \textdelta \textDelta + \textepsilon\textEpsilon + \textzeta \textZeta + \texteta \textEta + \texttheta \textTheta + \textiota \textIota + \textkappa \textKappa + \textlambda \textLambda + \textmu \textMu + \textnu \textNu + \textxi \textXi + \textomicron\textOmicron + \textpi \textPi + \textrho \textRho + \textvarsigma \textSigma + \textsigma \textSigma + \textautosigma \textSigma + \texttau \textTau + \textupsilon\textUpsilon + \textphi \textPhi + \textchi \textChi + \textpsi \textPsi + \textomega \textOmega + % + \qoppa \Qoppa + \varstigma \Stigma + \stigma \Stigma + \sampi \Sampi + \ddigamma \Digamma +} +</pre> +</div> +<div class="section" id="substitution-macros"> +<h3><a class="toc-backref" href="#id19">Substitution macros</a></h3> +<div class="section" id="drop-diacritics"> +<h4><a class="toc-backref" href="#id20">Drop diacritics</a></h4> +<pre class="literal-block">\DeclareTextCommand{\do@nothing}{LGR}[1]{#1} +</pre> +<p>(The argument processing ensures that kerning is preserved)</p> +</div> +<div class="section" id="keep-dialytika"> +<h4><a class="toc-backref" href="#id21">Keep dialytika.</a></h4> +<p>Define an alias so that downcasing with <tt class="literal">\MakeLowercase</tt> does not +convert a simple dialytika to a composite accent:</p> +<pre class="literal-block">\DeclareTextCommand{\up@Dialytika}{LGR}{\Dialytika} +</pre> +</div> +<div class="section" id="mark-hiatus"> +<h4><a class="toc-backref" href="#id22">Mark hiatus</a></h4> +<p>Tonos and dasia mark a hiatus if placed on the first vowel of a +diphthong (ΑΙ, ΑΥ, ΕΙ). A dialytika must be placed on the second vowel +if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ, ἀυπνία +→ ΑΫΠΝΙΑ):</p> +<pre class="literal-block">\DeclareTextCommand{\@hiatus}{LGR}[1]{#1} +\DeclareTextCompositeCommand{\@hiatus}{LGR}{A}{\A@hiatus} +\DeclareTextCompositeCommand{\@hiatus}{LGR}{E}{\E@hiatus} +</pre> +<p>Look ahead and place a diaeresis on Ι or Υ:</p> +<pre class="literal-block">\DeclareTextCommand{\A@hiatus}{LGR}{% + \LGR@ifnextchar{I}{A\"}{% + \LGR@ifnextchar{U}{A\"}{A}% + }% +} +\DeclareTextCommand{\E@hiatus}{LGR}{% + \LGR@ifnextchar{I}{E\"}{% + \LGR@ifnextchar{U}{E\"}{E}% + }% +} +</pre> +<p>As <tt class="literal">\@ifnextchar</tt> gobbles spaces the lookahead macro definition from +<tt class="literal">amsgen.sty</tt> is used:</p> +<blockquote> +<p>This macro is a new version of LaTeX’s <tt class="literal">\@ifnextchar</tt>, macro +that does not skip over spaces.</p> +</blockquote> +<pre class="literal-block">\ProvideTextCommand{\LGR@ifnextchar}{LGR}[3]{% +% \long\def\LGR@ifnextchar#1#2#3{% + \let\reserved@d= #1% + \def\reserved@a{#2}\def\reserved@b{#3}% + \futurelet\@let@token\LGR@ifnch +} +\ProvideTextCommand{\LGR@ifnch}{LGR}{% + \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi + \reserved@b +} +</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="literal-block">%\DeclareTextCommand{\A@hiatus}{LGR}{A} +%\DeclareTextCommand{\E@hiatus}{LGR}{E} + +%\DeclareTextCompositeCommand{\A@hiatus}{LGR}{}{A} +%\DeclareTextCompositeCommand{\A@hiatus}{LGR}{I}{A\"I} +%\DeclareTextCompositeCommand{\A@hiatus}{LGR}{U}{A\"U} +</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="literal-block">%\DeclareTextComposite{\@hiatus}{LGR}{A}{12} +</pre> +<p>No such glyph exists for E but this is no problem as E does +not require kerning anyway.</p> +</li> +</ul> +<!-- References +- - - - - - - - - - --> +</div> +</div> +</div> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc.pdf b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.pdf Binary files differnew file mode 100644 index 00000000000..71e0068b136 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.pdf diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc.tex b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.tex new file mode 100644 index 00000000000..cdb9f340058 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.tex @@ -0,0 +1,176 @@ +% Test definitions for accents and composite accents in Greek +\documentclass[british,greek,a4paper]{article} +\pagestyle{empty} +\enlargethispage{4ex} +\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader + +\usepackage% +{lmodern} +% {gfsartemisia} +% {gfsbaskerville} +% [default]{gfsbodoni} +% \usepackage[default]{gfscomplutum} +% {gfsdidot} +% [default]{gfsneohellenic} +% {lmodern} \usepackage{gfsporson} \renewcommand*\rmdefault{porson} +% [default]{gfssolomos} +% {kerkis} +% {teubner} +\renewcommand{\ttdefault}{txtt} + +% Load the extended font encoding definitions (after font package) +\usepackage[LGRx,T1]{fontenc} + +\usepackage{listings} +\lstset{basicstyle=\ttfamily} + +% Babel package:: + +\usepackage{babel} +% revert the polutonikogreek definition of \~: +\addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}} +\addto\extrasgreek{\renewcommand*{\~}{\a~}} + +% "Lipsiakos" italic font `cbleipzig`: +\newcommand*{\lishape}{\fontencoding{LGR}\fontfamily{cmr}% + \fontshape{li}\selectfont} +\DeclareTextFontCommand{\textli}{\lishape} + + +\begin{document} + +\selectlanguage{british} + +\section*{Greek diacritics with standard accent macros} + +% The greek diacritics are +% +% dase\~ia +% yil\'h +% t\'onos +% bare\~ia +% perispwm\'enh +% dialutika + +\texttt{lgrxenc.def} is a comprehensive font encoding definition file. +Diacritics can be input using an extension of the standard macro +commands. Composite diacritics are input as +backslash followed by the LGR transliteration.% +\footnote{This makes it easy to follow the advise in + \emph{teubner-doc}: ``typeset your paper with the regular + accent vowel ligatures and [{\ldots}] substitute them in the + final revision with the accented vowel macros only in those + instances where the lack of kerning is disturbing''.} + +The example in greek-usage.pdf: +% +\begin{quote} \selectlanguage{greek} + T\'i f\'hic? \<Id\`wn \>enj\'ede pa\~id'' + \>eleuj\'eran t\`ac plhs\'ion N\'umfac stefano\~usan, + S\'wstrate, \>er\~wn \'ap\~hljec e\>uj\'uc? +\end{quote} +is input as +\begin{lstlisting} + T\'i f\'hic? \<Id\`wn \>enj\'ede pa\~id'' + \>eleuj\'eran t\`ac plhs\'ion N\'umfac stefano\~usan, + S\'wstrate, \>er\~wn \'ap\~hljec e\>uj\'uc? +\end{lstlisting} +% +Improvements: +% +\begin{itemize} + +\item Accents can be placed on any character:% + \footnote{Babel's \emph{polutonikogreek} option re-defines + \textbackslash\textasciitilde (even for + Latin with \textbackslash textlatin). + This document reverts the babel definition in the preamble + to make the tilde/perispomeni-accent work as usual in both, + English (\textgreek{ni\~n\~o} ni\~n\~o) and Greek + (\foreignlanguage{greek}{ni\~n\~o \textlatin{ni\~n\~o}}). } + \textgreek{\"k \`l \'m \~<n \<o \>'p \>9 \`\>-} + +\item Kerning is preserved + \selectlanguage{greek} + \begin{tabular}[t]{llll} + & \textlatin{roman} & \textlatin{italic} & \textlatin{cbleipzig} \\ + \foreignlanguage{british}{accent macro:} & + a\>ut'os & \emph{a\>ut\'os} & \textli{a\>ut\'os} \\ + \foreignlanguage{british}{transliteration:} & + a>ut'os & \emph{a>ut'os} & \textli{a>ut'os}\\ + \end{tabular} + \selectlanguage{british} + + Kerning only works with pre-composed glyphs: + \textgreek{A\"UA $\rightarrow$ A\~UA} + (like in any font encoding: AVA $\rightarrow$ A\~VA). + + +\item Following Greek typesetting convention, diacritics (except the + dialytika) are placed to the left of capital letters and and dropped + by \verb|\MakeUppercase|: + + \begin{quote} \selectlanguage{greek} + \'antropos $\mapsto$ \MakeUppercase{\'antropos}, + \>'antropos $\mapsto$ \MakeUppercase{\'>antropos},\\ + Aqill\'eas $\mapsto$ \MakeUppercase{Aqill\'eas}, + \>Aqille\'us $\mapsto$ \MakeUppercase{\>Aqille\'us}. + \end{quote} + + % Greek differs from Latin in that it capitalises letters with + % diacritics differently, depending on whether the entire word is in + % capitals (whereupon diacritics are eliminated), or the initial is + % capitalised only, as in the first word in a sentence or in a title + % (whereupon the diacritics are retained, although they appear to the + % left of the letter rather than above it.) + + The dialytika is printed even in cases where it's not needed + in lowercase: + \begin{quote} \selectlanguage{greek} + \'aulos $\mapsto$ \MakeUppercase{\'aulos}, + \'>aulos $\mapsto$ \MakeUppercase{\'\>aulos}% + \footnote{\selectlanguage{british} Fails if written as + \texttt{\textbackslash >'} in \texttt{polutonikogreek} + (which changes the \texttt{\textbackslash uccode} of + \texttt{\textbackslash >}): + \selectlanguage{greek} \'>aulos $\mapsto$ \MakeUppercase{\>'aulos}} + % from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ + m\'aina $\mapsto$ \MakeUppercase{m\'aina},\\ + % from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema + % κέικ, ἀυπνία/αϋπνία + k\'eik, $\mapsto$ \MakeUppercase{k\'eik}, + \>aupn\'ia $\mapsto$ \MakeUppercase{\>aupn\'ia}. + \end{quote} +\end{itemize} + +\selectlanguage{british} Composite diacritics can be specified as +backslash + LGR transliteration% +\footnote{However, \textbackslash{}MakeUppercase fails, if a + non-escaped tilde character (like in + \texttt{\textbackslash{}>\textasciitilde{}a}) is used in a + document which does not define the \emph{greek} or + \emph{polutonikogreek} language. + } +or combined accent macros, e.\,g. \textgreek{\~>a} can be written as +\begin{quote} + \verb+\~>a+, \verb+\>~a+, + \verb+\~\>{a}+, or \verb+\~\>a+. +\end{quote} +However, braces in composite accents +(\verb+\~{\>a}+, \verb+\~{>a}+, or \verb+\~{\>{a}}+) +lead to errors. + +Accent macros can start with \verb|\a| instead of \verb|\| when the +short form is redefined, e.\,g. inside a \emph{tabbing} environment. +This works also for the new-defined Dasia and Psili shortcuts +(becoming \verb|\a<| and \verb|\a>|): +% +\begin{quote} +\selectlanguage{greek} +\begin{tabbing} +T'i f'hic? \= T\a'i f\a'hic? \\ +<Id`wn \> \a>enj\a'ede pa\a~id +\end{tabbing} +\end{quote} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha-test.pdf b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.pdf Binary files differnew file mode 100644 index 00000000000..070d63aae25 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.pdf diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha-test.tex b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.tex new file mode 100644 index 00000000000..c3a33e248dd --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.tex @@ -0,0 +1,133 @@ +\documentclass{article} +\usepackage{cmap} % fix search and cut-and-paste in PDF +\usepackage{lmodern} +\usepackage{parskip} +\usepackage{textcomp} +\usepackage{textalpha} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} +\hypersetup{unicode=true} +\usepackage{bookmark} + +\newcommand{\LGR}{\fontencoding{LGR}\selectfont} +\newcommand{\Latin}{\fontencoding{T1}\selectfont} + +\providecommand{\greektext}{% + \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}% +} +\providecommand*{\textgreek}[1]{\leavevmode{\greektext #1}} + +\DeclareTextCommand{\TextGreek}{LGR}[1]{#1} +\DeclareTextCommandDefault{\TextGreek}[1]{\textgreek{#1}} + +\pagestyle{empty} +\setcounter{secnumdepth}{0} + +\begin{document} + +\subsection{Greek alphabet} + +Greek letters via Latin transscription in LGR font encoding: + +\LGR +\MakeUppercase{a b g d e z h j i k l m n x o p r s t u f q y w} + +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 + +\Latin +Greek letters via default macros in other font encoding (here T1): + +\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{} + +So you can easily write a single Greek symbol (like \textPsi{} or +\textmu{}) or +\textlambda\textomicron\textgamma\textomicron\textvarsigma{} in +non-Greek text or ISO-conforming formulas with an upright pi symbol +like $A = \mbox{\textpi} r^2$ instead of $A = \pi r^2$. + +However, kerning is broken in other font encodings: compare +\textgreek{AUA} (LGR) to \textAlpha\textUpsilon\textAlpha (T1). +Because of this (and for proper hyphenation), use of babel and correct +language setting is recommended for Greek quotes. + +\subsection{\textlambda\textomicron\textgamma\textomicron\textvarsigma{}, + λογος and \TextGreek{logos}} + +The subsection title above uses: text* macros, Unicode input and the LGR +transcription for the Greek word \TextGreek{logos}. The last variant (Latin +transscription) is written in Latin letters in the PDF bookmark. + +On 2010-11-05, Heiko Oberdiek wrote in comp.text.tex: + +\begin{quote} + \textbackslash pdfstringdef (converting TeX code to PDF strings for + bookmarks) supports NFSS2 and needs active characters. Encoding + stuff based on the internal font machinery of TeX (letters with + catcode 11 or 12, ligatures) does not work, because the strings + don't reach TeX's stomach. +\end{quote} + +\subsection{Diacritics} + +In LGR encoding, shortcuts as well as named macros are set up for use with +the Latin transcription. + +Composition of diacritics (like \verb+\Dasia\Tonos+) fails in other +font encodings. Long names (like \verb+\DasiaOxia+) work, however they +do not select precomposed characters (the difference becomes obvious +if you drag-and-drop text from the PDF version of this document): +% +LGR: \LGR \<'a \Dasia\Tonos a \DasiaOxia a \DasiaOxia\textalpha \Latin \\ +Latin: \DasiaOxia\textalpha + +Diacritics (except the dialytika) should placed +before capital letters and dropped with MakeUppercase: + +\LGR +\<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>{\texteta} +\'<{\textomicron} \~<{\textupsilon} \~>{\textomega} +\\ +\<{\textAlpha} \>{\textEpsilon} \"'{\textIota} \`>{\textEta} +\'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega} +\\ +\MakeUppercase{% + \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>\texteta{} + \'<{\textomicron} \~<{\textupsilon} \~>{\textomega} +} + +\Latin However, in other font encodings, this does not work: + +No kerning: (\textgreek{ΑΥΑ} vs. ΑΥΑ), misplaced multiple (\textgreek{ἅ} vs. +ἅ) or Titlecase accents (\textgreek{Ά Έ Ή Ί} vs. Ά Έ Ή Ί) and errors with +MakeUppercase. + +Therefore, we would need to define macros for all Unicode characters +that we want to access without explicit font-encoding change. + +Alternative: A \verb+\TextGreek+ TextCommandDefault that wraps the argument in +the equivalent of Babel's \verb+\textgreek+ with an LGR TextCommand that +just passes the argument. This is done in the preamble of this document. + +This works with the Babel transscription (\TextGreek{logos}), +keeps kerning (if the kerning pair is inside the argument, +\TextGreek{\textAlpha\textUpsilon\textAlpha}), +and allows iterative accent macros where pre-composed characters are +selected (\TextGreek{\DasiaOxia\textalpha} or +\TextGreek{\Dasia\Tonos\textalpha}). + +TODO: Use this definition for multi-macro definitions in the Unicode +definition file? + +\end{document} diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html new file mode 100644 index 00000000000..12308b76711 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html @@ -0,0 +1,854 @@ +<?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"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.10: http://docutils.sourceforge.net/" /> +<title>Greek symbols in text</title> +<meta name="copyright" content="© 2010 Günter Milde" /> +<style type="text/css"> + +/* +:Author: David Goodger (goodger@python.org) +:Id: $Id: html4css1.css 7056 2011-06-17 10:50:48Z 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 } + +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; +} + +/* Uncomment (and remove this text!) to get bold-faced definition list terms +dl.docutils dt { + font-weight: bold } +*/ + +div.abstract { + margin: 2em 5em } + +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 { + 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 } +*/ + +div.dedication { + margin: 2em 5em ; + text-align: center ; + font-style: italic } + +div.dedication p.topic-title { + font-weight: bold ; + font-style: normal } + +div.figure { + margin-left: 2em ; + margin-right: 2em } + +div.footer, div.header { + clear: both; + font-size: smaller } + +div.line-block { + display: block ; + margin-top: 1em ; + margin-bottom: 1em } + +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 } + +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 } + +/* 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 { + margin-left: 2em ; + margin-right: 2em } + +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 } + +table.docutils th.field-name, table.docinfo th.docinfo-name { + font-weight: bold ; + text-align: left ; + white-space: nowrap ; + padding-left: 0 } + +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 } + +</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 */ +/* ============= */ + +body { + padding: 0 5%; + margin: 8px 0; + 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; + margin: auto; +} + +/* separate items except for compact lists */ +dl > dd { + margin-bottom: 1em; +} +.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; */ +} +dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { + margin-top: 0; + margin-bottom: 0; +/* background: lightgreen; */ +} + +/* space around paragraphs */ +dl > dd p:first-child, td > p { + margin: 0; +} + +/* Sidebar */ +/* ------- */ + +div.sidebar { + margin-right: -5%; +} + +/* Special definition lists */ +/* ======================== */ + +/* 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 { + 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 */ +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 */ + +dl.docinfo > dd { + margin-left: 8em; +/* margin-bottom: 0.5em; */ +} + + +/* option list */ + +dl.option-list { + margin-left: 1em; + padding-left: 0; +} + +dl.option-list > dd { + margin-left: 8em; + /* margin-bottom: 0.5em; */ +} + +/* start description on a new line after long options */ +dl.option-list > dd p { + width: 100%; + display: inline-block; +} + +/* footnotes */ + +a.footnote-reference, a.fn-backref { + text-decoration: inherit; /* do not underline footnote links */ +} + +dl.footnote { + /* line on the left */ + padding-left: 1ex; + border-left: solid; + border-left-width: thin; + /* border-color: black; */ +} + +/* paragraph on same line as backrefs */ +dd > em { +/* background: green; */ + float: left; + margin-right: 1ex +} + + +/* +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 { + counter-reset: item; + list-style-type: none ! important; +} + +/* Set the negative indent of the list label as feature of the list item */ +ol > li { + text-indent: -40px; /* Mozillas default indent */ +} +/* reset for child elements */ +ol > li > * { + text-indent: 0px; + text-indent: 0; + margin-top: 0; + /* background: lightgreen; */ +} + +/* 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; + 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 { + margin-top: 0.5em ; + margin-bottom: 0.5em; +/* 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; +} + +/* "booktabs" style (no vertical lines) */ +table.booktabs { + border: 0; + border-top: 2px solid; + border-bottom: 2px solid; +} + +table.booktabs * { + border: 0; +} +table.booktabs th { + border-bottom: thin solid; +} + +table > caption { + text-align: left; +/* padding: 2em 0 1em 0; */ +} + +/* numbered tables*/ +table.numbered > caption:before { + counter-increment: table; /* defined/re-set in body */ + content: "Table " counter(table) ": "; + font-weight: bold; +} + + +/* literal text + ------------ +*/ +/* whitespace and wrapping in inline literals */ +/* possible values: normal, nowrap, pre, pre-wrap, pre-line */ +tt.literal { + white-space: pre-wrap; +} + +/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ +/* pre.literal-block, pre.doctest-block { */ +/* margin-top: 0em ; */ +/* } */ + +/* Table of Contents */ + +/* don't indent like a topic */ +div.topic.contents { + margin: 0; +} +/* div.topic.contents ul { */ +/* list-style: none; */ +/* } */ + +div.topic.contents a { + text-decoration: none; /* no underline for links */ +} + +/* section numbers */ + +span.sectnum { + padding-right: 1ex; +} + +/* admonitions */ + +/* 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 } + +</style> +</head> +<body> +<div class="document" id="greek-symbols-in-text"> +<h1 class="title">Greek symbols in text</h1> + +<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 +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> +</dd> +<dt>Identification</dt> +<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{textalpha} +[2010/08/04 v0.1 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 letters +outside math.</p> +</div> +<dl class="docutils"> +<dt>Changelog:</dt> +<dd><table class="borderless"> +<colgroup> +<col width="14%" /> +<col width="7%" /> +<col width="79%" /> +</colgroup> +<tbody valign="top"> +<tr><td><p>2010-06-16</p></td> +<td><p>0.1</p></td> +<td><p>initial version</p></td> +</tr> +</tbody> +</table> +</dd> +</dl> +<div class="section" id="motivation"> +<h1>Motivation</h1> +<p>By default, the <tt class="literal">\alpha</tt> -- <tt class="literal">\Omega</tt> macros for Greek letters</p> +<ul class="simple"> +<li><p>are only valid in mathematical mode</p></li> +<li><p>do not change shape (default shape is italic)</p></li> +</ul> +<p>In Greek text fonts with the LGR font encoding, letters are +accessible by a Latin transcription.</p> +<p>This package provides a set of macros that can be used to access Greek +symbols from a font in LGR encoding (e.g. the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a>) without the +need for an explicite font-encoding switch.</p> +<p>The macro names follow the established scheme to prepend <tt class="literal">\text*</tt> to +the Adobe glyph name (if it exists) or the corresponding math-macro, so +<tt class="literal">\textalpha</tt> -- <tt class="literal">\textOmega</tt> prints α – Ω.</p> +<ul class="simple"> +<li><p>In combination with the <tt class="literal">\text</tt> macro from amsmath, this can be +used to get matching upright and bold upright Greek symbols in math +as well.</p></li> +<li><p>In combination with <tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> and the +accompanying <tt class="literal">lgrenc.dfu</tt> file, Unicode input of Greek characters +is supported.</p></li> +</ul> +<p>This is done using NFSS default definitions as explained in the +<a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a> (section 5.3).</p> +<dl class="docutils"> +<dt>Attention</dt> +<dd><p>While the macros work reasonably well for single letters, the +automatic font-encoding switches behind the doors destroy the +kerning between the letters.</p> +<p>Text composites (replacement of accent+character with a pre-composed +character) work in LGR, but not in other encodings (due to the +forth-and-back font encoding switch).</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>, +setting the language to either <tt class="literal">greek</tt> or <tt class="literal">polutonikogreek</tt>.</p> +</dd> +</dl> +</div> +<div class="section" id="implementation"> +<h1>Implementation</h1> +<p>This package requires the extended font encoding definitions:</p> +<pre class="literal-block">\input{lgrxenc.def} +</pre> +<div class="section" id="greek-alphabet"> +<h2>Greek Alphabet</h2> +<p>Define the <tt class="literal">text*</tt> marcos as default for all font encodings:</p> +<pre class="literal-block">\DeclareTextSymbolDefault{\textAlpha}{LGR} +\DeclareTextSymbolDefault{\textBeta}{LGR} +\DeclareTextSymbolDefault{\textGamma}{LGR} +\DeclareTextSymbolDefault{\textDelta}{LGR} +\DeclareTextSymbolDefault{\textEpsilon}{LGR} +\DeclareTextSymbolDefault{\textZeta}{LGR} +\DeclareTextSymbolDefault{\textEta}{LGR} +\DeclareTextSymbolDefault{\textTheta}{LGR} +\DeclareTextSymbolDefault{\textIota}{LGR} +\DeclareTextSymbolDefault{\textKappa}{LGR} +\DeclareTextSymbolDefault{\textLambda}{LGR} +\DeclareTextSymbolDefault{\textMu}{LGR} +\DeclareTextSymbolDefault{\textNu}{LGR} +\DeclareTextSymbolDefault{\textXi}{LGR} +\DeclareTextSymbolDefault{\textOmicron}{LGR} +\DeclareTextSymbolDefault{\textPi}{LGR} +\DeclareTextSymbolDefault{\textRho}{LGR} +\DeclareTextSymbolDefault{\textSigma}{LGR} +\DeclareTextSymbolDefault{\textTau}{LGR} +\DeclareTextSymbolDefault{\textUpsilon}{LGR} +\DeclareTextSymbolDefault{\textPhi}{LGR} +\DeclareTextSymbolDefault{\textChi}{LGR} +\DeclareTextSymbolDefault{\textPsi}{LGR} +\DeclareTextSymbolDefault{\textOmega}{LGR} +% +\DeclareTextSymbolDefault{\textalpha}{LGR} +\DeclareTextSymbolDefault{\textbeta}{LGR} +\DeclareTextSymbolDefault{\textgamma}{LGR} +\DeclareTextSymbolDefault{\textdelta}{LGR} +\DeclareTextSymbolDefault{\textepsilon}{LGR} +\DeclareTextSymbolDefault{\textzeta}{LGR} +\DeclareTextSymbolDefault{\texteta}{LGR} +\DeclareTextSymbolDefault{\texttheta}{LGR} +\DeclareTextSymbolDefault{\textiota}{LGR} +\DeclareTextSymbolDefault{\textkappa}{LGR} +\DeclareTextSymbolDefault{\textlambda}{LGR} +\DeclareTextSymbolDefault{\textmu}{LGR} +\DeclareTextSymbolDefault{\textnu}{LGR} +\DeclareTextSymbolDefault{\textxi}{LGR} +\DeclareTextSymbolDefault{\textomicron}{LGR} +\DeclareTextSymbolDefault{\textpi}{LGR} +\DeclareTextSymbolDefault{\textrho}{LGR} +\DeclareTextSymbolDefault{\textsigma}{LGR} +\DeclareTextSymbolDefault{\textvarsigma}{LGR} +\DeclareTextSymbolDefault{\texttau}{LGR} +\DeclareTextSymbolDefault{\textupsilon}{LGR} +\DeclareTextSymbolDefault{\textphi}{LGR} +\DeclareTextSymbolDefault{\textchi}{LGR} +\DeclareTextSymbolDefault{\textpsi}{LGR} +\DeclareTextSymbolDefault{\textomega}{LGR} +</pre> +</div> +<div class="section" id="diacritics"> +<h2>Diacritics</h2> +<p>Diacritics are defined via "named" macros in <tt class="literal">lgrxenc.def</tt>. Make them +default in any encoding:</p> +<pre class="literal-block">\DeclareTextAccentDefault{\Dasia}{LGR} +\DeclareTextAccentDefault{\Psili}{LGR} +\DeclareTextAccentDefault{\Tonos}{LGR} +\DeclareTextAccentDefault{\Varia}{LGR} +\DeclareTextAccentDefault{\Perispomeni}{LGR} +\DeclareTextAccentDefault{\Dialytika}{LGR} +\DeclareTextAccentDefault{\<}{LGR} +\DeclareTextAccentDefault{\>}{LGR} +% +\DeclareTextAccentDefault{\DasiaOxia}{LGR} +\DeclareTextAccentDefault{\DasiaVaria}{LGR} +\DeclareTextAccentDefault{\DasiaPerispomeni}{LGR} +\DeclareTextAccentDefault{\PsiliOxia}{LGR} +\DeclareTextAccentDefault{\PsiliVaria}{LGR} +\DeclareTextAccentDefault{\PsiliPerispomeni}{LGR} +\DeclareTextAccentDefault{\DialytikaTonos}{LGR} +\DeclareTextAccentDefault{\DialytikaVaria}{LGR} +\DeclareTextAccentDefault{\DialytikaPerispomeni}{LGR} +</pre> +<!-- References +- - - - - - - - - - --> +</div> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/tex/latex/lgrx/lgrxenc.def b/Master/texmf-dist/tex/latex/lgrx/lgrxenc.def new file mode 100644 index 00000000000..a847402f8a8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lgrx/lgrxenc.def @@ -0,0 +1,1021 @@ +% lgrxenc.def +% *********** +% comprehensive LGR Greek font encoding definitions +% ================================================= +% +% :Copyright: © 2010 Günter Milde +% :Licence: This work may be distributed and/or modified under the +% conditions of the `LaTeX Project Public License`_, either +% version 1.3 of this license or any later version. +% +% :Abstract: The LGR font encoding is the de-facto standard for Greek +% typesetting with LaTeX. However, the encoding definition +% file that ships with babel misses many of the definitions +% common since the advent of the NFSS (see fntguide_ "Encodings"). +% +% This file provides a comprehensive set of macros to +% typeset Greek with LGR encoded fonts. It works for both, +% monotonic and polytonic Greek, independent of the `babel` +% package. +% +% .. contents:: +% +% +% Changelog +% --------- +% +% ===== ============ =================================================== +% 0.1 2010-03-31 initial attempt +% 0.2 2010-04-20 diacritics dropped in UPPERCASE +% 0.3 2010-06-08 handle Titlecase and UPPERCASE extending +% ``\@uclclist`` +% 0.3.1 2010-06-10 code cleanup: replace dummy accent hack +% with TextCommand +% 0.4 2010-06-15 more text symbols +% 0.4.1 2010-08-06 prevent multiple evaluation +% 0.5 2010-08-27 support ``\textalpha`` ... ``\textOmega`` +% 0.5.1 2012-05-08 upload to CTAN +% ===== ============ =================================================== +% +% Usage +% ----- +% +% To prevent confusion with Babel_'s rudimentary ``lgrenc.def``, this file +% is named ``lgrxenc.def``. Load it by calling fontenc_ with the ``LGRx`` +% option. +% +% Example: +% Select font encodings `T1` (as default) and `LGR` (with the comprehensive +% font encoding definitions) +% +% ``\usepackage[LGRx,T1]{fontenc}`` +% +% .. Attention:: The name of the font encoding defined by the option ``LGRx`` +% is **not** `LGRx` but `LGR`. Therefore, ``LGRx`` may not be the +% last option (as fontenc uses the last option to select the default font +% encoding). To set `LGR` as as default font encoding specify both, +% `LGRx` and `LGR`, e.g. +% +% ``\usepackage[LGRx,T1,LGR]{fontenc}`` +% +% +% Macro names +% ----------- +% +% The fntguide_ (section 6.4 Naming conventions) recommends: +% +% Where possible, text symbols should be named as ``\text`` followed +% by the Adobe glyph name: for example ``\textonequarter`` or +% ``\textsterling``. Similarly, math symbols should be named as +% ``\math`` followed by the glyph name, for example +% ``\mathonequarter`` or ``\mathsterling``. +% +% Open questions: +% +% * Can we omit the ``text`` prefix for macros that are already +% established in short form (e.g. via babel's ``greek.ldf``) and do +% not have a math counterpart? +% +% Pro: +% + Simpler. +% +% + Ease of use (less typing, better readability of source text). +% +% + Backwards compatible (many established macro names). +% +% + There are examples of encoding-specific macros +% without the ``text``-prefix, especially for letters: +% +% * ``\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`` +% in `T1` and `OT1`, +% * ``\CYR*`` and ``\cyr*`` in `T2*` +% * ``\heb*`` or no prefix in `HE8` +% * short descriptive names in the arabic part of `PU` +% (``puarenc.def``) (but e.g. ``\textkoppagreek`` in +% ``puenc.def``) +% +% + ``text`` prefix does **not** mark a macro as +% +% * encoding-specific +% * inserting a glyph +% +% as there are e.g. font-changing macros (``\textbf``, ``\textit``) +% and encoding-changing macros (``\textgreek``, ``\textcyr``). +% +% +% Contra: +% - Less consistent. +% +% - ``text`` prefix marks a macro as confined to text mode +% +% - Short forms can be defined in a package. +% +% * How to name *accent macros* (``\DeclareTextAccent`` definitions)? +% +% - Should ``\texttonos`` be an accent macro or a spacing character? +% +% - How about a common prefix ``\accent...`` or postfix ``\...Accent``? +% +% +% * How about glyph names with numbers and dots? +% +% - Adobe recommends ``uni`` (or ``u``) + Unicode number for all +% Unicode characters without established name. +% +% While it is *possible* to apply this scheme to TeX macros, it is +% hardly advisable: ``\koppa`` is far better readable than +% ``\csname uni03DF\endcsname``. +% +% * If there exists a math-mode macro for a symbol, the corresponding text +% macro should be formed by prepending ``text``. +% +% Example: The glyph name for the final sigma is ``sigma1``, but the +% corresponding math-macro is ``\varsigma``. IMO, the text symbol +% should be available as ``\textvarsigma`` and not +% ``\csname textsigma1\endcsname``. +% +% Could this become a general rule? +% +% Problems: +% * ``\varepsilon`` and ``\varphi`` math macros map to "GREEK SMALL +% LETTER \*", while others map to "GREEK * SYMBOL" Unicode chars. +% +% +% The `Adobe Glyph List For New Fonts`_ has names for many glyphs in the +% `Greek and Coptic` Unicode block, but not for `Greek extended`. +% +% An alternative, more complete set of short mnemonic character names is +% the `XML Entity Definitions for Characters`_ W3C Recommendation from +% 01 April 2010. +% +% For glyph names of the LGR encoding see e.g. ``CB.enc`` by +% Apostolos Syropoulos and ``xl-lgr.enc`` from the `libertine` package. +% ``lgr.cmap`` provides a mapping to Unicode characters. +% +% A full set of ``\text*`` symbol macros is defined in ``ucsencs.def`` +% from the ucs_ package. +% +% Using the names from ``puenc.def`` ensures that the `hyperref` package +% will do the right conversion to a PDF-string +% (see `<greek-part-of-puenc.def>`_). +% +% For accent macros, this file uses Greek names like in Unicode and +% ucsencs.def (without ``text`` prefix). Accent macro names are Capitalized or +% CamelCase, as they are intended for use in packages or classes. For the +% end-user "symbol macros" (``\~ \' \` \" \< \>``) are provided. +% +% +% Implementation +% -------------- +% +% Read this file only once +% ~~~~~~~~~~~~~~~~~~~~~~~~ +% :: + +\@ifundefined{ver@lgrxenc.def} + {\message{setting up comprehensive LGR font encoding definitions.}} + {\message{comprehensive LGR font encoding definitions already loaded} + \expandafter\endinput % "return" + } + +% Announcement +% ~~~~~~~~~~~~ +% +% \ProvidesFile{lgrxenc.def} +% [2010/06/08 v0.5.1 % +% comprehensive LGR Greek Font Encoding definitions] +% +% +% Base setup +% ~~~~~~~~~~ +% +% The base setup is copied from the standard encoding file +% ``lgrenc.def`` that comes with the Babel package:: + +\DeclareFontEncoding{LGR}{}{} +\DeclareFontSubstitution{LGR}{cmr}{m}{n} +\DeclareErrorFont{LGR}{cmr}{m}{n}{10} + +% Text symbols +% ~~~~~~~~~~~~ +% +% Greek Alphabet +% """""""""""""" +% +% All letters are accessible by the Latin transcription. However, as +% they are distinct text symbols, ``\text*`` macros are defined. +% The `textalpha.sty` package makes these macros available in any font +% encoding. :: + +\DeclareTextSymbol{\textAlpha}{LGR}{65} +\DeclareTextSymbol{\textBeta}{LGR}{66} +\DeclareTextSymbol{\textGamma}{LGR}{71} +\DeclareTextSymbol{\textDelta}{LGR}{68} +\DeclareTextSymbol{\textEpsilon}{LGR}{69} +\DeclareTextSymbol{\textZeta}{LGR}{90} +\DeclareTextSymbol{\textEta}{LGR}{72} +\DeclareTextSymbol{\textTheta}{LGR}{74} +\DeclareTextSymbol{\textIota}{LGR}{73} +\DeclareTextSymbol{\textKappa}{LGR}{75} +\DeclareTextSymbol{\textLambda}{LGR}{76} +\DeclareTextSymbol{\textMu}{LGR}{77} +\DeclareTextSymbol{\textNu}{LGR}{78} +\DeclareTextSymbol{\textXi}{LGR}{88} +\DeclareTextSymbol{\textOmicron}{LGR}{79} +\DeclareTextSymbol{\textPi}{LGR}{80} +\DeclareTextSymbol{\textRho}{LGR}{82} +\DeclareTextSymbol{\textSigma}{LGR}{83} +\DeclareTextSymbol{\textTau}{LGR}{84} +\DeclareTextSymbol{\textUpsilon}{LGR}{85} +\DeclareTextSymbol{\textPhi}{LGR}{70} +\DeclareTextSymbol{\textChi}{LGR}{81} +\DeclareTextSymbol{\textPsi}{LGR}{89} +\DeclareTextSymbol{\textOmega}{LGR}{87} +% +\DeclareTextSymbol{\textalpha}{LGR}{97} +\DeclareTextSymbol{\textbeta}{LGR}{98} +\DeclareTextSymbol{\textgamma}{LGR}{103} +\DeclareTextSymbol{\textdelta}{LGR}{100} +\DeclareTextSymbol{\textepsilon}{LGR}{101} +\DeclareTextSymbol{\textzeta}{LGR}{122} +\DeclareTextSymbol{\texteta}{LGR}{104} +\DeclareTextSymbol{\texttheta}{LGR}{106} +\DeclareTextSymbol{\textiota}{LGR}{105} +\DeclareTextSymbol{\textkappa}{LGR}{107} +\DeclareTextSymbol{\textlambda}{LGR}{108} +\DeclareTextSymbol{\textmu}{LGR}{109} +\DeclareTextSymbol{\textnu}{LGR}{110} +\DeclareTextSymbol{\textxi}{LGR}{120} +\DeclareTextSymbol{\textomicron}{LGR}{111} +\DeclareTextSymbol{\textpi}{LGR}{112} +\DeclareTextSymbol{\textrho}{LGR}{114} +\DeclareTextCommand{\textsigma}{LGR}{s\noboundary} % σ +\DeclareTextSymbol{\textvarsigma}{LGR}{99} % ς final sigma +\DeclareTextSymbol{\textautosigma}{LGR}{115} % σ (ς at end of word) +\DeclareTextSymbol{\texttau}{LGR}{116} +\DeclareTextSymbol{\textupsilon}{LGR}{117} +\DeclareTextSymbol{\textphi}{LGR}{102} +\DeclareTextSymbol{\textchi}{LGR}{113} +\DeclareTextSymbol{\textpsi}{LGR}{121} +\DeclareTextSymbol{\textomega}{LGR}{119} + + +% Additional Greek symbols +% """""""""""""""""""""""" +% +% Ancient Greek Numbers (Athenian Numerals) +% named like in the athnum_ package:: + +\DeclareTextSymbol{\PiDelta}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY +\DeclareTextSymbol{\PiEta}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\DeclareTextSymbol{\PiChi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\DeclareTextSymbol{\PiMu}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND + +% or using Greek numerals (as in ``xl-lgr.enc``):: + +%\DeclareTextSymbol{\pentedeka}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY +%\DeclareTextSymbol{\pentehekaton}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +%\DeclareTextSymbol{\penteqilioi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +%\DeclareTextSymbol{\pentemurioi}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND + + +% after babel's ``greek.ldf`` and teubner_:: + +\DeclareTextSymbol{\stigma}{LGR}{6} % ϛ +\DeclareTextSymbol{\varstigma}{LGR}{7} % stigma variant (CB.enc, teubner) +% \DeclareTextSymbol{\vardigamma}{LGR}{7} % digamma variant (greek.ldf) +\DeclareTextSymbol{\koppa}{LGR}{18} % ϟ (greek small letter koppa) +\DeclareTextSymbol{\qoppa}{LGR}{19} % ϙ (archaic koppa) +\DeclareTextSymbol{\Qoppa}{LGR}{21} % Ϙ (archaic Koppa) +\DeclareTextSymbol{\Stigma}{LGR}{22} % ϹΤ ligature (teubner) +% \DeclareTextSymbol{\Stigma}{LGR}{??} % Ϛ +\DeclareTextSymbol{\Sampi}{LGR}{23} % Ϡ +\DeclareTextSymbol{\sampi}{LGR}{27} % ϡ +\DeclareTextSymbol{\anoteleia}{LGR}{38} % · +\DeclareTextSymbol{\erotimatiko}{LGR}{63} % ; +\DeclareTextSymbol{\ddigamma}{LGR}{147} % ϝ (\digamma used by amsmath!) +\DeclareTextSymbol{\Digamma}{LGR}{195} % Ϝ +% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals +\DeclareTextSymbol{\anwtonos}{LGR}{254} % ʹ (Dexia keraia) +\DeclareTextSymbol{\katwtonos}{LGR}{255} % ͵ (Aristeri keraia) + +% As ``\digamma`` is a math macro (defined in amsmath), provide aliases +% named as ``\text`` followed by the glyph name (as recommended in +% ``fntguide.pdf``:: + +\DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ alias using "text" prefix +\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ + + +% Other +% """"" +% +% Characters that also exist in other font encodings +% +% * Define them for LGR if there is a matching glyph, +% so that they work if LGR is the only chosen font encoding. +% +% * Use established macro names that match with other ``*enc.def`` files and +% ``textcomp.sty``. +% +% :: + +% all encodings: See usrguide.pdf, chapter 3.14 ff +\DeclareTextSymbol{\textendash}{LGR}{0} % EN DASH +\DeclareTextSymbol{\textquoteleft}{LGR}{28} % ‘ +\DeclareTextSymbol{\textquoteright}{LGR}{29} % ’ +\DeclareTextSymbol{\textperiodcentered}{LGR}{46} % · = \textanoteleia +\DeclareTextSymbol{\textcompwordmark}{LGR}{118} % ZERO WIDTH NO JOINER +\DeclareTextSymbol{\textemdash}{LGR}{127} % EM DASH + +% T1 +\DeclareTextSymbol{\guillemotleft}{LGR}{123} % « +\DeclareTextSymbol{\guillemotright}{LGR}{125} % » + +% TS1 +\ProvideTextCommand{\textasciibreve}{LGR}{\char30\textcompwordmark} % ˘ +\ProvideTextCommand{\textasciimacron}{LGR}{\char31\textcompwordmark} % ¯ +\ProvideTextCommand{\textasciidieresis}{LGR}{\char34\textcompwordmark} % " +\ProvideTextCommand{\textasciiacute}{LGR}{\char39\textcompwordmark} % ' +\ProvideTextCommand{\textasciigrave}{LGR}{\char96\textcompwordmark} % ` +\DeclareTextCommand{\textasciitilde}{LGR}{\char126\textcompwordmark} % ~ +% \DeclareTextSymbol{\textohm}{LGR}{87} % Ω (Ohm sign ≠ Omega) +\DeclareTextSymbol{\texteuro}{LGR}{24} % € \euro in greek.ldf +\DeclareTextSymbol{\textpercent}{LGR}{37} % % +\DeclareTextSymbol{\textperthousand}{LGR}{25} % ‰ \permille in greek.ldf + +% T3 +\DeclareTextSymbol{\textschwa}{LGR}{26} % ə + +% Babel's ``lgrenc.def`` has some definitions to prevent surprises with +% macros that expect a Latin script. These definitions are problematic +% in the font-encoding definition file as they +% +% * require ``\textlatin`` which is defined in ``babel.def``, +% +% * overwrite TS1 symbols set as default by ``textcomp.sty``. +% +% :: + +%\ProvideTextCommand{\textcopyright}{LGR}{\textcircled{\textlatin{c}}} +%\ProvideTextCommand{\textregistered}{LGR}{\textcircled{\textlatin{\textsc r}}} +%\ProvideTextCommand{\texttrademark}{LGR}{\textsuperscript{\textlatin{TM}}} +%\ProvideTextCommand{\SS}{LGR}{\textlatin{SS}} + +% How about:: + +%\ProvideTextCommand{\SS}{LGR}{\UseTextSymbol{T1}{\SS}} +%\ProvideTextCommand{\textcopyright}{LGR}{{\UseTextSymbol{T1}{\textcopyright}}} +% ...? + +% Diacritics +% ~~~~~~~~~~ +% +% Based on the teubner_ package by Claudio Beccari and the `babel +% patch`_ by Werner Lemberg but with composite diacritic definitions +% (iterative diacritics). +% +% Advantages: +% +% * get accented characters without resorting to the +% ligature mechanism (allows proper kerning, cf. teubner-doc_). +% * reduced probability of incompatibilities (compared to teubner_ +% diacritic macros). +% * input convention similar to LGR input encodings (just prepend a ``\``). +% +% simple diacritics +% """"""""""""""""" +% +% Define Greek diacritics as named macros with shortcut alias. +% +% Direct defining of ``\<`` and ``\>`` fails with +% ```! Missing $ inserted.'`` (clash with math definitions). +% Also, we need aliases for proper upcasing (cf. `UPPERCASE`_ below). :: + +\DeclareTextAccent{\Dasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing) +\DeclareTextAccent{\Psili}{LGR}{62} % ψιλή spiritus lenis (smooth breathing) +\DeclareTextAccent{\Tonos}{LGR}{39} % τόνος/ὀξεῖα tonos/oxia (acute) +\DeclareTextAccent{\Varia}{LGR}{96} % βαρεῖα (grave) +\DeclareTextAccent{\Perispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde) +\DeclareTextAccent{\Dialytika}{LGR}{34} % διαλυτικά (diaeresis/trema) + +\DeclareTextCommand{\<}{LGR}{\Dasia} +\DeclareTextCommand{\>}{LGR}{\Psili} +\DeclareTextCommand{\'}{LGR}{\Tonos} +\DeclareTextCommand{\`}{LGR}{\Varia} +\DeclareTextCommand{\~}{LGR}{\Perispomeni} +\DeclareTextCommand{\"}{LGR}{\Dialytika} + +% These are not required as the postfix ligature +% does not interfere with kerning:: + +\DeclareTextSymbol{\Ypogegrammeni}{LGR}{124} % "small" sub-iota +\DeclareTextSymbol{\Prosgegrammeni}{LGR}{8} % "capital" sub-iota + +% for critical editions or classical Greek:: + +\DeclareTextAccent{\lowbreve}{LGR}{20} % low breve +\DeclareTextAccent{\u}{LGR}{30} % breve +\DeclareTextAccent{\=}{LGR}{31} % macron + +% The characters at position 16 and 17 are used in the ``\nexus`` macro +% of the teubner_ package to form an extensible, hat-like bracket. In +% ``CB.enc``, they are mapped to +% +% 16--MODIFIER LETTER LOW ACUTE ACCENT +% 17--MODIFIER LETTER LOW GRAVE ACCENT +% +% but according to the documentation of Werner Lemberg's `babel patch`_, +% they rather represent the left and right part of U+23E0 TOP TORTOISE +% SHELL BRACKET. +% +% +% composite diacritics +% """""""""""""""""""" +% +% Definitions:: + +% Unicode Name Teubner name +\DeclareTextAccent{\DasiaOxia}{LGR}{86} % Ar +\DeclareTextAccent{\DasiaVaria}{LGR}{67} % Gr +\DeclareTextAccent{\DasiaPerispomeni}{LGR}{64} % Cr + +\DeclareTextAccent{\PsiliOxia}{LGR}{94} % As +\DeclareTextAccent{\PsiliVaria}{LGR}{95} % Gs +\DeclareTextAccent{\PsiliPerispomeni}{LGR}{92} % Cs + +\DeclareTextAccent{\DialytikaTonos}{LGR}{35} % Ad, tonos/oxia +\DeclareTextAccent{\DialytikaVaria}{LGR}{36} % Gd +\DeclareTextAccent{\DialytikaPerispomeni}{LGR}{32} % Cd + +% Composition from simple diacritics +% (the composition with simple "transcription characters" is done for +% the shortcut marcros, otherwise it fails with ``\Makeuppercase``):: + +\DeclareTextCompositeCommand{\Dialytika}{LGR}{\Tonos}{\DialytikaTonos} +\DeclareTextCompositeCommand{\"}{LGR}{'}{\DialytikaTonos} +\DeclareTextCompositeCommand{\"}{LGR}{\'}{\DialytikaTonos} +\DeclareTextCompositeCommand{\Dialytika}{LGR}{\Varia}{\DialytikaVaria} +\DeclareTextCompositeCommand{\"}{LGR}{`}{\DialytikaVaria} +\DeclareTextCompositeCommand{\"}{LGR}{\`}{\DialytikaVaria} +\DeclareTextCompositeCommand{\Dialytika}{LGR}{\Perispomeni}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\"}{LGR}{~}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\"}{LGR}{\~}{\DialytikaPerispomeni} + +\DeclareTextCompositeCommand{\Tonos}{LGR}{\Dialytika}{\DialytikaTonos} +\DeclareTextCompositeCommand{\'}{LGR}{"}{\DialytikaTonos} +\DeclareTextCompositeCommand{\'}{LGR}{\"}{\DialytikaTonos} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\Dasia}{\DasiaOxia} +\DeclareTextCompositeCommand{\'}{LGR}{<}{\DasiaOxia} +\DeclareTextCompositeCommand{\'}{LGR}{\<}{\DasiaOxia} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\Psili}{\PsiliOxia} +\DeclareTextCompositeCommand{\'}{LGR}{>}{\PsiliOxia} +\DeclareTextCompositeCommand{\'}{LGR}{\>}{\PsiliOxia} + +\DeclareTextCompositeCommand{\Varia}{LGR}{\Dialytika}{\DialytikaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{"}{\DialytikaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{\"}{\DialytikaVaria} +\DeclareTextCompositeCommand{\Varia}{LGR}{\Dasia}{\DasiaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{<}{\DasiaVaria} +\DeclareTextCompositeCommand{\`}{LGR}{\<}{\DasiaVaria} +\DeclareTextCompositeCommand{\Varia}{LGR}{\Psili}{\PsiliVaria} +\DeclareTextCompositeCommand{\`}{LGR}{>}{\PsiliVaria} +\DeclareTextCompositeCommand{\`}{LGR}{\>}{\PsiliVaria} + +\DeclareTextCompositeCommand{\Perispomeni}{LGR}{\Dialytika}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{"}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{\"}{\DialytikaPerispomeni} +\DeclareTextCompositeCommand{\Perispomeni}{LGR}{\Dasia}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{<}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{\<}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\Perispomeni}{LGR}{\Psili}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{>}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\~}{LGR}{\>}{\PsiliPerispomeni} + +\DeclareTextCompositeCommand{\Psili}{LGR}{\Tonos}{\PsiliOxia} +\DeclareTextCompositeCommand{\>}{LGR}{'}{\PsiliOxia} +\DeclareTextCompositeCommand{\>}{LGR}{\'}{\PsiliOxia} +\DeclareTextCompositeCommand{\Psili}{LGR}{\Varia}{\PsiliVaria} +\DeclareTextCompositeCommand{\>}{LGR}{`}{\PsiliVaria} +\DeclareTextCompositeCommand{\>}{LGR}{\`}{\PsiliVaria} +\DeclareTextCompositeCommand{\Psili}{LGR}{\Perispomeni}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\>}{LGR}{~}{\PsiliPerispomeni} +\DeclareTextCompositeCommand{\>}{LGR}{\~}{\PsiliPerispomeni} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\Tonos}{\DasiaOxia} +\DeclareTextCompositeCommand{\<}{LGR}{'}{\DasiaOxia} +\DeclareTextCompositeCommand{\<}{LGR}{\'}{\DasiaOxia} +\DeclareTextCompositeCommand{\Dasia}{LGR}{\Varia}{\DasiaVaria} +\DeclareTextCompositeCommand{\<}{LGR}{`}{\DasiaVaria} +\DeclareTextCompositeCommand{\<}{LGR}{\`}{\DasiaVaria} +\DeclareTextCompositeCommand{\Dasia}{LGR}{\Perispomeni}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\<}{LGR}{~}{\DasiaPerispomeni} +\DeclareTextCompositeCommand{\<}{LGR}{\~}{\DasiaPerispomeni} + +% Pre-composed letters with diacritics +% (from teubner_ with changed names of the composite accents):: + +\DeclareTextComposite{\Varia}{LGR}{a}{128} +\DeclareTextComposite{\Dasia}{LGR}{a}{129} +\DeclareTextComposite{\Psili}{LGR}{a}{130} +\DeclareTextComposite{\DasiaVaria}{LGR}{a}{131} +\DeclareTextComposite{\Tonos}{LGR}{a}{136} +\DeclareTextComposite{\DasiaOxia}{LGR}{a}{137} +\DeclareTextComposite{\PsiliOxia}{LGR}{a}{138} +\DeclareTextComposite{\PsiliVaria}{LGR}{a}{139} +\DeclareTextComposite{\Perispomeni}{LGR}{a}{144} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{a}{145} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{a}{146} +\DeclareTextComposite{\Varia}{LGR}{h}{152} +\DeclareTextComposite{\Dasia}{LGR}{h}{153} +\DeclareTextComposite{\Psili}{LGR}{h}{154} +\DeclareTextComposite{\Tonos}{LGR}{h}{160} +\DeclareTextComposite{\DasiaOxia}{LGR}{h}{161} +\DeclareTextComposite{\PsiliOxia}{LGR}{h}{162} +\DeclareTextComposite{\DasiaVaria}{LGR}{h}{163} +\DeclareTextComposite{\Perispomeni}{LGR}{h}{168} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{h}{169} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{h}{170} +\DeclareTextComposite{\PsiliVaria}{LGR}{h}{171} +\DeclareTextComposite{\Varia}{LGR}{w}{176} +\DeclareTextComposite{\Dasia}{LGR}{w}{177} +\DeclareTextComposite{\Psili}{LGR}{w}{178} +\DeclareTextComposite{\DasiaVaria}{LGR}{w}{179} +\DeclareTextComposite{\Tonos}{LGR}{w}{184} +\DeclareTextComposite{\DasiaOxia}{LGR}{w}{185} +\DeclareTextComposite{\PsiliOxia}{LGR}{w}{186} +\DeclareTextComposite{\PsiliVaria}{LGR}{w}{187} +\DeclareTextComposite{\Perispomeni}{LGR}{w}{192} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{w}{193} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{w}{194} +\DeclareTextComposite{\Varia}{LGR}{i}{200} +\DeclareTextComposite{\Dasia}{LGR}{i}{201} +\DeclareTextComposite{\Psili}{LGR}{i}{202} +\DeclareTextComposite{\DasiaVaria}{LGR}{i}{203} +\DeclareTextComposite{\Tonos}{LGR}{i}{208} +\DeclareTextComposite{\DasiaOxia}{LGR}{i}{209} +\DeclareTextComposite{\PsiliOxia}{LGR}{i}{210} +\DeclareTextComposite{\PsiliVaria}{LGR}{i}{211} +\DeclareTextComposite{\Perispomeni}{LGR}{i}{216} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{i}{217} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{i}{218} +\DeclareTextComposite{\Dialytika}{LGR}{i}{240} +\DeclareTextComposite{\DialytikaVaria}{LGR}{i}{241} +\DeclareTextComposite{\DialytikaTonos}{LGR}{i}{242} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{i}{243} +\DeclareTextComposite{\Varia}{LGR}{u}{204} +\DeclareTextComposite{\Dasia}{LGR}{u}{205} +\DeclareTextComposite{\Psili}{LGR}{u}{206} +\DeclareTextComposite{\DasiaVaria}{LGR}{u}{207} +\DeclareTextComposite{\Tonos}{LGR}{u}{212} +\DeclareTextComposite{\DasiaOxia}{LGR}{u}{213} +\DeclareTextComposite{\PsiliOxia}{LGR}{u}{214} +\DeclareTextComposite{\PsiliVaria}{LGR}{u}{215} +\DeclareTextComposite{\Perispomeni}{LGR}{u}{220} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{u}{221} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{u}{222} +\DeclareTextComposite{\Dialytika}{LGR}{u}{244} +\DeclareTextComposite{\DialytikaVaria}{LGR}{u}{245} +\DeclareTextComposite{\DialytikaTonos}{LGR}{u}{246} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{u}{247} +\DeclareTextComposite{\Varia}{LGR}{e}{224} +\DeclareTextComposite{\Dasia}{LGR}{e}{225} +\DeclareTextComposite{\Psili}{LGR}{e}{226} +\DeclareTextComposite{\DasiaVaria}{LGR}{e}{227} +\DeclareTextComposite{\Tonos}{LGR}{e}{232} +\DeclareTextComposite{\DasiaOxia}{LGR}{e}{233} +\DeclareTextComposite{\PsiliOxia}{LGR}{e}{234} +\DeclareTextComposite{\PsiliVaria}{LGR}{e}{235} +\DeclareTextComposite{\Varia}{LGR}{o}{228} +\DeclareTextComposite{\Dasia}{LGR}{o}{229} +\DeclareTextComposite{\Psili}{LGR}{o}{230} +\DeclareTextComposite{\DasiaVaria}{LGR}{o}{231} +\DeclareTextComposite{\Tonos}{LGR}{o}{236} +\DeclareTextComposite{\DasiaOxia}{LGR}{o}{237} +\DeclareTextComposite{\PsiliOxia}{LGR}{o}{238} +\DeclareTextComposite{\PsiliVaria}{LGR}{o}{239} +\DeclareTextComposite{\Dasia}{LGR}{r}{251} +\DeclareTextComposite{\Psili}{LGR}{r}{252} + +% Do the same for the ``\text*`` macros:: + +\DeclareTextComposite{\Varia}{LGR}{\textalpha}{128} +\DeclareTextComposite{\Dasia}{LGR}{\textalpha}{129} +\DeclareTextComposite{\Psili}{LGR}{\textalpha}{130} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textalpha}{131} +\DeclareTextComposite{\Tonos}{LGR}{\textalpha}{136} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textalpha}{137} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textalpha}{138} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textalpha}{139} +\DeclareTextComposite{\Perispomeni}{LGR}{\textalpha}{144} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textalpha}{145} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textalpha}{146} +\DeclareTextComposite{\Varia}{LGR}{\texteta}{152} +\DeclareTextComposite{\Dasia}{LGR}{\texteta}{153} +\DeclareTextComposite{\Psili}{LGR}{\texteta}{154} +\DeclareTextComposite{\Tonos}{LGR}{\texteta}{160} +\DeclareTextComposite{\DasiaOxia}{LGR}{\texteta}{161} +\DeclareTextComposite{\PsiliOxia}{LGR}{\texteta}{162} +\DeclareTextComposite{\DasiaVaria}{LGR}{\texteta}{163} +\DeclareTextComposite{\Perispomeni}{LGR}{\texteta}{168} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\texteta}{169} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\texteta}{170} +\DeclareTextComposite{\PsiliVaria}{LGR}{\texteta}{171} +\DeclareTextComposite{\Varia}{LGR}{\textomega}{176} +\DeclareTextComposite{\Dasia}{LGR}{\textomega}{177} +\DeclareTextComposite{\Psili}{LGR}{\textomega}{178} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textomega}{179} +\DeclareTextComposite{\Tonos}{LGR}{\textomega}{184} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textomega}{185} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textomega}{186} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textomega}{187} +\DeclareTextComposite{\Perispomeni}{LGR}{\textomega}{192} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textomega}{193} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textomega}{194} +\DeclareTextComposite{\Varia}{LGR}{\textiota}{200} +\DeclareTextComposite{\Dasia}{LGR}{\textiota}{201} +\DeclareTextComposite{\Psili}{LGR}{\textiota}{202} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textiota}{203} +\DeclareTextComposite{\Tonos}{LGR}{\textiota}{208} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textiota}{209} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textiota}{210} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textiota}{211} +\DeclareTextComposite{\Perispomeni}{LGR}{\textiota}{216} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textiota}{217} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textiota}{218} +\DeclareTextComposite{\Dialytika}{LGR}{\textiota}{240} +\DeclareTextComposite{\DialytikaVaria}{LGR}{\textiota}{241} +\DeclareTextComposite{\DialytikaTonos}{LGR}{\textiota}{242} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{\textiota}{243} +\DeclareTextComposite{\Varia}{LGR}{\textupsilon}{204} +\DeclareTextComposite{\Dasia}{LGR}{\textupsilon}{205} +\DeclareTextComposite{\Psili}{LGR}{\textupsilon}{206} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textupsilon}{207} +\DeclareTextComposite{\Tonos}{LGR}{\textupsilon}{212} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textupsilon}{213} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textupsilon}{214} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textupsilon}{215} +\DeclareTextComposite{\Perispomeni}{LGR}{\textupsilon}{220} +\DeclareTextComposite{\DasiaPerispomeni}{LGR}{\textupsilon}{221} +\DeclareTextComposite{\PsiliPerispomeni}{LGR}{\textupsilon}{222} +\DeclareTextComposite{\Dialytika}{LGR}{\textupsilon}{244} +\DeclareTextComposite{\DialytikaVaria}{LGR}{\textupsilon}{245} +\DeclareTextComposite{\DialytikaTonos}{LGR}{\textupsilon}{246} +\DeclareTextComposite{\DialytikaPerispomeni}{LGR}{\textupsilon}{247} +\DeclareTextComposite{\Varia}{LGR}{\textepsilon}{224} +\DeclareTextComposite{\Dasia}{LGR}{\textepsilon}{225} +\DeclareTextComposite{\Psili}{LGR}{\textepsilon}{226} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textepsilon}{227} +\DeclareTextComposite{\Tonos}{LGR}{\textepsilon}{232} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textepsilon}{233} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textepsilon}{234} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textepsilon}{235} +\DeclareTextComposite{\Varia}{LGR}{\textomicron}{228} +\DeclareTextComposite{\Dasia}{LGR}{\textomicron}{229} +\DeclareTextComposite{\Psili}{LGR}{\textomicron}{230} +\DeclareTextComposite{\DasiaVaria}{LGR}{\textomicron}{231} +\DeclareTextComposite{\Tonos}{LGR}{\textomicron}{236} +\DeclareTextComposite{\DasiaOxia}{LGR}{\textomicron}{237} +\DeclareTextComposite{\PsiliOxia}{LGR}{\textomicron}{238} +\DeclareTextComposite{\PsiliVaria}{LGR}{\textomicron}{239} +\DeclareTextComposite{\Dasia}{LGR}{r}{251} +\DeclareTextComposite{\Psili}{LGR}{r}{252} + + +% Capital letters +% ~~~~~~~~~~~~~~~ +% +% In Greek, diacritics are omitted in all-uppercase words, but kept as part +% of an uppercase initial (written before rather than above the letter). +% +% The diaytika should also always be used in all-uppercase words (even +% in cases where they are not needed when writing in lowercase +% +% -- http://en.wikipedia.org/wiki/Capitalization +% +% Title Case +% """""""""" +% +% Place diacritics before instead of above:: + +\DeclareTextCompositeCommand{\Dasia}{LGR}{A}{<A} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{A}{<`A} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{A}{<'A} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{A}{<\char126A} +\DeclareTextCompositeCommand{\Psili}{LGR}{A}{>A} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{A}{>`A} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{A}{>'A} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{A}{>\char126A} +\DeclareTextCompositeCommand{\Tonos}{LGR}{A}{'A} +\DeclareTextCompositeCommand{\Varia}{LGR}{A}{`A} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{E}{<E} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{E}{<'E} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{E}{<`E} +\DeclareTextCompositeCommand{\Psili}{LGR}{E}{>E} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{E}{>'E} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{E}{>`E} +\DeclareTextCompositeCommand{\Tonos}{LGR}{E}{'E} +\DeclareTextCompositeCommand{\Varia}{LGR}{E}{`E} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{H}{<H} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{H}{<`H} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{H}{<'H} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{H}{<\char126H} +\DeclareTextCompositeCommand{\Psili}{LGR}{H}{>H} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{H}{>`H} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{H}{>'H} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{H}{>\char126H} +\DeclareTextCompositeCommand{\Tonos}{LGR}{H}{'H} +\DeclareTextCompositeCommand{\Varia}{LGR}{H}{`H} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{I}{<I} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{I}{<`I} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{I}{<'I} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{I}{<\char126I} +\DeclareTextCompositeCommand{\Psili}{LGR}{I}{>I} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{I}{>`I} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{I}{>'I} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{I}{>\char126I} +\DeclareTextCompositeCommand{\Tonos}{LGR}{I}{'I} +\DeclareTextCompositeCommand{\Varia}{LGR}{I}{`I} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{O}{<O} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{O}{<`O} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{O}{<'O} +\DeclareTextCompositeCommand{\Psili}{LGR}{O}{>O} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{O}{>`O} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{O}{>'O} +\DeclareTextCompositeCommand{\Tonos}{LGR}{O}{'O} +\DeclareTextCompositeCommand{\Varia}{LGR}{O}{`O} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{U}{<U} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{U}{<`U} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{U}{<'U} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{U}{<\char126U} +\DeclareTextCompositeCommand{\Tonos}{LGR}{U}{'U} +\DeclareTextCompositeCommand{\Varia}{LGR}{U}{`U} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{W}{<W} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{W}{<`W} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{W}{<'W} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{W}{<\char126W} +\DeclareTextCompositeCommand{\Psili}{LGR}{W}{>W} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{W}{>`W} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{W}{>'W} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{W}{>\char126W} +\DeclareTextCompositeCommand{\Tonos}{LGR}{W}{'W} +\DeclareTextCompositeCommand{\Varia}{LGR}{W}{`W} + +% Except for the dialytika:: + +\DeclareTextComposite{\Dialytika}{LGR}{I}{219} +\DeclareTextComposite{\Dialytika}{LGR}{U}{223} + +% Do the same for the ``\text*`` macros:: + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textAlpha}{<A} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textAlpha}{<`A} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textAlpha}{<'A} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textAlpha}{<\char126A} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textAlpha}{>A} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textAlpha}{>`A} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textAlpha}{>'A} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textAlpha}{>\char126A} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textAlpha}{'A} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textAlpha}{`A} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textEpsilon}{<E} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textEpsilon}{<'E} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textEpsilon}{<`E} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textEpsilon}{>E} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textEpsilon}{>'E} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textEpsilon}{>`E} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textEpsilon}{'E} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textEpsilon}{`E} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textEta}{<H} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textEta}{<`H} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textEta}{<'H} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textEta}{<\char126H} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textEta}{>H} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textEta}{>`H} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textEta}{>'H} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textEta}{>\char126H} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textEta}{'H} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textEta}{`H} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textIota}{<I} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textIota}{<`I} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textIota}{<'I} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textIota}{<\char126I} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textIota}{>I} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textIota}{>`I} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textIota}{>'I} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textIota}{>\char126I} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textIota}{'I} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textIota}{`I} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textOmicron}{<O} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textOmicron}{<`O} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textOmicron}{<'O} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textOmicron}{>O} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textOmicron}{>`O} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textOmicron}{>'O} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textOmicron}{'O} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textOmicron}{`O} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textUpsilon}{<U} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textUpsilon}{<`U} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textUpsilon}{<'U} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textUpsilon}{<\char126U} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textUpsilon}{'U} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textUpsilon}{`U} + +\DeclareTextCompositeCommand{\Dasia}{LGR}{\textOmega}{<W} +\DeclareTextCompositeCommand{\DasiaVaria}{LGR}{\textOmega}{<`W} +\DeclareTextCompositeCommand{\DasiaOxia}{LGR}{\textOmega}{<'W} +\DeclareTextCompositeCommand{\DasiaPerispomeni}{LGR}{\textOmega}{<\char126W} +\DeclareTextCompositeCommand{\Psili}{LGR}{\textOmega}{>W} +\DeclareTextCompositeCommand{\PsiliVaria}{LGR}{\textOmega}{>`W} +\DeclareTextCompositeCommand{\PsiliOxia}{LGR}{\textOmega}{>'W} +\DeclareTextCompositeCommand{\PsiliPerispomeni}{LGR}{\textOmega}{>\char126W} +\DeclareTextCompositeCommand{\Tonos}{LGR}{\textOmega}{'W} +\DeclareTextCompositeCommand{\Varia}{LGR}{\textOmega}{`W} + +% Except for the dialytika:: + +\DeclareTextComposite{\Dialytika}{LGR}{\textIota}{219} +\DeclareTextComposite{\Dialytika}{LGR}{\textUpsilon}{223} + +% UPPERCASE +% ~~~~~~~~~ +% +% @uclclist extension +% """"""""""""""""""" +% +% If UPPERCASE (all-caps) is generated with ``\MakeUppercase``, macro +% substitutions in the ``\@uclclist`` apply. This can be used to drop the +% diacritics (except dialytika). +% +% Based on the `babel patch`_ and ``fontenc.sty``. +% (The first two lines are TeX' way of writing ``uclclist += …``):: + +\expandafter\def\expandafter\@uclclist\expandafter{% + \@uclclist + \Dasia\do@nothing + \DasiaOxia\@hiatus + \DasiaVaria\do@nothing + \DasiaPerispomeni\do@nothing + \Psili\@hiatus + \PsiliOxia\@hiatus + \PsiliVaria\@hiatus + \PsiliPerispomeni\do@nothing + \Tonos\@hiatus + \Varia\do@nothing + \DialytikaTonos\up@Dialytika + \DialytikaVaria\up@Dialytika + \DialytikaPerispomeni\up@Dialytika + \Perispomeni\do@nothing + \Ypogegrammeni\Prosgegrammeni + % + \textalpha \textAlpha + \textbeta \textBeta + \textgamma \textGamma + \textdelta \textDelta + \textepsilon\textEpsilon + \textzeta \textZeta + \texteta \textEta + \texttheta \textTheta + \textiota \textIota + \textkappa \textKappa + \textlambda \textLambda + \textmu \textMu + \textnu \textNu + \textxi \textXi + \textomicron\textOmicron + \textpi \textPi + \textrho \textRho + \textvarsigma \textSigma + \textsigma \textSigma + \textautosigma \textSigma + \texttau \textTau + \textupsilon\textUpsilon + \textphi \textPhi + \textchi \textChi + \textpsi \textPsi + \textomega \textOmega + % + \qoppa \Qoppa + \varstigma \Stigma + \stigma \Stigma + \sampi \Sampi + \ddigamma \Digamma +} + +% Substitution macros +% """"""""""""""""""" +% +% Drop diacritics +% ''''''''''''''' +% :: + +\DeclareTextCommand{\do@nothing}{LGR}[1]{#1} + +% (The argument processing ensures that kerning is preserved) +% +% Keep dialytika. +% ''''''''''''''' +% +% Define an alias so that downcasing with ``\MakeLowercase`` does not +% convert a simple dialytika to a composite accent:: + +\DeclareTextCommand{\up@Dialytika}{LGR}{\Dialytika} + +% Mark hiatus +% ''''''''''' +% +% Tonos and dasia mark a hiatus if placed on the first vowel of a +% diphthong (ΑΙ, ΑΥ, ΕΙ). A dialytika must be placed on the second vowel +% if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ, ἀυπνία +% → ΑΫΠΝΙΑ):: + +\DeclareTextCommand{\@hiatus}{LGR}[1]{#1} +\DeclareTextCompositeCommand{\@hiatus}{LGR}{A}{\A@hiatus} +\DeclareTextCompositeCommand{\@hiatus}{LGR}{E}{\E@hiatus} + +% Look ahead and place a diaeresis on Ι or Υ:: + +\DeclareTextCommand{\A@hiatus}{LGR}{% + \LGR@ifnextchar{I}{A\"}{% + \LGR@ifnextchar{U}{A\"}{A}% + }% +} +\DeclareTextCommand{\E@hiatus}{LGR}{% + \LGR@ifnextchar{I}{E\"}{% + \LGR@ifnextchar{U}{E\"}{E}% + }% +} + +% As ``\@ifnextchar`` gobbles spaces the lookahead macro definition from +% ``amsgen.sty`` is used: +% +% This macro is a new version of LaTeX’s ``\@ifnextchar``, macro +% that does not skip over spaces. +% +% :: + +\ProvideTextCommand{\LGR@ifnextchar}{LGR}[3]{% +% \long\def\LGR@ifnextchar#1#2#3{% + \let\reserved@d= #1% + \def\reserved@a{#2}\def\reserved@b{#3}% + \futurelet\@let@token\LGR@ifnch +} +\ProvideTextCommand{\LGR@ifnch}{LGR}{% + \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi + \reserved@b +} + +% Unfortunately, the lookahead breaks kerning. +% +% Alternatives tried: +% +% * CompositeCommands fail at the end of a macro, e.g. ``\emph{\'a}``:: + + %\DeclareTextCommand{\A@hiatus}{LGR}{A} + %\DeclareTextCommand{\E@hiatus}{LGR}{E} + + %\DeclareTextCompositeCommand{\A@hiatus}{LGR}{}{A} + %\DeclareTextCompositeCommand{\A@hiatus}{LGR}{I}{A\"I} + %\DeclareTextCompositeCommand{\A@hiatus}{LGR}{U}{A\"U} + + +% * 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):: + + %\DeclareTextComposite{\@hiatus}{LGR}{A}{12} + +% No such glyph exists for E but this is no problem as E does +% not require kerning anyway. +% +% .. References +% ---------- +% +% .. _Babel: http://www.ctan.org/pkg/babel +% .. _fontenc: http://www.ctan.org/pkg/fontenc +% .. _Adobe Glyph List For New Fonts: +% http://www.adobe.com/devnet/opentype/archives/aglfn.txt +% .. _athnum: http://mirror.ctan.org/help/Catalogue/entries/athnum.html +% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +% .. _fntguide: http://mirror.ctan.org/macros/latex/doc/fntguide.pdf +% .. _babel patch: http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf +% .. _teubner: http://mirror.ctan.org/help/Catalogue/entries/teubner.html +% .. _teubner-doc: +% http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf +% .. _ucs: http://mirror.ctan.org/help/Catalogue/entries/unicode.html +% .. _XML Entity Definitions for Characters: +% http://www.w3.org/TR/xml-entity-names/ diff --git a/Master/texmf-dist/tex/latex/lgrx/textalpha.sty b/Master/texmf-dist/tex/latex/lgrx/textalpha.sty new file mode 100644 index 00000000000..af13546602b --- /dev/null +++ b/Master/texmf-dist/tex/latex/lgrx/textalpha.sty @@ -0,0 +1,166 @@ +% Greek symbols in text +% ********************* +% +% :Copyright: © 2010 Günter Milde +% :Licence: This work may be distributed and/or modified under the +% conditions of the `LaTeX Project Public License`_, either +% version 1.3 of this license or any later version. +% +% :Abstract: Provide a set of ``\text*`` macros for Greek letters +% outside math. +% +% :Identification: +% :: + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{textalpha} +[2010/08/04 v0.1 macros for Greek letters in text] + +% Changelog: +% .. class:: borderless +% +% ========== ===== ========================================================= +% 2010-06-16 0.1 initial version +% ========== ===== ========================================================= +% +% Motivation +% ========== +% +% By default, the ``\alpha`` -- ``\Omega`` macros for Greek letters +% +% * are only valid in mathematical mode +% +% * do not change shape (default shape is italic) +% +% In Greek text fonts with the LGR font encoding, letters are +% accessible by a Latin transcription. +% +% This package provides a set of macros that can be used to access Greek +% symbols from a font in LGR encoding (e.g. the `CB fonts`_) without the +% need for an explicite font-encoding switch. +% +% The macro names follow the established scheme to prepend ``\text*`` to +% the Adobe glyph name (if it exists) or the corresponding math-macro, so +% ``\textalpha`` -- ``\textOmega`` prints α – Ω. +% +% * In combination with the ``\text`` macro from amsmath, this can be +% used to get matching upright and bold upright Greek symbols in math +% as well. +% +% * In combination with ``\usepackage[utf8]{inputenc}`` and the +% accompanying ``lgrenc.dfu`` file, Unicode input of Greek characters +% is supported. +% +% This is done using NFSS default definitions as explained in the +% fntguide_ (section 5.3). +% +% Attention +% While the macros work reasonably well for single letters, the +% automatic font-encoding switches behind the doors destroy the +% kerning between the letters. +% +% Text composites (replacement of accent+character with a pre-composed +% character) work in LGR, but not in other encodings (due to the +% forth-and-back font encoding switch). +% +% Therefore, Greek text should be written with the help of babel_, +% setting the language to either ``greek`` or ``polutonikogreek``. +% +% +% Implementation +% ============== +% +% This package requires the extended font encoding definitions:: + +\input{lgrxenc.def} + + +% Greek Alphabet +% -------------- +% +% Define the ``text*`` marcos as default for all font encodings:: + +\DeclareTextSymbolDefault{\textAlpha}{LGR} +\DeclareTextSymbolDefault{\textBeta}{LGR} +\DeclareTextSymbolDefault{\textGamma}{LGR} +\DeclareTextSymbolDefault{\textDelta}{LGR} +\DeclareTextSymbolDefault{\textEpsilon}{LGR} +\DeclareTextSymbolDefault{\textZeta}{LGR} +\DeclareTextSymbolDefault{\textEta}{LGR} +\DeclareTextSymbolDefault{\textTheta}{LGR} +\DeclareTextSymbolDefault{\textIota}{LGR} +\DeclareTextSymbolDefault{\textKappa}{LGR} +\DeclareTextSymbolDefault{\textLambda}{LGR} +\DeclareTextSymbolDefault{\textMu}{LGR} +\DeclareTextSymbolDefault{\textNu}{LGR} +\DeclareTextSymbolDefault{\textXi}{LGR} +\DeclareTextSymbolDefault{\textOmicron}{LGR} +\DeclareTextSymbolDefault{\textPi}{LGR} +\DeclareTextSymbolDefault{\textRho}{LGR} +\DeclareTextSymbolDefault{\textSigma}{LGR} +\DeclareTextSymbolDefault{\textTau}{LGR} +\DeclareTextSymbolDefault{\textUpsilon}{LGR} +\DeclareTextSymbolDefault{\textPhi}{LGR} +\DeclareTextSymbolDefault{\textChi}{LGR} +\DeclareTextSymbolDefault{\textPsi}{LGR} +\DeclareTextSymbolDefault{\textOmega}{LGR} +% +\DeclareTextSymbolDefault{\textalpha}{LGR} +\DeclareTextSymbolDefault{\textbeta}{LGR} +\DeclareTextSymbolDefault{\textgamma}{LGR} +\DeclareTextSymbolDefault{\textdelta}{LGR} +\DeclareTextSymbolDefault{\textepsilon}{LGR} +\DeclareTextSymbolDefault{\textzeta}{LGR} +\DeclareTextSymbolDefault{\texteta}{LGR} +\DeclareTextSymbolDefault{\texttheta}{LGR} +\DeclareTextSymbolDefault{\textiota}{LGR} +\DeclareTextSymbolDefault{\textkappa}{LGR} +\DeclareTextSymbolDefault{\textlambda}{LGR} +\DeclareTextSymbolDefault{\textmu}{LGR} +\DeclareTextSymbolDefault{\textnu}{LGR} +\DeclareTextSymbolDefault{\textxi}{LGR} +\DeclareTextSymbolDefault{\textomicron}{LGR} +\DeclareTextSymbolDefault{\textpi}{LGR} +\DeclareTextSymbolDefault{\textrho}{LGR} +\DeclareTextSymbolDefault{\textsigma}{LGR} +\DeclareTextSymbolDefault{\textvarsigma}{LGR} +\DeclareTextSymbolDefault{\texttau}{LGR} +\DeclareTextSymbolDefault{\textupsilon}{LGR} +\DeclareTextSymbolDefault{\textphi}{LGR} +\DeclareTextSymbolDefault{\textchi}{LGR} +\DeclareTextSymbolDefault{\textpsi}{LGR} +\DeclareTextSymbolDefault{\textomega}{LGR} + +% Diacritics +% ---------- +% +% Diacritics are defined via "named" macros in ``lgrxenc.def``. Make them +% default in any encoding:: + +\DeclareTextAccentDefault{\Dasia}{LGR} +\DeclareTextAccentDefault{\Psili}{LGR} +\DeclareTextAccentDefault{\Tonos}{LGR} +\DeclareTextAccentDefault{\Varia}{LGR} +\DeclareTextAccentDefault{\Perispomeni}{LGR} +\DeclareTextAccentDefault{\Dialytika}{LGR} +\DeclareTextAccentDefault{\<}{LGR} +\DeclareTextAccentDefault{\>}{LGR} +% +\DeclareTextAccentDefault{\DasiaOxia}{LGR} +\DeclareTextAccentDefault{\DasiaVaria}{LGR} +\DeclareTextAccentDefault{\DasiaPerispomeni}{LGR} +\DeclareTextAccentDefault{\PsiliOxia}{LGR} +\DeclareTextAccentDefault{\PsiliVaria}{LGR} +\DeclareTextAccentDefault{\PsiliPerispomeni}{LGR} +\DeclareTextAccentDefault{\DialytikaTonos}{LGR} +\DeclareTextAccentDefault{\DialytikaVaria}{LGR} +\DeclareTextAccentDefault{\DialytikaPerispomeni}{LGR} + + + +% .. References +% ---------- +% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +% .. _babel: http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel +% .. _fntguide: http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf +% .. _CB fonts: http://www.ctan.org/pkg/cbgreek-complete diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index e0b67afe0c0..a7430b43bbe 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -231,7 +231,7 @@ my @TLP_working = qw( latexdiff latexfileversion latexmk latexmp lato layaureo layouts lazylist lcd lcg lcyw leading leaflet lecturer ledmac leftidx lettre lettrine - levy lewis lexikon lfb lgreek lh lhelp + levy lewis lexikon lfb lgreek lgrx lh lhelp libertine-legacy libertineotf libgreek librarian libris limap linearA linegoal lineno linguex lipsum listbib listing listings listings-ext listliketab listofsymbols diff --git a/Master/tlpkg/tlpsrc/collection-langgreek.tlpsrc b/Master/tlpkg/tlpsrc/collection-langgreek.tlpsrc index c37a1fdacbf..6c23d3ccfd2 100644 --- a/Master/tlpkg/tlpsrc/collection-langgreek.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-langgreek.tlpsrc @@ -15,6 +15,7 @@ depend ibygrk depend kerkis depend levy depend lgreek +depend lgrx depend mkgrkindex depend teubner depend xgreek diff --git a/Master/tlpkg/tlpsrc/lgrx.tlpsrc b/Master/tlpkg/tlpsrc/lgrx.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/lgrx.tlpsrc |