Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Etienne Nadji
PyScribus
Commits
a175083e
Commit
a175083e
authored
Dec 01, 2020
by
Etienne Nadji
Browse files
modifié : source/articles/en/spec.rst
parent
bfd30d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/articles/en/spec.rst
View file @
a175083e
...
...
@@ -6,80 +6,82 @@ DOCUMENT
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT``.
+--------------------+-----------------------+--------------------+-------------+----------+
| XML | Explanation | Value | Default | Optional |
| element/attribute | | | | |
+====================+=======================+====================+=============+==========+
| ``/@DPInCMYK`` | ICC profile for CMYK | string | | Yes |
| | images | | | |
+--------------------+-----------------------+--------------------+-------------+----------+
| ``/@DPIn3`` | ICC profile for CMYK | string | | Yes |
| | colors | | | |
+--------------------+-----------------------+--------------------+-------------+----------+
| ``/@PAGEC`` | Scribus GUI page | hexadecimal color | ``#ffffff`` | |
| | background | | | |
+--------------------+-----------------------+--------------------+-------------+----------+
| ``/LAYERS/@FLOW`` | | integer as boolean | | |
+--------------------+-----------------------+--------------------+-------------+----------+
| ``/LAYERS/@TRANS`` | Layer’s opacity | percentage | ``1`` | |
| | | 0 -> 1 | | |
+--------------------+-----------------------+--------------------+-------------+----------+
+--------------------+-----------------------+-------------+-------------+----------+
| Path | Explanation | Value | Default | Optional |
+====================+=======================+=============+=============+==========+
| ``/@DPInCMYK`` | ICC profile for CMYK | string | | Yes |
| | images | | | |
+--------------------+-----------------------+-------------+-------------+----------+
| ``/@DPIn3`` | ICC profile for CMYK | string | | Yes |
| | colors | | | |
+--------------------+-----------------------+-------------+-------------+----------+
| ``/@PAGEC`` | Scribus GUI page | hexadecimal | ``#ffffff`` | |
| | background | color | | |
+--------------------+-----------------------+-------------+-------------+----------+
DOCUMENT/LAYERS
---------------
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT``.
+---------------------+-----------------------+--------------------+---------+----------+
| XML | Explanation | Value | Default | Optional |
| element/attribute | | | | |
+=====================+=======================+====================+=========+==========+
| ``/LAYERS/@BLEND`` | Layer blend mode | | | |
+---------------------+-----------------------+--------------------+---------+----------+
| ``/LAYERS/@OUTL`` | Flag for wireframe | integer as boolean | ``0`` | |
| | view | | | |
+---------------------+-----------------------+--------------------+---------+----------+
| ``/LAYERS/@LAYERS`` | Color outline of the | hexadecimal color | | |
| | layer’s frames | | | |
+---------------------+-----------------------+--------------------+---------+----------+
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT/LAYERS``.
+--------------+-----------------------+-------------+---------+----------+
| Path | Explanation | Value | Default | Optional |
+==============+=======================+=============+=========+==========+
| ``/@FLOW`` | | integer | | |
| | | as boolean | | |
+--------------+-----------------------+-------------+---------+----------+
| ``/@TRANS`` | Layer’s opacity | percentage | ``1`` | |
| | | 0 -> 1 | | |
+--------------+-----------------------+-------------+---------+----------+
| ``/@BLEND`` | Layer blend mode | | | |
+--------------+-----------------------+-------------+---------+----------+
| ``/@OUTL`` | Flag for wireframe | integer | ``0`` | |
| | view | as boolean | | |
+--------------+-----------------------+-------------+---------+----------+
| ``/@LAYERS`` | Color outline of the | hexadecimal | | |
| | layer’s frames | color | | |
+--------------+-----------------------+-------------+---------+----------+
DOCUMENT/CHARSTYLE
------------------
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT``.
+-------------------------------+--------------------+------------+---------+----------+
| XML | Explanation | Value | Default | Optional |
| element/attribute | | | | |
+===============================+====================+============+=========+==========+
| ``/CHARSTYLE/@DefaultStyle`` | Same as STYLE, but | String | | |
| | not documented | | | |
+-------------------------------+--------------------+------------+---------+----------+
| ``/CHARSTYLE/@wordTrack`` | Space width | Percentage | | |
| | | 0 -> 1 | | |
+-------------------------------+--------------------+------------+---------+----------+
| ``/CHARSTYLE/@KERN`` | Kerning | Percentage | | |
| | | 0 -> 100 | | |
+-------------------------------+--------------------+------------+---------+----------+
| ``/CHARSTYLE/@HyphenWordMin`` | Minimal number of | Integer | | |
| | caracters for word | >= 3 | | |
| | hyphenation | | | |
+-------------------------------+--------------------+------------+---------+----------+
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT/CHARSTYLE``.
+---------------------+--------------------+------------+---------+----------+
| Path | Explanation | Value | Default | Optional |
+=====================+====================+============+=========+==========+
| ``/@DefaultStyle`` | Same as STYLE | String | | |
+---------------------+--------------------+------------+---------+----------+
| ``/@wordTrack`` | Space width | Percentage | | |
| | | | | |
| | | 0 -> 1 | | |
+---------------------+--------------------+------------+---------+----------+
| ``/@KERN`` | Kerning | Percentage | | |
| | | | | |
| | | 0 -> 100 | | |
+---------------------+--------------------+------------+---------+----------+
| ``/@HyphenWordMin`` | Minimal number of | Integer | | |
| | | | | |
| | caracters for word | >= 3 | | |
| | | | | |
| | for word | | | |
| | hyphenation | | | |
+---------------------+--------------------+------------+---------+----------+
DOCUMENT/Sections
-----------------
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT``.
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT
/Sections/Section
``.
+------------------
-------------------
+-------------+--------------------+------------------+----------+
|
XML
| Explanation | Value | Default | Optional |
| element/attribute | | | | |
+=====================================+=============+====================+==================+==========+
|
``/Sections/Section/@FillChar``
| |
Unicode code
|
``0``
| |
|
| | point of character | (NULL character) | |
+------------------
-------------------
+-------------+--------------------+------------------+----------+
| ``/
Sections/Section/
@FieldWidth``
| | | ``0`` | |
+------------------
-------------------
+-------------+--------------------+------------------+----------+
+------------------+-------------+--------------------+------------------+----------+
|
Path
| Explanation | Value | Default | Optional |
+==================+=============+====================+==================+==========+
| ``/@FillChar`` | | Unicode code | ``0`` | |
|
| |
|
| |
| | | point of character | (NULL character) | |
+------------------+-------------+--------------------+------------------+----------+
| ``/@FieldWidth`` | | | ``0`` | |
+------------------+-------------+--------------------+------------------+----------+
DOCUMENT/PAGEOBJECT
-------------------
...
...
@@ -87,16 +89,18 @@ DOCUMENT/PAGEOBJECT
Omitted XPath : ``/SCRIBUSUTF8NEW/DOCUMENT/PAGEOBJECT``.
+--------------------------+--------------------+--------------------+---------+----------+
| XML | Explanation | Value | Default | Optional |
| element/attribute | | | | |
| Path | Explanation | Value | Default | Optional |
+==========================+====================+====================+=========+==========+
| ``/@path`` | Path data | SVG path/@d string | ``0`` | |
+--------------------------+--------------------+--------------------+---------+----------+
| ``/@copath`` | Path data | Same as @path | | |
+--------------------------+--------------------+--------------------+---------+----------+
| ``[@PTYPE="4"]/@VAlign`` | Vertical alignment | Same as @path | ``0`` | No |
| | | | | |
| | of the text within | 0 = top | | |
| | | | | |
| | the frame | 1 = center | | |
| | | | | |
| | | 2 = bottom | | |
+--------------------------+--------------------+--------------------+---------+----------+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment