# MonTeX (mls, manju, mongolian) with Latin script with diacritics

I am using the montex package to type text in Manchu (manju). In my documents, I also use Latin script with diacritics. When I load montex, these diacritics no longer appear, and when characters with diacritics reach 100, compilation fails altogether because of too many error. The montex documentation lists several encodings for Input and Output, the former including utf-8 (pp. 19-22). As a non-programmer, I don't quite understand this, but it seems to me that none of the encodings listed in Table 4.1. "MonTeX Input Encodings" has one that can handle all the diacritics that I need. Does this mean that MonTeX is in fact incompatible with full unicode?

Working minimal example without montex:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
yǐ mǎn zhōng wèn wén\\ %Latin texts with diacritics in Roman and Italics
\emph{yǐ mǎn zhōng wèn wén}
\end{document}


This looks good:

If I also load MonTeX and write some Manchu, it does not work:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
\bithe{manju gisun}\\ %Typing Manchu
yǐ mǎn zhōng wèn wén\\
\emph{yǐ mǎn zhōng wèn wén}
\end{document}


The result:

In this file, the italicization has disappeared as well.

Looking through the list of encodings in the MonTeX manual, I find---perhaps I'm wrong?---that the best encoding is english as document language, and mls as encoding. But adding these options to

\usepackage[english,mls]{mls}


doesn't change the output.

The above is compiled with XeLaTeX but I've also compiled the same file with LuaLateX with the same result

Does anyone know what I should do to resolve this?

-
Looking at mls.sty, I see that the package fontenc an inputenc are required, which, afaik, clash with fontspec. Removing \usepackage{fontspec} and \setmainfont{Linux Libertine O then compiling with xelatex or lualatex work in my machine. But I am not really that sure what is happening here. :-) –  hpesoj626 Jan 29 at 3:51
@hpesoj626 Hmm it doesn't solve it for me, the problem remains the same. Also, I do need some way to choose between fonts (in real documents, there will be CJK, italics, small caps and all sorts of stuff included...) –  Mårten Jan 29 at 4:00