ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Talal Al-Azem <talazem@fastmail.fm>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: placing a paragraph with non-standard interlinear spacing onto the grid
Date: Sun, 3 Oct 2010 22:47:04 +0100	[thread overview]
Message-ID: <6D1F4CBB-6DE0-48F9-A4A2-E046A09E3F7E@fastmail.fm> (raw)
In-Reply-To: <4CA8DE8C.1030505@wxs.nl>

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

Hello Hans and Wolfgang,

Hans: Thanks for your reply. No, simply setting up the grid does not work. Because of the size of Arabic fonts relative to latin fonts, the Arabic paragraph naturally needs a bit more interlinear spacing; as such, I do not expect the paragraph to lineup on the grid (effectively, I am happy to treat it like one would a graphic or math equation). But in the English paragraph which follows, I would like the English paragraph to be realigned on the grid.

BUT: it seems that Wolfgang's suggestion works well! (At least with my minimal example, which I've attached below). Thank you both so much.

Amazing. I cannot express how impressed I am with ConTeXt at the moment, and how what used to require so much hacking in LaTeX (which I never could have come up with), and so many myriad packages, is all largely done from within ConTeXt itself! My last hurdle for shifting my work into ConTeXt remains the issue of the features needed for critical editions--most importantly the ability to key lemmas to line numbers; but that will be left to a dedicated email.

Many thanks to you both again, and to all those who've played a role in the development of ConTeXt. :-)

Kind regards,
Talal


[-- Attachment #2: testminimal.tex --]
[-- Type: application/octet-stream, Size: 1633 bytes --]

%%%	SETUP AREA

%%	PAGE SETUP
\setuppapersize[A4][A4]
\setuplayout[grid=on]
\showgrid
\setupinterlinespace[line=3.8ex]
\setupindenting[yes,big]

%%	FONTS
\usemodule[simplefonts]
\setupsimplefonts[size=12pt]
\definefontfeature[default]  [default]  [mode=node,script=arabic]
\setmainfontfallback[Lotus Linotype]  [scale=1.33,features=arabic,range={arabic,arabicsupplement}]
\setcharactermirroring[1]

%%	PARAGRAPH DIRECTION & SPACING - ARABIC - ENGLISH
\def\arabpar	{\textdir TRT\pardir TRT}

%%%	TEXT

\starttext

\input knuth

\startbaselinecorrection\setupinterlinespace[line=5ex]
\blank[1em]
\arabpar{
هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  النحرير  هذه رسالة جامعة مانعة ألفه الشيخ ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة ألفه الشيخ الفاضل النحرير  هذه رسالة جامعة مانعة
}
\blank[1em]
\stopbaselinecorrection

\input knuth

\stoptext

[-- Attachment #3: testminimal.pdf --]
[-- Type: application/pdf, Size: 25025 bytes --]

[-- Attachment #4: Type: text/plain, Size: 912 bytes --]



On 3 Oct 2010, at 20:50, Hans Hagen wrote:

> On 3-10-2010 9:14, Talal Al-Azem wrote:
>> Dear all,
>> 
>> By way of further definition and clarification of the issue: back in the world of LaTeX, I was kindly given the following code on CTT by Donald Arseneau to produce the desired effect. Mind you, it was only meant to work with a paragraph if the entire paragraph was on one page; it wouldn't work if split across pages:
> 
> does \setulayout[grid=yes] give acceptable results?
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------


[-- Attachment #5: Type: text/plain, Size: 486 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:[~2010-10-03 21:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02 22:23 Talal Al-Azem
     [not found] ` <901A8F2F-3461-405C-9A24-568A5C458235@alazem.org>
2010-10-03 19:14   ` Talal Al-Azem
2010-10-03 19:50     ` Hans Hagen
2010-10-03 21:47       ` Talal Al-Azem [this message]
2010-10-03 22:40         ` Talal Al-Azem
2010-10-04  0:17           ` Hans Hagen
2010-10-04  0:28             ` Talal Al-Azem
2010-10-03 20:19 ` Wolfgang Schuster

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=6D1F4CBB-6DE0-48F9-A4A2-E046A09E3F7E@fastmail.fm \
    --to=talazem@fastmail.fm \
    --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).