View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012871 | Scribus | Scripter | public | 2015-01-01 18:51 | 2015-01-02 00:03 |
Reporter | yushiyang | Assigned To | jghali | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | duplicate | ||
Product Version | 1.4.4 | ||||
Summary | 0012871: No way to apply styles to text using Scripter | ||||
Description | There is no API available, or at least none in the documentation, that allows one to programmatically apply pre-defined styles to text. This is rather strange, especially since there is already a method for importing styles from other sla files. Considering that proper usage of Scribus relies on assigning styles to text, the lack of such a method makes the scripting incredibly useless, as any programmatically generated text objects would then be an absolute pain to manually edit in the future. | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
To clarify, there is no way to add styles to a particular paragraph of text within a text box. |
|
You have the possibility the apply paragraph styles using setStyle() in combination with selectText(). Those api are documented in scribus help under For Developers > Scripter api > Manipulating objects for setStyle() and For Developers > Scripter api > Handling Text Frames for selectText() The possibility of applying character styles in missing but this is already logged under 0009350. Closing this issue consequently. |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-01-01 18:51 | yushiyang | New Issue | |
2015-01-01 21:10 | yushiyang | Note Added: 0034343 | |
2015-01-02 00:03 | jghali | Note Added: 0034344 | |
2015-01-02 00:03 | jghali | Relationship added | duplicate of 0009350 |
2015-01-02 00:03 | jghali | Status | new => resolved |
2015-01-02 00:03 | jghali | Resolution | open => duplicate |
2015-01-02 00:03 | jghali | Assigned To | => jghali |
2015-01-02 00:03 | jghali | Status | resolved => closed |