<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;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@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=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Back to normal with <i><span style='font-size:13.5pt;font-family:"Verdana",sans-serif;color:black;background:white'><a href="https://github.com/therion/therion/tree/f02bd7a"><span style='text-decoration:none'>f02bd7a</span></a></span></i>. Thanks<o:p></o:p></p><p class=MsoNormal>Actually, not quite normal, the arrows are shaped slightly better.<o:p></o:p></p><p class=MsoNormal>They now have a radius and associated greater pen thickness I think.<o:p></o:p></p><p class=MsoNormal><img border=0 width=211 height=37 style='width:2.1944in;height:.3888in' id="Picture_x0020_12" src="cid:image002.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal><img border=0 width=131 height=92 style='width:1.368in;height:.9583in' id="Picture_x0020_14" src="cid:image004.png@01D739AC.4FA8A710"><img border=0 width=218 height=147 style='width:2.2708in;height:1.5347in' id="Picture_x0020_13" src="cid:image006.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> Therion <therion-bounces@speleo.sk> <b>On Behalf Of </b>Martin Budaj<br><b>Sent:</b> Sunday, 25 April 2021 04:44<br><b>To:</b> List for Therion users <therion@speleo.sk><br><b>Subject:</b> Re: [Therion] My map-connection symbol has broken recently<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Bruce,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>it should be fixed now. The conversion from MetaPost to PDF has been substantially changed after 5.5.7 so there might still be some issues like this. If you spot something unusual, just let us know.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Cheers<o:p></o:p></p></div><div><p class=MsoNormal>Martin<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Sat, Apr 24, 2021 at 11:22 AM Bruce Mutton <<a href="mailto:bruce@tomo.co.nz" target="_blank">bruce@tomo.co.nz</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Somewhere between Therion 5.5.7+67fffb0 (2021-02-22) and Therion 5.5.7+c43b32a (2021-03-08) (hope those are the right versions – I might have got confused) the behaviour of my line arrows and map-connections has changed.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I use some modified/customised code for these, which I last edited in 2018, so while this recent change in behaviour might be a consequence of my clumsy coding, the change is triggered somewhere between those two development releases.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Therion calls the metapost definition l_arrow to draw both arrows and map connections, so to some extent the appearance of each is tied together.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’m just wondering if I should tidy up my symbol definition code (I know I should) or whether something has been broken slightly in the recent Therion versions?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>This is what I used to have, with Therion 5.5.7+67fffb0 (2021-02-22) and earlier.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img border=0 width=228 height=40 style='width:2.375in;height:.4166in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_10" src="cid:image008.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img border=0 width=219 height=348 style='width:2.2777in;height:3.625in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_11" src="cid:image010.png@01D739AC.4FA8A710"><img border=0 width=428 height=181 style='width:4.4583in;height:1.8819in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_17" src="cid:image012.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>And for arrows, these small filled heads are what I used to get<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img border=0 width=123 height=115 style='width:1.2777in;height:1.1944in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_9" src="cid:image014.png@01D739AC.4FA8A710"><img border=0 width=200 height=121 style='width:2.0833in;height:1.2569in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_8" src="cid:image016.png@01D739AC.4FA8A710"> <img border=0 width=211 height=95 style='width:2.2013in;height:.993in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_7" src="cid:image018.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>With Therion 5.5.7+c43b32a (2021-03-08) this is what I now get<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <img border=0 width=213 height=43 style='width:2.2222in;height:.4444in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_5" src="cid:image020.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img border=0 width=203 height=347 style='width:2.118in;height:3.618in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_6" src="cid:image022.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img border=0 width=106 height=97 style='width:1.1041in;height:1.0138in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_4" src="cid:image024.png@01D739AC.4FA8A710"><img border=0 width=175 height=117 style='width:1.8263in;height:1.2152in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_3" src="cid:image041.png@01D739AC.4FA8A710"><img border=0 width=153 height=81 style='width:1.5902in;height:.8402in' id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_2" src="cid:image042.png@01D739AC.4FA8A710"><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Same is happening with Therion 5.5.7+f94faef (2021-04-23)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Looks like the arrow heads on a line arrow now are drawn wider, such that a gap appears inside of the arrow head, dependant on the arc of the line on which it is drawn.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>And somehow the arrow head on the map-connection line has become fat and blobby. The pen width appears to have grown very wide.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>As though my custom code is no longer being used for arrow heads?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>My custom code for map-connections, last edited in May 2018 as below.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Aside from the problem I have described above, I would like the arrow lines to be narrower than the map connection lines, and the arrow heads for line arrows to be small and the arrow heads for map connections to be large.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Three years ago when I tried I could not make it work, but maybe as a result of this someone can give some guidance. <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Having mapconnection call l_arrow brings about a nice degree of consistency, but can be frustrating where discrete differences are desired.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>If anyone knows how to morph the arrow heads to follow the curve of the line, that would be great as well. To avoid the disjointed examples on the left above.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Bruce<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>#ARROW and MAP-CONNECTION REDEFINITIONS</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>#--------------------------</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>code metapost</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>% Q = 0 -- no arrows</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>% 1 -- end</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>% 2 -- begin</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>% 3 -- both</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-family:"Arial",sans-serif'>def l_arrow (expr P, Q) =</span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>T:=identity;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>pickup PenB;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>thdraw P;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif;color:black;background:yellow'>p := (-.1u,-.5u)--(0,0)--(.1u,-.5u)--cycle; </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif;color:black;background:yellow'>% 0.25 changed to .5 and close end to get nicer arrowhead</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>if odd Q:</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>thfilldraw p rotated (angle(thdir(P,0))+90) </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>shifted (point 0 of P);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>fi;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>if Q>1:</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>thfilldraw p rotated (angle(thdir(P,length P))-90) </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>shifted (point infinity of P);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>fi;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>enddef;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-family:"Arial",sans-serif'>def l_mapconnection (expr P) =</span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>thdrawoptions(dashed dashpattern(on 1bp off 2bp on 1bp off 2bp) </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>scaled (2 * optical_zoom) withpen PenB);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>%draw map-connection line with arrowhead at end</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>l_arrow(P,1); <span style='color:black;background:yellow'>%How to double or triple arrowhead size with this call?</span></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>%draw dot at start of map-connection line</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>thdraw point infinity of P withpen pencircle scaled 0.3u; </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif;color:black;background:yellow'>%Why infinity and not 0 for dot at start of line?? </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif;color:black;background:yellow'>%If point before arrow head, then point does not render in legend but does on map??</span><span style='font-family:"Arial",sans-serif'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>thdrawoptions();</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>enddef;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Arial",sans-serif'>endcode</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div><p class=MsoNormal>_______________________________________________<br>Therion mailing list<br><a href="mailto:Therion@speleo.sk" target="_blank">Therion@speleo.sk</a><br><a href="https://mailman.speleo.sk/listinfo/therion" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><o:p></o:p></p></blockquote></div></div></body></html>