Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
\documentclass{scrartcl} | ||
\usepackage{fontspec} | ||
|
||
% To be used with eledmac 1.18.0-1.12.0 | ||
\usepackage{eledmac} | ||
\usepackage{eledpar} | ||
|
||
\newfontfamily\syriacfont | ||
[Script=Syriac, Scale=1.2 ]{estre.otf} | ||
|
||
\newcommand{\textsyriac}[1] % Syriac inside LTR | ||
{\bgroup\luatextextdir TRT\syriacfont #1\egroup} | ||
\newcommand{\n} [1] % for digits inside Arabic text | ||
{\bgroup\luatextextdir TLT #1\egroup} | ||
\newenvironment{syriac} % Syriac paragraph | ||
{\luatextextdir TRT% | ||
\luatexpardir TRT% | ||
\luatexbodydir TRT% This solves the hspacing problem for normal | ||
% \sections but has no effect on \eledsection | ||
\syriacfont}{} | ||
|
||
\setlength{\parindent}{0pt} | ||
|
||
\begin{document} | ||
|
||
\section{English section} | ||
|
||
Horizontal spacing in english headlines works well. Also in Syriac headlines | ||
as can be seen here: | ||
|
||
\begin{syriac} | ||
\section{\textsyriac{ܡܿܟܪܟܝ}} | ||
\subsection{\textsyriac{ܡܿܟܪܟܝ}} | ||
1ܘܟܕ 2ܡܿܟܪܟܝ3ܢܢ ܐܪܟ4ܐܢܐ ܗ̄ 5ܡܘܪܐ6 ܗܿܝ ܩ7ܕܡܝܬܐ | ||
\end{syriac} | ||
|
||
\section{This is just to increase section counter} | ||
|
||
\begin{pages} | ||
\begin{Leftside} | ||
\begin{syriac} | ||
\beginnumbering | ||
\pstart | ||
\begin{syriac} | ||
\eledsubsection{\textsyriac{ܡܿܟܪܟܝ}} | ||
\end{syriac} | ||
\pend | ||
|
||
\pstart | ||
\begin{syriac} | ||
1ܘܟܕ 2ܡܿܟܪܟܝ3ܢܢ ܐܪܟ4ܐܢܐ ܗ̄ 5ܡܘܪܐ6 ܗܿܝ ܩ7ܕܡܝܬܐ | ||
\end{syriac} | ||
\pend | ||
\endnumbering | ||
\end{syriac} | ||
\end{Leftside} | ||
|
||
\begin{Rightside} | ||
\beginnumbering | ||
\pstart | ||
\eledsubsection{English subheadline} | ||
\pend | ||
|
||
\pstart | ||
But in syriac text within eledmac pages structure, the | ||
horizontal space next to the headline number is on the wrong | ||
side. | ||
\pend | ||
\endnumbering | ||
\end{Rightside} | ||
|
||
\Pages | ||
\end{pages} | ||
|
||
\end{document} |