r23539 by jghali - #16074: Typo in scripter documentation <mapreri>
scribus-commit
scribus-commit at lists.scribus.net
Thu Mar 26 14:01:42 UTC 2020
Author: jghali
Date: Thu Mar 26 14:01:42 2020
New Revision: 23539
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23539
Log:
#16074: Typo in scripter documentation <mapreri>
Modified:
trunk/Scribus/doc/de/scripterapi-color.html
trunk/Scribus/doc/it/scripterapi-color.html
trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h
trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdcolor.h
Modified: trunk/Scribus/doc/de/scripterapi-color.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23539&path=/trunk/Scribus/doc/de/scripterapi-color.html
==============================================================================
--- trunk/Scribus/doc/de/scripterapi-color.html (original)
+++ trunk/Scribus/doc/de/scripterapi-color.html Thu Mar 26 14:01:42 2020
@@ -17,14 +17,30 @@
<p>Note : deprecated, use changeColorCMYK() instead</p>
<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+<dt><a name="-changeColorCMYK"><strong>changeColorCMYK</strong></a>(...)</dt>
+<dd><code>changeColorCMYK("name", c, m, y, k)</code>
+<p>Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-changeColorCMYKFloat"><strong>changeColorCMYKFloat</strong></a>(...)</dt>
+<dd><code>changeColorCMYKFloat("name", c, m, y, k)</code>
+<p>Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components are floating point values between 0 and 100.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-changeColorLab"><strong>changeColorLab</strong></a>(...)</dt>
+<dd><code>changeColorLab("name", L, a, b)</code>
+<p>Changes the color \"name\" to the specified CIELab values. The color value is defined via three components: L = luminosity, a = green/red, b = blue/yellow. Color components are floating point values with L between 0 and 100, a and b between -128 and 128.</p>
+<p>Note : deprecated, use changeColorCMYK() instead</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
<dt><a name="-changeColorRGB"><strong>changeColorRGB</strong></a>(...)</dt>
<dd><code>changeColorRGB("name", r, g, b)</code>
<p>Changes the color "name" to the specified RGB value. The color value is defined via three components r = red, g = green, b = blue. Color components should be in the range from 0 to 255.</p>
<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
-<dt><a name="-changeColorCMYK"><strong>changeColorCMYK</strong></a>(...)</dt>
-<dd><code>changeColorCMYK("name", c, m, y, k)</code>
-<p>Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<dt><a name="-changeColorRGBFloat"><strong>changeColorRGBFloat</strong></a>(...)</dt>
+<dd><code>changeColorRGBFloat("name", r, g, b)</code>
+<p>Changes the color "name" to the specified RGB value. The color value is defined via three components r = red, g = green, b = blue. Color components are floating point values between 0 and 255.</p>
<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
<dt><a name="-defineColor"><strong>defineColor</strong></a>(...)</dt>
@@ -33,19 +49,34 @@
<p>Note : deprecated, use defineColorCMYK() instead.</p>
<p>May raise ValueError if an invalid color name is specified.</p></dd>
+<dt><a name="-defineColorCMYK"><strong>defineColorCMYK</strong></a>(...)</dt>
+<dd><code>defineColorCMYK("name", c, m, y, k)</code>
+<p>Defines a new color "name". The color Value is defined via three components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColorCMYKFloat"><strong>defineColorCMYKFloat</strong></a>(...)</dt>
+<dd><code>defineColorCMYKFloat("name", c, m, y, k)</code>
+<p>Defines a new color "name". The color Value is defined via three components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components are floating point values between 0 and 100.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColorLab"><strong>defineColorLab</strong></a>(...)</dt>
+<dd><code>defineColorLab("name", L, a,b)</code>
+<p>Defines a new color \"name\" using CIELab values. The color value is defined via three components: L = luminosity, a = green/red, b = blue/yellow. Color components are floating point values with L between 0 and 100, a and b between -128 and 128.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
<dt><a name="-defineColorRGB"><strong>defineColorRGB</strong></a>(...)</dt>
<dd><code>defineColorRGB("name", r, g, b)</code>
<p>Defines a new color "name". The color Value is defined via three components: r = red, g = green, b = blue. Color components should be in the range from 0 to 255.</p>
<p>May raise ValueError if an invalid color name is specified.</p></dd>
-<dt><a name="-defineColorCMYK"><strong>defineColorCMYK</strong></a>(...)</dt>
-<dd><code>defineColorCMYK("name", c, m, y, k)</code>
-<p>Defines a new color "name". The color Value is defined via three components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<dt><a name="-defineColorRGBFloat"><strong>defineColorRGBFloat</strong></a>(...)</dt>
+<dd><code>defineColorRGBFloat("name", r, g, b)</code>
+<p>Defines a new color "name". The color Value is defined via three components: r = red, g = green, b = blue. Color components are floating point values between 0 and 255.</p>
<p>May raise ValueError if an invalid color name is specified.</p></dd>
<dt><a name="-deleteColor"><strong>deleteColor</strong></a>(...)</dt>
<dd><code>deleteColor("name", "replace")</code>
-<p>Deletes the color "name". Every occurence of that color is replaced by the color "replace". If not specified, "replace" defaults to the color "None" - transparent.</p>
+<p>Deletes the color "name". Every occurrence of that color is replaced by the color "replace". If not specified, "replace" defaults to the color "None" - transparent.</p>
<p>deleteColor works on the default document colors if there is no document open. In that case, "replace", if specified, has no effect.</p>
<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if a named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
@@ -54,9 +85,19 @@
<p>Returns a tuple (C, M, Y, K) containing the four color components of the color "name" from the current document. If no document is open, returns the value of the named color from the default document colors.</p>
<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+<dt><a name="-getColorFloat"><strong>getColorFloat</strong></a>(...)</dt>
+<dd><code>getColorFloat("name") -> tuple</code>
+<p>Returns a tuple (C, M, Y, K) containing the four color components of the color "name" from the current document. Color components are floating point values between 0 and 100. If no document is open, returns the value of the named color from the default document colors.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
<dt><a name="-getColorAsRGB"><strong>getColorAsRGB</strong>(...)</a></dt>
<dd><code>getColorAsRGB("name") -> tuple</code>
<p>Returns a tuple (R,G,B) containing the three color components of the color "name" from the current document, converted to the RGB color space. If no document is open, returns the value of the named color from the default document colors.</p>
+<p>May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-getColorAsRGBFloat"><strong>getColorAsRGBFloat</strong>(...)</a></dt>
+<dd><code>getColorAsRGBFloat("name") -> tuple</code>
+<p>Returns a tuple (R,G,B) containing the three color components of the color "name" from the current document, converted to the RGB color space. Color components are floating point values between 0 and 255. If no document is open, returns the value of the named color from the default document colors.</p>
<p>May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
<dt><a name="-getColorNames"><strong>getColorNames</strong></a>(...)</dt>
@@ -72,7 +113,7 @@
<dt><a name="-replaceColor"><strong>replaceColor</strong></a>(...)</dt>
<dd><code>replaceColor("name", "replace")</code>
-<p>Every occurence of the color "name" is replaced by the color "replace".</p>
+<p>Every occurrence of the color "name" is replaced by the color "replace".</p>
<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if a named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
<dt><a name="-setSpotColor"><strong>setSpotColor</strong></a>(...)</dt>
Modified: trunk/Scribus/doc/it/scripterapi-color.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23539&path=/trunk/Scribus/doc/it/scripterapi-color.html
==============================================================================
--- trunk/Scribus/doc/it/scripterapi-color.html (original)
+++ trunk/Scribus/doc/it/scripterapi-color.html Thu Mar 26 14:01:42 2020
@@ -1,63 +1,129 @@
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title>Color related Commands</title>
-</head>
-<body>
-<h2>Color related Commands</h2>
-
-<dl>
-
-<dt><a name="-changeColor"><strong>changeColor</strong></a>(...)</dt>
-<dd><code>changeColor("name", c, m, y, k)</code>
-<p>Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
-
-<dt><a name="-defineColor"><strong>defineColor</strong></a>(...)</dt>
-<dd><code>defineColor("name", c, m, y, k)</code>
-<p>Defines a new color "name". The color Value is defined via four components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
-<p>May raise ValueError if an invalid color name is specified.</p></dd>
-
-<dt><a name="-deleteColor"><strong>deleteColor</strong></a>(...)</dt>
-<dd><code>deleteColor("name", "replace")</code>
-<p>Deletes the color "name". Every occurence of that color is replaced by the color "replace". If not specified, "replace" defaults to the color "None" - transparent.</p>
-<p>deleteColor works on the default document colors if there is no document open. In that case, "replace", if specified, has no effect.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if a named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
-
-<dt><a name="-getColor"><strong>getColor</strong></a>(...)</dt>
-<dd><code>getColor("name") -> tuple</code>
-<p>Returns a tuple (C, M, Y, K) containing the four color components of the color "name" from the current document. If no document is open, returns the value of the named color from the default document colors.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
-
-<dt><a name="-getColorAsRGB"><strong>getColorAsRGB</strong>(...)</a></dt>
-<dd><code>getColorAsRGB("name") -> tuple</code>
-<p>Returns a tuple (R,G,B) containing the three color components of the color "name" from the current document, converted to the RGB color space. If no document is open, returns the value of the named color from the default document colors.</p>
-<p>May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
-
-<dt><a name="-getColorNames"><strong>getColorNames</strong></a>(...)</dt>
-<dd><code>getColorNames() -> list</code>
-<p>Returns a list containing the names of all defined colors in the document. If no document is open, returns a list of the default document colors.</p></dd>
-
-<dt><a name="-isSpotColor"><strong>isSpotColor</strong></a>(...)</dt>
-<dd><code>isSpotColor("name") -> bool</code>
-<p>Returns True if the color "name" is a spot color.</p>
-<p>See also setSpotColor()</p>
-<p>May raise NotFoundError if a named color wasn't found.</p>
-<p>May raise ValueError if an invalid color name is specified.</p></dd>
-
-<dt><a name="-replaceColor"><strong>replaceColor</strong></a>(...)</dt>
-<dd><code>replaceColor("name", "replace")</code>
-<p>Every occurence of the color "name" is replaced by the color "replace".</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if a named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
-
-<dt><a name="-setSpotColor"><strong>setSpotColor</strong></a>(...)</dt>
-<dd><code>setSpotColor("name", spot)</code>
-<p>Set the color "name" as a spot color if spot parameter is True.</p>
-<p>See also isSpotColor().</p>
-<p>May raise NotFoundError if a named color wasn't found.</p>
-<p>May raise ValueError if an invalid color name is specified.</p></dd>
-
-</dl>
-
-</body>
-</html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>Color related Commands</title>
+</head>
+<style>
+ at import "manual.css";
+</style>
+<body>
+<h2>Color related Commands</h2>
+
+<dl>
+
+<dt><a name="-changeColor"><strong>changeColor</strong></a>(...)</dt>
+<dd><code>changeColor("name", c, m, y, k)</code>
+<p>Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<p>Note : deprecated, use changeColorCMYK() instead</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-changeColorCMYK"><strong>changeColorCMYK</strong></a>(...)</dt>
+<dd><code>changeColorCMYK("name", c, m, y, k)</code>
+<p>Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-changeColorCMYKFloat"><strong>changeColorCMYKFloat</strong></a>(...)</dt>
+<dd><code>changeColorCMYKFloat("name", c, m, y, k)</code>
+<p>Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components are floating point values between 0 and 100.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-changeColorLab"><strong>changeColorLab</strong></a>(...)</dt>
+<dd><code>changeColorLab("name", L, a, b)</code>
+<p>Changes the color \"name\" to the specified CIELab values. The color value is defined via three components: L = luminosity, a = green/red, b = blue/yellow. Color components are floating point values with L between 0 and 100, a and b between -128 and 128.</p>
+<p>Note : deprecated, use changeColorCMYK() instead</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-changeColorRGB"><strong>changeColorRGB</strong></a>(...)</dt>
+<dd><code>changeColorRGB("name", r, g, b)</code>
+<p>Changes the color "name" to the specified RGB value. The color value is defined via three components r = red, g = green, b = blue. Color components should be in the range from 0 to 255.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-changeColorRGBFloat"><strong>changeColorRGBFloat</strong></a>(...)</dt>
+<dd><code>changeColorRGBFloat("name", r, g, b)</code>
+<p>Changes the color "name" to the specified RGB value. The color value is defined via three components r = red, g = green, b = blue. Color components are floating point values between 0 and 255.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColor"><strong>defineColor</strong></a>(...)</dt>
+<dd><code>defineColor("name", c, m, y, k)</code>
+<p>Defines a new color "name". The color Value is defined via three components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<p>Note : deprecated, use defineColorCMYK() instead.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColorCMYK"><strong>defineColorCMYK</strong></a>(...)</dt>
+<dd><code>defineColorCMYK("name", c, m, y, k)</code>
+<p>Defines a new color "name". The color Value is defined via three components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColorCMYKFloat"><strong>defineColorCMYKFloat</strong></a>(...)</dt>
+<dd><code>defineColorCMYKFloat("name", c, m, y, k)</code>
+<p>Defines a new color "name". The color Value is defined via three components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components are floating point values between 0 and 100.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColorLab"><strong>defineColorLab</strong></a>(...)</dt>
+<dd><code>defineColorLab("name", L, a,b)</code>
+<p>Defines a new color \"name\" using CIELab values. The color value is defined via three components: L = luminosity, a = green/red, b = blue/yellow. Color components are floating point values with L between 0 and 100, a and b between -128 and 128.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColorRGB"><strong>defineColorRGB</strong></a>(...)</dt>
+<dd><code>defineColorRGB("name", r, g, b)</code>
+<p>Defines a new color "name". The color Value is defined via three components: r = red, g = green, b = blue. Color components should be in the range from 0 to 255.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-defineColorRGBFloat"><strong>defineColorRGBFloat</strong></a>(...)</dt>
+<dd><code>defineColorRGBFloat("name", r, g, b)</code>
+<p>Defines a new color "name". The color Value is defined via three components: r = red, g = green, b = blue. Color components are floating point values between 0 and 255.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-deleteColor"><strong>deleteColor</strong></a>(...)</dt>
+<dd><code>deleteColor("name", "replace")</code>
+<p>Deletes the color "name". Every occurrence of that color is replaced by the color "replace". If not specified, "replace" defaults to the color "None" - transparent.</p>
+<p>deleteColor works on the default document colors if there is no document open. In that case, "replace", if specified, has no effect.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if a named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-getColor"><strong>getColor</strong></a>(...)</dt>
+<dd><code>getColor("name") -> tuple</code>
+<p>Returns a tuple (C, M, Y, K) containing the four color components of the color "name" from the current document. If no document is open, returns the value of the named color from the default document colors.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-getColorFloat"><strong>getColorFloat</strong></a>(...)</dt>
+<dd><code>getColorFloat("name") -> tuple</code>
+<p>Returns a tuple (C, M, Y, K) containing the four color components of the color "name" from the current document. Color components are floating point values between 0 and 100. If no document is open, returns the value of the named color from the default document colors.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-getColorAsRGB"><strong>getColorAsRGB</strong>(...)</a></dt>
+<dd><code>getColorAsRGB("name") -> tuple</code>
+<p>Returns a tuple (R,G,B) containing the three color components of the color "name" from the current document, converted to the RGB color space. If no document is open, returns the value of the named color from the default document colors.</p>
+<p>May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-getColorAsRGBFloat"><strong>getColorAsRGBFloat</strong>(...)</a></dt>
+<dd><code>getColorAsRGBFloat("name") -> tuple</code>
+<p>Returns a tuple (R,G,B) containing the three color components of the color "name" from the current document, converted to the RGB color space. Color components are floating point values between 0 and 255. If no document is open, returns the value of the named color from the default document colors.</p>
+<p>May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-getColorNames"><strong>getColorNames</strong></a>(...)</dt>
+<dd><code>getColorNames() -> list</code>
+<p>Returns a list containing the names of all defined colors in the document. If no document is open, returns a list of the default document colors.</p></dd>
+
+<dt><a name="-isSpotColor"><strong>isSpotColor</strong></a>(...)</dt>
+<dd><code>isSpotColor("name") -> bool</code>
+<p>Returns True if the color "name" is a spot color.</p>
+<p>See also setSpotColor()</p>
+<p>May raise NotFoundError if a named color wasn't found.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-replaceColor"><strong>replaceColor</strong></a>(...)</dt>
+<dd><code>replaceColor("name", "replace")</code>
+<p>Every occurrence of the color "name" is replaced by the color "replace".</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if a named color wasn't found. May raise ValueError if an invalid color name is specified.</p></dd>
+
+<dt><a name="-setSpotColor"><strong>setSpotColor</strong></a>(...)</dt>
+<dd><code>setSpotColor("name", spot)</code>
+<p>Set the color "name" as a spot color if spot parameter is True.</p>
+<p>See also isSpotColor().</p>
+<p>May raise NotFoundError if a named color wasn't found.</p>
+<p>May raise ValueError if an invalid color name is specified.</p></dd>
+
+</dl>
+
+</body>
+</html>
Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23539&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h Thu Mar 26 14:01:42 2020
@@ -267,7 +267,7 @@
PyDoc_STRVAR(scribus_replcolor__doc__,
QT_TR_NOOP("replaceColor(\"name\", \"replace\")\n\
\n\
-Every occurence of the color \"name\" is replaced by the color \"replace\".\n\
+Every occurrence of the color \"name\" is replaced by the color \"replace\".\n\
\n\
May raise NotFoundError if a named color wasn't found.\n\
May raise ValueError if an invalid color name is specified.\n\
Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdcolor.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23539&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdcolor.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdcolor.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdcolor.h Thu Mar 26 14:01:42 2020
@@ -267,7 +267,7 @@
PyDoc_STRVAR(scribus_replcolor__doc__,
QT_TR_NOOP("replaceColor(\"name\", \"replace\")\n\
\n\
-Every occurence of the color \"name\" is replaced by the color \"replace\".\n\
+Every occurrence of the color \"name\" is replaced by the color \"replace\".\n\
\n\
May raise NotFoundError if a named color wasn't found.\n\
May raise ValueError if an invalid color name is specified.\n\
More information about the scribus-commit
mailing list