Can ConTeXt print specific paragraph and sentences from an input file?
Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? --Joel
On 1/27/2023 4:22 AM, Joel via ntg-context wrote:
Assuming I have an input file with an essay:
\starttext
\input essay
\stoptext
Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? depends on the kind of input, coding etc .. how reliable is is to recognize a sentence and such, but given that tex is a programing environment all is possible in the end
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
I've tried to keep all of the input files entirely 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 legally I must include the citations. 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-context
Assuming I have an input file with an essay:
\starttext
\input essay
\stoptext
Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? depends on the kind of input, coding etc .. how reliable is is to recognize a sentence and such, but given that tex is a programing environment all is possible in the end
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH 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, 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 ___________________________________________________________________________________
participants (2)
-
Hans Hagen
-
Joel