Talk:How to legally obtain spot colour palettes for use in Scribus 1.3.3.x and later versions

From Scribus Wiki
Jump to: navigation, search

I'm writing here cause I'm new to this wiki... and pretty new to Scribus too...

Pantone website

Another way to legally obtain Pantone colour palettes is to use a file (hxxp://www.pantone.com/popups/inspireme/colors.txt) that's freely available from Pantone's official website. This file contains all the colour names and the sRGB values for the PANTONE® FORMULA GUIDE coated. A few code lines can transform this into a colour swatch or a Scribus document to import into your colour library.

Here is a basic sample code in php:

<?php
$handle = fopen("somefile", "rb");
$contents = stream_get_contents($handle);
fclose($handle);
$content_array = explode('= ', $contents);

echo '<SCRIBUSUTF8NEW Version="1.3.3.6" >'.chr(13).chr(10);
echo ' <DOCUMENT>'.chr(13).chr(10);
foreach($content_array as $color) {
	$color_name = substr($color, 0, strpos($color, chr(13)));
	$sRGB_equivalent = substr($color, strpos($color, chr(13))+14, 6);
	if($color_name != '' && $color_name != 'blank')
		echo '  <COLOR Register="0" Spot="1" RGB="#'.$sRGB_equivalent.'" NAME="'.$color_name.'" />'.chr(13).chr(10);
};
echo ' </DOCUMENT>'.chr(13).chr(10);
echo '</SCRIBUSUTF8NEW>';
?>

You can see it at work here: hxxp://www.olivierberten.info/scribus/pantone_c_sla.php. Source: hxxp://www.olivierberten.info/scribus/pantone_c_sla.php?source

Olivier Berten 23:49, 28 January 2007 (CET)

Legal note:

I removed the direct links in this article. The above mentioned link to the Pantone site is a "deep link" and it's totally unclear how the information it links to is copyrighted. Pantone sells a product called "ColorBridge (TM)" which includes also tables with the sRGB / CMYK equivalents of Pantone colors. I doubt very much that Pantone supports distribution of those lists independently of their products. The Scribus team wishes to keep their websites free from legally dubious information, so we will not distribute Pantone swatches or link to sites which illegally do so.

Scribus supports import of colors from different sources: PS/EPS/AI files, Create swatches, Scribus swatches, other Scribus documents etc. As Olivier's article shows it's not difficult to get this information into Scribus, but you still need to get the information legally in the first place. I'm afraid this will stay so until Pantone decides to distribute their swatches freely.

Andreas Vox (avox)