summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-04-01 10:50:35 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-04-01 10:50:35 +0200
commit059fc69b2c7853b937ddb4cfc9d36304dee07893 (patch)
treea58b878377348a05b55bf9b2c6ee44dcd8508c2c /metapost
parent97f560d2993c367fb84ef62eefbe90ca03c19ebc (diff)
downloadcontext-059fc69b2c7853b937ddb4cfc9d36304dee07893.tar.gz
2023-04-01 09:31:00
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mpxl/mp-base.mpxl6
-rw-r--r--metapost/context/base/mpxl/mp-xbox.mpxl5
2 files changed, 6 insertions, 5 deletions
diff --git a/metapost/context/base/mpxl/mp-base.mpxl b/metapost/context/base/mpxl/mp-base.mpxl
index 9bba87d23..ba2012b7e 100644
--- a/metapost/context/base/mpxl/mp-base.mpxl
+++ b/metapost/context/base/mpxl/mp-base.mpxl
@@ -639,7 +639,9 @@ permanent interpath, solve, buildcycle, tolerance ;
%% units of measure
-mm := 2.83464 ;
+newinternal mm, pt, dd, bp, cm, pc, cc, in, dk, es, ts ;
+
+mm := 2.83464 ; % ibm odd/even rounding
pt := 0.99626 ;
dd := 1.06601 ; % 1.0660068107174
bp := 1 ;
@@ -648,6 +650,8 @@ pc := 11.95517 ;
cc := 12.79213 ;
in := 72 ;
dk := 6.41577 ; % 6.4157650704225 ;
+es := 71.13174 ; % ibm odd/even rounding
+ts := 7.11317 ;
immutable mm, pt, bp, cm, in ; % we don't protect (yet): dd, pc cc (used as locals)
diff --git a/metapost/context/base/mpxl/mp-xbox.mpxl b/metapost/context/base/mpxl/mp-xbox.mpxl
index 365bec515..bfc844d9e 100644
--- a/metapost/context/base/mpxl/mp-xbox.mpxl
+++ b/metapost/context/base/mpxl/mp-xbox.mpxl
@@ -10,10 +10,7 @@
% copyright : Public domain
% patched : Hans Hagen
%
-% The code is the same but I've added a boxes_ namespace for some so that we don't
-% clash with metafun.
-
-% The code is the same but I've added s boxes_ namespace for soem so that we don't
+% The code is the same but I've added s boxes_ namespace for somd so that we don't
% clash with metafun. Loading and initialization is now under metafun control.
if known metafun_loaded_xbox : endinput ; fi ;