Recent posts

Text and Typography / Re: Odt import - Paragraph sty...
Last post by kayosiii - May 31, 2024, 04:03:45 PM
I had the document set up with styles in LibreOffice Writer. The body text, is "text body", headings are "heading 1", "heading 2" etc and so on.

When I import that document into scribus:

The text gets imported and looks right.
The styles get imported.
The text is not linked to the styles in any way, the style in the story editor etc shows "default Paragraph style" as the style linked to every paragraph in the imported document.
Text and Typography / Re: Odt import - Paragraph sty...
Last post by PatJr - May 31, 2024, 03:15:45 PM
not sure I understand what you want
you want each paragraph to have it's own style when you impot it?
try adding a style in LibreOffice befor you import it, maybe then it will import with a seperate style
Text and Typography / Odt import - Paragraph styles ...
Last post by kayosiii - May 31, 2024, 02:07:08 PM
I am trying to import a document written in Libre Office writer (current version) using styles.
Importing the text into scribus, imported the text and the styles.
The document looks correct but each paragraph is linked to the "default paragraph style".
The main reason I edited the document in writer in the first place is because styling a document in scribus is a pain in the backside.

Is this expected behaviour?
Is there anything I can try?

I have tried the scribus 1.6.1 and today's git/master. if that helps.
Beginner Talk / Re: Recurring text to many pag...
Last post by joseb - May 31, 2024, 11:06:42 AM
Maybe you can create two 'variable texts'. One 'variable text' for ISSUE and another variable for DATE.

- Create a text frame and put the cursor inside.
- Right click / Insert mark / Variable text.
- Create a 'variable text' where label is ISSUE and DATE. In the text to insert field you should place text that you will update in other Scribus files.
- Assign it a paragraph style.
- Insert these text variables in as many text frames as you want and change the paragraph styles in each frame if you want. Right click / Insert markup / Text variable.

- To change the variables you will have to right click on the text itself and choose 'edit mark'. Also by double clicking or from the edit menu.
- When you change the variable text it will be updated in all the frames where it is inserted. It will respect the different paragraph styles you have applied.

- If the frames are on master pages you may have to exit the edit mode and re-enter...
- I have also noticed that the 'variable text' can affect numbered listings... After changing a 'variable text' several times, all the numbered listings become numbered 1... and 1,2,3 does not appear... I'm not sure if this error is linked to the 'variable text' but it has happened to me a few times.
- Text variables can have a different paragraph style wherever they are inserted. This means that the variable appears in a different font, size, colour or justification in each place. For example: in one place it could be aligned to the right, in another to the left and in another centred... But I think it is not possible to apply 'align text forced justified'.
General Discussion / Re: Master Page, not editable
Last post by TemperateBroadleaf - May 30, 2024, 07:02:38 PM
Quote from: Nermander on May 10, 2024, 01:29:16 PMMaster pages in Scribus are essentially "page backgrounds".

If you want page templates, have a look at the scrapbook.
Has it been decided that this is simply going to be the design choice of Scribus, or is it just not implemented yet?

I have trouble understanding why this would be preferable compared to the system as seen in InDesign (and other desktop publishing software) wherein master pages can actually be used for designing layouts. If the layout of a master page is adjusted, changes are automatically applied to all pages derived from the master. I understand the scrapbook as a workaround, but unless I'm completely mistaken, that workflow would instead be:

  • Create a layout.
  • Copy it to the scrapbook.
  • Apply the layout to any number of pages.
  • Decide that a text frame in your layout should actually be 0.25" shorter than originally specified.
  • Manually select each text frame and resize it (or use a script to accomplish this, assuming one exists or you have the ability to code it).

Note that I totally understand that Scribus is FOSS and shouldn't be expected to maintain feature parity with products backed by billion-dollar companies; my question is whether this is an intentional design choice.
Beginner Talk / Re: Recurring text to many pag...
Last post by Nermander - May 30, 2024, 03:52:42 PM
Quote from: finnishcoffee on May 29, 2024, 01:43:24 PMYeh, that is the plan - I just cant get to how I should copy the info in those 2 cells to the text boxes on master pages.

Edit the master pages?
Scripts and Plugins / Re: Is there a simple way to f...
Last post by MrB - May 30, 2024, 07:57:39 AM
ANNAME="Blah" is correct where that is the name given to the object.
OwnPage stores the page number of the object.
I wouldn't be surprised if that code needs updating but I'm not sure myself if it needs changing or exactly how.
Scripts and Plugins / Re: Is there a simple way to f...
Last post by TemperateBroadleaf - May 29, 2024, 11:03:56 PM
Quote from: MrB on May 29, 2024, 10:22:16 PMHow about getItemPageNumber() ?
Wow, I have no idea how that slipped by me in the docs. I think I spent all my time looking at "Frame Properties" and "Pages" rather than the more general "Items". Solved. Thank you!

One follow-up, though: that linked example from the wiki is truly out of date, right? Meaning, there's no longer an attribute called "ANNAME" attached to PAGEOBJECT in the XML? Assuming that's true, I'll update it with a working alternative when I get a chance.
Scripts and Plugins / Re: Is there a simple way to f...
Last post by MrB - May 29, 2024, 10:22:16 PM
How about getItemPageNumber() ?
Scripts and Plugins / Is there a simple way to find ...
Last post by TemperateBroadleaf - May 29, 2024, 09:40:19 PM
I can't seem to find any current documentation on how to programmatically get the page of a given selected object. There is an example given on the wiki page for scripting, but it doesn't seem to work as PAGEOBJECT doesn't have an ANNAME attribute. (I assume this is due to some change in the spec since the guide was originally written.)

Is there any way of doing this? (Note that I'm aware of workarounds for achieving the end result I'm looking for; I'm asking this specific question because it seems like it should be possible, but I can't find any way of doing so.)

EDIT: Additional note, in case anyone asks: selectObject("name") does not appear to update the current working page to match the selected object. If I iterate over a list of objects using deselectAll() followed by selectObject("name") and check the current working page with currentPage() each time, it will give the same result regardless of which object is currently selected.