<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>the latest commit to Master adds compatibility macros so that the old-style transparency definitions are supported again.</div><div><br></div><div>M.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 23, 2021 at 9:10 PM Martin Budaj <<a href="mailto:m.budaj@gmail.com">m.budaj@gmail.com</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 dir="ltr">Hi,<div><br></div><div>if really needed, windows installer for 5.5.7 could be compiled (we don't store old installers on the server; installers for releases starting with 6.0.0 are stored on Github). But I suggest that it's better to fix the data than to stick with an old version of the software which won't get any fixes in the future.</div><div><br></div><div>The required changes to symbol definitions are simple:</div><div><br></div><div>- delete all occurences of 'def_transparent_rgb' macro with its argument, e.g. </div><div> def_transparent_rgb(tr_lgrey, 0.73, 0.71, 0.75);</div><div><br></div><div>- replace all occurences of 'withtransparentcolor' and its argument with 'withalpha' + color and alpha values, e.g.</div><div> thfill P withtransparentcolor tr_lgrey; </div><div> should be changed to</div><div> thfill P withcolor (0.73, 0.71, 0.75) withalpha 0.7;</div><div><br></div><div>If there is still a problem processing your data, please send me (or to the list) an example and the corresponding log file.</div><div><br></div><div>Cheers</div><div>Martin</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 22, 2021 at 10:44 PM A.M. van Rosmalen <<a href="mailto:a.m.vanrosmalen@gmx.net" target="_blank">a.m.vanrosmalen@gmx.net</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 dir="auto">Thank you for your answer Martin!</div><div dir="auto"><br></div><div dir="auto">Where can I find the installer of a previous version of Therion?</div><div dir="auto"><br></div><div dir="auto">The latest version undoubtedly is absolutely awesome, but it also messes up my maps and two days of trying just convinced me I'm simply too uninterested in new features or too stupid to fix something that wasn't broken to begin with. </div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br></div><div dir="auto">Anton</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op za 21 aug. 2021 om 18:37 schreef Martin Budaj <<a href="mailto:m.budaj@gmail.com" target="_blank">m.budaj@gmail.com</a>><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 dir="ltr"><div dir="ltr">Hi,<div><br></div><div>the problem is caused by an incompatible change in transparent colours handling introduced in 6.0.0 (see <a href="https://github.com/therion/therion/blob/master/CHANGES" target="_blank">https://github.com/therion/therion/blob/master/CHANGES</a>):</div><div><br></div><div><font style="color:rgb(61,133,198)">incompatible changes: the drawing option 'withtransparentcolor',<br></font></div><div><font style="color:rgb(61,133,198)">macro 'def_transparent_rgb' and predefined transparent colors tr_bg,<br>tr_white, tr_black were removed; </font></div><div><font style="color:rgb(61,133,198)">use the drawing option 'withcolor <color> withalpha <number>' instead<br></font></div><div><br></div><div>This allows you to use transparency without defining transparent colours in advance, but you need to rewrite your metapost definitions.</div><div><br></div><div>The issue on page 57 mentioned by Bruce is not related to this change (I'll add a clarification to the thbook).</div></div></div><div dir="ltr"><div dir="ltr"><div><br></div><div>Martin</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 21, 2021 at 10:57 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">Anton<u></u><u></u></p><p class="MsoNormal">It seems my current version of that file/layout doesn’t use transparent colours – I haven’t updated that wiki post for some years.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I vaguely recall some discussion about transparent colours when differing colour models were introduced, but such things are above my knowledge level.<u></u><u></u></p><p class="MsoNormal">A clue on top of page 57 of the Therion book.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span><span style="font-size:12pt">smooth-shading <off/quick> </span></span><span><span style="font-size:12pt">. </span></span><span><span style="font-size:12pt">set the mode of smooth scrap backgroud shading.</span></span><span style="font-size:12pt;font-family:CMR12,serif;color:black"><br><span style="font-family:CMR12,serif">By default, altidute and depth colour is interpolated across the scrap the </span></span><span><span style="font-size:12pt">quick </span></span><span><span style="font-size:12pt">way.</span></span><span style="font-size:12pt;font-family:CMR12,serif;color:black"><br><span style="font-family:CMR12,serif"><span style="font-family:CMR12,serif;background-color:yellow">Some issues are present if transparent symbol colours are used</span>. More precise modes</span><br><span style="font-family:CMR12,serif">should be added in the future. If </span></span><span><span style="font-size:12pt">off</span></span><span><span style="font-size:12pt">, scrap is filled with single colour.</span></span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">On the other hand, your code is missing a ; <u></u><u></u></p><p class="MsoNormal">What happens if you add one like this?<u></u><u></u></p><p class="MsoNormal"> def_transparent_rgb (tr_color_sump_bg, .44, .81, .92)<b><span style="font-size:24pt;background-color:yellow">;</span></b> %transparent version<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Or you could just delete the entire line, assuming you have not used tr_color_sump anywhere.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hope that helps.<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"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Therion <<a href="mailto:therion-bounces@speleo.sk" target="_blank">therion-bounces@speleo.sk</a>> <b>On Behalf Of </b>A.M. van Rosmalen<br><b>Sent:</b> Saturday, 21 August 2021 19:53<br><b>To:</b> List for Therion users <<a href="mailto:therion@speleo.sk" target="_blank">therion@speleo.sk</a>><br><b>Subject:</b> [Therion] Therion 6.0.1 colour processing problem<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi there,<u></u><u></u></p></div><div><div><p class="MsoNormal"><br>Since I upgraded to the last version of Therion (6.01) on Windows my<br>maps refuse to compile even though they used to compile just fine<br>before and still compile under the previous version (on a Linux<br>machine)<br><br>Specifically this piece of code in LayoutStandards.thc drafted by<br>Bruce Mutton found here:<br><a href="https://therion.speleo.sk/wiki/_media/templates:layoutstandards.txt" target="_blank">https://therion.speleo.sk/wiki/_media/templates:layoutstandards.txt</a><br><br> code metapost<br> %these colours affect fills, not the linework<br> !color colour_water_bg; %! forces interpretation as metapost<br> colour_water_bg := (0.82,.93,.95); %light blue<br> !color colour_sump_bg; %! forces interpretation as metapost<br> def_transparent_rgb (tr_color_sump_bg, .44, .81, .92) %transparent version<br> colour_sump_bg := (.44,.81,.92); %dark blue<br><br> %these colours affect the linework<br> !color colour_rope; %! forces interpretation as metapost<br> colour_rope := (0.35,0.75,1.0); %blue<br> endcode<br><br><br><br>Gives the following error message:<br><br><br><br>>> def_transparent_rgb<br>! Isolated expression.<br><to be read again><br> (<br>l.6979 def_transparent_rgb (<br> tr_color_sump_bg, .44, .81, .92) %transparent ve...<br>I couldn't find an `=' or `:=' after the<br>expression that is shown above this error message,<br>so I guess I'll just ignore it and carry on.<br><br>! Extra tokens will be flushed.<br><to be read again><br> (<br>l.6979 def_transparent_rgb (<br> tr_color_sump_bg, .44, .81, .92) %transparent ve...<br>I've just read as much of that statement as I could fathom,<br>so a semicolon should have been next. It's very puzzling...<br>but I'll try to get myself back together, by ignoring<br>everything up to the next `;'. Please insert a semicolon<br>now in front of anything that you don't want me to delete.<br>(See Chapter 27 of The METAFONTbook for an example.)<br><br><br><br>I tried adding some := and =, but this just leads to the following<br>error message:<br><br><br>>> def_transparent_rgb<br>>> (tr_color_sump_bg,0.44,0.81,0.92)<br>! Equation cannot be performed (numeric=cmykcolor).<br><to be read again><br> colour_sump_bg<br>l.6980 colour_sump_bg<br> := (.44,.81,.92); %dark blue<br>I'm sorry, but I don't know how to make such things equal.<br>(See the two expressions just above the error message.)<br><br>! Extra tokens will be flushed.<br><to be read again><br> colour_sump_bg<br>l.6980 colour_sump_bg<br> := (.44,.81,.92); %dark blue<br>I've just read as much of that statement as I could fathom,<br>so a semicolon should have been next. It's very puzzling...<br>but I'll try to get myself back together, by ignoring<br>everything up to the next `;'. Please insert a semicolon<br>now in front of anything that you don't want me to delete.<br>(See Chapter 27 of The METAFONTbook for an example.)<br><br>Any ideas how to fix this?<br><br>Cheers,<br><br>Anton<u></u><u></u></p></div></div></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></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></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>
</blockquote></div></div>