[Scribus] Scripter & InsertText

Craig Ringer craig
Tue Nov 9 18:46:04 CET 2004


On Wed, 2004-11-10 at 00:45, Guest007 wrote:

> 'a' -> is this a name of textframe? And must be in a field "name" of 
> "Property" dialog? If so, then I have a trouble, because I have 
> locale=ru_RU.KOI8-R and most of scribus I see translated. Include names of 
> textframe (sometghing like "Text0", but in russian translation).

Aah, that explains a lot.

> If I typed in Script Console
>   a=createText(50,50,200,80)
>   insertText('text', 0, 'a')
> I've got an empty frame. If I manually change name to "a" -- all works.

Makes sense.

As a workaround, try setting your own frame names in the CreateText
call, eg:

CreateText(50,50,100,100,'framename')

they'll need to be unique ASCII strings.

--
Craig Ringer





More information about the scribus mailing list