From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32713 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: reference grammar (was: unknown) Date: Sun, 28 May 2023 20:28:27 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33548"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB5XSZ2RQMGQE3KLV24A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 28 22:28:43 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f192.google.com ([209.85.208.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q3N0N-0008Xc-Cw for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 28 May 2023 22:28:43 +0200 Original-Received: by mail-lj1-f192.google.com with SMTP id 38308e7fff4ca-2af2059164fsf10380511fa.1 for ; Sun, 28 May 2023 13:28:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685305722; cv=pass; d=google.com; s=arc-20160816; b=TDGtnQD8XROWsfH+wqN+xFTSrBQ0/cuR5ZVShtrG1n8r2Tv7vG99FHP2ISY//fFAvF g/hXKrxVpYmBprjDoIwOx+/AaiG4mfqYEMlu8N6RyaVGIJWlhPIiiS6IgnMjV0+Qt67N rngrM5uuKEOijXCwMlQ3odx23Pb5m4vUK5lsueJz5OEFpy8LU+soAJ2NwmsFF9RG9QQ4 xokv7Drkrb+PRCphZ5NLdD9fqUwuvP7AeuRjPSJlUjx15zVAUKYYEyz6V/z1Ob/jRnAS SAMMDIakZwSMDwqh/dmnD/3u18di42EZ/e/JNlR49wCj+e/k+w3ahaxjnXFxUPlmGBhZ MScA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=6cEtF380bbrR0iMiKTdcjTOxtPxPLVcdjpIW1J4nYMo=; b=HWYujGH8WmUuzJAY3fUq6IjjAnczxb8YTBxO5mPOyC0ej3kNoqWs4UneRtUNEuic1G ltb5aewzpQ87L0sQi+L7XC2CZFe/Vkyzw575SaY/AIrVl1fRKnEFiLR5RGpU7duVGV/Q JK1AEUNCdPdiR6zEPhOX7Db6rC+az/w+s59QJu1xv2CGvp9Gh26w3T/UTDoHKybNay+R ioefVG+u2ehRbdsVHdjuEEXm7GE0nyWh+vdtI9W/a5hg9sWardn9jPyTxrr1dTpvg6kn kxotLgRDYZcr1RYRsMS1+aqqfzadBUB5NtntjoPm0DtxK52iHVKflx57++fJZc3jrnDl oQpg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=L3cfyswf; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1685305722; x=1687897722; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=6cEtF380bbrR0iMiKTdcjTOxtPxPLVcdjpIW1J4nYMo=; b=NxlYCsqaIKyj/XidTHSJvLhMwVcyEwe5dI7/JOE5o+kczjOmnFr5L+UZ2TkAybwAZg qeO7XgM/ihYsn53LYxh7U9UsKr+APbkKhoJs1CppnEosLrpRNSpkfWLFr6pL7d180XDG MIo8ruld7GHQni/KXD4nxeVFihqT0S1TqAyq0GMHb0E1GTeTNuHbVzeYN/pI1xokmXIq r0teW1dgUof/p4ECtj2GMiTz92hnX8tkVD+/8ImTkJONcPtRbdppYXI7a8mOZB6eFnmw 8/pj3IzkV6y0tybyy X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685305722; x=1687897722; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=6cEtF380bbrR0iMiKTdcjTOxtPxPLVcdjpIW1J4nYMo=; b=fRojBoD5iNxOevoyfGzw8N2iYKFjidIkd1ja4q0kuAOHUyd2KVusSPXnjPUTsVCUWs /vIzF/0m+hhf4lxx7uksk930vEqx6LO+WaOjmy0WRTAE/Szsr6YmOQWbb48H/1eEC+uY A9c0IGZ/DY1R4V4xwL2D5q4Kqw/iTTb0/AE48icjbUc4LQyWw4n95tkN+dEhc0hmdC+T SkQBcjEgjWWU00qRpzq437paBOtX Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDynvX6sdSytGqDutVdkXJ3HrtgDgOvIUlbCJm0OCCTBBEdi6Apo J34Z/vEzW1WiBIzG/1pbhe4= X-Google-Smtp-Source: ACHHUZ5Zu9EKe8lkqpMG8IPce5x3YCR0IBaNkJsJqKO+3JD8k/Rl/qev8jSHcoiYcSftaGfgPlQjzw== X-Received: by 2002:a2e:9b59:0:b0:2a8:ea22:28b7 with SMTP id o25-20020a2e9b59000000b002a8ea2228b7mr2137270ljj.7.1685305722210; Sun, 28 May 2023 13:28:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:8788:0:b0:2b0:3011:17d6 with SMTP id n8-20020a2e8788000000b002b0301117d6ls1642078lji.0.-pod-prod-09-eu; Sun, 28 May 2023 13:28:36 -0700 (PDT) X-Received: by 2002:a19:a40d:0:b0:4f2:391f:e9a3 with SMTP id q13-20020a19a40d000000b004f2391fe9a3mr3492181lfc.3.1685305716384; Sun, 28 May 2023 13:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685305716; cv=none; d=google.com; s=arc-20160816; b=s8TKldaw06GDdimjHmPKX8yqmL8fzzM0fPn2RyzFD6ObY7nFcnwM/UCIQLgImjVuAg f/T99Gfk+3dZYPzO0nc7Vp7+Lc/EIBt/mUWQPO9/l5ZLDhRTs/yh4vnUH4qw4lv87qHu DN1G82avZQlUSGB43uyE580OezzqhP6Lg067eg1MbC0Ca82Zd+z+cMpLLGbp8Y/3/wlW MYCVBSgnypFses5Ci7hxa6TRO+LW/otCpmyA+Ush/DoXmg+YinO/Y0TIGRTteDUpNsB2 USnCKEH3Ivo5Wi2Wp7EKrZFr2WFcJOEOieYZxv2YXG98LV66Z84U0mJ12JCHAwCZl7lD MIFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=Y75e6LEC8TbL93kVN9LUzADmb9lPgEA0v3uk/JM6uvI=; b=FG0YLMzgDszJRdM/YiU0t0gn8V7v3YO1jrxNZ7uKjVORQDiVMwByug1q/72cuiqCIl NtwV73gHdng+fQ/cpWkqWzf87OpRs87AzZsNUdbjtbfBkEpB49wFocEfXVEEzgje5Ajm RjikTWRN34d5oEFkeg5SvXpQVp0KxsTg3xSXxNqwErXbHAEQWH30iux9nX9jf3B4yOo1 gu/S2ZRoHqn1cDezly3JdFqmZmXkVrHhRaT/0EHQNV2PP0jNluPOv3vphtLGe8dY1M23 2ypWAMCpMlO9xhmiIbMBGJd8sTRaZjBI+5Qw1oAUAnmZxumjONFHR27/rKHWlFiP8CcV jMnA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=L3cfyswf; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id g14-20020a0565123b8e00b004f3a950560esi723441lfv.7.2023.05.28.13.28.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 13:28:36 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A712D240103 for ; Sun, 28 May 2023 22:28:35 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QTqxH2GHsz9rxH for ; Sun, 28 May 2023 22:28:35 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=L3cfyswf; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32713 Archived-At: Using both LaTeX and ConTeXt, I find that ConTeXt is worth the learning cur= ve if you have specific typographic requirements. A good starting point is = the =E2=80=9CNot so short introduction to ConTeXt=E2=80=9D, and then you ca= n explore the various manuals and the wiki. However, a lot of commands are = rather badly documented, so you will have to do experiments with them and r= ead the source code. The mailing list and its archive are a good source of = information too. Regarding sorting, you may be interested in https://wiki.contextgarden.net/= Command/definesorting. It is possible to add a language in the sorters.defi= nitions Lua table via \directlua after https://source.contextgarden.net/tex= /context/base/mkiv/sort-lan.lua (I just wrote a simple example, you can con= tact me privately if you are interested). Le Sunday 28 May 2023 =C3=A0 12:27:17PM, BPJ a =C3=A9crit : > First of all apologies for forgetting to put a subject on my original pos= t! >=20 > Den fre 26 maj 2023 00:20Rik <[1]amphiboly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev: >=20 > On 2023-05-25 09:52, BPJ wrote: > > (Apologies to those who get cross-posts of this =E2=80=94 I hope to= reach as > > many as possible, and believe that there may be people here who hav= e > > relevant experience.) > > > > Hello everyone, > > > > I'm looking for advice from people who have used LaTeX, preferably > > XeLaTeX but LuaLaTeX is interesting too,[1] to write a (=E2=80=9Ctr= aditional=E2=80=9D) > > reference grammar (or even better an historical reference grammar),= and > > if so have you anything to share =E2=80=94 code or pointers or exam= ples? I will > > almost certainly mesh LaTeX and Pandoc so experiences from handling= the > > issues mentioned below in that context are very welcome. > > > > I have tried to find something on CTAN but have come up empty hande= d, > > and googling =E2=80=9Cwrite [natural language] reference grammar wi= th LaTeX=E2=80=9D has > > proved useless. > > > > The first feature I will need is section numbers =E2=80=94 =E2=80= =9C=C2=A7 42=E2=80=9D style =E2=80=94 which > are > > > > -=C2=A0 =C2=A0in the left margin against a paragraph; > > -=C2=A0 =C2=A0possible to reference with links in the PDF; > > -=C2=A0 =C2=A0preferably using a label since the actual numbers may= be subject to > > change when adding/moving around parts; > > -=C2=A0 =C2=A0with running =C2=A7 numbers (of first =C2=A7 on left = page and (preferably) > > last =C2=A7 on right page) in the page headers; > > -=C2=A0 =C2=A0independent of chapter/heading structure: a =C2=A7 nu= mber/label stands > > against a paragraph rather than a heading, and naturally a paragrap= h may > > or may not have one; > > -=C2=A0 =C2=A0possibile to have indices =E2=80=94 index rerum and i= ndex verborum for > > multiple languages =E2=80=94 referring to =C2=A7 numbers rather tha= n pages. > > > > So I think that more generally this is about > > > > -=C2=A0 =C2=A0custom label/reference categories; > > -=C2=A0 =C2=A0custom counters; > > -=C2=A0 =C2=A0getting things into the (left) margin flush with the = top of a > paragraph; > > -=C2=A0 =C2=A0getting custom things (involving counters) into page = headers; > > -=C2=A0 =C2=A0custom index formats, specifically indices referencin= g other numbers > > than page numbers.[2] > > > > I fully expect to have to set up most of this myself, and am willin= g to > > write external scripts to deal with aspects of it =E2=80=94 preferr= ed language > > Perl (which I have been using since the mid nineties) and I=E2=80= =99m able and > > willing to use PerlTeX if convenient, since I=E2=80=99m a far bette= r Perl than > > TeX programmer, although getting a grip on LaTeX solutions would be > > wonderful! :-) I also have Lua experience but as I'm using above-AS= CII > > Unicode a lot Lua may be less useful. FWIW I have a good grip on ho= w to > > do Unicode-aware/custom-order sorting in Perl and I have even writt= en > > (slow) code to do Unicode-aware/custom-order sorting in Lua. > > > > [1] This involves needing to use system fonts and Unicode/UTF-8 enc= oded > > text using multiple scripts. Mostly Latin, IPA, Greek and some Cyri= llic, > > but using some =E2=80=9Cexotic=E2=80=9D Latin letters and combining= marks. > > > > [2] This looks relevant: <[2]https://tex.stackexchange.com/a/63674/= 93534 > > <[3]https://tex.stackexchange.com/a/63674/93534>>.=C2=A0 Using memo= ir seems to > > be a good idea anyway. > > > > -- > > You received this message because you are subscribed to the Google > > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, s= end > > an email to > > [4]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > . > > To view this discussion on the web visit > > [6]https://groups.google.com/d/msgid/pandoc-discuss/ > CADAJKhBggA8DZjkoC%3Dm7GvWRK-PdG-eDByP03tE47znBY4qOiw%40mail.gmail.co= m <[7] > https://groups.google.com/d/msgid/pandoc-discuss/ > CADAJKhBggA8DZjkoC%3Dm7GvWRK-PdG-eDByP03tE47znBY4qOiw%40mail.gmail.co= m? > utm_medium=3Demail&utm_source=3Dfooter>. >=20 >=20 >=20 > I believe that ConTeXt can handle all of these requirements. Refer to > \definelabel and related for the first three requirements, > \definemarking and related for the next, and register subentries for = the > last (see [8]https://www.mail-archive.com/ntg-context-wvrSQK3plZs@public.gmane.org/msg74028= .html) > for more on that. >=20 >=20 > That looks promising, if it is worth the learning curve since there are a > number of LaTeX packages which I already rely on which may not have a rea= dy > ConTeXt equivalent. How hard would it be to define a sort order for a new > script, perhaps wholly or partly located in the/a PUA? >=20 >=20 >=20 > -- > Rik >=20 > -- > You received this message because you are subscribed to the Google Gr= oups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, sen= d an > email to [9]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [10]https://groups.google.co= m/d/ > msgid/pandoc-discuss/u4omtu%24jj4%241%40ciao.gmane.io. >=20 > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email > to [11]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [12]https://groups.google.com/d/= msgid/ > pandoc-discuss/ > CADAJKhDp12Y8yc8uzA75zL%2BPe-3_G%3D8RKe_8t%3DCAkgB1QxUwpQ%40mail.gmail.co= m. >=20 > References: >=20 > [1] mailto:amphiboly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > [2] https://tex.stackexchange.com/a/63674/93534 > [3] https://tex.stackexchange.com/a/63674/93534 > [4] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [5] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [6] https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBggA8DZjkoC%3= Dm7GvWRK-PdG-eDByP03tE47znBY4qOiw%40mail.gmail.com > [7] https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBggA8DZjkoC%3= Dm7GvWRK-PdG-eDByP03tE47znBY4qOiw%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=3Dfooter > [8] https://www.mail-archive.com/ntg-context-wvrSQK3plZs@public.gmane.org/msg74028.html > [9] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [10] https://groups.google.com/d/msgid/pandoc-discuss/u4omtu%24jj4%241%40= ciao.gmane.io > [11] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [12] https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDp12Y8yc8uzA= 75zL%2BPe-3_G%3D8RKe_8t%3DCAkgB1QxUwpQ%40mail.gmail.com?utm_medium=3Demail&= utm_source=3Dfooter --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/ZHO5a8Yb1bpEHwja%40localhost.