View Issue Details

IDProjectCategoryView StatusLast Update
0009947ScribusScripterpublic2011-04-20 19:05
Reporterale Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0009947: add insert special char to scripter 2
Descriptionadd a way to insert special chars like the column breaks from the scripter
TagsNo tags attached.
Patch

Activities

ale

2011-04-20 19:05

manager   ~0026120

Last edited: 2011-04-20 19:40

well, I have a solution! inserting \u001a for a column break (or U+001B for a frame-break) seems to do the trick. full script:

# -*- coding: utf-8 -*-
try:
    import scribus
except ImportError,err:
    print 'This Python script is written for the Scribus scripting interface.'
    print 'It can only be run from within Scribus.'
    sys.exit(1)

test_box = scribus.createText(10, 10, 100, 100)
scribus.setColumns(2, test_box)
scribus.setColumnGap(5, test_box)
scribus.insertText(u'Before\u001aAfter', -1, test_box)

Issue History

Date Modified Username Field Change
2011-04-20 18:57 ale New Issue
2011-04-20 19:05 ale Note Added: 0026120
2011-04-20 19:40 ale Note Edited: 0026120