From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: wrong behaviour with ConTeXt unicode bidi
Date: Wed, 11 Sep 2013 19:10:23 +0200 [thread overview]
Message-ID: <5230A3FF.60305@wxs.nl> (raw)
In-Reply-To: <20130911152431.GB26429@khaled-laptop>
On 9/11/2013 5:24 PM, Khaled Hosny wrote:
> On Wed, Sep 11, 2013 at 02:37:35PM +0200, Hans Hagen wrote:
>> anyway, it would be nice to see where the three methods fail:
>
> Of the three, method one seems to give correct results on all the given
> tests (I’m yet to test with my own documents).
>
> I’m skeptical that bidi can be implemented in a one pass algorithm,
> there have been a one pass algorithm called “Pretty Good Bidi
> Algorithm”, but it has its limitation (I never tested it myself).
Sure, although it can be close to okay with some backward and forward
scanning but I'm nbot really in the mood for that now. Anyhow, for the
occasional mix of arabic and latin this method works ok. For more
extreme cases method 'one' will do and method 'two' ... well it depends
on developments in unicode as this method will be the more configurable
one. (And I can probably make a faster implementation of method two when
performance matters.)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2013-09-11 17:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 12:57 Vafa Khalighi
2013-09-10 15:26 ` Hans Hagen
2013-09-10 15:45 ` Vafa Khalighi
2013-09-10 16:20 ` Vafa Khalighi
2013-09-11 9:47 ` Vafa Khalighi
2013-09-11 11:34 ` Vafa Khalighi
2013-09-11 12:37 ` Hans Hagen
2013-09-11 15:24 ` Khaled Hosny
2013-09-11 17:10 ` Hans Hagen [this message]
2013-09-12 14:19 ` Vafa Khalighi
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=5230A3FF.60305@wxs.nl \
--to=pragma@wxs.nl \
--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).