[XeTeX] XeTeX Digest, Vol 89, Issue 27

Christopher Braun chrbraun at web.de
Fri Aug 26 10:23:45 CEST 2011


Dear all,

thank you for your comments. Unfortunately, I'm more a beginner in XeLaTex, so I would prefer working with macros than creating my own environment. Is there any solution to edit Arabic poetry with ednotes (or maybe ledarab)? I join a minimal example of my file.

Thank you very much for your help!

Best wishes,

Christopher

 %&encoding=UTF-8 Unicode
%&program=xelatex
\documentclass[12pt, a4paper]{article}



\usepackage[novoc,fdf2alif]{arabxetex}
\usepackage{fix-cm}
\usepackage{fontspec}


\usepackage{marginnote}
\renewcommand*{\marginfont}{\bf\footnotesize}
\usepackage{xltxtra} %%text superscript


%%Polyglossia, includes bidi.sty
\usepackage[english]{polyglossia}
\newfontfamily\arabicfont[Script=Arabic, Scale=1.3, WordSpace=2]{Scheherazade}

%%Bidipoem
\usepackage{bidipoem}


%%Fancy Header
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\setlength{\headheight}{16.5pt}
%%\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
%%\chead{\leftmark}


\autofootnoterule

\usepackage[Apara, modulo, right, perpage, para*]{ednotes}

\PrecedeLevelWith{A}{\setRL}
\renewcommand*{\differentlines}[2]{\linesfmt{\RL{#1\textendash#2}}}%
\renewcommand*{\linesfmt}[1]{\raisebox{1ex}{\linenumberfont #1}~}%
\renewcommand{\lemmafmt}[1]{#1~[ }%


%% We do not want extra footnoterules between the different levels (see manyfoot doc):
\renewcommand{\extrafootnoterule}{}
\SelectFootnoteRule[0]{extra}

%% Finally, we define macros that make typing the critical edition as abstract as possible.
%% First the apparatus for VARIANTS in the Arabic text (level A):
\newcommand{\VAR}[2]{\Anote{\textarab{#1}}{\textarab{#2}}}
%% This is for lemmas of the form \VAR{LEMMA1\<LEMMA2\>LEMMA3}{NOTE}
%% where LEMMA2 is the portion omitted in the note: this macro is necessary
%% because \< and \> cannot appear inside the argument of \textarab
\newcommand{\VARX}[4]{\Anote{\textarab{#1}\ \<\textarab{#2}\>\ \textarab{#3}}{\textarab{#4}}}
\newcommand{\CORR}{\textarab{.sa.h.h-}\ }%

\begin{document}
\pagenumbering{arabic}
\fancyfoot[C]{\arabicfont\addfontfeature{Mapping=arabicdigits} \thepage}
\chead{}
\renewcommand{\linenumberfont}{\arabicfont\addfontfeature{Mapping=arabicdigits}\small}
\resetlinenumber
\reversemarginpar

\begin{arab}
\begin{pagewiselinenumbers}

\marginpar{\textarab{[1w]}}
bismi al-ll_ahi 'l-ra.hman 'l-ra.hIm

\begin{traditionalpoem}
 \marginpar{\textarab{[1.z]}}
tamsak bi-.habl al-ll_ahi \VAR{yA .sA.h}{\CORR yA .dA.h} wa-ijtahid&wa-'a.tlub wa-lA ta.djar fa-fI 'l-.talab 'l-_hayr\\
\end{traditionalpoem}

\newpage
 \end{pagewiselinenumbers}
\end{arab}
\end{document}

-----Ursprüngliche Nachricht-----
Von: xetex-request at tug.org
Gesendet: 25.08.2011 12:00:01
An: xetex at tug.org
Betreff: XeTeX Digest, Vol 89, Issue 27

Send XeTeX mailing list submissions to
xetex at tug.org

To subscribe or unsubscribe via the World Wide Web, visit
http://tug.org/mailman/listinfo/xetex
or, via email, send a message with subject or body 'help' to
xetex-request at tug.org

You can reach the person managing the list at
xetex-owner at tug.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of XeTeX digest..."


Today's Topics:

1. Re: Critical edition of an Arabic poem with ednote and
bidipoem.sty (Jens Bakker)


----------------------------------------------------------------------

Message: 1
Date: Wed, 24 Aug 2011 15:03:37 +0200
From: Jens Bakker <jbakker at uni-bonn.de>
To: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
Subject: Re: [XeTeX] Critical edition of an Arabic poem with ednote
and bidipoem.sty
Message-ID: <CE75A6F7-F9ED-474E-85E7-CF01914C060F at uni-bonn.de>
Content-Type: text/plain; charset="iso-8859-1"

Dear Christopher Braun,

Unfortunately, I am not well versed in the use of XeLaTeX/LaTeX and I have not been able to work on a critical edition for some time, but I can provide a kind of example for XeLaTeX which makes use of the package "manyfoot" and of course "bidi" by the way of "polyglossia", and which may be useful for you after modifications. To run this source file it is necessary to have the free font "Scheherazade" installed, or to choose another Arabic font in line 24 of the file, in the command: \newfontfamily\arabicfont[Script=Arabic,Scale=1.6]{Scheherazade}.





In the documentation of the package "Arabxetex" you can find some suggestions for critical editions.

With best wishes and best regards,
Jens Bakker



Am 23.08.2011 um 17:06 schrieb Christopher Braun:

> Dear list members,
>
> for a critical edition of an Arabic text including poetry I would like to use bidipoem, but my ednote commands to edit the apparatus criticus do not work in the traditionalpoem-environment. Is there a solution to this problem? Moreover, it is not possible to add marginnotes and the linenumbering is interrupted.
>
> Thank you for your help!
>
> Best wishes,
>
> Christopher
>
>
> Schon geh?rt? WEB.DE hat einen genialen Phishing-Filter in die
> Toolbar eingebaut! http://produkte.web.de/go/toolbar
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110824/c48fdfdb/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: critedtest1.tex
Type: application/octet-stream
Size: 3650 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20110824/c48fdfdb/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110824/c48fdfdb/attachment-0003.html>

------------------------------

_______________________________________________
XeTeX mailing list
XeTeX at tug.org
http://tug.org/mailman/listinfo/xetex


End of XeTeX Digest, Vol 89, Issue 27
*************************************


___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar



More information about the XeTeX mailing list