[latex3-commits] [git/LaTeX3-latex3-babel] docs: Start howtos for languages. css. (e5488d0)
Javier
email at dante.de
Fri Jun 11 16:17:24 CEST 2021
Repository : https://github.com/latex3/babel
On branch : docs
Link : https://github.com/latex3/babel/commit/e5488d0096faccd6da3315de13e118463543b8ac
>---------------------------------------------------------------
commit e5488d0096faccd6da3315de13e118463543b8ac
Author: Javier <email at localhost>
Date: Fri Jun 11 16:17:24 2021 +0200
Start howtos for languages. css.
>---------------------------------------------------------------
e5488d0096faccd6da3315de13e118463543b8ac
docs/_includes/menu.html | 9 +++---
docs/assets/css/style.css | 33 +++++++++++++------
docs/guides/locales-arabic.md | 18 +++++++++++
docs/guides/which-method-for-which-language.md | 45 ++++++++------------------
4 files changed, 59 insertions(+), 46 deletions(-)
diff --git a/docs/_includes/menu.html b/docs/_includes/menu.html
index a07e1a6..3e144da 100644
--- a/docs/_includes/menu.html
+++ b/docs/_includes/menu.html
@@ -34,7 +34,8 @@
<li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.36.html">3.36</a></li>
<li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.35.html">3.35</a></li>
-->
- </ul></li>
+ </ul>
+ </li>
<!-- -->
<li><a href="#">Guides</a>
<ul>
@@ -48,13 +49,11 @@
<li><a href="https://latex3.github.io/babel/guides/using-babel-with-plain.html">Using babel with plain</a></li>
</ul>
</li>
- <!--
- <li><a href="#">Languages</a>
+ <li><a href="#">Locales</a>
<ul>
- <li><a href=""></a></li>
+ <li><a href="https://latex3.github.io/babel/guides/locales-arabic.hmtl">Arabic</a></li>
</ul>
</li>
- -->
</ul>
</nav>
</div>
diff --git a/docs/assets/css/style.css b/docs/assets/css/style.css
index b771d92..8e9f9a2 100644
--- a/docs/assets/css/style.css
+++ b/docs/assets/css/style.css
@@ -275,7 +275,7 @@
}
.highlight {
- background-color: #f8f8f8
+ /* background-color: #f8f8f8 */
}
html,
@@ -415,7 +415,8 @@ h6 {
h1 {
font-size: 36px;
- font-weight: 700
+ font-weight: 700;
+ padding-top: 10px
}
h2 {
@@ -511,7 +512,7 @@ code {
color: #222;
background-color: #fff;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
- font-size: 14px;
+ font-size: 90%;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px
@@ -523,9 +524,19 @@ pre {
overflow: auto
}
+h1 code {
+ font-size: 80%
+}
+h2 code {
+ font-size: 80%
+}
+h3 code {
+ font-size: 80%
+}
+
code {
padding: 3px;
- margin: 0 3px;
+ /* margin: 0 3px; */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1)
}
@@ -594,7 +605,7 @@ th {
}
td {
- padding: 10px;
+ padding: 5px;
border: 1px solid #373737
}
@@ -609,7 +620,7 @@ form {
.inner {
position: relative;
- max-width: 640px;
+ max-width: 660px;
padding: 20px 10px;
margin: 0 auto
}
@@ -702,7 +713,7 @@ form {
}
#main_content_wrap {
- background: #f2f2f2;
+ background: #f9f9f9;
border-top: 1px solid #111;
border-bottom: 1px solid #111
}
@@ -736,7 +747,8 @@ form {
font-size: 32px
}
h1 {
- font-size: 28px
+ font-size: 28px;
+ padding-top: 10px
}
h2 {
font-size: 24px
@@ -774,7 +786,8 @@ form {
font-size: 28px
}
h1 {
- font-size: 24px
+ font-size: 24px;
+ padding-top: 10px
}
h2 {
font-size: 21px
@@ -800,7 +813,7 @@ form {
}
nav.top {
- margin: 130px 0;
+ margin: 140px 0;
background-color: #007070;
position: absolute;
top: 6mm;
diff --git a/docs/guides/locales-arabic.md b/docs/guides/locales-arabic.md
new file mode 100644
index 0000000..2209886
--- /dev/null
+++ b/docs/guides/locales-arabic.md
@@ -0,0 +1,18 @@
+### Arabic
+
+Recommended basic settings for a monolingual Arabic document in `luatex` (please, note your browser might not be rendering correctly the source code):
+```tex
+\documentclass{article}
+
+\usepackage[arabic, provide=*, bidi=basic, layout=counters.tabular]{babel}
+\babelfont{rm}[Renderer=Harfbuzz]{FreeSerif}
+
+\begin{document}
+
+الموسيقى أو الموسيقا هي فن مؤلف من الأصوات والسكوت عبر فترة زمنية،
+ويعتقد العلماء بأن كلمة الموسيقى يونانية الأصل، وقد كانت تعني سابقا
+الفنون عموما غير أنها أصبحت فيما بعد تطلق على لغة الألحان فقط.
+
+\end{document}
+```
+![](https://user-images.githubusercontent.com/1314536/97981471-a6943300-1dd2-11eb-8f13-3fb5c20dc355.png)
diff --git a/docs/guides/which-method-for-which-language.md b/docs/guides/which-method-for-which-language.md
index bf12507..055bb85 100644
--- a/docs/guides/which-method-for-which-language.md
+++ b/docs/guides/which-method-for-which-language.md
@@ -1,8 +1,19 @@
# Which method for which language
-_Document under development. Only XeTeX and LuaTeX._ (I like to thank Loren Davis for his help in preparing this page, including the list of additional fonts.)
+Since currently there are two methods to load a language, here is a short
+explanation on how to do it, with info about basic fonts, so that you
+can setup quickly a document. There are also pages on specific locales
+in the menu above
-**Index** [Loading the language](#loading-the-language) • [Fonts](#fonts) • [Examples](#examples)
+See also the [examples
+here](https://github.com/latex3/babel/tree/main/samples) for languages
+like Arabic, Thai, Hebrew, Polytonic Greek, Japanese, and Malayalam,
+among others.
+
+_I'd like to thank Loren Davis for his help in preparing this page,
+including the list of additional fonts._
+
+**Index** [Loading the language](#loading-the-language) • [Fonts](#fonts)
--------------------------
@@ -74,37 +85,9 @@ There are also some fine fonts out there, but you must install them because they
You may also want to have a look at some articles on tex.textackexchange on [Arabic](https://tex.stackexchange.com/questions/314202/overview-of-arabic-fonts-available-for-latex-xetex)
-----------------------
-
-## Examples
-
-Some examples follow (well, not yet). Remember there are [examples here](https://github.com/latex3/babel/tree/master/samples).
-
-### Arabic
-
-Recommended basic settings for a monolingual Arabic document in `luatex` (please, note your browser might not be rendering correctly the source code):
-```tex
-\documentclass{article}
-
-\usepackage[arabic, provide=*, bidi=basic, layout=counters.tabular]{babel}
-\babelfont{rm}[Renderer=Harfbuzz]{FreeSerif}
-
-\begin{document}
-
-الموسيقى أو الموسيقا هي فن مؤلف من الأصوات والسكوت عبر فترة زمنية،
-ويعتقد العلماء بأن كلمة الموسيقى يونانية الأصل، وقد كانت تعني سابقا
-الفنون عموما غير أنها أصبحت فيما بعد تطلق على لغة الألحان فقط.
-
-\end{document}
-```
-![](https://user-images.githubusercontent.com/1314536/97981471-a6943300-1dd2-11eb-8f13-3fb5c20dc355.png)
-### (...)
-
-------------------------
-*Under development*
-
-Monolingual documents
+## Recommended options for monolingual documents
| Language | Method | Font | Additional package options (lua) | xe | Notes |
| --- | --- | --- | --- | --- | --- |
More information about the latex3-commits
mailing list.