On 5/10/2021 3:54 PM, Gou Lingfeng wrote:
Example:
------
\definetextbackground[undeftext][location=text,alternative=1,dash=3,background=,frame=off,voffset=-.5ex]

\starttext
Hello \starttextbackground[undeftext]
world!
\page

bbb.

\page
ccc.
\stoptextbackground
\stoptext
------

Proposed patch:
------
--- tex/texmf-context/tex/context/base/mkxl/anch-pgr.lmt.bak 2021-05-07 12:19:30.951643997 -0500 +++ tex/texmf-context/tex/context/base/mkxl/anch-pgr.lmt 2021-05-07 12:19:44.716693548 -0500
@@ -123,6 +123,9 @@
      local ht    = specification.ht <http://specification.ht>
      local dp    = specification.dp
      -- this is not yet r2l ready
+-- myfix
+realpage=texgetcount("realpageno")
+-- end
      local w = d.shapes[realpage]
      local x, y = getpos()
      if trace_ranges then
------

The module-local variable `realpage` is never changed, which is apparently a bug.
actually it's something that got lost when the approach was change a bit .. i'll send you another patch to test

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
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to