color_tools.exporters.scribus_exporter

Scribus XML palette exporter.

Exports colors to Scribus’ XML palette format.

Basic RGB structure:

<?xml version="1.0" encoding="UTF-8"?>
<SCRIBUSCOLORS Name="Palette Name">
    <COLOR
        NAME="Coral"
        RGB="#FF7F50"
        Spot="0"
        Register="0"
    />
</SCRIBUSCOLORS>

Scribus palettes may contain RGB, CMYK, spot, and registration colors. This exporter currently writes RGB process colors because ColorRecord does not yet model spot/register semantics or native CMYK swatches.

class color_tools.exporters.scribus_exporter.ScribusExporter[source]

Bases: PaletteExporter

Export color palettes in Scribus XML palette format.

Colors are written as RGB process swatches.

Palette-aware export preserves the palette name using the SCRIBUSCOLORS root Name attribute.

property metadata: ExporterMetadata

Return metadata describing the Scribus exporter.