很久以前(在 SuSE 上),我曾经使用过 LaTeX 的 Malayalam 软件包。它运行良好。我可以使用旧脚本(旧“lipi”)。现在我在 Ubuntu(18.04)。我再次安装了 Malayalam 软件包,但它不起作用。编译时我得到
mal:未找到命令
该软件包的优点是,我不必输入马拉雅拉姆语。在 usenet 上发布了问题。到现在还没有回复。还写信给 Alex(软件包的创建者)。没有回复
有人有解决方案吗?这将会很有帮助。
还需要帮助在 Ubuntu 上使用旧的“lipi”(脚本)进行马拉雅拉姆语输入。试过 Rachana、Anjali、Mira 等。我得到的只是新的“lipi”
答案1
首先我们需要安装 TeXLive:
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended
cd ~/Downloads
wget https://alex.org.in/wp-content/alex.org.in-uploads/2017/07/malayalam-latex-0.9.7.tar.gz
tar -xf malayalam-latex-0.9.7.tar.gz
cd malayalam-latex-0.9.7/
sudo ./install.sh # install agreeing with all default
然后创建内容如下的示例文件来自官方PDF 3.3.1:
cat << EOF > test.mm
\documentclass[a4,12pt]{article}
\usepackage[rachana]{malayalam}
\begin{document}
\noindent
<m>
atiprAcInakAlaMmutalkkutanne shabdan"n"aLuTEyuM
bhAvahAvAdikaLuTEyuM sahAyattOTukUTi AshayaprakaTanaM
naTattAn manuSyaR paThiccukazhin~n~irunnu.
manuSyasharIrattinnuLLilttanneyuLLa h.rdayaM,
shvAsakOshaM ennI avayavan"n"aLuTe kramaMteRRAteyuLLa
calanaM avann tALabOdhattinnuLLa AdyapAThan"n"aL
nalkiyirikkaNaM. atupOlettanne prak.rtiyilninnuM
avan nityEna kELkkunna saMgItaM---atAyat pakSikaLuTe
kaLakUjanan"n"aL, kARRinRe maRmmarashabdaM, tEnIccakaLuTe
mULakkaM, ozhukunna veLLattinRe kaLakaLashabdaM,
muLan"kATukaLkkiTayilUTe kARRaTikkunpOzhuNTAkunna
cULaMviLi, m.rgan"n"aLuTe vividharItiyiluLLa shabdan"n"aL
tuTan"n"iyavayellAM---avanRe saMgItAsvAdanashESiyEyuM
kramaprav.rddhamAyi vaLaRttikkoNTuvannu. manuSyamastiSkkattinRe
vaLaRccayuTe tOtanusaricc madhurasvaran"n"aL kETTAsvadikkAnuLLa
ceviyuTe kazhiv dinaMprati vaLaRnnuvannu. jIvitOpAdhikaL
sanpAdikkAnuLLa kUTTAya pravaRttanan"n"aLkkiTayil
AshayavinimayattinRe AvashyakatayuM tanmUlaM bhASayuM
utbhaviccu vikasiccatupOlettanne jIvitaklEshan"n"aLkkiTayil
ninnu niR{}v.rtiyuM, kUTTAya addhvAnattinnuLLa pracOdanavuM
nETENTa AvashyattinnanusariccAN<<+ manuSyanRe
saMgItaparamAya kazhivukaLuM vaLaRnnu vikasiccat.
</m>
\end{document}
EOF
注意:我对马拉雅拉姆语脚本一无所知,请调整上面的文件以获得正确的脚本。
然后预处理此文件:
mal test.mm rachana
Utility for pre-processing Malayalam LaTeX source files Alex A.J. <[email protected]> Using Rachana (old lipi)... File successfully preprocessed. Please run (pdf)LaTeX on the generated tex file.
运行 LaTeX
pdflatex test.tex
并查看输出:
xdg-open test.pdf