From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107923 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tommaso Gordini Newsgroups: gmane.comp.tex.context Subject: Re: Typesetting poetry with particular indenting Date: Thu, 2 Jul 2020 16:48:18 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3381630078646344069==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25215"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 02 16:49:01 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jr0WL-0006SH-Kl for gctc-ntg-context-518@m.gmane-mx.org; Thu, 02 Jul 2020 16:49:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 036CD18550B; Thu, 2 Jul 2020 16:48:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yz3Bcbv8LezA; Thu, 2 Jul 2020 16:48:33 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C2806185501; Thu, 2 Jul 2020 16:48:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6CCA31854FF for ; Thu, 2 Jul 2020 16:48:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 126_ZAGJrsXR for ; Thu, 2 Jul 2020 16:48:31 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.44; helo=mail-ot1-f44.google.com; envelope-from=illinguista1972@gmail.com; receiver= Original-Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4A2AB1854E2 for ; Thu, 2 Jul 2020 16:48:31 +0200 (CEST) Original-Received: by mail-ot1-f44.google.com with SMTP id h13so3743484otr.0 for ; Thu, 02 Jul 2020 07:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4zs3UWfu7tRv0hB88cZuujgfmcTx8z00/eEVspYmivQ=; b=pSRN3FB0rlg2ux7WiKCdKEZnoMU932iRC9O2kcih015ehQmeO+Jnb2fo4qQzNJKfPm s2jdkOHJOHXnXQIofk2XfMSKTDSU4x+YbN2257xmk6wUy3ggPTccin4uJNXG14Nrdsi0 g16LW+ElTBc+BTY0eJdiIf3QNiXPefgNtVaC9J5TH4p28A7Z6V67UJ2oJOBbJiT7dT7u gV/BZclYkXa7kGTK+JYzLNI14RRUCJY5v7WSsrZm55jENFc0k/rCbWxmqhJnpRDkWPjW JlbtE9QEEmPSjji8XDrbDU5f0gnyYBw2WihMoQu/sAsDX0678MT5pAZGV15Slo5Yzwde 9gAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4zs3UWfu7tRv0hB88cZuujgfmcTx8z00/eEVspYmivQ=; b=Co+O6TBwnhRHlgdDJkpmoYZSeMMBUl0kIXDdfyqA+6bOFcZatZSj+vhB9Oe7ccNQ/u aNEjIeKeHV5/FzTKZ/Znos19Ad11DzgxEWkyfjbUQT6aDPssCvfaN07Y3flblVHHk9pV +aYvlQuXgSIl3NKUTCOSfacEJFaQSqHeOldCmZY/OT7+d1R2MHrQIP3oUnJy2N79caw2 MPtdLiwwa/Ou/DpIEPJXdhrxd7A5+r9DTcy5dTFlNKi0E382DClQviNdHcRxpUUHKTTc 5+GvhesorBEasIAdfs6/qCtF2RjTh2u3jkbRrs1zgWiF9eDDn1w9zjhJennPDrWgpVn1 umkw== X-Gm-Message-State: AOAM532DGHQec8Ndw/E70bM/3LVOyA083zYVYfv65wtECpv3lazpzqED 65dyxeukUJm6eDcW/KIoJtSWuHhHDPjrZ40VzcC9+Q== X-Google-Smtp-Source: ABdhPJzPQBYJhq8EzltQJko2VuWOYleBOKVx7p2Av9xFoVkr93yLFY6FFdNWgKEMq8OaLCxFMwIbJDVzLUsFI2INZqU= X-Received: by 2002:a9d:403:: with SMTP id 3mr22515674otc.234.1593701309466; Thu, 02 Jul 2020 07:48:29 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:107923 Archived-At: --===============3381630078646344069== Content-Type: multipart/alternative; boundary="0000000000006dcafa05a976804a" --0000000000006dcafa05a976804a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Taco, this works! Thank you! Now (last question), it's possibile to centering in the middle of the page the whole verse block ? Tommy Il giorno gio 2 lug 2020 alle ore 15:56 Taco Hoekwater ha scritto: > > I was having fun with this as well while Hans was writing his generic > solution. > > Here is an explicit =E2=80=98indent each 2nd and 3rd line=E2=80=99: > > %%%%%%%% > \unprotect > > \installindentingmethod {three} > {\c_spac_indentation_toggle_state\plusthree} > > \unexpanded\def\spac_indentation_tri_toggle_indeed > {\glet\checkindentation\spac_indentation_tri_toggle} > > \unexpanded\def\spac_indentation_tri_toggle > {\gdef\checkindentation > {\spac_indentation_remove > \gdef\checkindentation{\spac_indentation_tri_toggle_indeed}}} > > % this next macro is redefinition of a core macro ! > \def\spac_indentation_check_toggle > {\ifcase\c_spac_indentation_toggle_state > % nothing > \or > \spac_indentation_no_toggle > \or > \spac_indentation_do_toggle > \or > \spac_indentation_tri_toggle > \fi} > \protect > %%%%%%%%%% > > to be used with: > > \setuplines[indenting=3Dthree] > > > Best wishes, > Taco > > > On 2 Jul 2020, at 15:01, Tommaso Gordini > wrote: > > > > \starttext > > > > \setupindenting[yes,1em] > > \setuplines[indenting=3Deven] > > > > \startlines > > Per correr miglior acque alza le vele > > omai la navicella del mio ingegno, > > che lascia dietro a s=C3=A9 mar s=C3=AC crudele; > > e canter=C3=B2 di quel secondo regno > > dove l'umano spirito si purga > > e di salire al ciel diventa degno. > > \stoplines > > > > \stoptext > > Taco Hoekwater > Elvenkind BV > > > > > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000006dcafa05a976804a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Taco, this works!
Thank you!

= Now (last question), it's possibile=C2=A0to centering in the middle of = the page the whole verse block ?

Tommy
=
Il gio= rno gio 2 lug 2020 alle ore 15:56 Taco Hoekwater <taco@elvenkind.com> ha scritto:

I was having fun with this as well while Hans was writing his generic solut= ion.

Here is an explicit =E2=80=98indent each 2nd and 3rd line=E2=80=99:

%%%%%%%%
\unprotect

\installindentingmethod {three} {\c_spac_indentation_toggle_state\plusthree= }

\unexpanded\def\spac_indentation_tri_toggle_indeed
=C2=A0 {\glet\checkindentation\spac_indentation_tri_toggle}

\unexpanded\def\spac_indentation_tri_toggle
=C2=A0 {\gdef\checkindentation
=C2=A0 =C2=A0 =C2=A0 {\spac_indentation_remove
=C2=A0 =C2=A0 =C2=A0 =C2=A0\gdef\checkindentation{\spac_indentation_tri_tog= gle_indeed}}}

% this next macro is redefinition of a core macro !
\def\spac_indentation_check_toggle
=C2=A0{\ifcase\c_spac_indentation_toggle_state
=C2=A0 =C2=A0 % nothing
=C2=A0 \or
=C2=A0 =C2=A0 \spac_indentation_no_toggle
=C2=A0 \or
=C2=A0 =C2=A0 \spac_indentation_do_toggle
=C2=A0 \or
=C2=A0 =C2=A0 \spac_indentation_tri_toggle
=C2=A0 \fi}
\protect
%%%%%%%%%%

to be used with:

=C2=A0 \setuplines[indenting=3Dthree]


Best wishes,
Taco

> On 2 Jul 2020, at 15:01, Tommaso Gordini <illinguista1972@gmail.com> wro= te:
>
> \starttext
>
> \setupindenting[yes,1em]
> \setuplines[indenting=3Deven]
>
> \startlines
> Per correr miglior acque alza le vele
> omai la navicella del mio ingegno,
> che lascia dietro a s=C3=A9 mar s=C3=AC crudele;
> e canter=C3=B2 di quel secondo regno
> dove l'umano spirito si purga
> e di salire al ciel diventa degno.
> \stoplines
>
> \stoptext

Taco Hoekwater
Elvenkind BV




___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000006dcafa05a976804a-- --===============3381630078646344069== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3381630078646344069==--