<div dir="ltr">Hi Bruce,<div><br></div><div>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.</div><div><br></div><div></div><div>Cheers<br></div><div>Martin</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">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:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-NZ"><div><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">This is what I used to have, with Therion 5.5.7+67fffb0 (2021-02-22) and earlier.<u></u><u></u></p><p class="MsoNormal"><img width="228" height="40" style="width: 2.375in; height: 0.4166in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_10" src="cid:17904b83d6d5b16b21"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><img width="219" height="348" style="width: 2.2777in; height: 3.625in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_11" src="cid:17904b83d6e7745b42"> <img width="428" height="181" style="width: 4.4583in; height: 1.8819in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_17" src="cid:17904b83d6ea18c373"><u></u><u></u></p><p class="MsoNormal">And for arrows, these small filled heads are what I used to get<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><img width="123" height="115" style="width: 1.2777in; height: 1.1944in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_9" src="cid:17904b83d6eafa3b84"><img width="200" height="121" style="width: 2.0833in; height: 1.2569in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_8" src="cid:17904b83d6ebdbb395"> <img width="211" height="95" style="width: 2.2013in; height: 0.993in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_7" src="cid:17904b83d6e1f3c04f6"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">With Therion 5.5.7+c43b32a (2021-03-08) this is what I now get<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <img width="213" height="43" style="width: 2.2222in; height: 0.4444in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_5" src="cid:17904b83d6e20fef517"><u></u><u></u></p><p class="MsoNormal"><img width="203" height="347" style="width: 2.118in; height: 3.618in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_6" src="cid:17904b83d6e22c1e538"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><img width="106" height="97" style="width: 1.1041in; height: 1.0138in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_4" src="cid:17904b83d6e2484d559"><img width="175" height="117" style="width: 1.8263in; height: 1.2152in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_3" src="cid:17904b83d6e2647c57a"><img width="153" height="81" style="width: 1.5902in; height: 0.8402in;" id="gmail-m_-1660208166193362326gmail-m_3043845065155974157Picture_x0020_2" src="cid:17904b83d6e3a898eeb"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> Same is happening with Therion 5.5.7+f94faef (2021-04-23)<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal">And somehow the arrow head on the map-connection line has become fat and blobby.  The pen width appears to have grown very wide.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">As though my custom code is no longer being used for arrow heads?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">My custom code for map-connections, last edited in May 2018 as below.<u></u><u></u></p><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal">Three years ago when I tried I could not make it work, but maybe as a result of this someone can give some guidance.  <u></u><u></u></p><p class="MsoNormal">Having mapconnection call l_arrow brings about a nice degree of consistency, but can be frustrating where discrete differences are desired.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Bruce<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">#ARROW and MAP-CONNECTION REDEFINITIONS</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">#--------------------------</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">code metapost</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">% Q = 0 -- no arrows</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">% 1 -- end</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">% 2 -- begin</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">% 3 -- both</span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-family:Arial,sans-serif">def l_arrow (expr P, Q) =</span><u></u><u></u></b></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">T:=identity;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">pickup PenB;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">thdraw P;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black;background:yellow">p := (-.1u,-.5u)--(0,0)--(.1u,-.5u)--cycle; </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black;background:yellow">% 0.25 changed to .5 and close end to get nicer arrowhead</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">if odd Q:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">thfilldraw p rotated (angle(thdir(P,0))+90) </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">shifted (point 0 of P);</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">fi;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">if Q>1:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">thfilldraw p rotated (angle(thdir(P,length P))-90) </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">shifted (point infinity of P);</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">fi;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">enddef;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-family:Arial,sans-serif">def l_mapconnection (expr P) =</span><u></u><u></u></b></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">thdrawoptions(dashed dashpattern(on 1bp off 2bp on 1bp off 2bp) </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">scaled (2 * optical_zoom) withpen PenB);</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">%draw map-connection line with arrowhead at end</span><u></u><u></u></p><p class="MsoNormal"><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><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">%draw dot at start of map-connection line</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">thdraw point infinity of P withpen pencircle scaled 0.3u; </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black;background:yellow">%Why infinity and not 0 for dot at start of line?? </span><u></u><u></u></p><p class="MsoNormal"><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><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">thdrawoptions();</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">enddef;</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">endcode</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<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" rel="noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div>