Re: [scribus] Scripter setFontFeatures usage

2020-02-24 Thread Victor / tokiop
Le 24/02/2020 à 00:13, Gregory Pittman a écrit : > At least with the documentation for createCharStyle(), "fontfeatures" include > ligatures, script position (e.g. superscript), capitals, numerals, numeral > width, numeral fractions, numeral zero, and style sets. thanks Greg for your clarificati

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Gregory Pittman
On 2/23/20 4:30 PM, Victor / tokiop wrote: > > Regarding "font features", I wrongly tested with setFontFeatures("bold") > which doesn't seem to be supported, but setFontFeatures("underline") looks > like it should be supported but not added with the correct attribute name. > At least with the d

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Le 23/02/2020 à 20:38, Gregory Pittman a écrit : > Hi Victor, Hi Greg, > I don't find any Scripter command setFontFeatures(). As I look at the > documentation, when font features are referred to, they're talking about > OpenType font features. I didn't find it either in Scribus Manual's Script

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Hi JL, Le 23/02/2020 à 21:13, JLuc a écrit : > This is the way scribus manages bold, italic and other font features : > it's not managed and coded as attribute for the base font > and these variants are only available when the exact altered font exists. > It's said to be the only way to provide a 

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread JLuc
Le 23/02/2020 à 20:57, Victor / tokiop a écrit : As a side note : "bold" doesn't seem to be a valid fontFeature entry. A bold selection is encoded by scribus by switching the font for it's bold variant with FONT="fontName Bold". Adding it manually in the .sla as FEATURES="inherit bold" has no e

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Le 23/02/2020 à 19:59, Peter Nermander a écrit : >> >> setFontFeatures("bold") >> >> > I don't know for sure, but I have a slight memory of an older discussion > about font features and I don't think they can be addressed by name, but > need to be addressed by a number (it may even be font specific

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Le 23/02/2020 à 19:59, Peter Nermander a écrit : >> >> setFontFeatures("bold") >> >> > I don't know for sure, but I have a slight memory of an older discussion > about font features and I don't think they can be addressed by name, but > need to be addressed by a number (it may even be font specific

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Gregory Pittman
On 2/23/20 12:20 PM, Victor / tokiop wrote: > Hi all, > > thanks for this great software and continuous improvements. > > I'm trying to set font feature on selected characters of a text frame from > scripter, using Scribus 1.5.5 AppImage, SVN : 23095, on debian. The > setFontFeatures function l

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Peter Nermander
> > setFontFeatures("bold") > > I don't know for sure, but I have a slight memory of an older discussion about font features and I don't think they can be addressed by name, but need to be addressed by a number (it may even be font specific). I think the discussion I remember was more about "This

[scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Hi all, thanks for this great software and continuous improvements. I'm trying to set font feature on selected characters of a text frame from scripter, using Scribus 1.5.5 AppImage, SVN : 23095, on debian. The setFontFeatures function listed here[1] seems to allow this. Using these steps as a

[scribus] Scripter API setLineStyle()

2017-10-20 Thread ZASKE Martin
Dear Juraj and Greg, thank you guys again for your help. I see that I had a misunderstanding: I had tried to have my script apply one of the user-created "Line Styles" (from the F3 Style Manager window). But the stuff in the API documentation, even though called LineStyle, is referring only to

[scribus] Scripter API setLineStyle()

2017-10-20 Thread Juraj Fedel
On Thu, Oct 19, 2017 at 08:47:26PM +0100, ZASKE Martin wrote: > import scribus > ... > scribus.setLineStyle(TableLineStyle) > > gives me > > NameError: name 'TableLineStyle' is not defined you can try: scribus.setLineStyle(scribus.LINE_DASHDOTDOT) scribus.setLineStyle() probably does not do wha

[scribus] Scripter API setLineStyle()

2017-10-19 Thread ZASKE Martin
Hi list, I am presently writing a new script for my wife who is taking a long document from some other tool to Scribus. It is looking good but I got stuck with the inbuilt API Help on one detail: I am using the latest 1.5.4svn for Windows: import scribus ... scribus.setLineStyle(TableLineS

[scribus] Scripter API setLineStyle()

2017-10-19 Thread Gregory Pittman
On 10/19/2017 03:47 PM, ZASKE Martin wrote: > Hi list, > > I am presently writing a new script for my wife who is taking a long > document from some other tool to Scribus. > > > It is looking good but I got stuck with the inbuilt API Help on one detail: > > I am using the latest 1.5.4svn for Wi

[scribus] scripter python functions.

2017-10-06 Thread xem...@gmx.com
> I can't find a list of the various scribus functions that can be accessed > in a python program that I might write. i would be interested in the list > for Scribus 1.4.6 and also for scribus 1.5.3 Perhaps it is the same list. Hi John, Help->Scribus Manual->For Developers->Scripter API

[scribus] scripter python functions.

2017-10-06 Thread Gregory Pittman
On 10/06/2017 05:57 PM, xemoth at gmx.com wrote: > > > > >> I can't find a list of the various scribus functions that can be accessed >> in a python program that I might write. i would be interested in the list >> for Scribus 1.4.6 and also for scribus 1.5.3 Perhaps it is the same list. > >

[scribus] scripter python functions.

2017-10-06 Thread scribus
I can't find a list of the various scribus functions that can be accessed in a python program that I might write. i would be interested in the list for Scribus 1.4.6 and also for scribus 1.5.3 Perhaps it is the same list. John Culleton -- next part -- An HTML attach

[scribus] Attention Scribus Scripter-ers!

2015-02-03 Thread ZASKE Martin
I have only rarely used existing scripts. So I consider myself a newbie in this area. I soon want to train some more and start making and using scripts, with the ultimate goal to produce personalized serial letters with proper addressing of people "Dear Mr. Best Customer!" and "customer reference"

[scribus] Attention Scribus Scripter-ers!

2015-02-02 Thread a.l.e
hi good idea. even if, personally, i tend to value more comments than numbers... ciao a.l.e > On 02/01/2015 05:58 AM, JLuc wrote: >> >> How do you intend to use these scales for ? >> Quality of a rating system depends on its purpose too. >> > The idea I have behind this is that even though we ha

[scribus] Attention Scribus Scripter-ers!

2015-02-02 Thread Gregory Pittman
On 02/02/2015 07:27 AM, a.l.e wrote: > hi > > good idea. > > even if, personally, i tend to value more comments than numbers... > I agree in general, but it can be hard to group and collate comments. One of the reasons I hate most surveys is that the questions and answers are limited, and most

[scribus] Attention Scribus Scripter-ers!

2015-02-01 Thread JLuc
Le 31/01/2015 20:03, Gregory Pittman a ?crit : > I'd like to set up a scoring system of sorts for our various scripts. > Quality - > 4. Well-written, efficient script. Adaptable to various kinds of use. I can > easily understand and adapt the script. > 3. Does its job well. Limited use because it

[scribus] Attention Scribus Scripter-ers!

2015-02-01 Thread Gregory Pittman
On 02/01/2015 05:58 AM, JLuc wrote: > > How do you intend to use these scales for ? > Quality of a rating system depends on its purpose too. > The idea I have behind this is that even though we have a number of scripts included with Scribus, and a great number of scripts on the wiki, we don't rea

[scribus] Attention Scribus Scripter-ers!

2015-02-01 Thread Gregory Pittman
On 02/01/2015 03:07 AM, Owen Cook wrote: > > >> I'd like to set up a scoring system of sorts for our various scripts. > > > > > Maybe a Wikimedia extension may help, eg; > > http://www.mediawiki.org/wiki/Extension:W4G_Rating_Bar or > > http://www.mediawiki.org/wiki/Extension:CommunityVoice for exa

[scribus] Attention Scribus Scripter-ers!

2015-02-01 Thread Kunda Loves Scribus
Great idea! No other feedback at the moment. /Kunda -- next part -- An HTML attachment was scrubbed... URL:

[scribus] Attention Scribus Scripter-ers!

2015-02-01 Thread Owen Cook
> > I'd like to set up a scoring system of sorts for our various scripts. Maybe a Wikimedia extension may help, eg; http://www.mediawiki.org/wiki/Extension:W4G_Rating_Bar or http://www.mediawiki.org/wiki/Extension:CommunityVoice for example? Owen

[scribus] Attention Scribus Scripter-ers!

2015-01-31 Thread Gregory Pittman
I'd like to set up a scoring system of sorts for our various scripts. One set of scripts is the one that is included with Scribus. The other is the various scripts on the wiki, or even ones that people have created or modified to their own purposes. Provisionally, I would like to have a two-pa

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-06 Thread Owen Cook
> > When I run my script what should I add to extract > the version number? > > Look at http://wiki.scribus.net/canvas/CMake_Build_Options ie, -DWANT_SVNVERSION=1 Owen

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread Craig Bradney
> On 05 Jan 2015, at 22:32, Morten Langlo wrote: > > Mon, Jan 05, 2015 at 08:19:09PM +0100, skrev Craig Bradney: >> > > > Hi John, > > it appears you are the only one with this problem? > Have you tried this: > > - erase the installation directory (especiall

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread Morten Langlo
Mon, Jan 05, 2015 at 08:19:09PM +0100, skrev Craig Bradney: > > >>> > >>> > >>> Hi John, > >>> > >>> it appears you are the only one with this problem? > >>> Have you tried this: > >>> > >>> - erase the installation directory (especially the /plugins > >>> subdirectory) > >>> - check during ma

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread Morten Langlo
Mon, Jan 05, 2015 at 08:19:09PM +0100, skrev Craig Bradney: > > >>> > >>> > >>> Hi John, > >>> > >>> it appears you are the only one with this problem? > >>> Have you tried this: > >>> > >>> - erase the installation directory (especially the /plugins > >>> subdirectory) > >>> - check during ma

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread Craig Bradney
>>> >>> >>> Hi John, >>> >>> it appears you are the only one with this problem? >>> Have you tried this: >>> >>> - erase the installation directory (especially the /plugins >>> subdirectory) >>> - check during make install for any error messages >>> >>> HNY >>> /Andreas >>> >> >> >> I've

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread Craig Bradney
Januar 2015 16:28 >>> An: scribus at lists.scribus.net >>> Betreff: Re: [scribus] Scripter icon disappeared in Scribus 1.4.5 >>> >>> On Sat, 3 Jan 2015 10:48:39 -0500 >>> John Culleton wrote: >>> >>>> Today (Saturday) the script

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread Andreas Vox
> -Urspr?ngliche Nachricht- > Von: John Culleton [mailto:John at wexfordpress.com] > Gesendet: Montag, 5. Januar 2015 16:28 > An: scribus at lists.scribus.net > Betreff: Re: [scribus] Scripter icon disappeared in Scribus 1.4.5 > > On Sat, 3 Jan 2015 10:48:39

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread John Culleton
On Mon, 5 Jan 2015 22:56:29 +0100 Craig Bradney wrote: > > > > > > > > If I go back til revision 19719 everything > > work as expected! > > > > > Jean fixed my bug.. r19736 should be ok now. > > Craig > -- next part -- I deleted all references to scribus in my hom

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread plinnell
On Mon, 5 Jan 2015 19:32:07 +0100 Andreas Vox wrote: > > > > -Urspr?ngliche Nachricht- > > Von: John Culleton [mailto:John at wexfordpress.com] > > Gesendet: Montag, 5. Januar 2015 16:28 > > An: scribus at lists.scribus.net > > Betreff: Re: [s

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-05 Thread John Culleton
On Sat, 3 Jan 2015 10:48:39 -0500 John Culleton wrote: > Today (Saturday) the scripter icon disappeared > from the menu bar of 1.4.5. I went to my most > recent backup (Friday) and it was OK. I > just downloaded and recompiled the svn but the > same problem occurs. > > There is this error messag

[scribus] Scripter icon disappeared in Scribus 1.4.5

2015-01-03 Thread John Culleton
Today (Saturday) the scripter icon disappeared from the menu bar of 1.4.5. I went to my most recent backup (Friday) and it was OK. I just downloaded and recompiled the svn but the same problem occurs. There is this error message on startup with the latest (defective) 1.4.5 but not with the next pr

[scribus] scripter: connect the c++/qt slots with a python function

2014-10-13 Thread a.l.e
dear scribusers this mail is for the ones among you, who know well python and pyqt... while working on getting the new scripter to work with python3 and pyqt5 i got stuck at the following point: https://github.com/aoloe/scribus-plugin-scripter/issues/7 in https://github.com/aoloe/scribus-plug

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-02 Thread ale rimoldi
hi mark, > Okay. I'll have to dig deeper. BTW which are you compiling for > scripter or scripter2? Scripter2 for me. yep, the new scripter... the 1.4 scripter is basically in maintenance mode... ciao a-l-e

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-02 Thread ale rimoldi
hi mark > Checked for other changes, > > to variant_converter > "QPoint": lambda v: v.toPoint(),qApp > > in the def wrap() function > > if isinstance(obj, QString): --> isinstance(obj, str): > > Sent my version of file mikro.py to you. sadly, the code still does not use variant_con

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-02 Thread Mark Heieis
Okay. I'll have to dig deeper. BTW which are you compiling for scripter or scripter2? Scripter2 for me. On 2014-10-02 03:03, ale rimoldi wrote: > hi mark > >> Checked for other changes, >> >> to variant_converter >> "QPoint": lambda v: v.toPoint(),qApp >> >> in the def wrap() function >>

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-01 Thread ale rimoldi
hi mark thanks for the hint... > "str": lambda v: unicode(v.toString()), but it does not seem to solve the issue... placing a debugging line in from_variant() (the only place where variant_converter is used) shows that the code does not go through there... i've pushed the change, so you can ch

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-01 Thread ale rimoldi
hi i got a hint and could solve this specific issue... ... but now i'm stuck with a problem i don't understand in a function that i have no idea what is doing... we will see... i open a ticket on github... if anybody wants to help he / she can have a look in there! https://github.com/aoloe/scri

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-01 Thread Mark Heieis
Checked for other changes, to variant_converter "QPoint": lambda v: v.toPoint(),qApp in the def wrap() function if isinstance(obj, QString): --> isinstance(obj, str): Sent my version of file mikro.py to you. Cheers, mrh. On 2014-10-01 12:44, ale rimoldi wrote: > hi mark > > thank

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-01 Thread ale rimoldi
hi i'm trying to get the scripter to work again and port it to python3 and pyqt5 now, the signal defined in the c++ class does not seem to be visible in the python code https://github.com/aoloe/scribus-plugin-scripter/issues/5 does anybody around here have a clue how to solve the issue? ciao a

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-01 Thread Mark Heieis
Ok. Let me clean the cobwebs of the code and my memory first. On 2014-10-01 12:44, ale rimoldi wrote: > hi mark > > thanks for the hint... > >> "str": lambda v: unicode(v.toString()), > but it does not seem to solve the issue... > > placing a debugging line in from_variant() (the only place where

[scribus] scripter: connecting python 3 code to a c++ signal

2014-10-01 Thread Mark Heieis
Hi Ale, I went through this process about a year ago. I wanted to get Qt5 and scripter 2 working. I remember solving this one. I think I was able to convert (almost?) everything, including the tests but haven't touched it for some time now. Where I got stuck was the with the difference in the

[scribus] Scripter pica measure bug?

2014-08-03 Thread Juraj Fedel
On Sun, Aug 03, 2014 at 10:48:13AM +0200, Craig Bradney wrote: > > There's no bug here. Picas are just points, displayed differently, so we > > changed to using a 1:1 > > ratio in unit conversion. > > > > Maybe Scripter needs a fix though. In my copy of memoir manual /usr/share/doc/texlive-late

[scribus] Scripter pica measure bug?

2014-08-03 Thread William Bader
> Table 2: Printers units > Name (abbreviation) Value > point (pt) > pica (pc)1pc = 12pt > inch (in)1in = 72.27pt > centimetre (cm) 2.54cm = 1in > millimetre (mm) 10mm = 1cm > big point (bp) 72bp = 72.27pt > didot point (

[scribus] Scripter pica measure bug?

2014-08-03 Thread Craig Bradney
On 3/08/2014 10:44 am, Craig Bradney wrote: > On 3/08/2014 10:07 am, Juraj Fedel wrote: >> On Sun, Nov 10, 2013 at 08:53:42AM -0500, Gregory Pittman wrote: >>> On 11/08/2013 12:58 PM, Jos? Antonio Rocha wrote: In Scripter console: print pt result: 1.0 print p

[scribus] Scripter pica measure bug?

2014-08-03 Thread Craig Bradney
On 3/08/2014 10:07 am, Juraj Fedel wrote: > On Sun, Nov 10, 2013 at 08:53:42AM -0500, Gregory Pittman wrote: >> On 11/08/2013 12:58 PM, Jos? Antonio Rocha wrote: >>> In Scripter console: >>> >>> print pt >>> result: >>> 1.0 >>> >>> print p >>> result: >>> 1.0 >>> >> >> After a little fishing, I can

[scribus] Scripter pica measure bug?

2014-08-03 Thread Juraj Fedel
On Sun, Nov 10, 2013 at 08:53:42AM -0500, Gregory Pittman wrote: > On 11/08/2013 12:58 PM, Jos? Antonio Rocha wrote: > > In Scripter console: > > > > print pt > > result: > > 1.0 > > > > print p > > result: > > 1.0 > > > > After a little fishing, I can find this in units.cpp, starting at line 3

[scribus] Scripter pica measure bug?

2013-11-10 Thread Gregory Pittman
On 11/08/2013 12:58 PM, Jos? Antonio Rocha wrote: > In Scripter console: > > print pt > result: > 1.0 > > print p > result: > 1.0 > After a little fishing, I can find this in units.cpp, starting at line 38: // PT,MM, IN, P, CM, C,

[scribus] Scripter pica measure bug?

2013-11-09 Thread José Antonio Rocha
2013/11/9 Gregory Pittman > On 11/08/2013 12:58 PM, Jos? Antonio Rocha wrote: > > In Scripter console: > > > > print pt > > result: > > 1.0 > > > > print p > > result: > > 1.0 > > > > Could be 12.0. This is a bug? > > > I'm not sure what you're doing. Are you using any Scripter commands to > get

[scribus] Scripter pica measure bug?

2013-11-09 Thread Gregory Pittman
On 11/08/2013 12:58 PM, Jos? Antonio Rocha wrote: > In Scripter console: > > print pt > result: > 1.0 > > print p > result: > 1.0 > > Could be 12.0. This is a bug? > I'm not sure what you're doing. Are you using any Scripter commands to get this? Is there Python math involved? Greg

[scribus] Scripter pica measure bug?

2013-11-08 Thread José Antonio Rocha
In Scripter console: print pt result: 1.0 print p result: 1.0 Could be 12.0. This is a bug? -- [image: Meira] -- nome: "Jos? Antonio Meira da Rocha" googletalk: email: joseantoniorocha at gmail.com ve?culo: [ http:

[scribus] Applying character styles with Scribus Scripter

2013-04-23 Thread Nicola Griffin
Hi Not sure if this is any help, but in TextEdit you can highlight a single character, go to the font dropdown menu and choose a font from there, then add size etc if you want to. But maybe you're already doing this and it's not what you want - it's more arduous than clicking a style. Regards

[scribus] Applying character styles with Scribus Scripter

2013-04-23 Thread José Antonio Rocha
2013/4/23 Gregory Pittman > On 04/23/2013 05:59 AM, Syed Akbar wrote: > > Hello, > > > > it does not seem to be possible to apply character styles with a Scribus > > script. Is there any work-around or other solution to format single > > characters in a textbox? > > > You're right, there is no wa

[scribus] Applying character styles with Scribus Scripter

2013-04-23 Thread Syed Akbar
Hello, it does not seem to be possible to apply character styles with a Scribus script. Is there any work-around or other solution to format single characters in a textbox? Regards, S. Akbar

[scribus] Applying character styles with Scribus Scripter

2013-04-23 Thread Joe Zeff
On 04/23/2013 07:27 AM, john Culleton wrote: > How about using the story editor, highlighting the character, and > changing the characteristics at the top of the story editor? > Would not that work? Yes. I do that all the time. However, the OP wanted to use the Scripter.

[scribus] Applying character styles with Scribus Scripter

2013-04-23 Thread john Culleton
On Tue, 23 Apr 2013 09:46:23 -0400 Gregory Pittman wrote: > On 04/23/2013 05:59 AM, Syed Akbar wrote: > > Hello, > > > > it does not seem to be possible to apply character styles with a > > Scribus script. Is there any work-around or other solution to > > format single characters in a textbox? >

[scribus] Applying character styles with Scribus Scripter

2013-04-23 Thread Gregory Pittman
On 04/23/2013 05:59 AM, Syed Akbar wrote: > Hello, > > it does not seem to be possible to apply character styles with a Scribus > script. Is there any work-around or other solution to format single > characters in a textbox? > You're right, there is no way to apply character styles. I don't think

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-11 Thread Stefano Danzi
Hello. On 3 differents PC with windows XP SP3 32bit and scribus 1.4.2 the script has same issue (1h to complete). One of there has dual boot and Ubuntu 12.10 64bit. Using the amd64 build of scribus 1.4.3svn same script take 2 seconds to complete. Il 10/04/2013 14.35, Stefano Danzi ha scrit

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-10 Thread Stefano Danzi
Ciao Ale, on my pc the script has the same result on scribus 1.4.1 and 1.4.2 I have to tray it in a different PC but I can't inderstand waht could be... I did a monitor of scribus using ProcMon utility but I didn't see file or registry or file access during the script execution. The only activi

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-10 Thread ale rimoldi
ciao stefano, i've run the script and i didn't experience any noticeable delay... what could it be? ciao a.l.e > > Il 10/04/2013 0.27, Owen ha scritto: > > > > It is if your program is written to do that. > > > > Maybe you could post the script for more eyes to debug, but > > generally, this c

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-10 Thread Stefano Danzi
I open Scribus using the "Scribus (console)" link and this output goes on console. Il 10/04/2013 13.40, Gregory Pittman ha scritto: > > Did you run this in a console? I wasn't sure where the output was going, > so I instead created a text frame, then inserted the output into that: > > e.g., >

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-10 Thread Stefano Danzi
Il 10/04/2013 0.27, Owen ha scritto: > > It is if your program is written to do that. > > Maybe you could post the script for more eyes to debug, but generally, > this case will occur when "calls" aren't completed and another started. > Just fills up one of your quotas. > > Then again, the fault

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-10 Thread Owen
On Tue, 09 Apr 2013 11:40:36 +0200 Stefano Danzi wrote: > Hello, > > I'm running on scribus 1.4.2 (win32) a script to create 40 char > styles and 40 paragraph styles. > > The function called are createCharStyle() and createParagraphStyle(). > > With the first styles created these functions are

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-10 Thread Gregory Pittman
On 04/10/2013 05:16 AM, Stefano Danzi wrote: > > Il 10/04/2013 0.27, Owen ha scritto: >> >> It is if your program is written to do that. >> >> Maybe you could post the script for more eyes to debug, but generally, >> this case will occur when "calls" aren't completed and another started. >> Just f

[scribus] Scripter: slow createCharStyle() and createParagraphStyle()

2013-04-09 Thread Stefano Danzi
Hello, I'm running on scribus 1.4.2 (win32) a script to create 40 char styles and 40 paragraph styles. The function called are createCharStyle() and createParagraphStyle(). With the first styles created these functions are fast (5 seconds for each call), as styles increase funtionsslows down.

[scribus] Scripter issue using createMasterPage('Test')

2013-04-08 Thread Stefano Danzi
There is an error in documentation. The correct way to create and edit a masterpage is: createMasterPage(pageName) editMasterPage(pageName) [code] closeMasterPage() Il 06/04/2013 17.05, Gregory Pittman ha scritto: > If you can successfully create this page, then you can convert a page to > a

[scribus] Scripter issue using createMasterPage('Test')

2013-04-06 Thread Gregory Pittman
On 04/05/2013 01:36 PM, Stefano Danzi wrote: > I'm writing a script that create a new masterpage, place some elements > on this new masterpage and close it. > > When I run this script object are placed on current page and not in new > created masterpage. > > If I place element on an existing mast

[scribus] Scripter issue using createMasterPage('Test')

2013-04-05 Thread Stefano Danzi
. Scribus 1.4.2 Il 05/04/2013 19.36, Stefano Danzi ha scritto: > I'm writing a script that create a new masterpage, place some elements > on this new masterpage and close it. > > When I run this script object are placed on current page and not in > new created masterpage. > > If I place elem

[scribus] Scripter issue using createMasterPage('Test')

2013-04-05 Thread Stefano Danzi
I'm writing a script that create a new masterpage, place some elements on this new masterpage and close it. When I run this script object are placed on current page and not in new created masterpage. If I place element on an existing masterpage the script work. I tryed to create masterpage, cl

[scribus] Scripter 2 examples

2012-12-12 Thread michael crane
http://www-rohan.sdsu.edu/doc/sed.html

[scribus] Scripter examples

2012-12-12 Thread a.l.e
On 12/12/12 10:36 AM, JLuc wrote: > Le 12/12/2012 09:46, a.l.e a ?crit : >> On 12/11/12 8:15 PM, Gregory Pittman wrote: >>> On 12/11/2012 03:33 AM, a.l.e wrote: hi greg, > A while ago I was trying to find a way to load CSV files with > Scripter, > but this doesn't seem possible ei

[scribus] Scripter examples

2012-12-12 Thread JLuc
Le 12/12/2012 09:46, a.l.e a ?crit : > On 12/11/12 8:15 PM, Gregory Pittman wrote: >> On 12/11/2012 03:33 AM, a.l.e wrote: >>> hi greg, A while ago I was trying to find a way to load CSV files with Scripter, but this doesn't seem possible either. >>> wht? :-) >>> >>> just use python t

[scribus] Scripter 2 examples

2012-12-12 Thread a.l.e
On 12/11/12 8:15 PM, Gregory Pittman wrote: > On 12/11/2012 03:33 AM, a.l.e wrote: >> hi greg, >>> A while ago I was trying to find a way to load CSV files with Scripter, >>> but this doesn't seem possible either. >> wht? :-) >> >> just use python to load a csv in a list... then you can loop th

[scribus] Scripter 2 examples

2012-12-11 Thread Gregory Pittman
On 12/11/2012 02:15 PM, Gregory Pittman wrote: > On 12/11/2012 03:33 AM, a.l.e wrote: >> hi greg, >>> A while ago I was trying to find a way to load CSV files with Scripter, >>> but this doesn't seem possible either. >> wht? :-) >> >> just use python to load a csv in a list... then you can loop

[scribus] Scripter 2 examples

2012-12-11 Thread JLuc
Le 10/12/2012 22:25, JLuc a ?crit : >> A while ago I was trying to find a way to load CSV files with Scripter, > It's a simple taged file and possible taged file format > for this purpose. AMOF, too simmple, since CSV cannot enable to introduce styled characters "anywhere", but only following a si

[scribus] Scripter 2 examples

2012-12-11 Thread Gregory Pittman
On 12/11/2012 03:33 AM, a.l.e wrote: > hi greg, >> A while ago I was trying to find a way to load CSV files with Scripter, >> but this doesn't seem possible either. > wht? :-) > > just use python to load a csv in a list... then you can loop through > it as you want. > should be almost trivial

[scribus] Scripter 2 examples

2012-12-11 Thread a.l.e
hi greg, > What I would like to see eventually is a description of how to create > new commands for Scripter 2, since this was supposed to be one of the > benefits of the new Scripter. > yep, i can do something similar what i did for the old scripter... a nice text telling the people how to creat

[scribus] Scripter 2 examples

2012-12-11 Thread a.l.e
"python csv" you should be able to find everything you need to get started (and finished :-) reading a csv file is not related to the scribus scripter capabilities but only depends on python libraries. the same applies to querying a database, downloading files from the net or even tal

[scribus] Scripter 2 examples

2012-12-10 Thread JLuc
Le 10/12/2012 15:58, john Culleton a ?crit : > For Linux etc. users there are several independent programs that will > translate various strings to other strings, including at the > simplest level sed and awk and for more complex matters there are > lex and yacc and their modern equivalents flex a

[scribus] Scripter 2 examples

2012-12-10 Thread JLuc
Le 10/12/2012 15:29, Gregory Pittman a ?crit : > On 12/09/2012 06:57 PM, JLuc wrote: >> Hello, >> >> I would like to create a script that would read >> a previously created text file with properly tagged text content >> and create out of it a scribus file, with proper formating according to >> tags

[scribus] Scripter 2 examples

2012-12-10 Thread john Culleton
layout and styles. > > Since scripter2 is the future of scribus scripter (isnt ?), > i'm thinking of using it on scribus 1.5. > I see that some people are using scripter2, > so i understand that it works ! > This is encouraging. > > It is however difficult to know how

[scribus] Scripter 2 examples

2012-12-10 Thread Gregory Pittman
On 12/09/2012 06:57 PM, JLuc wrote: > Hello, > > I would like to create a script that would read > a previously created text file with properly tagged text content > and create out of it a scribus file, with proper formating according to > tags, > using predefined layout and styles. > While I gu

[scribus] Scripter 2 examples

2012-12-10 Thread JLuc
Hello, I would like to create a script that would read a previously created text file with properly taged text content and create out of it a scribus file, with proper formating according to tags, using predefined layout and styles. Since scripter2 is the future of scribus scripter (isnt

[scribus] Scripter and Preferences

2010-11-30 Thread Olivier BERTEN
I know exactly how to do it (see SwatchBooker). That's why I'm proposing to write a script that would download Pantone's online data into Scribus. But these data are in CIE-Lab so I need to convert them to RGB or CMYK. I could simply convert them to sRGB but since Scribus is color managed, it would

[scribus] Scripter and Preferences

2010-11-30 Thread Olivier BERTEN
Thanks for the answers... but... ;-) Le 24/11/10 15:52, Gregory Pittman a ?crit : > On 11/24/2010 08:46 AM, Olivier BERTEN wrote: >> >> Question 1: >> I'm thinking of something like configurable templates where the users >> could adjust some measurements. It would be more efficient if the user >>

[scribus] Scripter and Preferences

2010-11-30 Thread Gregory Pittman
On 11/30/2010 11:17 AM, Olivier BERTEN wrote: >> > But I guess you're not going to distribute Pantone's palettes anytime > soon... And since these are easily accessible on-line, it would be an > easy improvement for many people... We actually would love to, but some communications with Pantone hav

[scribus] Scripter and Preferences

2010-11-24 Thread Craig Bradney
On 24/11/2010, at 3:34 PM, Gregory Pittman wrote: > On 11/24/2010 08:16 AM, a.l.e wrote: >> may i ask you then which unit should the script use if the programmer has >> not specified one? >> >> must the programmer specify the unit if no document is open? does it crash >> otherwise? > > y

[scribus] Scripter and Preferences

2010-11-24 Thread Olivier BERTEN
Well... it seems we misunderstood each other... I'm not asking for it to be available now... I'm pretty aware of how free software works as I'm myself a (small level) contributor. What made me react maybe "brutally" is I asked "is this possible" and you answered "you don't need it" (basically). So

[scribus] Scripter and Preferences

2010-11-24 Thread a.l.e
hi greg, > > i'm not sure whether the values set in the preferences should be > > read by the scripter. but the scripter should use those values by > > default when creating new elements, be able to get the current > > value, change it and set it back to the value preferred by the user. > > Wheth

[scribus] Scripter and Preferences

2010-11-24 Thread Gregory Pittman
On 11/24/2010 08:46 AM, Olivier BERTEN wrote: > > Question 1: > I'm thinking of something like configurable templates where the users > could adjust some measurements. It would be more efficient if the user > was presented these measures in its favorite unit... isn't it? > Is there a way to current

[scribus] Scripter and Preferences

2010-11-24 Thread Gregory Pittman
On 11/24/2010 08:16 AM, a.l.e wrote: > may i ask you then which unit should the script use if the programmer has not > specified one? > > must the programmer specify the unit if no document is open? does it crash > otherwise? yes, you must specify this item in the newDocument command -- there is

[scribus] Scripter and Preferences

2010-11-24 Thread a.l.e
hi > Plan B: make the doc with some arbitrary units, then either let the > user switch units after the script runs, or give them a dialog to > choose and switch for them. personally, i agree that there should be a way to create a document in the users units. i would say more: each document creat

[scribus] Scripter and Preferences

2010-11-24 Thread Gregory Pittman
On 11/24/2010 02:12 AM, a.l.e wrote: > > i'm not sure whether the values set in the preferences should be read by > the scripter. but the scripter should use those values by > default when creating new elements, be able to get the current > value, change it and set it back to the value preferred by

[scribus] Scripter and Preferences

2010-11-24 Thread Olivier BERTEN
If it's that trivial, then there's no point in having that preference at all... Since extension scripts are supposed to work inside the application, it seems rather obvious to me they need to take in account the preferences that lead all other parts of the application... Or maybe I just didn't get

[scribus] Scripter and Preferences

2010-11-23 Thread Gregory Pittman
On 11/23/2010 06:22 PM, Olivier BERTEN wrote: > If it's that trivial, then there's no point in having that preference at > all... > > Since extension scripts are supposed to work inside the application, it > seems rather obvious to me they need to take in account the preferences > that lead all oth

  1   2   3   >