ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Converting normal font into bold
Date: Sun, 24 Nov 2013 23:04:23 +0200	[thread overview]
Message-ID: <20131124210423.GA10320@khaled-laptop> (raw)
In-Reply-To: <5292591C.9050504@mmnetz.de>

On Sun, Nov 24, 2013 at 08:53:00PM +0100, "H. Özoguz" wrote:
> Again, because arabic seems to be vanished in my first posting, I dont know why.
> 
> 
> Thanks Khaled,
> 
> the Naskh-Style is not an absolute requirement, but it is very well
> known and very common (at least for muslims in germany) - and it is very
> nice, of course, this is an question of flavor.
> 
> I know your font, of course, but I had always problems with it in
> typesetting quran. Maybe you can help?
> 
> See the following code:
> 
> 
> \definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
> \definefont[arabicb][file:uthmantn1ver10.ttf*arabic at 17pt]
> \starttext
> 
>      \setupalign[r2l]
> 
>      \arabicamiri مِن قَبْلُ هُدًى لِّلنَّاسِ وَأَنزَلَ ٱلْفُرْقَانَ ۗ
> إِنَّ ٱلَّذِينَ كَفَرُوا۟ بِـَٔايَـٰتِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌ ۗ
> وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ
> 
> \blank\blank
> 
>      \arabicb مِن قَبْلُ هُدًى لِّلنَّاسِ وَأَنزَلَ ٱلْفُرْقَانَ ۗ إِنَّ
>  ٱلَّذِينَ كَفَرُوا۟ بِـَٔايَـٰتِ ٱللَّهِ لَهُمْ عَذَابٌ شَدِيدٌ ۗ
> وَٱللَّهُ عَزِيزٌ ذُو ٱنتِقَامٍ\par
> \stoptext
> 
> There are some issues within this example:
> 
> - overlapping letters (see "Aziyz")

This can be easily fixed (I can send you a fixed version if you want,
but better to discuss those issues off list).

> - "bi ayaatillah" (overlapping of fatha and hamza)

It is my believe that Unicode has the wrong properties for Arabic
standalone Hamza; in short you should just type a regular Hamza in the
middle of the word and it will get positioned correctly. Placing a
combining Hamza over a Tatweel to “fake” it is wrong IMO. So in Amiri
you just type “بِءَايَٰتِ” and voilà, every thing is rendered correctly (the
same is true for the small Alef).

It seem I just found a few ConTeXt bugs with the font, off to prepare some
tests for Hans… (just if I can use HarfBuzz and forget about all this!).

Regards,
Khaled
___________________________________________________________________________________
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:[~2013-11-24 21:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-24 19:53 "H. Özoguz"
2013-11-24 21:04 ` Khaled Hosny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-25 11:20 "H. Özoguz"
2013-11-24 23:34 "H. Özoguz"
2013-11-25 10:29 ` Hans Hagen
2013-11-24 22:33 "H. Özoguz"
2013-11-25 10:33 ` Hans Hagen
2013-11-24 21:18 "H. Özoguz"
2013-11-24 22:02 ` Ondřej Hošek
2013-11-25 10:40 ` Khaled Hosny
2013-11-24 17:52 "H. Özoguz"
2013-11-24 17:56 ` Khaled Hosny
2013-11-24 17:12 "H. Özoguz"
2013-11-24 17:27 ` Wolfgang Schuster
2013-11-24 17:03 "H. Özoguz"
2013-11-26  8:45 ` Hans Hagen
2013-11-24 14:32 "H. Özoguz"
2013-11-24 14:57 ` Wolfgang Schuster
2013-11-24 13:01 "H. Özoguz"
2013-11-24 13:28 ` Rajeesh K Nambiar

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=20131124210423.GA10320@khaled-laptop \
    --to=khaledhosny@eglug.org \
    --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).