<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72"><div class=WordSection1><div style='mso-element:para-border-div;border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt'><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.0pt'>As far as I can see, it's all related to the order you choose to apply the transformations. I used the align before the rotate. If you move the align to be done after the rotate the behaviour changes. Maybe you could test a little bit and propose a better order for the transformations after testing several use cases.<o:p></o:p></span></p><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.0pt;color:#ED7D31'>Yes, if you swap align and rotate, all becomes well.  I did quite a lot of testing.  Read all of this wiki section </span><span style='font-size:9.0pt;color:black'><a href="https://therion.speleo.sk/wiki/metapost#symbol_sizing_and_positioning">Symbol Sizing and Positioning</a><o:p></o:p></span></p><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.0pt'><o:p> </o:p></span></p><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.0pt'>> 5.  Points that can be aligned , have their (non-zero) rotation corrupted when they are both rotated and aligned.  You can see in the example that the speleothem points have been aligned bottom-right, when the th2 file says they should be aligned right).  This problem exists with all (almost) existing Therion points.  I have identified the cause and proposed a solution here <a href="https://therion.speleo.sk/wiki/metapost#symbol_sizing_and_positioning">https://therion.speleo.sk/wiki/metapost#symbol_sizing_and_positioning</a> but my metapost skills are very basic, so no doubt it could be improved upon.<o:p></o:p></span></p><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.0pt'><o:p> </o:p></span></p><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.0pt'>I'm not sure I fully understand your issue. The result for rotated and right aligned symbols seemed more intuitive to me when I inverted the align and the rotate transformations in symbols. I bet that would be a nice change but I wonder if you are talking about something more subtle that I have not fully understood yet.<o:p></o:p></span></p><p class=MsoPlainText style='border:none;padding:0cm'><span style='font-size:9.0pt;color:#ED7D31'>I think you have understood what I am referring to.  The situation where this is most apparent and vexing in a real cave drawing is when using a point water-flow, or point air-draught entering or leaving a passage (perpendicular to a wall).  You want to align the symbol so that it plots correctly at a variety of scales, but invoking the alignment makes it displace in entirely the wrong direction.  It at first appears to be random, because it depends entirely on the value of the rotation option.  But this is a live problem (bug) for almost every point symbol currently in Therion.<o:p></o:p></span></p></div><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='font-size:12.0pt'>Oops, I have messed up.  I did not test the information in the wiki post sufficiently, six months ago when I wrote it, and just made the assumption that I had fixed a Therion symbol alignment problem that I had noticed.  In fact, I just changed the problem.  So my coloured words in the boxed text above are wrong, and the wiki post is only partly correct.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'><img border=0 width=275 height=287 style='width:2.8645in;height:2.9895in' id="Picture_x0020_1" src="cid:image003.png@01D5A7CF.5AC05280"></span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'>So if you are looking at the lower diagram in the wiki post and trying to make sense of it, don’t worry, it is wrong and the pictures show that it is wrong!<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'>There are SOME Therion point symbols that do not align correctly, but it is not a general problem (of course, someone would have noticed it before now).  My proposed solution in the wiki post is therefore not right, and actually makes the problem worse.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'>I think I know what to do now, but won’t have time for a while.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'>Symbols that align the wrong way include water-flow and air-draught.  There is also something amiss with the alignment of speleothem symbols, but it is not of the same nature.  Eventually I will have a go at fixing it, but not for some time. Maybe I will put together an example file to demonstrate the issue first, so that I can be sure second time around that it is solved.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'>Sorry about any confusion caused.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'>Bruce<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt'><o:p> </o:p></span></p></div></body></html>