From: "Idris Samawi Hamid ادريس سماوي حامد" <Idris.Hamid@colostate.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: r2l alignment and linenumbering conflict?
Date: Sun, 2 Aug 2015 11:15:59 -0600 [thread overview]
Message-ID: <op.x2q3kxs0ejo439@ishamid-pc> (raw)
In-Reply-To: <579B7CF8-7AEC-48DB-BB09-29E37453E56A@fastmail.fm>
[-- Attachment #1: Type: text/plain, Size: 2040 bytes --]
Dear Talal,
Salaam. See below:
On Sun, 02 Aug 2015 07:31:37 -0600, talazem@fastmail.fm
<talazem@fastmail.fm> wrote:
> Thank you very much for this, Idris. It works nicely in the sample file
> you sent. But it goes off again once you add
> \setupdirections[bidi=global]. Consider the following:
>
> ==========
<snip>
> \setupdirections[bidi=global]
>
> \setupthinrules[color=white]
> \setupwhitespace[big]
>
> \section{Incorrect}
> \startlinenumbering
> \startalignment[r2l]
> هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.
> هذه رسالة جامعة مانعة ألفها الشيخ الفاضل...
> \thinrule
> ===========
You're right. \thinrule has LR unicode characters which is probably why it
gets thrown off. So if you turn off global bidi and then either 1) just go
with either global RL or 2) invoke RL inside the linenumbering it will
work:
% \setupdirections[bidi=global]
\righttoleft %% global RL
or just
\startlinenumbering
\righttoleft %% local RL, not needed if global RL invoked
\startalignment[r2l]
Again, it's a barbarous (and temporary) workaround. See attached.
Wassalaam
Idris
PS Unless there is a lot of Latin in the critical edition file, I would
probably depend more on explicit dir commands (\righttolet, \lefttoright)
and less on bidi, which is still buggy in a number of ways. Beyond the
ConTeXt implementation: The unicode bidi algorithm was not designed with
advanced typesetting and typography in mind, works best for text-editing
etc. per se. so local bidi *may perhaps* be more useful than global bidi
for the critical-edition portion your project.
I'm not at all suggesting that this particular bug should not be a
priority; printing paragraph lines in a linenumbering environment *must*
be direction-agnostic. Just a matter of general strategy to consider.
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
[-- Attachment #2: r2l-linenumbering-arabic.tex --]
[-- Type: application/x-tex, Size: 1048 bytes --]
[-- Attachment #3: r2l-linenumbering-arabic.pdf --]
[-- Type: application/pdf, Size: 11815 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-08-02 17:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 15:30 talazem
2015-08-01 15:37 ` talazem
2015-08-01 18:04 ` Pablo Rodriguez
2015-08-01 18:35 ` Idris Samawi Hamid ادريس سماوي حامد
2015-08-01 18:47 ` Wolfgang Schuster
2015-08-02 9:24 ` talazem
2015-08-02 11:51 ` Idris Samawi Hamid ادريس سماوي حامد
2015-08-02 13:31 ` talazem
2015-08-02 17:15 ` Idris Samawi Hamid ادريس سماوي حامد [this message]
2015-08-02 20:46 ` talazem
2015-08-03 13:54 ` talazem
2015-08-03 14:56 ` Hans Hagen
2015-08-03 15:13 ` Hans Hagen
2015-08-03 15:42 ` Idris Samawi Hamid ادريس سماوي حامد
2015-08-03 15:56 ` Hans Hagen
2015-08-03 16:17 ` Idris Samawi Hamid ادريس سماوي حامد
2015-08-03 16:06 ` Idris Samawi Hamid ادريس سماوي حامد
2015-08-03 19:25 ` Otared Kavian
2015-08-03 23:30 ` Hans Hagen
2015-08-04 16:25 ` Otared Kavian
2015-08-03 15:19 ` Hans Hagen
2015-08-03 16:29 ` talazem
2015-08-03 16:52 ` talazem
2015-08-04 3:46 ` talazem
2015-08-04 21:06 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.x2q3kxs0ejo439@ishamid-pc \
--to=idris.hamid@colostate.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).