Recent posts

#1
Scripts and Plugins / Re: Some questions about my Ty...
Last post by ocda - Today at 01:29:40 PM
Quote from: a.l.e on February 22, 2019, 10:44:47 AMline 100 of your script:

i had to check the documentation: setMargins() sets the margins of the document, which will be used... in a way nobody would think of: when you create a new master page...

the scripter does have a getPageMargins(), but no setPageMargins().

i think it should not be that hard to add that function (c++ code is needed) but i would first list all functions that are needed to make it easy to calculate a typographic grid.

from my point of view it almost needs a way to get set the row and column guides and their gutter...

what else is needed?

p.s.: of course, the commands will only be added to the development version 1.5.x not the stable one 1.4...

Hi everyone,

Quite new with Scribus. Very interested by the project and the scripting possibilities.
I would like to set up the page margins with a script, is that possible ?

As I understand setMargins has another purpose.

scribus.setMargins(left, right, top, bottom)
I would be glad if someone has a tip.
#2
Text and Typography / Re: Automate Importing text wi...
Last post by Erik96 - June 14, 2024, 02:58:44 PM
yep, that is it, the tutorial is fantastic. Now everything is clear.
Thx a bunch !!!!
#4
Text and Typography / Re: Automate Importing text wi...
Last post by Erik96 - June 14, 2024, 09:29:40 AM
There was once upon a time a video which seems to explain this issue. The link I found is: Video tutorial three ways to apply styles. Unfortunately the video vanished. Some idea where to get it from ?
#5
Text and Typography / Re: Automate Importing text wi...
Last post by Erik96 - June 14, 2024, 12:41:50 AM
great. thx a lot. Now I found it. Therefore I can replace the &HL; which means Headline with something else. This works fine. Now my doubt: in order to create from this &HL; a headline in scribus with the style for headlines, what do I need to insert in the text ?
Thank you very much for your help !!!!!!!!!
#6
Text and Typography / Re: Automate Importing text wi...
Last post by MrB - June 13, 2024, 11:14:53 PM
There is an Importer second from the bottom left. Choose Text Filters. With your file to import selected, click ok. Then another window will pop up and allow you to set up the filter actions.
#7
Text and Typography / Re: Automate Importing text wi...
Last post by Erik96 - June 13, 2024, 10:07:11 PM
Thank you very much for your answer. Exactly this import filter I am looking for. I am using Scribus 1.5.8. I am doing the following: File --> Import --> Get Text. In the window which now is open I do not find the import filter. Maybe I am looking at the wrong place ? I am sure I am missing something ... but what ?
Thx a lot
 
#8
Text and Typography / Re: Automate Importing text wi...
Last post by MrB - June 13, 2024, 09:36:35 PM
When importing, there is an option to choose the Import Filter, and you can choose the one called "Text Filter". It enables you to process the text as it is imported. This might be what you want. It might be what you are referring to in those old instructions. I don't think anyone worked on that much in that time so it should still work as described.
#9
Text and Typography / [SOLVED] Automate Importing te...
Last post by Erik96 - June 13, 2024, 02:45:11 PM
I need to import text with contains very simple markups. &HL; for Headline and &Ti; for Title. I could preprocesses these markups to anything scribus likes. I already have defined in scribus styles for the title and headline. How can I automate the import process so that the text gets imported correctly ?
I found instructions for these, but the instructions have more than 10 years of life, so scribus changed in the meantime.
Thank you very much
yours,
Erik
#10
MacOS / Re: Preferences gray out for 1...
Last post by MrB - June 12, 2024, 08:58:16 PM
I'd suggest trying to run Scribus in English as a test. You can do that from the command line eg "scribus -l en".

Or in the prefs150.xml (example name), check for similar text:
                <context name="user_preferences">
                        <attribute key="gui_language" value="en_US"/>

Having ensured Scribus is closed, change the value there as above, and reopen Scribus.