From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116944 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Can ConTeXt print specific paragraph and sentences from an input file? Date: Sun, 29 Jan 2023 17:07:37 +0000 (UTC) Message-ID: <1580453736.587073.1675012058004@mail.yahoo.com> References: <2089107815.121593.1674789727856.ref@mail.yahoo.com> <2089107815.121593.1674789727856@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8967663433958663329==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17734"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: Joel via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 29 18:08:04 2023 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 1pMB9w-0004N6-8g for gctc-ntg-context-518@m.gmane-mx.org; Sun, 29 Jan 2023 18:08:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 52FCD3808F6; Sun, 29 Jan 2023 18:07:48 +0100 (CET) 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 yxTwJGQdZ5Lj; Sun, 29 Jan 2023 18:07:47 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 054E73808F7; Sun, 29 Jan 2023 18:07:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 33C9738081E for ; Sun, 29 Jan 2023 18:07:45 +0100 (CET) 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 YycRuEd7GTkL for ; Sun, 29 Jan 2023 18:07:44 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.130.41; helo=sonic308-2.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic308-2.consmr.mail.bf2.yahoo.com (sonic308-2.consmr.mail.bf2.yahoo.com [74.6.130.41]) (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 DB10410AC for ; Sun, 29 Jan 2023 18:07:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1675012062; bh=+H3sgxm1BHiGBWFU1C5J/FaMbQC9qrkIhjbwzvMNWnM=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=N4yaAFn8XmkbEJaBBIbG+ornUzurEd7OAr+AkUyYp5zndcdxyQGB9KndEX6U9p3Nu5SgO55ryN78pxtIRYtG7fFSBNw3VhVKU6RmR/4bn6iP6XB5Bo2d0H8Xhxv2zICPp9EvMp0b3ogbxJwMectCLGMihKwh1LgbRaSGcBUf/QP0S/4MmyIMvYy6ueVUUAudwkdfX0Tnw1J6GpSZVFjzkYKv+meac32YODsEezYJE7SUyLd9O561tkpfb98sjOD1N+m1F0fG3E3IuszZ0Il7QGOv6irFWCO9jAStRcvji/1yoh2ytYqg923Qww9aV+fpXUvZmgdJQO/pTB6xQyStHQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1675012062; bh=htaQsdeFYVuytreEMd1rR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JRtTrCvjR P7LU4WRtn09TvBq3GKUiSQLEu_IMjPJ5JeGMKAYOp8llfYmgaaILY9zYHLbfnIonfmp0NlEcSVRZ qjLFJzQCqCLhrR3FU3WF2r0uvP6K37HAqmlF0YV0G8y5rCVANVffjSMLDC44HTB_LoWXeIucBHFR zgSMScbRBHMZmWGI6nrMUnrT_4UDXszqbPB70NzzLd X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Sun, 29 Jan 2023 17:07:42 +0000 In-Reply-To: X-Mailer: WebService/1.1.21123 YMailNorrin 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:116944 Archived-At: --===============8967663433958663329== Content-Type: multipart/alternative; boundary="----=_Part_587072_705926003.1675012058002" ------=_Part_587072_705926003.1675012058002 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've tried to keep all of the input files entirely plain text, as much as p= ossible. The exception is two custom macros used to mark citations that are= in the text, \turabian{}{}{} and \ibid{}{}{}. I could find no way of getti= ng around including that in the text, as legally I must include the citatio= ns. The rest of the text is plain text with no other ConTeXt markup, or at = leave hardly any. --Joel On Thursday, January 26, 2023 at 11:44:07 PM MST, Hans Hagen via ntg-con= text wrote: =20 =20 On 1/27/2023 4:22 AM, Joel via ntg-context wrote: > Assuming I have an input file with an essay: >=20 > \starttext >=20 > \input essay >=20 > \stoptext >=20 >=20 > Is there any command to tell ConTeXt to print a specific sentence, e.g.= =20 > the first sentence from paragraph 2, or the last sentence from paragraph= =20 > 1, etc? depends on the kind of input, coding etc .. how reliable is is to=20 recognize a sentence and such, but given that tex is a programing=20 environment all is possible in the end Hans ----------------------------------------------------------------- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands =C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.pr= agma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-con= text webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net archive=C2=A0 : https://bitbucket.org/phg/context-mirror/commits/ wiki=C2=A0 =C2=A0 : https://contextgarden.net ___________________________________________________________________________= ________ =20 ------=_Part_587072_705926003.1675012058002 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've tried to keep all of the input files en= tirely plain text, as much as possible. The exception is two custom macros = used to mark citations that are in the text, \turabian{}{}{} and \ibid{}{}{= }. I could find no way of getting around including that in the text, as leg= ally I must include the citations. The rest of the text is plain text with = no other ConTeXt markup, or at leave hardly any.

--Joel

=20
On Thursday, January 26, 2023 at 11:44:07 PM MST, Hans = Hagen via ntg-context <ntg-context@ntg.nl> wrote:


On 1/27/2023 4:22 AM, Joel via ntg-co= ntext wrote:
> Assuming I have an input file w= ith an essay:
>
>= ; \starttext
>
>= \input essay
>
>= ; \stoptext
>
> =
> Is there any command to tell ConTeXt to pri= nt a specific sentence, e.g.
> the first sent= ence from paragraph 2, or the last sentence from paragraph
> 1, etc?
depends on the kind of in= put, coding etc .. how reliable is is to
recogni= ze a sentence and such, but given that tex is a programing
environment all is possible in the end

Hans

----------------------------------------------------------------= -
             = ;                     &nb= sp;       Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 G= H Hasselt | The Netherlands
      =   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
=
----------------------------------------------------------= -------

______________= _____________________________________________________________________
If your question is of interest to others as well, ple= ase add an entry to the Wiki!

=
wiki  &nbs= p; : https://contextgarden.net
_______________= ____________________________________________________________________
------=_Part_587072_705926003.1675012058002-- --===============8967663433958663329== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8967663433958663329==--