ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid ادريس سماوي حامد" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Problem in arabic script
Date: Sun, 20 Jul 2008 11:48:19 -0600	[thread overview]
Message-ID: <op.uelqetnbfkrasx@your-b27fb1c401> (raw)
In-Reply-To: <6048c4180807200915t3a64772ag4d30ae302d50ac61@mail.gmail.com>

Dear Mehdi,

On Sun, 20 Jul 2008 10:15:09 -0600, Mehdi Omidali <mehdioa@gmail.com>  
wrote:

>>> I use context+luatex to write farsi texts. A problem that I have been
>>> faced is that some characters (those that are in farsi and not in
>>> arabic like "Gaf", "Kaf", "Ya" and "Che") are shown only in isolated
>>> form. How can I solve this problem. I use ubuntu and latest context
>>> and luatex.

I have added support for farsi in font-otf.lua. Ultimately we need to add  
all unicode chars that submit to contextual analysis, like Urdu, Pashto  
etc.

Until Hans gets back, do the following:

open font-otf.lua

go to line 4660

replace that definition with this one:

     local isol_fina_medi_init = {
         [0x0626] = true, [0x0628] = true, [0x0629] = true, [0x062A] =  
true, [0x062B] = true, [0x062C] = true, [0x062D] = true, [0x062E] = true,
         [0x0633] = true, [0x0634] = true, [0x0635] = true, [0x0636] =  
true, [0x0637] = true, [0x0638] = true, [0x0639] = true, [0x063A] = true,
         [0x0640] = true, -- tadwil
         [0x0641] = true, [0x0642] = true, [0x0643] = true, [0x0644] =  
true, [0x0645] = true, [0x0646] = true, [0x0647] = true, [0x0649] = true,  
[0x064A] = true,
         [0x067E] = true, [0x0686] = true, [0x0698] = true, [0x06A9] =  
true, [0x06AF] = true, [0x06CC] = true,
         [zwj] = true,
     }

save and regenerate the format.

try your file again. Works here.

Note that artro.ttf does not seem to have the correct opentype info for  
06CC, so it's not processed correctly.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2008-07-20 17:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-19 23:13 Mehdi Omidali
2008-07-20 10:54 ` Burak Emir
2008-07-20 14:09 ` Idris Samawi Hamid ادريس سماوي حامد
2008-07-20 14:20 ` Mehdi Omidali
2008-07-20 16:15   ` Mehdi Omidali
2008-07-20 17:48     ` Idris Samawi Hamid ادريس سماوي حامد [this message]

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.uelqetnbfkrasx@your-b27fb1c401 \
    --to=ishamid@colostate.edu \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).