[latex3-commits] [git/LaTeX3-latex3-babel] docs: New guide on Greek. (57031fa)

Javier email at dante.de
Tue Nov 9 14:09:08 CET 2021


Repository : https://github.com/latex3/babel
On branch  : docs
Link       : https://github.com/latex3/babel/commit/57031fa2728a6b46c1115b64079f7079e8afaaad

>---------------------------------------------------------------

commit 57031fa2728a6b46c1115b64079f7079e8afaaad
Author: Javier <email at localhost>
Date:   Tue Nov 9 14:09:08 2021 +0100

    New guide on Greek.


>---------------------------------------------------------------

57031fa2728a6b46c1115b64079f7079e8afaaad
 docs/_includes/menu.html             |   1 +
 docs/guides/locale-greek.md          |  84 +++++++++++++++++++++++++++++++++++
 docs/media/greek-sample.jpg          | Bin 0 -> 25214 bytes
 docs/news/whats-new-in-babel-3.67.md |   2 +-
 4 files changed, 86 insertions(+), 1 deletion(-)

diff --git a/docs/_includes/menu.html b/docs/_includes/menu.html
index 6679083..53fed14 100644
--- a/docs/_includes/menu.html
+++ b/docs/_includes/menu.html
@@ -46,6 +46,7 @@
         <li><a href="https://latex3.github.io/babel/guides/locale-bengali.html">Bengali</a></li>
         <li><a href="https://latex3.github.io/babel/guides/locale-chinese.html">Chinese</a></li>
         <li><a href="https://latex3.github.io/babel/guides/locale-czech.html">Czech</a></li>
+        <li><a href="https://latex3.github.io/babel/guides/locale-greek.html">Greek</a></li>
         <li><a href="https://latex3.github.io/babel/guides/locale-hebrew.html">Hebrew</a></li>
         <li><a href="https://latex3.github.io/babel/guides/locale-hindi.html">Hindi</a></li>
         <li><a href="https://latex3.github.io/babel/guides/locale-norwegian.html">Norwegian</a></li>
diff --git a/docs/guides/locale-greek.md b/docs/guides/locale-greek.md
new file mode 100644
index 0000000..3c9a9a4
--- /dev/null
+++ b/docs/guides/locale-greek.md
@@ -0,0 +1,84 @@
+# Greek
+
+Greek is available for `pdftex`, `xetex`, and `luatex`. Depending on you
+needs you may prefer the `ldf` file, currently supported by Günter
+Milde, or the `ini` files.
+
+The support for `pdftex` is based on the non-standard `LGR` encoding,
+which may be a source of issues. It’s strongly recommended to use
+`xetex`  or `luatex`.
+
+
+# As `ldf`
+
+It supports Monotonic and Polytonic Greek, but only one at a time.
+Ancient Greek is not supported. A minimal preamble with Monotonic and
+`pdftex` is:
+```tex
+\usepackage[LGR]{fontenc}
+\usepackage[greek]{babel}
+```
+
+# As `ini`
+
+This method is available for `xetex` and `luatex` (it might work with
+`pdftex`, but it has not been extensively tested). It supports
+Monotonic, Polytonic and Ancient Greek, which can be used at the same
+time. A minimal example with Monotonic and `xetex` or `luatex` is:
+```tex
+\documentclass{article}
+
+\usepackage[greek, provide=*]{babel}
+\babelfont{rm}{NewComputerModern10}
+
+\begin{document}
+
+Η ελληνική γλώσσα κατέχει υψηλή θέση στην ιστορία του Δυτικού κόσμου.
+
+\end{document}
+```
+![](../media/greek-sample.jpg)
+
+The default names for the other variants are `polytonicgreek` and
+`ancientgreek`.
+
+There is a full example in Polytonic Greek in the repository
+([tex](https://github.com/latex3/babel/blob/main/samples/lua-polygreek.tex),
+[pdf](https://github.com/latex3/babel/blob/main/samples/lua-polygreek.pdf))
+
+## Counters
+
+With the `ini` method a macro is defined, `\greeknumeral{number}`,
+which converts the number to Ionian (alphabetic) form, as represented
+by the original babel `greek` style, and with the same upper limit
+(999999). However, the code has been rewritten from scratch, and now it’s fully
+expandable. There are three macros to customize it, which are
+redefined with `\renewcommand`:
+* `\BabelGreekNumeralMarkerEnd`: 1 argument with the generated number >999; by default it is #1ʹ.
+* `\BabelGreekNumeralMarker`: 1 argument with the whole number; by default is #1, ie, do nothing, but you may add an overline.
+* `\BabelGreekNumeralMiriads`: 4 arguments, with the digits above 9999, ie, 1234 if the number is 12345678 (padded with zeroes if necessary); note by default `\greeknumeral` does not accept such large numbers, but you may redefine it to use, for example, the M representation.
+  
+## Transliteration 
+
+_Only luatex_. The transform `transliteration.omega` applies the
+transliteration system devised by Yannis Haralambous for the Omega
+system. Although the provided combinations are not exactly the same (a
+few are currently missing), this transform follows its syntax: `=` for
+the circumflex, `v` for digamma, and so on. For better compatibility
+with Levy’s system, `~` (as ‘string’) is an alternative to `=`. The
+character `'` is tonos in Monotonic Greek, but oxia in Polytonic and
+Ancient Greek.
+
+This transliteration system does not convert the sigma at the end of a
+word (on purpose). The transform `sigma.final` does it. To prevent the
+conversion (an abbreviation, for example), write |"s|.}
+
+## Useful links
+
+* [Getting started with Greek and Hebrew in LuaLaTeX](https://tex.stackexchange.com/questions/65141/getting-started-with-greek-and-hebrew-in-lualatex/620541#620541)
+* [How to change the name Figure to greek Εικόνα](https://tex.stackexchange.com/questions/612386/how-to-change-the-name-figure-to-greek-%ce%95%ce%b9%ce%ba%cf%8c%ce%bd%ce%b1/614286#614286)
+* [Can one combine ancient and modern Greek with Babel?](https://tex.stackexchange.com/questions/294828/can-one-combine-ancient-and-modern-greek-with-babel/614278#614278)
+* [Use of Greek language without \textlatin{} \textgreek{} each word](https://tex.stackexchange.com/questions/579780/use-of-greek-language-without-textlatin-textgreek-each-word/579813#579813)
+* [Fontspec / Babel support to some .otf features](https://tex.stackexchange.com/questions/544773/fontspec-babel-support-to-some-otf-features)
+
+
diff --git a/docs/media/greek-sample.jpg b/docs/media/greek-sample.jpg
new file mode 100644
index 0000000..d31f3ae
Binary files /dev/null and b/docs/media/greek-sample.jpg differ
diff --git a/docs/news/whats-new-in-babel-3.67.md b/docs/news/whats-new-in-babel-3.67.md
index eee79e7..ddb528e 100644
--- a/docs/news/whats-new-in-babel-3.67.md
+++ b/docs/news/whats-new-in-babel-3.67.md
@@ -4,7 +4,7 @@
 
 ## Executing code based on the selector
 
-`\IfBabelSelectorTF`. Values are `select`, `other`, `foreign`, `other`
+`\IfBabelSelectorTF`. Values are `select`, `other`, `foreign`, `other*`
 (and also `foreign*` for the tentative starred version).
 Eg, `\IfBabelSelectorTF{other, other*}{..]{..}` is true with
 environments. Mainly for extras.





More information about the latex3-commits mailing list.