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 30083 invoked from network); 13 Jun 2023 08:30:06 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2023 08:30:06 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E47271D0; Tue, 13 Jun 2023 10:29:49 +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 Q-S9BjA97vKX; Tue, 13 Jun 2023 10:29:45 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9F14C71CA; Tue, 13 Jun 2023 10:29:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EDDD871CA for ; Tue, 13 Jun 2023 10:29:42 +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 MVj2Ilq8LKlK for ; Tue, 13 Jun 2023 10:29:39 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.53; helo=mail-ej1-f53.google.com; envelope-from=otared@gmail.com; receiver= Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 2C311BC4 for ; Tue, 13 Jun 2023 10:29:38 +0200 (CEST) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-9741caaf9d4so770429466b.0 for ; Tue, 13 Jun 2023 01:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686644978; x=1689236978; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=h7M3YFr/SSIf6n9D1NTgoR4iltMG7CT5XJqbNb0XlPU=; b=fiTPjjoVSJqy2s9iFBrpiJK8aMVg9tmmxkvjzRUiYI2n11E74pELEwMphyz6gNlfwB VQfofsk/OJlB7iCa7PVpY4R9FX0UewUkZXN8jnlrffV/lOAnM9L3FtrhPhjL3xucGRGD SUMK9+LpO2OTc0XYTJ+6pfgOLTyc5QMSg2bA8iuUrdip+YQZK6kQMgKk7ALlzyhgvvFU jdjVoLBdh5KhO6JjkKq7rKnDuyTjxesZD98llFDHpSQk3NzWvmifkCzfV763rvD8d3BB 4FcK3/SxJ3HdCA2JNkZGSRz9eqWBgJqzTwMjTGgF1fMyjFO1PYKxTJhmvTiTAe3daZ8I dAJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686644978; x=1689236978; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h7M3YFr/SSIf6n9D1NTgoR4iltMG7CT5XJqbNb0XlPU=; b=FAQvtldYiXpucPP/778zJ4GxgPweoiDfM68UeoaivfkIHQs72bxj2qg54I0OICJ79u /0TgaN6Qvn8/XObKT2NuU76xiiNJlOPsYkUJk1l3I2kn0Io58nKbHJUlKtKSDJ4qe714 BxxayQ7Y59IMO3nOyiFGcdz4amK4yYWB8XZ13bNfK+ciubaJ6XnyxZ+Nyl+C/BYRWi+n 2dX3O65RqNnXNcftpa+PKVlXHVjnXFSxfPfpa4P49a94JNkm5pCURHZ7H0dHNwVViipC j6cz5gsnwZp8mfh5U7TZubZPGW1IZpsC/yob8FPonan5w/C5i2sl/JjV63x0K0rRCy1p l74A== X-Gm-Message-State: AC+VfDwIoQ3wlkLj0Uy416B9IassBZ52MAjudhsKxTDZtdSAkFqot8wL r2qWaO0MkMeHPfzPRPsi3EfXTACaAxXxFWNd X-Google-Smtp-Source: ACHHUZ4lBC0K+wF59h9xD9EHkh73B2T1PSzXfjSbfK3BkGeUC7GImMfDgr8Pqto7y90zicfNSNSiHg== X-Received: by 2002:a17:907:7f8d:b0:974:55ea:1ad9 with SMTP id qk13-20020a1709077f8d00b0097455ea1ad9mr13345389ejc.46.1686644978169; Tue, 13 Jun 2023 01:29:38 -0700 (PDT) Received: from smtpclient.apple ([2001:b07:ac9:9252:7569:68b3:4869:c46a]) by smtp.gmail.com with ESMTPSA id q18-20020a1709066b1200b0096a6be0b66dsm6271867ejr.208.2023.06.13.01.29.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jun 2023 01:29:37 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Date: Tue, 13 Jun 2023 10:29:36 +0200 References: To: mailing list for ConTeXt users In-Reply-To: Message-Id: <2B49A49C-A649-48F5-8789-5F057EC30E15@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.15) 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: Otared Kavian via ntg-context Reply-To: mailing list for ConTeXt users Cc: Otared Kavian Content-Type: multipart/mixed; boundary="===============8110085962331010846==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============8110085962331010846== Content-Type: multipart/alternative; boundary="Apple-Mail=_F7E8A299-016D-42CF-8CE9-CA54FCEBDD67" --Apple-Mail=_F7E8A299-016D-42CF-8CE9-CA54FCEBDD67 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, Adding \hfill\break to the short line solves the issue, but probably = there 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: >=20 > 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. >=20 > % SOT > \setupinitial[n=3D2] >=20 > \setuphead[chapter][ > after=3D{\placeinitial}, > page=3Dno, > ] >=20 > \starttext > \chapter{one} > Kermit Ruffins >=20 > Meet me at the second line. >=20 > \chapter{two} > \input knuth >=20 > Meet me at the second line. > \stoptext > % EOT >=20 > Produces: https://i.stack.imgur.com/kNDqw.png = >=20 > 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? >=20 > That is, the setups should work in both cases, without any knowledge = about the first paragraph length being added between \starttext and = \stoptext. >=20 > ConTeXt LMTX version: 2023.06.04 18:58 >=20 > Thank you! > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 --Apple-Mail=_F7E8A299-016D-42CF-8CE9-CA54FCEBDD67 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi,

Adding = \hfill\break to the short line solves the issue, but probably there 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 <ntg-context@ntg.nl> 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


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 about 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
Phone: +33 6 88 26 70 95




= --Apple-Mail=_F7E8A299-016D-42CF-8CE9-CA54FCEBDD67-- --===============8110085962331010846== 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 ___________________________________________________________________________________ --===============8110085962331010846==--