<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">https://github.com/therion/therion/blob/master/CHANGES</a>):</div><div><br></div><div><font color="#3d85c6">incompatible changes: the drawing option 'withtransparentcolor',<br></font></div><div><font color="#3d85c6">macro 'def_transparent_rgb' and predefined transparent colors tr_bg,<br>tr_white, tr_black were removed; </font></div><div><font color="#3d85c6">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><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">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" style="overflow-wrap: break-word;"><div class="gmail-m_5496261022680890057WordSection1"><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 class="gmail-m_5496261022680890057fontstyle01"><span style="font-size:12pt">smooth-shading <off/quick> </span></span><span class="gmail-m_5496261022680890057fontstyle21"><span style="font-size:12pt">. </span></span><span class="gmail-m_5496261022680890057fontstyle31"><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 class="gmail-m_5496261022680890057fontstyle31">By default, altidute and depth colour is interpolated across the scrap the </span></span><span class="gmail-m_5496261022680890057fontstyle01"><span style="font-size:12pt">quick </span></span><span class="gmail-m_5496261022680890057fontstyle31"><span style="font-size:12pt">way.</span></span><span style="font-size:12pt;font-family:CMR12,serif;color:black"><br><span class="gmail-m_5496261022680890057fontstyle31"><span style="background:yellow">Some issues are present if transparent symbol colours are used</span>. More precise modes</span><br><span class="gmail-m_5496261022680890057fontstyle31">should be added in the future. If </span></span><span class="gmail-m_5496261022680890057fontstyle01"><span style="font-size:12pt">off</span></span><span class="gmail-m_5496261022680890057fontstyle31"><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: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-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><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>