View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009947 | Scribus | Scripter | public | 2011-04-20 18:57 | 2011-04-20 19:05 |
Reporter | ale | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0009947: add insert special char to scripter 2 | ||||
Description | add a way to insert special chars like the column breaks from the scripter | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
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) |