Skip to content

Commit

Permalink
Dealing with danda and onchar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Oct 29, 2021
1 parent 6d0a46c commit e58c807
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
17 changes: 12 additions & 5 deletions docs/guides/locale-bengali.md
Expand Up @@ -26,11 +26,11 @@ form, you may still need some conversion because LaTeX uses internally
the Arabic ones. With `luatex` there are two ways to map Arabic to
Bengali numerals, passed as option to `\babelprovide`:
* `maparabic` does it at the TeX level, by redefining `\arabic`. Note
form written to the auxiliary files is the converted one. It works
with `xetex`, too.
the form written to the auxiliary files is the converted one (which
can be an issue in indexes). It works with `xetex`, too.
* `mapdigits` does it at the engine level. This is
usually the preferred method.

To perform this conversión, use the following preamble:
```tex
\usepackage[bengali, provide=*]{babel}
Expand All @@ -49,10 +49,17 @@ See the explanation in the babel manual about `\localecounter` and
_Only luatex_. The transform `danda.nobreak` prevents a line break
before a danda or double danda if there is a space.

In Unicode, danda and double danda are shared by several scripts, and
`babel` doesn’t assign it by default to any of them. If you are using
`onchar` to select the font you may want to assign them with:
```tex
\babelcharproperty{`।}{locale}{bengali}
\babelcharproperty{`॥}{locale}{bengali}
```

## Useful links

* [How to write Bengali in LaTeX?](https://tex.stackexchange.com/a/561540/5735)
* [Change numbering style to Bengali in nested ordered
list](https://tex.stackexchange.com/a/563725/5735)
* [Change numbering style to Bengali in nested ordered list](https://tex.stackexchange.com/a/563725/5735)
* [What is the best way to write Bangla in latex?](https://tex.stackexchange.com/questions/620543/what-is-the-best-way-to-write-bangla-in-latex/620546#620546)
* [Typesetting Bangla script with LuaLATEX](https://www.latex-project.org/publications/UFi-TUB-tb127fischer-bangla.pdf)
8 changes: 8 additions & 0 deletions docs/guides/locale-hindi.md
Expand Up @@ -52,6 +52,14 @@ the following four characters: `!?:;`.
The transform `danda.nobreak` prevents a line break before a danda or
double danda if there is a space.

In Unicode, danda and double danda are shared by several scripts, and
`babel` doesn’t assign it by default to any of them. If you are using
`onchar` to select the font you may want to assign them with:
```tex
\babelcharproperty{`।}{locale}{hindi}
\babelcharproperty{`॥}{locale}{hindi}
```

## Transliterations

_Only luatex_. There is a transform (`transliteration.hk`) for the Harvard-Kyoto
Expand Down

0 comments on commit e58c807

Please sign in to comment.