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: Mon, 25 Nov 2013 12:40:54 +0200	[thread overview]
Message-ID: <20131125104054.GA28763@khaled-laptop> (raw)
In-Reply-To: <52926D37.4060608@mmnetz.de>

On Sun, Nov 24, 2013 at 10:18:47PM +0100, "H. Özoguz" wrote:
> >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).
> 
> Yes, that works. But the direct way works with Uhtmanic1HafsVer9:
> 
> \definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
> \definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 17pt]
> \starttext
> \setupalign[r2l]
> \arabicamiri بِـَٔايَـٰتِ
> \blank
> \arabicuth بِـَٔايَـٰتِ
> \stoptext

I consider this wrong input so it is not supported by Amiri; the Hamza
in بءايت is exactly the same Hamza in ءايت prefixed with ب, so the same
Unicode character should be used in both, and Amiri goes to a great
length to support this. Using a combing Hamza (which is a different
Hamza) over a Tatweel is just a hack to emulate the same effect that you
get “natively” with Amiri, I may support it in the future, but it is not
a priority. If you read Arabic, the Amiri manual describes the proper
Unicode sequences to input some of the Quranic marks that people get
confused about because of the messiness of this area in Unicode (I
should translate the manual to English, but time is always an issue).

> 
> To be honest, in Corel Draw UthmanicHafs is the perfect font for my purpose
> - at least in CorelDraw - e.g.: The ayat-numbers are printed as a
> unicode-symbol, not as numbers (perfect, because ConTeXt has problems with
> the direction with arabic numbers, they are mirrored in ConTeXt).
> 
> But it is only perfect in CorelDraw, in ConTeXt some things are not
> recognized correctly, as I mentioned. E.g. this one:
> 
> \definefont[arabicamiri][file:amiri-regular.ttf*arabic at 15pt]
> \definefont[arabicuth][file:UthmanicHafs1Ver09.ttf*arabic at 17pt]
> \starttext
> \setupalign[r2l]
> \arabicuth لِّلْمُتَّقِينَ ﴿٢﴾
> \stoptext
> 
> If I put the same arabic into CorelDraw, it prints a nice Unicode-Symbol for
> the number - see the JPG I have attached here, screenshot from CorelDraw,
> but ConTeXt ignores the brackets and prints just a verys small number. There
> are some problems like this. Are they easy to fix, or is this problem deeply
> involved?

This seems like a font hack, the proper way to input the Aya mark is
what Ondřej describes in his reply.

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
___________________________________________________________________________________

  parent reply	other threads:[~2013-11-25 10:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-24 21:18 "H. Özoguz"
2013-11-24 22:02 ` Ondřej Hošek
2013-11-25 10:40 ` 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 19:53 "H. Özoguz"
2013-11-24 21:04 ` 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=20131125104054.GA28763@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).