View on GitHub

Babel

The multilingual framework to localize LaTeX, LuaLaTeX, XeLaTeX

Khmer

This page offers basic guidance on typesetting a LaTeX document in the Khmer language using the Khmer script.

Support with ini locale file

Here is a minimal sample file with khmer as the main language, with luatex.

\documentclass[khmer]{article}

\usepackage[provide=*]{babel}

\babelfont{rm}[Renderer=Harfbuzz]{Noto Sans Khmer}

% The next 2 lines make sure the Latin script is displayed.
\babelprovide[onchar=fonts letters]{english}
\babelfont[english]{rm}{NewComputerModern10}

\begin{document}

Local name $=$ ខ្មែរ

Chapter $=$ \chaptername

Today $=$ \today

Digits $=$ \localenumeral{digits}{0123456789}

\end{document}

You may need download the font or replace it with another one in your system.