summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/xepersian-hm/test-kashida.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/xetex/latex/xepersian-hm/test-kashida.tex')
-rw-r--r--macros/xetex/latex/xepersian-hm/test-kashida.tex32
1 files changed, 32 insertions, 0 deletions
diff --git a/macros/xetex/latex/xepersian-hm/test-kashida.tex b/macros/xetex/latex/xepersian-hm/test-kashida.tex
new file mode 100644
index 0000000000..d3492c93ef
--- /dev/null
+++ b/macros/xetex/latex/xepersian-hm/test-kashida.tex
@@ -0,0 +1,32 @@
+% \PassOptionsToPackage{Kashida=off,RTLdocument=on}{xepersian} % Load xepersian with a few options
+\documentclass{report}
+\usepackage{xcolor}
+% \usepackage[Kashida]{xepersian} % Fails
+\usepackage[Kashida,kashidastretch=0.14 em plus 0.5 em]{xepersian-hm} % Succeeds
+% \usepackage[Kashida,kashidastretch=noskip]{xepersian-hm} % Succeeds
+% \usepackage[Kashida,kashidastretch=default]{xepersian-hm} % Succeeds
+% \usepackage[Kashida,kashidastretch=kayhan]{xepersian-hm} % Succeeds
+% \usepackage[Kashida,kashidastretch=khorramshahr]{xepersian-hm} % Succeeds
+
+% \settextfont[Scale=4.5,Colour=darkgray]{XB Kayhan}
+\settextfont[Scale=4.5,Colour=darkgray]{HM XKayhan}
+% \settextfont[Scale=4.5,Colour=darkgray]{HM XNiloofar}
+% \settextfont[Scale=4.5,Colour=darkgray]{HM XYas}
+% \settextfont[Scale=4.5,Colour=darkgray]{HM XZar}
+
+% \setlatintextfont[Scale=2.5,Colour=teal]{XB Kayhan}
+\setlatintextfont[Scale=2.5,Colour=teal]{HM XKayhan}
+
+\def\SampleText{راهی جایی تابی چاپی چاههی تلاشهایی شتابهایی تابی چاپی راهی تلاشهــایی که کتابهایی که کلاههایی که}
+
+\setlength\parindent{0pt}
+\pagestyle{empty}
+\begin{document}
+\color{red}
+
+\KashidaOff \SampleText \lr{(Kashida Off)~}
+
+\KashidaOn \SampleText \lr{(Kashida On)~}
+
+\end{document}
+