Hi,

I uploaded a new version of lmtx. Apart from some small fixes, the configuration file is hopefully okay too. I'm sure MF will check it.

However, the biggest change is hidden. In traditional tex, inserts (used for footnotes) are implemented using a quadruple of registers. In context these come from the range 132-254 which is not used by normal allocations. The number is basically a sort of index.

However, this box/dimen/count/skip memory model doesn't work well for (possible) extensions nor does the wrapped final (per page) box fit into the more extended regular box model (not that anyone will notice or abuse that, it's just that some features of boxes don't make sense in the perspective of inserts).

Inserts are somewhat complex (and interwoven) and are also somewhat fuzzy when one wants to do checking when making progress on a page. We already deal with that in context in a reasonable way but I get the feeling that we can do better. This and the above are reasons to come up with a variant memory model that permits playing with additional features more easily. The existing storage model is stil there (after all it's tex) but for those willing to check the alternative, in page-ins.mkxl one can uncomment

   % \insertmode\plustwo

and remake the format. I rejected a mixed mode model because it makes the code ugly. Related mem grows on demand as with other mechanisms so there is no extra overhead involved.

As a consequence I had to abstract some of the insert interface in context a bit more (because we use accessors instead of boxes) and hopefully I didn't forget one. We'll see. Once I'm confident with the new approach we'll switch to that (low level) interface model and can progress. Because users don't use inserts directly themselves not much harm can be done.

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to