From: Ajith R <ajithramayyan@yahoo.co.in>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: metafun transformation error
Date: Fri, 4 Jun 2021 08:15:51 +0000 (UTC) [thread overview]
Message-ID: <1304265160.1973176.1622794551737@mail.yahoo.com> (raw)
In-Reply-To: <561884252.127404.1622754117330@mail.yahoo.com>
Hi all,
I am new to context and need help in solving an error.
I am trying to print some numbers in a grid onto a transparent sheet as mirror images so that the numbers are correctly displayed when I view it from the non printed side. The numbers have a particular sequence which cannot be obtained from calculations. So, they are stored in an array of strings : l[0][0] := "38"; ...
I place them at the centre of the grid squares using the code below:
for i= 0 upto (row - 1):
for j= 0 upto (col - 1):
middle := 0.5[((( i * unit) + lm), ((j * unit) + bm)), ((((i+1) * unit) + lm), (((j +1) * unit) + bm))];
p := thelabel(l[j][i], middle);
draw p;
% q := p reflectedabout (0.5[urcorner p, ulcorner p], 0.5[lrcorner p, llcorner p]);
% draw q;
endfor
endfor
This works as expected. But, when I try to reflect the label by means of the commented code, I get an error :
tex error > mp error on line 643 in file /home/ajith/Desktop/PlayGround/numgrid.tex:
>> (xpart T_,ypart T_,-0.00581xpart T_+0.00497ypart T_+0.15294,-0.00497xpart T_
-0.00581ypart T_+0.98824,-0.00497xpart T_-0.00581ypart T_+0.98825,0.00581xpart
T_-0.00497ypart T_-0.15294)
! Transform components aren't all known.
<to be read again>
;
<for(0)> ...lcorner.p];q:=p.reflectedabout(uq,lq);
draw.p; ENDFOR
<for(0)> ...=p.reflectedabout(uq,lq);draw.p;endfor
ENDFOR
<*> ...lectedabout (uq, lq); draw p; endfor endfor
StopPage ; ;
I'm unable to apply a partially specified transformation
except to a fully known pair or transform.
Proceed, and I'll omit the transformation.
I tried a mock example without the loops and that didn't throw an error.
How can I make it work within the loops?
Thanks,
ajith
___________________________________________________________________________________
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
___________________________________________________________________________________
next parent reply other threads:[~2021-06-04 8:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <561884252.127404.1622754117330.ref@mail.yahoo.com>
[not found] ` <561884252.127404.1622754117330@mail.yahoo.com>
2021-06-04 8:15 ` Ajith R [this message]
2021-06-04 9:22 ` Hans Hagen
2021-06-04 11:25 ` Ajith R
2021-06-04 12:27 ` Hans Hagen
2021-06-04 15:08 ` Ajith R
2021-06-04 15:28 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1304265160.1973176.1622794551737@mail.yahoo.com \
--to=ajithramayyan@yahoo.co.in \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).