<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%%% This example is adapted from
%%% https://tex.stackexchange.com/questions/152184/lettrine-and-arabic-script/
%%%
%%% This file can be compiled either with LuaLaTeX or XeLaTeX.
%%% The syntax for loading babel slightly differs between Lua- and Xe-LaTeX.
%%% Compiling this file with XeLaTeX works with bidi version 40.1 or above.

\documentclass{article}
\usepackage{iftex}
\usepackage{fontspec}
\setmainfont{FreeSerif}
\usepackage{lettrine}
\renewcommand{\LettrineTextFont}{\upshape} % No small caps
\renewcommand{\LettrineTestString}{Û±â€¬â€¬}      % No Latin letter
\renewcommand{\LettrineSecondString}{â€«Ù‡â€¬â€¬â€¬â€«Ø¯â€¬}   % No Latin letter
\ifluatex
  \usepackage[bidi=basic]{babel}
  \babelprovide[import, main]{persian}
\fi
\ifxetex
  \usepackage[bidi=bidi-r]{babel}
  \babelprovide[import, main]{persian}
\fi
\begin{document}
\lettrine[lines=3]{Û±â€¬â€¬}{}    ØªÙ‚Ø¯ÛŒÙ… Ø¨Ù‡ Ø¹Ø§Ù„ÛŒØ¬Ù†Ø§Ø¨ ØªØ¦ÙˆÙÛŒÙ„ÙˆØ³:\\
ØªØ§ Ø¨Ù‡ Ø­Ø§Ù„ Ù†ÙˆÛŒØ³Ù†Ø¯Ú¯Ø§Ù† Ø¨Ø³ÛŒØ§Ø±ÛŒ Ø¨Ù‡ Ù†ÙˆØ´ØªÙ† Ø´Ø±Ø­ ÙˆÙ‚Ø§ÛŒØ¹ÛŒ ÙƒÙ‡ Ø¯Ø± Ø¨ÛŒÙ† Ù…Ø§ Ø±Ø® Ø¯Ø§Ø¯Ù‡ Ø§Ø³ØªØŒ Ø§Ù‚Ø¯Ø§Ù… Ú©Ø±Ø¯Ù‡Ø§Ù†Ø¯
ØªØ§ Ø¨Ù‡ Ø­Ø§Ù„ Ù†ÙˆÛŒØ³Ù†Ø¯Ú¯Ø§Ù† Ø¨Ø³ÛŒØ§Ø±ÛŒ Ø¨Ù‡ Ù†ÙˆØ´ØªÙ† Ø´Ø±Ø­ ÙˆÙ‚Ø§ÛŒØ¹ÛŒ ÙƒÙ‡ Ø¯Ø± Ø¨ÛŒÙ† Ù…Ø§ Ø±Ø® Ø¯Ø§Ø¯Ù‡ Ø§Ø³ØªØŒ Ø§Ù‚Ø¯Ø§Ù… Ú©Ø±Ø¯Ù‡Ø§Ù†Ø¯
ØªØ§ Ø¨Ù‡ Ø­Ø§Ù„ Ù†ÙˆÛŒØ³Ù†Ø¯Ú¯Ø§Ù† Ø¨Ø³ÛŒØ§Ø±ÛŒ Ø¨Ù‡ Ù†ÙˆØ´ØªÙ† Ø´Ø±Ø­ ÙˆÙ‚Ø§ÛŒØ¹ÛŒ ÙƒÙ‡ Ø¯Ø± Ø¨ÛŒÙ† Ù…Ø§ Ø±Ø® Ø¯Ø§Ø¯Ù‡ Ø§Ø³ØªØŒ Ø§Ù‚Ø¯Ø§Ù… Ú©Ø±Ø¯Ù‡Ø§Ù†Ø¯
\end{document}

%%% Local Variables:
%%% coding: utf-8-unix
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: luatex
%%% End:
</pre></body></html>