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>
Subject: Re: Typesetting Classical Arabic Poetry
Date: Sat, 24 Aug 2013 08:13:40 -0600	[thread overview]
Message-ID: <op.w2bq42mppw6hmh@ishamid-pc.wildblue.com> (raw)
In-Reply-To: <c482a1721657d585106f50028ce66597@weitnahbei.de>

[-- Attachment #1: Type: text/plain, Size: 2612 bytes --]

Hi JR,

On Fri, 23 Aug 2013 15:12:54 -0600, J. R. Schmid <jrs@weitnahbei.de> wrote:

> for better or worse, I'm trying to typeset Arabic poetry in ConTeXt

For better :-)

> after having become fed up with LaTeX for a variety of reasons. Arabic  
> script itself is not a problem and I already love how easy it is to use  
> whatever font you like and how clean ConTeXt seems to be in its design.
>
> What is giving me trouble, though, is the face that traditionally,  
> poetry needs to be typeset in two columns. Using an English poem for an  
> example, it'd look a little bit like this:
>
>                  Said Rich Accetta-Evans:
>
>    1 My  poem  delights  me    2 My   poem   is   mine
>    3 It is like fresh bread    4 When I bake it myself
>    5 It   is  like  my  son    6 The  day  he was born
>    [...]
>
> This is to be read in the order of the numbers, so "columns" or  
> "simplecolumns" won't work (I think).

I have an experimental/rudimentary module that does this. It needs some
work to get, e.g., better widths for automatic typesetting in the
high-level code (tracking the dynamic \hsize in ConTeXt) but you are
welcome to try it. See the attached module and test file.

>
> The second problem is the way in which Arabic needs to be justified,  
> namely not by adjusting the space between words, but instead by  
> adjusting the connecting line between letters:
>
>                 قال أبو الطيب أحمد بن الحسين المتنبّي
>
>    أنـا الـذي نـظر الأعمى إلـى أدبي  وأسمعـت كـلماتــي مـن به صمم
>    كم تـطلبون لـنا عيبًـا فــيعجزكم  ويكره المجد ما تأتـون والكرم
>    ما أبعـد العيب والنقصان عن شرفي  أنا الثّريا وذان الشيب والهرم
>    [...]
>
> I couldn't find any info on either of these two questions through the  
> documentation or through Google (although I might have been looking for  
> the wrong keywords). Any comments are appreciated! :-)

I'm hoping that this will be implemented in the coming months. Hans and I
have done work on the general case -- involving very advanced
font-features -- but not so much on the simple case -- involving
insertions of tatweel. That may seem counter-intuitive, usually the simple
comes before the complex ;-)

Let me know how things work, and you can write me off-list.

Best wishes
Idris
-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

[-- Attachment #2: arabic-poem.tex --]
[-- Type: application/x-tex, Size: 2634 bytes --]

[-- Attachment #3: hemistiches.tex --]
[-- Type: application/x-tex, Size: 698 bytes --]

[-- Attachment #4: arabic-poem.pdf --]
[-- Type: application/pdf, Size: 32378 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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-08-24 14:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-23 21:12 J. R. Schmid
2013-08-24 14:13 ` Idris Samawi Hamid ادريس   سماوي حامد [this message]
2013-08-26 14:15 J. R. Schmid
2013-08-26 18:06 ` Marco Patzer
2013-08-26 20:39   ` Hans Hagen

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.w2bq42mppw6hmh@ishamid-pc.wildblue.com \
    --to=ishamid@colostate.edu \
    --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).