From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28752 invoked from network); 13 Jun 2023 21:02:09 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2023 21:02:09 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 524807232; Tue, 13 Jun 2023 23:01:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 K74BemPAJFsw; Tue, 13 Jun 2023 23:01:31 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 24C117242; Tue, 13 Jun 2023 23:01:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 450997242 for ; Tue, 13 Jun 2023 23:01:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 ipGu05ykasCp for ; Tue, 13 Jun 2023 23:01:28 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.175; helo=mail-qt1-f175.google.com; envelope-from=thangalin@gmail.com; receiver= Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F1B8D7232 for ; Tue, 13 Jun 2023 23:01:27 +0200 (CEST) Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-3f9ca59283cso11955571cf.1 for ; Tue, 13 Jun 2023 14:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686690086; x=1689282086; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Dc09EhfJsIHvW5NIi74Z3bnpsoeyX/GC1BYHcFJCmn8=; b=NRcdeSRJ8XGdDJyEa81exfePLN64s7QLfdxFd7/PFSliMg6wqdj1g4j8amkzrCRebR QVeQDivtvzruCUSBk5yXxeCNFvSOde5+aarPNIFfIaxJ2pxXeg7jo/6eRLOqhFHHxKJB AIo3njSSwGRxH6V2xLFCznChE6ngx/jXZf3F1PoIUSZaKv5K6VSbtupflHnjYdkQFh0n /M76W9Fl5mNTHxR3VHNZ3JU6FyjTFwmj10v9DJrhgv2DuUO3xUrES0MihnZe9lFk9gIr KeypLVkxXfYk/n6WdZ/YZ5CEsmbmTRKpZrvoYwtaATBdMIZHmxVEflr7+KKHoFFaq1mS snCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686690086; x=1689282086; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Dc09EhfJsIHvW5NIi74Z3bnpsoeyX/GC1BYHcFJCmn8=; b=HjQwWMh9dIlo5wv29xaHRs/xbR7ir7ozhDWX3ShWtJUlPfK44j+O+iJodxU5HS0Jhs DbJ1BzTVN6wi+8bfV6C1tFxPhQ6KHE5JEEoaxjE6nYIpwl76i+ccfJmbIcTUUmpJCP8C u94hTM5SfQRY4q182QIjuGuz76BDjdvOWtZ6DxUksAs3jptAAOubOZKGrhoYDRal+qqB JfkGa6cz0rGdPu0dY5p5eRcDpswl24vUQCq/QoEimQ20yS97AKjha8KV/1+uIx/sL+Bb xu0cggQELlObOcjFSI/0rjQHSAy8jAEqZHw+RWl6dljl7jlx1BO2u6Cip2aTEkpMUf4R dxKg== X-Gm-Message-State: AC+VfDwjO6cS8HHi/9ihK6ILKG+pJcarXwy0DJbDYwhXsusYsuOZfliQ ixfo+tG4f56LWQuliaMiHzHeokxGZ8UTjEWIabbu09DZ X-Google-Smtp-Source: ACHHUZ6SSwEvI2rRTgY7Yv/Pb/R9jZflruBsvR+O6bfervy/SeoZIXdhHsL9TSsX/dIWPb1hVMt1pNlUTMT5xGkCBbI= X-Received: by 2002:a05:622a:188c:b0:3f4:f58d:d00d with SMTP id v12-20020a05622a188c00b003f4f58dd00dmr17082922qtc.40.1686690085885; Tue, 13 Jun 2023 14:01:25 -0700 (PDT) MIME-Version: 1.0 References: <2B49A49C-A649-48F5-8789-5F057EC30E15@gmail.com> In-Reply-To: <2B49A49C-A649-48F5-8789-5F057EC30E15@gmail.com> Date: Tue, 13 Jun 2023 14:01:14 -0700 Message-ID: To: mailing list for ConTeXt users Subject: Re: [NTG-context] Protect the lettrine X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thangalin via ntg-context Reply-To: mailing list for ConTeXt users Cc: Thangalin Content-Type: multipart/mixed; boundary="===============0489612403176504281==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============0489612403176504281== Content-Type: multipart/alternative; boundary="0000000000006a5d3f05fe092340" --0000000000006a5d3f05fe092340 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Otared, Unfortunately, that's adding content between \starttext and \stoptext, which isn't tenable in my situation. The user is writing in Markdown, which is automatically converted to XHTML then passed to ConTeXt, and so the setups need to account for this scenario without modifying the source document. Cheers! On Tue, Jun 13, 2023 at 1:30=E2=80=AFAM Otared Kavian via ntg-context < ntg-context@ntg.nl> wrote: > Hi, > > Adding \hfill\break to the short line solves the issue, but probably ther= e > is a better way to achieve the correct result. > > \setupinitial[n=3D2] > > \setuphead[chapter][ > after=3D{\placeinitial}, > page=3Dno, > ] > > \starttext > \chapter{one} > Kermit Ruffins \hfill\break % <--- > > Meet me at the second line. > > \chapter{two} > \input knuth > > Meet me at the second line. > \stoptext > > > Best regards: Otared > > On 13 Jun 2023, at 04:43, Thangalin via ntg-context > wrote: > > I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter > wherein the first letter is a lettrine. When the first paragraph is too > short, the second paragraph overlaps the lettrine. > > % SOT > \setupinitial[n=3D2] > > \setuphead[chapter][ > after=3D{\placeinitial}, > page=3Dno, > ] > > \starttext > \chapter{one} > Kermit Ruffins > > Meet me at the second line. > > \chapter{two} > \input knuth > > Meet me at the second line. > \stoptext > % EOT > > Produces: https://i.stack.imgur.com/kNDqw.png > > How would you instruct ConTeXt to "protect" the lettrine such that > regardless of whether the first paragraph spans multiple lines, a short > first paragraph will still prevent the second paragraph from overlapping > the lettrine? > > That is, the setups should work in both cases, without any knowledge abou= t > the first paragraph length being added between \starttext and \stoptext. > > ConTeXt LMTX version: 2023.06.04 18:58 > > Thank you! > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ > > > Otared Kavian > e-mail: otared@gmail.com > Phone: +33 6 88 26 70 95 > > > > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000006a5d3f05fe092340 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Otared,

Unfortunately= , that's adding content between \starttext and \stoptext, which isn'= ;t tenable in my situation. The user is writing in Markdown, which is autom= atically converted to XHTML then passed to ConTeXt, and so the setups need = to account for this scenario without modifying the source document.

Cheers!

On Tue, Jun 13, 2023 at 1:30=E2=80=AFAM = Otared Kavian via ntg-context <ntg= -context@ntg.nl> wrote:
Hi,

=
Adding \hfill\break to the short line solves the issue, but probably t= here is a better way to achieve the correct result.

\setupinitial[n=3D2]

\setuphead[chapter][
=C2=A0 after=3D{\placeinitial},
=C2=A0 page=3Dno,
<= div>]

\starttext
\chapter{one}
Kermit Ruffins \hfill\break % <---

Meet me at = the second line.

\chapter{two}
\input kn= uth

Meet me at the second line.
\stoptex= t


Best regards: Otared
On 13 Jun 2023, at 04:43, Thangalin via nt= g-context <ntg-c= ontext@ntg.nl> wrote:

I'm us= ing KeenWrite Themes (specifically, Boschet) to typeset a chapter wherein t= he first letter is a lettrine. When the first paragraph is too short, the s= econd paragraph overlaps the lettrine.

% SOT
\setupinitial[n=3D2]

\setuphead[chapter][
=C2=A0 after= =3D{\placeinitial},
=C2=A0 page=3Dno,
]

\starttext
\chapter= {one}
Kermit Ruffins

Meet me at the second line.

\chapter{= two}
\input knuth

Meet me at the second line.
\stoptext
<= div>% EOT


How would you instruct ConTeXt to "protect&q= uot; the lettrine such that regardless of whether the first paragraph spans= multiple lines, a short first paragraph will still prevent the second para= graph from overlapping the lettrine?

That is, the = setups should work in both cases, without any knowledge about the first par= agraph length being added between \starttext and \stoptext.

<= /div>
ConTeXt LMTX version: 2023.06.04 18:58

T= hank you!
___________________________________________________________________________= ________
If your question is of interest to others as well, please add a= n entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/= listinfo/ntg-context
webpage =C2=A0: https://www.pragma-ade.nl / http://context.aanhet.net
arch= ive =C2=A0: https://bitbucket.org/phg/context-mirror/commits/
w= iki =C2=A0=C2=A0=C2=A0=C2=A0: https://contextgarden.net
______________________________= _____________________________________________________

Otared Kavian
P= hone: +33 6 88 26 70 95




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

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://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: https://contextgarden.net
___________________________________________________________________________= ________
--0000000000006a5d3f05fe092340-- --===============0489612403176504281== 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============0489612403176504281==--