manuels/texlive.js

arabic or persian support

aminify opened this issue · 1 comments

how can we use it to export proper pdf containing arabic or persian text?
for example consider following word: سلام

I used following code in sharelatex and it worked, but it showed errors with your library and the pdf was messed up:
\documentclass[11pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[LFE,LAE]{fontenc}
\usepackage[english,farsi]{babel}
\begin{document}
سلام
\end{document}

by the way the error was this:
! LaTeX Error: Encoding scheme `LAE' unknown.

I checked on my debian system and it looks like you need to add the texlive-lang-arabic.
Put these files (like .../texmf-dist/tex/latex/arabi/farsi.ldf) into their corresponding folder under the texlive directory and update texlive.js/texlive.lst.