Discussion:
[scribus] Script: setBaselineGuides.py
ugajin
2018-07-16 12:29:57 UTC
Permalink
Attached is a script that I wrote towards the end of last year, which I had forgotten about, and which I was recently reminded about when  updating stuff. The script makes it easy to snap/align objects to the baseline grid, a feature [perhaps for good reason] is not included natively in Scribus. Set the baseline spacing and any offset value via dialogues, and the script generates both the grid and a set of matching horizontal guides. Tested in v1.5.4 Not suitable for v1.4.7 -u
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/8c4d5b2b/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also
Gregory Pittman
2018-07-16 12:58:04 UTC
Permalink
Post by ugajin
Attached is a script that I wrote towards the end of last year, which I had forgotten about, and which I was recently reminded about when  updating stuff. The script makes it easy to snap/align objects to the baseline grid, a feature [perhaps for good reason] is not included natively in Scribus. Set the baseline spacing and any offset value via dialogues, and the script generates both the grid and a set of matching horizontal guides. Tested in v1.5.4 Not suitable for v1.4.7 -u
You might want to just include the script commands inline in the email.

Greg


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.ne
ugajin
2018-07-16 13:30:11 UTC
Permalink
I would have included the script as inline text, had I wanted to do so, but this may not be what you mean. -u ---- On Mon, 16 Jul 2018 12:58:04 +0000 Gregory Pittman <***@iglou.com> wrote ---- On 07/16/2018 08:29 AM, ugajin wrote: > Attached is a script that I wrote towards the end of last year, which I had forgotten about, and which I was recently reminded about when  updating stuff. The script makes it easy to snap/align objects to the baseline grid, a feature [perhaps for good reason] is not included natively in Scribus. Set the baseline spacing and any offset value via dialogues, and the script generates both the grid and a set of matching horizontal guides. Tested in v1.5.4 Not suitable for v1.4.7 -u You might want to just include the script commands inline in the email. Greg ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/756adf81/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
Gregory Pittman
2018-07-16 17:24:01 UTC
Permalink
Post by ugajin
I would have included the script as inline text, had I wanted to do so, but this may not be what you mean.
On the other hand, I think you can see that your attachment disappeared.

Greg


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
ugajin
2018-07-16 18:51:42 UTC
Permalink
I wasn't aware it had disappeared, the email that I received from the list includes the following link An HTML attachment was scrubbed... URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/8c4d5b2b/attachment.html> Having now looked, I see it appears to have been stripped. -u ---- On Mon, 16 Jul 2018 17:24:01 +0000 Gregory Pittman <***@iglou.com> wrote ---- On 07/16/2018 09:30 AM, ugajin wrote: > I would have included the script as inline text, had I wanted to do so, but this may not be what you mean. On the other hand, I think you can see that your attachment disappeared. Greg ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/d9a1de85/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scrib
ugajin
2018-07-16 18:56:13 UTC
Permalink
Here is the script that I first sent as an attachment... The script makes it easy to snap/align objects to the baseline grid, a feature which [perhaps for good reason] is not included natively in Scribus. -u #!/usr/bin/env python # -*- coding: utf-8 -*- # The script generates a grid and matching guides. # Set the baseline grid spacing and offset values # Useful to snap/align objects to a baseline grid. # Written using v1.5.4 # Not suitable for v1.4.7 # Author: ***@zoho.com # Date: October 8, 2017 import sys 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) import math def main(argv):     """A simple scripts to set baseline grid and matching guides."""     CurrentUnit = scribus.getUnit()          scribus.setUnit(0)     H_Guides = []          GuideHeight = float(scribus.valueDialog('Set BaseLine Grid & Guides', 'Enter value for Grid and Guide Height (pt).', '14.40') )     GuideOffset = float(scribus.valueDialog('Set Grid & Guide Offsets', 'Enter value for Grid and Guide Offset (pt).', '0.0') )          PageWidth, PageHeight = scribus.getPageSize()          NumLoops = math.floor(1 + (PageHeight - GuideOffset) / GuideHeight)          for i in range(int(NumLoops)):         if i > 0:             H_Guides.append(GuideOffset + i * GuideHeight)          scribus.setBaseLine(GuideHeight, GuideOffset)     scribus.setHGuides(scribus.getHGuides() + H_Guides)          scribus.setUnit(CurrentUnit)          scribus.messageBox('Script', '<h3>Script by ugajin</h3><p>Thanks a bunch for using setBaselineGuides and Scribus!</p><p>***@zoho.com</p>', scribus.ICON_INFORMATION, scribus.BUTTON_OK, scribus.BUTTON_CANCEL) def main_wrapper(argv):     try:         scribus.statusMessage("Running script...")         scribus.progressReset()         main(argv)     finally:         if scribus.haveDoc():             scribus.setRedraw(True)         scribus.statusMessage("")         scribus.progressReset() if __name__ == '__main__':     main_wrapper(sys.argv)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/c0be40e8/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.n
ugajin
2018-07-16 18:57:40 UTC
Permalink
This is why I chose not to paste it! -u ---- On Mon, 16 Jul 2018 18:56:13 +0000 ugajin <***@zoho.com> wrote ---- Here is the script that I first sent as an attachment... The script makes it easy to snap/align objects to the baseline grid, a feature which [perhaps for good reason] is not included natively in Scribus. -u #!/usr/bin/env python # -*- coding: utf-8 -*- # The script generates a grid and matching guides. # Set the baseline grid spacing and offset values # Useful to snap/align objects to a baseline grid. # Written using v1.5.4 # Not suitable for v1.4.7 # Author: ***@zoho.com # Date: October 8, 2017 import sys 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) import math def main(argv):     """A simple scripts to set baseline grid and matching guides."""     CurrentUnit = scribus.getUnit()          scribus.setUnit(0)     H_Guides = []          GuideHeight = float(scribus.valueDialog('Set BaseLine Grid & Guides', 'Enter value for Grid and Guide Height (pt).', '14.40') )     GuideOffset = float(scribus.valueDialog('Set Grid & Guide Offsets', 'Enter value for Grid and Guide Offset (pt).', '0.0') )          PageWidth, PageHeight = scribus.getPageSize()          NumLoops = math.floor(1 + (PageHeight - GuideOffset) / GuideHeight)          for i in range(int(NumLoops)):         if i > 0:             H_Guides.append(GuideOffset + i * GuideHeight)          scribus.setBaseLine(GuideHeight, GuideOffset)     scribus.setHGuides(scribus.getHGuides() + H_Guides)          scribus.setUnit(CurrentUnit)          scribus.messageBox('Script', '<h3>Script by ugajin</h3><p>Thanks a bunch for using setBaselineGuides and Scribus!</p><p>***@zoho.com</p>', scribus.ICON_INFORMATION, scribus.BUTTON_OK, scribus.BUTTON_CANCEL) def main_wrapper(argv):     try:         scribus.statusMessage("Running script...")         scribus.progressReset()         main(argv)     finally:         if scribus.haveDoc():             scribus.setRedraw(True)         scribus.statusMessage("")         scribus.progressReset() if __name__ == '__main__':     main_wrapper(sys.argv) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/c0be40e8/attachment.html> ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/8f99d98e/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus
JLuc
2018-07-16 20:21:34 UTC
Permalink
Post by ugajin
This is why I chose not to paste it! -u
You can paste it here : http://scribus.pastebin.fr/
and share the later link

JL


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
htt
ugajin
2018-07-16 22:54:10 UTC
Permalink
Thanks. Here is the script that I first sent as an attachment... and then as inline text... and now as a link where you can view and/or download the said script. The script makes it easy to snap/align objects to the baseline grid, a feature which [perhaps for good reason] is not included natively in Scribus. -u https://www.dropbox.com/s/qrzyocdd5rh089y/setBaselineGuides.py?dl=0 ---- On Mon, 16 Jul 2018 20:21:34 +0000 JLuc <***@no-log.org> wrote ---- Le 16/07/2018 à 20:57, ugajin a écrit : > This is why I chose not to paste it! -u You can paste it here : http://scribus.pastebin.fr/ and share the later link JL ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/eaf3b622/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http:/
ugajin
2018-07-17 09:03:36 UTC
Permalink
Can anyone tell my why the messages that I post to the list are returned looking like this? Thanks. ============ Forwarded message ============ From : ugajin <***@zoho.com> To : "Scribus User Mailing List"<***@lists.scribus.net> Cc : <***@lists.scribus.info> Date : Mon, 16 Jul 2018 22:54:10 +0000 Subject : Re: [scribus] Script: setBaselineGuides.py ============ Forwarded message ============ Thanks. Here is the script that I first sent as an attachment... and then as inline text... and now as a link where you can view and/or download the said script. The script makes it easy to snap/align objects to the baseline grid, a feature which [perhaps for good reason] is not included natively in Scribus. -u https://www.dropbox.com/s/qrzyocdd5rh089y/setBaselineGuides.py?dl=0 ---- On Mon, 16 Jul 2018 20:21:34 +0000 JLuc <***@no-log.org> wrote ---- Le 16/07/2018 à 20:57, ugajin a écrit : > This is why I chose not to paste it! -u You can paste it here : http://scribus.pastebin.fr/ and share the later link JL ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180716/eaf3b622/attachment-0001.html> ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180717/138c153a/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
ht
Jonas Bechtel
2018-07-17 09:13:59 UTC
Permalink
It must be some trouble with your mail client. When I base64 -d the blob from your source, I see that the lack of line brakes is caused on your side.


BR
Jonas





On Tue, 17 Jul 2018 09:03:36 +0000
Post by ugajin
Can anyone tell my why the messages that I post to the list are
returned looking like this? Thanks. ============ Forwarded message
Subject : Re: [scribus] Script: setBaselineGuides.py ============
Forwarded message ============ Thanks. Here is the script that I
first sent as an attachment... and then as inline text... and now as
a link where you can view and/or download the said script. The script
makes it easy to snap/align objects to the baseline grid, a feature
which [perhaps for good reason] is not included natively in Scribus.
-u
https://www.dropbox.com/s/qrzyocdd5rh089y/setBaselineGuides.py?dl=0
---- Le 16/07/2018 à 20:57, ugajin a écrit : > This is why I chose
http://scribus.pastebin.fr/ and share the later link JL ___ Scribus
unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See
also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part -------------- An HTML attachment was
<http://lists.scribus.net/pipermail/scribus/attachments/20180716/eaf3b622/attachment-0001.html>
or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See
also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part -------------- An HTML attachment was
<http://lists.scribus.net/pipermail/scribus/attachments/20180717/138c153a/attachment.html>
or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See
also: http://wiki.scribus.net http://forums.scribus.net
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://foru
ugajin
2018-07-17 09:34:55 UTC
Permalink
Thanks, Apologies for the subject line. I have contacted zoho.com the mail client provider that I use. Not sure I can base-64 -d a blob, or how? I am running 0SX v10.13.5 I assume others get the same unreadable content when I post. Messages that I otherwise receive from the list e.g. yours arrive unmashed and nicely readable. -u ---- On Tue, 17 Jul 2018 09:13:59 +0000 Jonas Bechtel <***@jbechtel.de> wrote ---- It must be some trouble with your mail client. When I base64 -d the blob from your source, I see that the lack of line brakes is caused on your side. BR Jonas On Tue, 17 Jul 2018 09:03:36 +0000 ugajin <***@zoho.com> wrote with subject "[scribus] Why does scribus list mash content?": > Can anyone tell my why the messages that I post to the list are > returned looking like this? Thanks. ============ Forwarded message > ============ From : ugajin <***@zoho.com> To : "Scribus User > Mailing List"<***@lists.scribus.net> Cc : > <***@lists.scribus.info> Date : Mon, 16 Jul 2018 22:54:10 +0000 > Subject : Re: [scribus] Script: setBaselineGuides.py ============ > Forwarded message ============ Thanks. Here is the script that I > first sent as an attachment... and then as inline text... and now as > a link where you can view and/or download the said script. The script > makes it easy to snap/align objects to the baseline grid, a feature > which [perhaps for good reason] is not included natively in Scribus. > -u > https://www.dropbox.com/s/qrzyocdd5rh089y/setBaselineGuides.py?dl=0 > ---- On Mon, 16 Jul 2018 20:21:34 +0000 JLuc <***@no-log.org> wrote > ---- Le 16/07/2018 à 20:57, ugajin a écrit : > This is why I chose > not to paste it! -u You can paste it here : > http://scribus.pastebin.fr/ and share the later link JL ___ Scribus > Mailing List: ***@lists.scribus.net Edit your options or > unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See > also: http://wiki.scribus.net http://forums.scribus.net > -------------- next part -------------- An HTML attachment was > scrubbed... URL: > <http://lists.scribus.net/pipermail/scribus/attachments/20180716/eaf3b622/attachment-0001.html> > ___ Scribus Mailing List: ***@lists.scribus.net Edit your options > or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See > also: http://wiki.scribus.net http://forums.scribus.net > -------------- next part -------------- An HTML attachment was > scrubbed... URL: > <http://lists.scribus.net/pipermail/scribus/attachments/20180717/138c153a/attachment.html> > ___ Scribus Mailing List: ***@lists.scribus.net Edit your options > or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See > also: http://wiki.scribus.net http://forums.scribus.net ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180717/b915cb57/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://
Gregory Pittman
2018-07-17 12:04:20 UTC
Permalink
I'm guessing that you're using a Mac or Windows and it has to do with
the carriage returns not being recognized. Are you using a plain-text
mail editor?

Greg


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
ugajin
2018-07-17 13:25:46 UTC
Permalink
Yes, I thought it mught be that it is sent as HTML not plain text. That said, I have been unable to find a setting that allows me to select the mode. Meanwhile, I await hearing from the mail client provider. Thanks! ---- On Tue, 17 Jul 2018 12:04:20 +0000 Gregory Pittman <***@iglou.com> wrote ---- On 07/17/2018 05:03 AM, ugajin wrote: > Can anyone tell my why the messages that I post to the list are returned looking like this? Thanks. ============ Forwarded message ============ From : ugajin <***@zoho.com> To : "Scribus User I'm guessing that you're using a Mac or Windows and it has to do with the carriage returns not being recognized. Are you using a plain-text mail editor? Greg ___ Scribus Mailing List: ***@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180717/f76d7522/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scrib
ale rimoldi
2018-07-19 07:46:33 UTC
Permalink
hi hugajin

when writing to mailing list you should probably send "text only"
emails.

i've googled "zoho.com email plain text" and this is what i got:

https://www.zoho.eu/mail/help/sending-mails.html#alink4

looks like a simple and effective way to improve your emails : - )

on the other side, uploading the script to a service that allows
sharing code (like dropbox does; but you might also use almost any
pastebin or gists...) and then sharing the link is probably a better
idea than pasting the script in the email itself, since there is a high
risk that sendind per remail reformats your text and makes python code
hard to recover...

i will give a feedback on the script itself in a separate email... : - )

ciao
a.l.e

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
ugajin
2018-07-19 08:12:03 UTC
Permalink
Thanks, for point this out.

-u
Post by ale rimoldi
hi hugajin
when writing to mailing list you should probably send "text only"
emails.
https://www.zoho.eu/mail/help/sending-mails.html#alink4
looks like a simple and effective way to improve your emails : - )
on the other side, uploading the script to a service that allows
sharing code (like dropbox does; but you might also use almost any
pastebin or gists...) and then sharing the link is probably a better
idea than pasting the script in the email itself, since there is a high
risk that sendind per remail reformats your text and makes python code
hard to recover...
i will give a feedback on the script itself in a separate email... : - )
ciao
a.l.e
___
http://lists.scribus.net/mailman/listinfo/scribus
http://wiki.scribus.net
http://forums.scribus.net
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
ugajin
2018-07-19 08:37:55 UTC
Permalink
*pointing
Post by ugajin
Thanks, for point this out.
-u
Post by ale rimoldi
hi hugajin
when writing to mailing list you should probably send "text only"
emails.
https://www.zoho.eu/mail/help/sending-mails.html#alink4
looks like a simple and effective way to improve your emails : - )
on the other side, uploading the script to a service that allows
sharing code (like dropbox does; but you might also use almost any
pastebin or gists...) and then sharing the link is probably a better
idea than pasting the script in the email itself, since there is a high
risk that sendind per remail reformats your text and makes python code
hard to recover...
i will give a feedback on the script itself in a separate email... : - )
ciao
a.l.e
___
http://lists.scribus.net/mailman/listinfo/scribus
http://wiki.scribus.net
http://forums.scribus.net
___
http://lists.scribus.net/mailman/listinfo/scribus
http://wiki.scribus.net
http://forums.scribus.net
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
ugajin
2018-07-19 08:36:51 UTC
Permalink
Here is a fresh email [this time sent as plain text] containing the dropbox link for the above script that I first sent as an attachment, then as inline text, and again as a link, but as formatted text. Hopefully I have got it right this time.

https://www.dropbox.com/s/qrzyocdd5rh089y/setBaselineGuides.py?dl=0

The script makes it easy to snap/align objects to the baseline grid, useful e.g. when creating drop caps.

-u



___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
JLuc
2018-07-19 10:35:05 UTC
Permalink
Post by ugajin
Here is a fresh email [this time sent as plain text] containing the dropbox link for the above script that I first sent as an attachment, then as inline text, and again as a link, but as formatted text. Hopefully I have got it right this time.
https://www.dropbox.com/s/qrzyocdd5rh089y/setBaselineGuides.py?dl=0
The script makes it easy to snap/align objects to the baseline grid, useful e.g. when creating drop caps.
I see the script displays a dialog to request baseline height and offset.
When the baselines are the text baselines, shouldnt the script use the values defined in the document's settings ?

JLuc


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribu
ugajin
2018-07-20 08:42:48 UTC
Permalink
You may be right.

I would like there to be a single dialogue box that allows you decide a) whether or not to want to edit the baseline guide values, and b) to change both the space and the offset values. If you don't need to change any values you simply tap 'run script', alternatively if you want to edit the values you can, before tapping 'run script'. However, although that sounds as if it should be both simple and possible, I don't know if it is. I believe modelled the script on a something.
Post by JLuc
Post by ugajin
Here is a fresh email [this time sent as plain text] containing the dropbox link for the above script that I first sent as an attachment, then as inline text, and again as a link, but as formatted text. Hopefully I have got it right this time.
https://www.dropbox.com/s/qrzyocdd5rh089y/setBaselineGuides.py?dl=0
The script makes it easy to snap/align objects to the baseline grid, useful e.g. when creating drop caps.
I see the script displays a dialog to request baseline height and offset.
When the baselines are the text baselines, shouldnt the script use the values defined in the document's settings ?
JLuc
___
http://lists.scribus.net/mailman/listinfo/scribus
http://wiki.scribus.net
http://forums.scribus.net
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http:/

Loading...