Created
January 16, 2025 15:07
-
-
Save typoman/427de3132609694c608440e3b0f6b3fc to your computer and use it in GitHub Desktop.
Arabic Scirpt kashida in lualatex with babel with control over the stretching using the word spacing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{multicol} | |
\usepackage[bidi = basic]{babel} | |
\babelprovide[ | |
main, | |
import, | |
mapdigits, | |
justification=kashida, | |
transforms=kashida.base | |
]{arabic} | |
\babelfont[arabic]{rm}[ | |
WordSpace = {0.1, 1.0, 0.1}, % reducing these values adds more kashida | |
]{Arial} % set font from installed fonts on the system | |
\begin{document} | |
\begin{multicols}{3} | |
کارکرد لاتک مبتنی بر این اندیشه است که نویسندگان باید قادر باشند بر نوشتن در درون ساختار منطقی متنشان تمرکز کنند، نه اینکه وقت خود را برای کار کردن بر روی جزئیات شکلدهی صرف کنند. این امر، نهتنها جداسازی شکلدهی از محتوا را ممکن میسازد، بلکه حروفچینی و دیگر تنظیمات مرتبط با آن را در هر جا که نیاز باشد، امکانپذیر میسازد. لاتک با قابلیت جدا نگهداشتن جزئیات شکلدهی از متن، غالباً برتر از واژهپردازها و دیگر سیستمهای نشر رومیزی عمل میکند. امکان به وجود آوردن تغییرات دیداری در طرحبندی صفحهها معمولاً در سیستمهای دیگر چندان امکانپذیر نیست. این سیستمها زمینه و شکل را چنان بهطور تنگاتنگ با هم همگون میکنند که ایجاد ثبات و خودکارسازی غالباً دشوار است. | |
\end{multicols} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script is showing an example in Farsi language, but it should work with any other language in Arabic.