From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98719 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Could you look at this? Date: Mon, 07 Aug 2017 21:57:56 +0200 Message-ID: <5988C644.5030404@gmail.com> References: <5988AEB1.1030702@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9003820048290256415==" X-Trace: blaine.gmane.org 1502135933 26623 195.159.176.226 (7 Aug 2017 19:58:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2017 19:58:53 +0000 (UTC) User-Agent: Postbox 5.0.16 (Macintosh/20170718) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 07 21:58:39 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deoAg-0006Hv-5k for gctc-ntg-context-518@m.gmane.org; Mon, 07 Aug 2017 21:58:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 44DC31053F4; Mon, 7 Aug 2017 21:58:21 +0200 (CEST) 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 MMwrGg3Oz9au; Mon, 7 Aug 2017 21:58:16 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8611C1053F0; Mon, 7 Aug 2017 21:58:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2DD371053F0 for ; Mon, 7 Aug 2017 21:58:15 +0200 (CEST) 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 e5QjKcLDDfaw for ; Mon, 7 Aug 2017 21:58:10 +0200 (CEST) Original-Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 62B4410524E for ; Mon, 7 Aug 2017 21:57:59 +0200 (CEST) Original-Received: by mail-wr0-f179.google.com with SMTP id f21so5407333wrf.5 for ; Mon, 07 Aug 2017 12:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=+6Lbkw2aB3a/pam8TO0Jj0Cv2TEcjebEaeFJ/tHCC0s=; b=V7QuE9ILxolDOjNuSOWZaYBhZ8KIKPs3PUGhC+wVPqbjawSetjk7y2zvcXh5QndA0G e8GPlUHHs/VhSK6J9LOQjG1NAxIvpQspmW+4v6n1QGyFozOW7lmXxv1eL0+QBDERkajU 4TJ3b45R+PtiOTNs5z+oWvOC4fadxstzPP900sc4CECxszmqyqR2ohZVW9zt0TARLax0 UnSaf7hqleyiQ642e1DGfbHs3BEgI3I41J6DyvQfZvqccvcDulAIwhD2xClSIvXEWfSH OURfoiuSHauWgvugHPwPvIbzbDKPC46GH5CEYoVeIqRoLXmz4sRYJgO8b/7AgNN3P+2Q GzPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=+6Lbkw2aB3a/pam8TO0Jj0Cv2TEcjebEaeFJ/tHCC0s=; b=t9qtddRClzWM6UXTDvL5njl5y4jzRqAyz09+2VNTEV5fJrdNhVyZIUEnVxUcVTqzcv K8LjigwaFbRYvfac4Y8XM4/7tm01JnTbwwcwSF0jNHrEMdohTfOlwYCZd/R0egIHnae8 DQkKzuxP6b6cBaBVWKrPXSSYTpzuTAahNntjrirNVaaVOJvBMZzhHEXsTknNXEmrVOJE BUpIY9wHUVsGmGTTZhts5dr3O6PiYiEV0eGn0jAX2B4BHFNPQ+uIlffEnS9wOU8szZHf SduJl5/8A2LCnQnLstQpZlRmZ5rvNZ7JPejtz/WF424/OwChnyelT1WFGW+CXBi5dnCJ FTRw== X-Gm-Message-State: AHYfb5iHuOz9Jn8DezKvSL+jSY1Z23thQANLQ94y2JWPNzjUBvF/hQPM gsVdQavgDGBjTwcIhAA= X-Received: by 10.223.129.35 with SMTP id 32mr1206250wrm.23.1502135878877; Mon, 07 Aug 2017 12:57:58 -0700 (PDT) Original-Received: from [192.168.1.5] (x55b0e3d7.dyn.telefonica.de. [85.176.227.215]) by smtp.gmail.com with ESMTPSA id g18sm16261536wrg.69.2017.08.07.12.57.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Aug 2017 12:57:58 -0700 (PDT) In-Reply-To: <5988AEB1.1030702@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:98719 Archived-At: This is a multi-part message in MIME format. --===============9003820048290256415== Content-Type: multipart/alternative; boundary="------------070007020105010707010700" This is a multi-part message in MIME format. --------------070007020105010707010700 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Idris Samawi Hamid ادريس سماوي حامد > 7. August 2017 um 15:54 > Hi Hans, > > https://mailman.ntg.nl/pipermail/ntg-context/2017/089431.html > > For the current writing project: It seems I've gotten about as far as > I'm going to get on the list with this. Could you kindly take a look > at the two automation challenges at the end of the message when you > get a chance? > > Eventually we want to also get, e.g. > > 1.01 > 2.01 > > etc. but the full decimal version is a start. Here is a link to the > book that illustrates the layout: > > https://www.dropbox.com/s/q7znlu0y362abno/Mure-Introduction-to-Hegel-OCR.pdf?dl=0 > > > Thanks in advance for your help. > > Idris > Wolfgang Schuster > 7. August 2017 um 20:17 > > > \defineexpandable[1]\PreviousNumber > {\number\numexpr#1-1\relax} > > \defineconversion[PreviousNumber][\PreviousNumber] > > \defineconversionset[ParagraphNumber][n,PreviousNumber,PreviousNumber] > \defineseparatorset [ParagraphNumber][.,] > > \definecounter[ParagraphNumber][numberconversionset=ParagraphNumber,numberseparatorset=ParagraphNumber] > > \define\ParagraphNumber > {\incrementcounter[ParagraphNumber]% > \incrementcounter[ParagraphNumber][2]% > \incrementcounter[ParagraphNumber][3]% > \convertedcounter[ParagraphNumber][numbersegments=1]\quad} > > \define\subParagraphNumber > {\incrementcounter[ParagraphNumber][2]% > \incrementcounter[ParagraphNumber][3]% > \convertedcounter[ParagraphNumber][numbersegments=1:2]\quad} > > \define\subsubParagraphNumber > {\incrementcounter[ParagraphNumber][3]% > \convertedcounter[ParagraphNumber][numbersegments=1:3]\quad} > > \setupwhitespace[line] > > \starttext > > \ParagraphNumber\input ward > > \subsubParagraphNumber\input ward > > \subParagraphNumber\input ward > > \subsubParagraphNumber\input ward > > \subsubParagraphNumber\input ward > > \subParagraphNumber\input ward > > \subsubParagraphNumber\input ward > > \ParagraphNumber\input ward > > \stoptext Simpler version: \defineseparatorset [ParagraphNumber][.,] \definecounter[ParagraphNumber][numberseparatorset=ParagraphNumber,criterium=all] \define\ParagraphNumber {\incrementcounter[ParagraphNumber]% \convertedcounter[ParagraphNumber][numbersegments=1]\quad} \define\subParagraphNumber {\incrementcounter[ParagraphNumber][2]% \convertedcounter[ParagraphNumber][numbersegments=1:2]\quad} \define\subsubParagraphNumber {\incrementcounter[ParagraphNumber][3]% \convertedcounter[ParagraphNumber][numbersegments=1:3]\quad} \setupwhitespace[line] \starttext \ParagraphNumber\input ward \subsubParagraphNumber\input ward \subParagraphNumber\input ward \subsubParagraphNumber\input ward \subsubParagraphNumber\input ward \subParagraphNumber\input ward \subsubParagraphNumber\input ward \ParagraphNumber\input ward \stoptext Wolfgang --------------070007020105010707010700 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Hans,

https://mailman.ntg.nl/pipermail/ntg-context/2017/089431.html

For the current writing project: It seems I've gotten about as far as I'm going to get on the list with this. Could you kindly take a look at the two automation challenges at the end of the message when you get a chance?

Eventually we want to also get, e.g.

1.01
2.01

etc. but the full decimal version is a start. Here is a link to the book that illustrates the layout:

https://www.dropbox.com/s/q7znlu0y362abno/Mure-Introduction-to-Hegel-OCR.pdf?dl=0

Thanks in advance for your help.

Idris
7. August 2017 um 20:17


\defineexpandable[1]\PreviousNumber
  {\number\numexpr#1-1\relax}

\defineconversion[PreviousNumber][\PreviousNumber]

\defineconversionset[ParagraphNumber][n,PreviousNumber,PreviousNumber]
\defineseparatorset [ParagraphNumber][.,]

\definecounter[ParagraphNumber][numberconversionset=ParagraphNumber,numberseparatorset=ParagraphNumber]

\define\ParagraphNumber
  {\incrementcounter[ParagraphNumber]%
   \incrementcounter[ParagraphNumber][2]%
   \incrementcounter[ParagraphNumber][3]%
   \convertedcounter[ParagraphNumber][numbersegments=1]\quad}

\define\subParagraphNumber
  {\incrementcounter[ParagraphNumber][2]%
   \incrementcounter[ParagraphNumber][3]%
   \convertedcounter[ParagraphNumber][numbersegments=1:2]\quad}

\define\subsubParagraphNumber
  {\incrementcounter[ParagraphNumber][3]%
   \convertedcounter[ParagraphNumber][numbersegments=1:3]\quad}

\setupwhitespace[line]

\starttext

\ParagraphNumber\input ward

\subsubParagraphNumber\input ward

\subParagraphNumber\input ward

\subsubParagraphNumber\input ward

\subsubParagraphNumber\input ward

\subParagraphNumber\input ward

\subsubParagraphNumber\input ward

\ParagraphNumber\input ward

\stoptext

Simpler version:

\defineseparatorset [ParagraphNumber][.,]

\definecounter[ParagraphNumber][numberseparatorset=ParagraphNumber,criterium=all]

\define\ParagraphNumber
  {\incrementcounter[ParagraphNumber]%
   \convertedcounter[ParagraphNumber][numbersegments=1]\quad}

\define\subParagraphNumber
  {\incrementcounter[ParagraphNumber][2]%
   \convertedcounter[ParagraphNumber][numbersegments=1:2]\quad}

\define\subsubParagraphNumber
  {\incrementcounter[ParagraphNumber][3]%
   \convertedcounter[ParagraphNumber][numbersegments=1:3]\quad}

\setupwhitespace[line]

\starttext

\ParagraphNumber\input ward

\subsubParagraphNumber\input ward

\subParagraphNumber\input ward

\subsubParagraphNumber\input ward

\subsubParagraphNumber\input ward

\subParagraphNumber\input ward

\subsubParagraphNumber\input ward

\ParagraphNumber\input ward

\stoptext


Wolfgang
--------------070007020105010707010700-- --===============9003820048290256415== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============9003820048290256415==--