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 32000 invoked from network); 14 Jun 2023 21:33:28 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2023 21:33:28 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 70350725D; Wed, 14 Jun 2023 23:32:58 +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 k0Bbd2Km-pmB; Wed, 14 Jun 2023 23:32:54 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9A9191C363F; Wed, 14 Jun 2023 23:32:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 328E71C363F for ; Wed, 14 Jun 2023 23:32:52 +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 uWtlsvQzHICh for ; Wed, 14 Jun 2023 23:32:50 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.179; helo=mail-qt1-f179.google.com; envelope-from=thangalin@gmail.com; receiver= Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 CDED3725D for ; Wed, 14 Jun 2023 23:32:50 +0200 (CEST) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-3f9b1f43bd0so24020101cf.0 for ; Wed, 14 Jun 2023 14:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686778368; x=1689370368; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=sZpVPTn9Vho0ahLjce5DKNkRi0i3SO9XsAi8pp5iCeo=; b=ihaK0NGj+wI79fSCPYgqpFlSmB4b2dnY5No+kSqNqbNoMHqKCgplzVPlifCHIjZRzJ yMw827H8G7weOWUM+qP1VVtIWSSum2WBSkZRPeh+5Zo/y3YBMI/RLs7RQsdrKIfZLmYa 6W84rZ6rT3kiBsLVyMEDHCynuDFabuXC/u5Nc98MlVZX/cfMpZysWuk+P9QzJbECfAvA I1q5mDxzhkX8RbaKooSaSaOs/TfpkMgRDzyrXIO0nJ7y+5hqZhkOQM+l7Ggr8/BRxmhP jUJAyGd/6vlKgJx5y8s6JgkgolHYK17irhtl8jfyWyWkwbosogqsONM1YoVXruksCdjW hdBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686778368; x=1689370368; 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=sZpVPTn9Vho0ahLjce5DKNkRi0i3SO9XsAi8pp5iCeo=; b=cpE/GY4pv0hYEv9l0+UUwRuwcdpGLE9JoG9Db1i28gU/nHfj8iGTtI4Vdh4i6Dlj8c IwSy7p8ek3H67lSqKPhgc6IrY2XH5InncQGGXVCFIhW1NLP3caY/koe1j70WcRbQ6c/F BYJNU6WDtQylCC8rz3MSlVdTde/DhaMKe9LfcJi3T/b+4s6C2aD3i+yBJwqNQdiT+o9P vAZGGwXxHQ3FUuSAEL0lAVESG3ore8wJecF5YxZxr1EUKmaw82aT6tCjFbaQ6g+LUNyO MmBhRtW3Jvw8+xaOoDnT+5Ph9OqA2vrU48CZu8eLFTgur79hCHxo8RII7YQ3n/QUjzcH Z6bw== X-Gm-Message-State: AC+VfDxOMOm2ZYI6W/dQaH80XlGF87E6mtRma1WoDRnCFzAKSaAB+Rve H3uBoeOVAhbIHuooMweEMKwwv0EV1JId+nVWwcmlPw185nk= X-Google-Smtp-Source: ACHHUZ66OktgpJmGfksnYcXFemTMK1IWjX7JWYPnBgP0qvtmQpPmbN9L+gkOb+1cRcnhfjt3ZFwxrozFz6h1DWWabp4= X-Received: by 2002:a05:622a:1649:b0:3f4:e758:1857 with SMTP id y9-20020a05622a164900b003f4e7581857mr4096042qtj.30.1686778366820; Wed, 14 Jun 2023 14:32:46 -0700 (PDT) MIME-Version: 1.0 References: <2B49A49C-A649-48F5-8789-5F057EC30E15@gmail.com> In-Reply-To: Date: Wed, 14 Jun 2023 14:32:35 -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="===============6896011943445930456==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============6896011943445930456== Content-Type: multipart/alternative; boundary="0000000000005e880e05fe1db1dc" --0000000000005e880e05fe1db1dc Content-Type: text/plain; charset="UTF-8" It's a tough problem for sure. I'm wondering if there's a general solution? That is, a way to tell ConTeXt to "protect the lettrine" regardless of the source document text? Nothing can be hard-coded because the setups (take a look at keenwrite themes https://github.com/DaveJarvis/keenwrite-themes/tree/main/boschet) don't "know" anything about the source document text. That's why I stated that nothing between \starttext and \stoptext may change. In effect, we don't know if the text is going to be "Kermit Ruffins" or "Yankee Doodle Dandy" or "We believe these truths to be self-evident." All we know is that we want the first letter to be a lettrine and the subsequent paragraph not to overlap the lettrine. Cheers! > \setuphead[chapter][ > after={\placeinitial\vbox to 1cm{\relax {K{\hskip 2pt \lower 5pt > \hbox{ermit MUffins \vbox to -0.055cm {\hskip -2.8cm \raise 1pt \hbox{meet > me at the second > line}}}}}}}, > page=no, > %] > > \starttext > > \startchapter[1] > \stopchapter > > \forgetinitial \par > > \startchapter[2] > \input knuth > \stopchapter > > \stoptext > > --0000000000005e880e05fe1db1dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It's a tough problem for sure.

I'm wondering if there's a general solution?

<= /div>
That is, a way to tell ConTeXt to "protect the lettrine"= ; regardless of the source document text? Nothing can be hard-coded because= the setups (take a look at keenwrite themes https://github.com/DaveJarvi= s/keenwrite-themes/tree/main/boschet) don't "know" anythi= ng about the source document text.

That's why = I stated that nothing between \starttext and \stoptext may change.

In effect, we don't know if the text is going to be &q= uot;Kermit Ruffins" or "Yankee Doodle Dandy" or "We bel= ieve these truths to be self-evident." All we know is that we want the= first letter to be a lettrine and the subsequent paragraph not to overlap = the lettrine.

Cheers!

=