mplib: identifiers starting with units
![](https://secure.gravatar.com/avatar/6e692faf04b51988f266a31864bc1efe.jpg?s=120&d=mm&r=g)
Hi,
I've been trying to use the 'cmarrows' metapost library with ConTeXt/mplib.
Essentially it's a thin wrapper around the cmr metafont sources to get
the arrowheads.
This triggers an incompatibility between mplib and classic mpost/mf:
pt#:=1pt;
In MetaFont/MetaPost pt# is an allowed identifier, but in mplib this
results in a parse error. Unfortunately, pt# is used all over the cmr
sources... would it make sense to allow using this again?
--
Leah Neukirchen
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 7/5/2023 3:47 PM, Leah Neukirchen wrote:
Hi,
I've been trying to use the 'cmarrows' metapost library with ConTeXt/mplib. Essentially it's a thin wrapper around the cmr metafont sources to get the arrowheads. This triggers an incompatibility between mplib and classic mpost/mf:
pt#:=1pt;
In MetaFont/MetaPost pt# is an allowed identifier, but in mplib this results in a parse error. Unfortunately, pt# is used all over the cmr sources... would it make sense to allow using this again? won't change .. maybe you have to define # somehow? or replace that one in the mf source
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Leah Neukirchen