Skip to content

Commit

Permalink
Start howtos for languages. css.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Jun 11, 2021
1 parent 9bc4979 commit e5488d0
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 47 deletions.
9 changes: 4 additions & 5 deletions docs/_includes/menu.html
Expand Up @@ -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>
Expand All @@ -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>
35 changes: 24 additions & 11 deletions docs/assets/css/style.css
Expand Up @@ -275,7 +275,7 @@
}

.highlight {
background-color: #f8f8f8
/* background-color: #f8f8f8 */
}

html,
Expand Down Expand Up @@ -415,7 +415,8 @@ h6 {

h1 {
font-size: 36px;
font-weight: 700
font-weight: 700;
padding-top: 10px
}

h2 {
Expand Down Expand Up @@ -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
Expand All @@ -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;
padding: 3px;
/* margin: 0 3px; */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1)
}

Expand Down Expand Up @@ -594,7 +605,7 @@ th {
}

td {
padding: 10px;
padding: 5px;
border: 1px solid #373737
}

Expand All @@ -609,7 +620,7 @@ form {

.inner {
position: relative;
max-width: 640px;
max-width: 660px;
padding: 20px 10px;
margin: 0 auto
}
Expand Down Expand Up @@ -702,7 +713,7 @@ form {
}

#main_content_wrap {
background: #f2f2f2;
background: #f9f9f9;
border-top: 1px solid #111;
border-bottom: 1px solid #111
}
Expand Down Expand Up @@ -736,7 +747,8 @@ form {
font-size: 32px
}
h1 {
font-size: 28px
font-size: 28px;
padding-top: 10px
}
h2 {
font-size: 24px
Expand Down Expand Up @@ -774,7 +786,8 @@ form {
font-size: 28px
}
h1 {
font-size: 24px
font-size: 24px;
padding-top: 10px
}
h2 {
font-size: 21px
Expand All @@ -800,7 +813,7 @@ form {
}

nav.top {
margin: 130px 0;
margin: 140px 0;
background-color: #007070;
position: absolute;
top: 6mm;
Expand Down
18 changes: 18 additions & 0 deletions 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)
45 changes: 14 additions & 31 deletions 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)

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

Expand Down Expand Up @@ -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 |
| --- | --- | --- | --- | --- | --- |
Expand Down

0 comments on commit e5488d0

Please sign in to comment.