From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98716 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 20:17:21 +0200 Message-ID: <5988AEB1.1030702@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0376050533622296587==" X-Trace: blaine.gmane.org 1502129898 18104 195.159.176.226 (7 Aug 2017 18:18:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2017 18:18:18 +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 20:18:03 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 1dembL-0003yg-84 for gctc-ntg-context-518@m.gmane.org; Mon, 07 Aug 2017 20:18:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85DA1105302; Mon, 7 Aug 2017 20:17:47 +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 JiVUUCASieXC; Mon, 7 Aug 2017 20:17:42 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id A50A4105305; Mon, 7 Aug 2017 20:17:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A55C8105305 for ; Mon, 7 Aug 2017 20:17:41 +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 Ab9bx13_tW8g for ; Mon, 7 Aug 2017 20:17:36 +0200 (CEST) Original-Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (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 6BA5A105302 for ; Mon, 7 Aug 2017 20:17:25 +0200 (CEST) Original-Received: by mail-wm0-f41.google.com with SMTP id t201so13477856wmt.1 for ; Mon, 07 Aug 2017 11:17:25 -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=3kTPY0qQrTn/9GyB/+/9eK84MOOBhOUFKsOMTo6rabk=; b=FBnYxJd2PS/zRGbMIZEe4wWBfs4RkrB0DG8iEVcrN9BWE5Nfe9chlGs7GLcZQvExlc hOeNx/OBbOoZYGCyCS0MQ9+jh2cQwUk6yWynmqKqxQtGjBk2cZFxYtzZ//46YiR8dD18 e4ASm0XJ22RwguLvCI92HEpQHYedUz7gs1TVb+14nFikLrB7v+A3zJIzJfRh+DIwBcHR WNYAZrBdPUSKWCL7+NfS9lEkrYAsDilrwGlGcEoonKDCRT5ErZFeKWAr072k7i5xPWOW gmgaJYIZRe+jjMQGSyCn/1eXHHgQUHEoKrJ9MVynnQjsdN9KsNlbE4MOdRdi7UuXK1wO QltA== 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=3kTPY0qQrTn/9GyB/+/9eK84MOOBhOUFKsOMTo6rabk=; b=CM1Knr5m0QGJ+dj1vinWP397zD0rrOkVvJQkgTLD15RP9A3ghRRXPYS/aK0/N3sZb1 yvvLl0JwwjgETiJmU+8IpB2J3jgOSCcm8ctqgU3wuYkO4k35pPhkLjmBI+IDZDGQqLqz M9ovyB4S3xmSEMZqmRgVlJwkLXmvju7+nvedYXPbiWKQdhyNiGgiZgm4XAc0WGTMnO9r kUVm84sixqrO6gx2bJFJMqoThEemRgFB/JMOjn+Q7J56MF5D2kINdKgv8SYURNVaKG9m MziwGLdNDzPCZR8SqnJbHyOyLUvo3qoz9wPTjr7rJYlZOPb8q4++EWQgJWchM6F1sDaV 7fwA== X-Gm-Message-State: AHYfb5is6p0irBqsiRTDfPRnwwuoVJfLfn5oNx4dhlQEuvbXxIXn37St Af6YOP1G4mzzOiFJkEY= X-Received: by 10.80.215.150 with SMTP id w22mr1768522edi.240.1502129844565; Mon, 07 Aug 2017 11:17:24 -0700 (PDT) Original-Received: from [192.168.1.5] (x55b0e3d7.dyn.telefonica.de. [85.176.227.215]) by smtp.gmail.com with ESMTPSA id i22sm6494203eda.10.2017.08.07.11.17.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Aug 2017 11:17:23 -0700 (PDT) In-Reply-To: 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:98716 Archived-At: This is a multi-part message in MIME format. --===============0376050533622296587== Content-Type: multipart/alternative; boundary="------------060204040003040507020701" This is a multi-part message in MIME format. --------------060204040003040507020701 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. \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 Wolfgang --------------060204040003040507020701 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.

\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


Wolfgang
--------------060204040003040507020701-- --===============0376050533622296587== 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 --===============0376050533622296587==--