Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maieul committed Feb 24, 2015
1 parent cd28eb7 commit b1854ba
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions issue244.tex
@@ -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}

0 comments on commit b1854ba

Please sign in to comment.