View Issue Details

IDProjectCategoryView StatusLast Update
0012871ScribusScripterpublic2015-01-02 00:03
Reporteryushiyang Assigned Tojghali  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionduplicate 
Product Version1.4.4 
Summary0012871: No way to apply styles to text using Scripter
DescriptionThere 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.
TagsNo tags attached.
PatchNo

Relationships

duplicate of 0009350 closedjghali apply character styles from the scripter 

Activities

yushiyang

2015-01-01 21:10

reporter   ~0034343

To clarify, there is no way to add styles to a particular paragraph of text within a text box.

jghali

2015-01-02 00:03

administrator   ~0034344

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.

Issue History

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