From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61710 Path: news.gmane.org!not-for-mail From: John Haltiwanger Newsgroups: gmane.comp.tex.context Subject: Re: HOWTO: Typesetting Poetry in ConTeXt Date: Wed, 15 Sep 2010 23:36:11 +0000 Message-ID: References: <775114DB-28DF-4A65-BBDD-722BA80CC5D7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1995186392==" X-Trace: dough.gmane.org 1284593796 13025 80.91.229.12 (15 Sep 2010 23:36:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 23:36:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 16 01:36:35 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow1Wi-0007Ub-A0 for gctc-ntg-context-518@m.gmane.org; Thu, 16 Sep 2010 01:36:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 14540CA67D; Thu, 16 Sep 2010 01:36:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qmZ2S+eI9bXb; Thu, 16 Sep 2010 01:36:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 75229CA66D; Thu, 16 Sep 2010 01:36:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71403CA66D for ; Thu, 16 Sep 2010 01:36:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2Lra4irDe0eR for ; Thu, 16 Sep 2010 01:36:14 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 4B49ECA623 for ; Thu, 16 Sep 2010 01:36:14 +0200 (CEST) Original-Received: from mail-vw0-f41.google.com (mail-vw0-f41.google.com [209.85.212.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8FNaCHa007680 for ; Thu, 16 Sep 2010 01:36:13 +0200 Original-Received: by vws16 with SMTP id 16so659477vws.14 for ; Wed, 15 Sep 2010 16:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=zNCEvO1LaNTGJJAjqUEsl5tEkKBnAlPfOqQcOx+atAY=; b=v9QkPsWqbExHKZYGmgc46b0MlvCzuEVuRt1qh//YEkJ0LUXxwpU5qIV2fox7m22l7J h9tmnHAaREflhnhaVmOCnJTShjECUPg06U0xlQQHBlihCCpeWClYtw8jTqZvuzEbqCLQ kiMX8xnR4k3FKBCmawZ3b2aO1QlJJ1Ky7IhEk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IjmivAn2/sEwJec+qC2x8YW///sgENxUyPJUiFlqnJxgdgN7KswWSxaguBGu8EXXTS 5Jew/a2Sf9oH4lkeJkmsoToewC2RO7X2UosGAcKB1mUwsLk/HR/B2iN9qoSKCqmqeUSh HIxNuYmlTPLsROwmwzLTgl+O0NapZZB/+W848= Original-Received: by 10.220.63.138 with SMTP id b10mr1270187vci.256.1284593771727; Wed, 15 Sep 2010 16:36:11 -0700 (PDT) Original-Received: by 10.220.49.222 with HTTP; Wed, 15 Sep 2010 16:36:11 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08D7bAdxh - 9ecc49f5cb74 - 20100916 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61710 Archived-At: --===============1995186392== Content-Type: multipart/alternative; boundary=e0cb4e887c6371ccd3049054cb0a --e0cb4e887c6371ccd3049054cb0a Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 15, 2010 at 11:12 PM, Aditya Mahajan wrote: > On Wed, 15 Sep 2010, John Haltiwanger wrote: > > In general though, it is completely unnecessary, as poetry generally has >> no >> need to be defined in macros. But it's the edge cases, where I live :) >> > > On the contrary, typesetting poerty can be very tricky. This is what I did > once to typeset the divine comedy. Don't ask how I figured out the right > value of the inbetween key :) > > \setupindenting [medium,yes] > > \setuplines[inbetween={\crlf\par\setupindenting[next]\testpage[3]},indenting=next] > > \starttext > \startlines > Midway upon the journey of our life > I found myself within a forest dark, > For the straightforward pathway had been lost. > > Ah me! how hard a thing it is to say > What was this forest savage, rough, and stern, > Which in the very thought renews the fear. > > So bitter is it, death is little more; > But of the good to treat, which there I found, > Speak will I of the other things I saw there. > > I cannot well repeat how there I entered, > So full was I of slumber at the moment > In which I had abandoned the true way. > > But after I had reached a mountain's foot, > At that point where the valley terminated, > Which had with consternation pierced my heart, > > ... > \stoplines > \stoptext > > Yes, but this is an example of what I am saying: in general \startlines..\stoplines is enough (albeit here with some extra stuff integrated into \setuplines[inbetween=]). It seems to me that pretty much only if you are doing something generative would you need to worry about the specifics of buffers and defining macros for typesetting poetry (as was my case with writing a dedication page in a pandoc template). No \startpoem..\stoppoem, or even \poem (though now I am having some nice ideas for weird poetry.. as I said, I spend a lot of time with edge cases ;) Interestingly, this conversation has cleared up a few lingering details in my mind re: ConTeXt. Maybe a poetry typesetting tutorial is a worthy way to explain some key concepts? I'd be really curious to see your edition of the Inferno, by the way. --e0cb4e887c6371ccd3049054cb0a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Sep 15, 2010 at 11:12 PM, Aditya= Mahajan <adityam= @umich.edu> wrote:
On Wed, 15 Sep 2010, John Haltiwanger wrote:

In general though, it is completely unnecessary, as poetry generally has no=
need to be defined in macros. But it's the edge cases, where I live :)<= br>

On the contrary, typesetting poerty can be very tricky. This is what I did = once to typeset the divine comedy. Don't ask how I figured out the righ= t value of the inbetween key :)

\setupindenting =A0 [medium,yes]
\setuplines[inbetween=3D{\crlf\par\setupindenting[next]\testpage[3]},indent= ing=3Dnext]

\starttext
\startlines
Midway upon the journey of our life
I found myself within a forest dark,
For the straightforward pathway had been lost.

Ah me! how hard a thing it is to say
What was this forest savage, rough, and stern,
Which in the very thought renews the fear.

So bitter is it, death is little more;
But of the good to treat, which there I found,
Speak will I of the other things I saw there.

I cannot well repeat how there I entered,
So full was I of slumber at the moment
In which I had abandoned the true way.

But after I had reached a mountain's foot,
At that point where the valley terminated,
Which had with consternation pierced my heart,

...
\stoplines
\stoptext


Yes, but this is an example of what I am saying: in general=20 \startlines..\stoplines is enough (albeit here with some extra stuff integr= ated into \setuplines[inbetween=3D]). It seems to me that pretty much only = if you are doing something=20 generative would you need to worry about the specifics of buffers and=20 defining macros for typesetting poetry (as was my case with writing a dedic= ation page in a pandoc template). No \startpoem..\stoppoem, or even \poem (= though now I am having some nice ideas for weird poetry.. as I said, I spen= d a lot of time with edge cases ;)

Interestingly, this conversation has cleared up a few lingering details= in my mind re: ConTeXt. Maybe a poetry typesetting tutorial is a worthy wa= y to explain some key concepts?

I'd be really curious to see you= r edition of the Inferno, by the way.

--e0cb4e887c6371ccd3049054cb0a-- --===============1995186392== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1995186392==--