From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98534 Path: news.gmane.org!.POSTED!not-for-mail From: Mathias Schickel Newsgroups: gmane.comp.tex.context Subject: Re: Extensible arrows in ConTeXT Date: Wed, 26 Jul 2017 13:31:38 +0200 Message-ID: References: <4595E97E-026D-4D52-9086-38C66CFC7FAE@fa.uni-tuebingen.de> <20170714132529.305955b8@zoo.hsd1.co.comcast.net> <54917205-E744-4675-9B8E-D524D93CCC7A@fa.uni-tuebingen.de> <20170722143447.0393b66c@zoo.hsd1.co.comcast.net> <3CBCB102-71E4-4058-997F-90416B56799E@fa.uni-tuebingen.de> <7f346ec3-6c66-1dc6-3dd9-511adaa03cc0@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/mixed; boundary="===============3941471316516105229==" X-Trace: blaine.gmane.org 1501068764 10063 195.159.176.226 (26 Jul 2017 11:32:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2017 11:32:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 26 13:32:38 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 1daKYL-00020f-V3 for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jul 2017 13:32:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 17C13104D8B; Wed, 26 Jul 2017 13:31:55 +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 IneMLQI-NX4j; Wed, 26 Jul 2017 13:31:54 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 4FA20104DC0; Wed, 26 Jul 2017 13:31:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 22932104DC0 for ; Wed, 26 Jul 2017 13:31:53 +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 RJ4ZvIgHOqCm for ; Wed, 26 Jul 2017 13:31:50 +0200 (CEST) Original-Received: from mx04.uni-tuebingen.de (mx04.uni-tuebingen.de [134.2.5.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3ECFD104D8B for ; Wed, 26 Jul 2017 13:31:40 +0200 (CEST) Original-Received: from math.uni-tuebingen.de (kyle.am10.uni-tuebingen.de [134.2.182.22]) by mx04.uni-tuebingen.de (Postfix) with ESMTPS id 19899103646 for ; Wed, 26 Jul 2017 13:31:40 +0200 (CEST) Original-Received: from [192.168.0.14] (ip-37-201-4-105.hsi13.unitymediagroup.de [37.201.4.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: msch) by math.uni-tuebingen.de (Postfix) with ESMTPSA id E6E821E0ABF for ; Wed, 26 Jul 2017 13:31:39 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.3273) 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:98534 Archived-At: --===============3941471316516105229== Content-Type: multipart/alternative; boundary="Apple-Mail=_3FE6C563-C89B-4ADF-8D68-633E9BA2A436" --Apple-Mail=_3FE6C563-C89B-4ADF-8D68-633E9BA2A436 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 26.07.2017 um 08:07 schrieb Pablo Rodriguez : >=20 > On 07/26/2017 07:20 AM, Mathias Schickel wrote: >>> Am 26.07.2017 um 00:47 schrieb Hans Hagen: >>> [...]>> you can patch this in that file and remake the format >>>=20 >>> elseif kind =3D=3D e_right then >>> local charlist =3D data[3].horiz_variants >>> if charlist then >>> local right =3D charlist[#charlist] >>> roffset =3D abs((right["start"] or 0) - (right["end"] or = 0)) >>> end >>=20 >> Hi Hans, >>=20 >> thank you for your quick answer! I am not sure How I can remake that >> format. Can you tell me the command for that? >=20 > Hi Matthias, >=20 > as far as I can remember, the command is (I have used it in the past, > but my memory is weak): >=20 > context --make --all >=20 Hi Pablo, thank you for advice! Unfortunately I still get the error ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: attempt to = get length of local 'charlist' (a nil value) stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: = in function 'horizontalcode' ...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:541: = in function = <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540> (...tail calls=E2=80=A6) I see two possible reasons for that: Either the command =E2=80=9Econtext --make --all=E2=80=9C is not the = right one (besides: How can I check if ConTeXt has remade the format?), = or the code is not correctly changed. Maybe you can answer that, Hans. =46rom line 506 on the code of math-act.lua now is if kind =3D=3D e_left then local charlist =3D data[3].horiz_variants if charlist then = -- this is the line of the first = error as the error code suggests local left =3D charlist[1] loffset =3D abs((left["start"] or 0) - (left["end"] or 0)) end elseif kind =3D=3D e_right then local charlist =3D data[3].horiz_variants if charlist then local right =3D charlist[#charlist] roffset =3D abs((right["start"] or 0) - (right["end"] or = 0)) end elseif kind =3D=3D e_horizontal then local charlist =3D data[3].horiz_variants if charlist then local left =3D charlist[1] local right =3D charlist[#charlist] loffset =3D abs((left ["start"] or 0) - (left ["end"] or 0)) roffset =3D abs((right["start"] or 0) - (right["end"] or 0)) end end return kind, loffset, roffset Is that correct now? In every case the error code mentioned another line of the same file: math-act.lua:541: in function = <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540> (...tail calls=E2=80=A6) >> And can you maybe patch that in the distribution, too? (Else I fear >> that I have to remake that format every time I will update the >> distribution from contextgarden.) > As far as I can tell, Hans will fix ConTeXt (he has done in the past). > But he has provided the patch, so that you may work until the next = beta > update. Okay, that is very good! >=20 > Cheers, >=20 > Pablo Best Mathias > --=20 > http://www.ousia.tk > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_3FE6C563-C89B-4ADF-8D68-633E9BA2A436 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 26.07.2017 um 08:07 schrieb Pablo Rodriguez <oinos@gmx.es>:

On = 07/26/2017 07:20 AM, Mathias Schickel wrote:
Am = 26.07.2017 um 00:47 schrieb Hans Hagen:
[...]>> you = can patch this in that file and remake the format

  elseif kind =3D=3D e_right then
=       local charlist =3D = data[3].horiz_variants
=       if charlist then
=           local right = =3D charlist[#charlist]
=           roffset =3D = abs((right["start"] or 0) - (right["end"] or 0))
=       end

Hi Hans,

thank you for your = quick answer! I am not sure How I can remake that
format. = Can you tell me the command for that?

Hi Matthias,

as far as I can = remember, the command is (I have used it in the past,
but = my memory is weak):

 context --make = --all


Hi Pablo,

thank = you for advice! Unfortunately I still get the error

ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: = attempt to get length of local 'charlist' (a nil value)
stack traceback:
= ...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: = in function 'horizontalcode'
= ...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:541: = in function = <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
(...tail calls=E2=80=A6)


I see two possible reasons for = that:

Either the command =E2=80=9Econt= ext --make --all=E2=80=9C is not the right one  (besides: How can I = check if ConTeXt has remade the format?), or the code is not correctly = changed. Maybe you can answer that, Hans.

=46rom line 506 on the code of math-act.lua now = is

if kind =3D=3D e_left = then
        local charlist =3D = data[3].horiz_variants
        if charlist = then = = -- this is the line of the first error as the error code = suggests
            local left = =3D charlist[1]
            = loffset =3D abs((left["start"] or 0) - (left["end"] or = 0))
        end
    = elseif kind =3D=3D e_right then
      =   = local charlist =3D data[3].horiz_variants
    =     = if charlist then
          =   = local right =3D charlist[#charlist]
    =         roffset =3D abs((right["start"] = or 0) - (right["end"] or 0))
        = end
     elseif kind =3D=3D e_horizontal = then
        local charlist =3D = data[3].horiz_variants
        if charlist = then
            local left =3D = charlist[1]
            local = right =3D charlist[#charlist]
        =     loffset =3D abs((left ["start"] or 0) - (left ["end"] or = 0))
            roffset =3D = abs((right["start"] or 0) - (right["end"] or 0))
    =     end
    end
    = return kind, loffset, roffset

Is = that correct now?

In every case the = error code mentioned another line of the same file:

math-act.lua:541: = in function = <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
(...tail = calls=E2=80=A6)

And can you maybe patch that in the distribution, too? (Else = I fear
that I have to remake that format every time I will = update the
distribution from contextgarden.)
As far as I can tell, Hans will fix ConTeXt (he = has done in the past).
But he has provided the patch, so = that you may  work until the next beta
update.

Okay, = that is very good!


Cheers,

Pablo


Best
Mathias


--
http://www.ousia.tk
_______________________________________________________________= ____________________
If your question is of interest to = others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki =     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_3FE6C563-C89B-4ADF-8D68-633E9BA2A436-- --===============3941471316516105229== 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 --===============3941471316516105229==--