[scribus] Scripting expert needed to speed up colour palette conversion
JLuc
jluc at no-log.org
Sun Mar 31 21:20:18 UTC 2013
Le 31/03/2013 17:44, Gregory Pittman a écrit :
<COLOR NAME="FromPDF#00404040" CMYK="#00404040"/>
What is needed is a script that strips the string FromPDF and converts the hex value in a specific way (adding ink
channel abbreviations and slashes), so that the end result looks like this:
<COLOR NAME="C25/M25/Y25/K25" CMYK="#40404040"/>
> I think the first part is most easily done in a text editor, with Search
>> Replace to eliminate the FromPDF.
>
> The question is, what are you doing with the numbers? It seems that
> Scribus stores CMYK in hex values, even though when you create them you
> are shown a percentage scale.
>
> But 40/255 ≠ 25% (more like 16%).
hmmm 40 (hexadecimal) is 60 (base 10) and 60/255 is 25%
JLuc
More information about the scribus
mailing list