ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "talazem@fastmail.fm" <talazem@fastmail.fm>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: r2l alignment and linenumbering conflict?
Date: Sun, 2 Aug 2015 21:46:44 +0100	[thread overview]
Message-ID: <B15C633C-E73A-4B10-960C-601B79047ABF@fastmail.fm> (raw)
In-Reply-To: <op.x2q3kxs0ejo439@ishamid-pc>

Thank you very much for this, Idris. What with the other bugs and problems I’ve faced with R2L (in footnotes, etc.), I was starting to wonder whether a more explicit, rather than global, use of RTL might be a better approach. I’m going to experiment with them, at least to learn how to use them with greater focus.

The good news is that apparently Hans has already patched the page-lin.lua file that Wolfgang had identified as the culprit, and it will be included in the next beta. 

Many thanks to you, Pablo, Wolfgang, and of course Hans so much for your help in getting these right-to-left issues solved. There are a couple of small bidi issues remaining, including that mentioned in the “footnotes when using RtL (Arabic)” thread. The one or two other ones I will post shortly. But, in any case, I have now completely moved my project over into ConTeXt, confident that it (and the team behind it) can handle all of the needs of a multilingual academic monograph and of a bi-direction, Arabic critical edition’s need

With many thanks,
Talal

> On 2 Aug 2015, at 18:15, Idris Samawi Hamid ادريس سماوي حامد <Idris.Hamid@colostate.edu> wrote:
> 
> 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<r2l-linenumbering-arabic.tex><r2l-linenumbering-arabic.pdf>___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2015-08-02 20:46 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 ادريس سماوي حامد
2015-08-02 20:46             ` talazem [this message]
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=B15C633C-E73A-4B10-960C-601B79047ABF@fastmail.fm \
    --to=talazem@fastmail.fm \
    --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).