Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Perso-Arabic symbols for "year"

Received: by 10.204.149.210 with SMTP id u18mr2735444bkv.1.1338440585250;
        Wed, 30 May 2012 22:03:05 -0700 (PDT)
X-BeenThere: persian-computing@googlegroups.com
Received: by 10.204.129.85 with SMTP id n21ls753987bks.6.gmail; Wed, 30 May
 2012 22:03:03 -0700 (PDT)
Received: by 10.204.132.81 with SMTP id a17mr2732646bkt.4.1338440583519;
        Wed, 30 May 2012 22:03:03 -0700 (PDT)
Received: by 10.204.132.81 with SMTP id a17mr2732645bkt.4.1338440583500;
        Wed, 30 May 2012 22:03:03 -0700 (PDT)
Return-Path: <behdad.esfah...@gmail.com>
Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173])
        by gmr-mx.google.com with ESMTPS id ig3si1455885bkc.3.2012.05.30.22.03.03
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 30 May 2012 22:03:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of behdad.esfah...@gmail.com designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of behdad.esfah...@gmail.com designates 209.85.217.173 as permitted sender) smtp.mail=behdad.esfah...@gmail.com; dkim=pass header...@gmail.com
Received: by lbok6 with SMTP id k6so683346lbo.18
        for <persian-computing@googlegroups.com>; Wed, 30 May 2012 22:03:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:mime-version:date:message-id:subject:to:cc:content-type
         :content-transfer-encoding;
        bh=YbD2l7G75ledmRMK6UoTibLq9SE8chho/2yMFA7tL4s=;
        b=XVO25enzI350Ow6RoOij+BuPIvX2yEGygqZUo4N79Lk+9FSV7BMaKoLrY6eWVLlmCZ
         TyiqgrWnE9ylHOTjREdabsVPyK/HsFHN6lsyQuGivVCjQovnz69Vu4xEF9UiNiPyxYio
         YoUjf4t9TsUuh4L3RqgRqInoYhWk3pjDoSy6ZgjYUW6zru09skx6+G2VRYQmOaGhf+uX
         EhlPBaULJvbv1E/smE8Dr1hq8y3hrC/+iWlKixnxaqpu28GW71LO1RgQGvmMBviyvtvo
         he4UHwOt+1SMH9VbFHquguM3uOnBRj4T7mBLIp4LyJ8CK8fiK+B0wkR9IQnqqMqcctG5
         LQjg==
Received: by 10.152.148.169 with SMTP id tt9mr734467lab.49.1338440583095; Wed,
 30 May 2012 22:03:03 -0700 (PDT)
From: Behdad Esfahbod <behdad.esfah...@gmail.com>
Mime-Version: 1.0 (iPhone Mail 8L1)
Date: Thu, 31 May 2012 01:00:31 -0400
Message-ID: <6856699439853869806@unknownmsgid>
Subject: Re: [p-c] Perso-Arabic symbols for "year"
To: Khaled Hosny <khaledho...@eglug.org>
Cc: Behdad Esfahbod <beh...@behdad.org>, Shervin Afshar <shervinafs...@gmail.com>, 
	Behnam Rassi <beh...@me.com>, Connie Bobroff <conn...@gmail.com>, John Hudson <j...@tiro.ca>, 
	Persian Computing <persian-computing@googlegroups.com>, 
	Harfbuzz <harfb...@lists.freedesktop.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2012-05-28, at 10:29 PM, Khaled Hosny <khaledho...@eglug.org> wrote:

> On Mon, May 28, 2012 at 07:50:55PM -0400, Behdad Esfahbod wrote:
>> [CC'ing Khaled and HarfBuzz list]
>>
>>>
>>>
>>>
>>
>> This block:
>>
>> feature calt {
>>  sub                                              @YearSign @Digits' loo=
kup digit2medium;
>>  sub @Digits.medium                               @YearSign @Digits' loo=
kup digit2medium;
>>  sub @Digits.medium @Digits.medium                @YearSign @Digits' loo=
kup digit2medium;
>>  sub @Digits.medium @Digits.medium @Digits.medium @YearSign @Digits' loo=
kup digit2medium;
>> } calt;
>>
>> Looks completely wrong to me in that it matches the backtrack sequence i=
n the
>> wrong order.  Ie, from what I understand, and I can be totally wrong, it
>> should have lines like this:
>>
>>  sub @YearSign @Digits.medium @Digits.medium    @Digits' lookup digit2me=
dium;
>>
>> instead of this:
>>
>>  sub @Digits.medium @Digits.medium    @YearSign @Digits' lookup digit2me=
dium;
>
> AFAIK the backtrack coverage has to be in the reverse order, if I do as
> you suggest, only first digit will be matched. This have been tested
> with FireFox=C2=B9 (hb-ng), Pango (hb-old), LibreOffice (ICU) and MS Word
> (Uniscribe), so I think it is correct=C2=B2 :)

Reporting back from the Adobe communication thread:

So, apparently Adobe meant the backtrack sequence to be in logical
order, not reversed. Combining this with Khaled's observation of the
font working can only suggest that Fontforge is producing backtrack
table in reverse. Fixing that will break all fo ts relying on that
behavior of Fontforge. Khaled is to investigate more to figure out how
to proceed.

behdad


>> I like how Scheherazade SIL implements this BTW.
>
> I wanted to do it with as fewer glyph variants as possible (was then
> obsessed with smaller file size) and Scheherazade=E2=80=99s didn=E2=80=99=
t work with
> LibreOffice last time I checked.
>
>>> Finally, can anyone make any sense of the "hacks" recommended by SIL in=
 this
>>> page in terms of what's happening with the Bidi behaviour?
>>>
>>> http://scripts.sil.org/cms/scripts/page.php?item_id=3DArabicFonts#b78d0=
9ff
>>>
>>> Do they work?
>>
>> That's what I was explaining before.  Two things:
>>
>> 1. You want to force the enclosing sign into the same bidi run as the nu=
mbers.
>> Because, as I said, before Unicode 5.1 it was classified as an Arabic Le=
tter
>> and hence RTL, whereas digits are LTR.
>
> AFAIK this is no longer an issue, it has been fixed in later Unicode
> releases and an up to date software stack should do just fine with no
> hacks.
>
> Regards,
> Khaled
>
> =C2=B9 only end of ayah not the others, but since they all share the same
>  lookup, I suspect it is a Unicode properties issue on FireFox side.
>
> =C2=B2 The last Amiri release had a thinko that didn=E2=80=99t exist in p=
revious
>  release which breaks the positioning of the digits, but the substation
>  is OK, and is already fixed on master.