Recent posts

#71
Code / Proposal for new SLA file stru...
Last post by tim_occ - November 19, 2024, 01:29:29 PM
Hello everyone,

I know that this is a sensitive topic. Nevertheless, I believe that the SLA file needs some improvements. Among other things, it still contains German attribute names for historical reasons. I also noticed that the file structure is "too flat". When the file is read in, all lines are read individually and checked for corresponding tags. This means that an unnecessary number of comparisons have to be carried out, which is particularly slow for large files. In addition, the efficiency advantages of the XML format are not used, namely that information can be read quickly via blocks and processed further in a targeted manner. In newer implementations, these blocks already exist, which is good.

I therefore suggest that most of the old tags be grouped into new parent tags.

An example using color tags. The same applies to styles and many other tags.
Previously:
<COLOR NAME="Black" SPACE="CMYK" C="0" M="0" Y="0" K="100"/>


Suggestion:
<Colors>
  <COLOR NAME="Black" SPACE="CMYK" C="0" M="0" Y="0" K="100"/>
</Colors>

Grouping tags has the advantage that you don't have to go through the entire document line by line to extract all the colors. This is a big advantage when importing data from one document into another document.

As far as I can tell, the new file loader only needs to be able to read the new format, as the old formats will continue to work via the old file loader plugins. In addition, Craig has already built in a function that allows users to save a new document in an older format. So at this point, I don't see any major problems changing the file format for newer versions of Scribus.

See attached file for a proposal structure. It is not intended to be complete.

PS: It is a good chance to replace the German names too and unify the code style, like "COLOR", "MultiLine" or "useColor".
#72
PDF Generation / Re: Nothing happens when hitti...
Last post by Casiosudd - November 19, 2024, 12:37:09 PM
I tried to reinstall both Scribus (same old version 1.3.3.14) and Ghostscript (new). Did not solve the problem.

But after installing a new Scribus version (1.6.2) the pdf-export works again.
Instead inserted pdf's have moved slightly when opened in 1.6.2 - annoying, but at least I know how to fix it.
#73
General Discussion / Re: Description of a sla file ...
Last post by tim_occ - November 19, 2024, 11:35:48 AM
#74
PDF Generation / Re: Nothing happens when hitti...
Last post by MrB - November 18, 2024, 08:53:06 PM
Nope, no idea. Any clues on Scribus version, operating system and version etc?
#75
PDF Generation / Nothing happens when hitting S...
Last post by Casiosudd - November 17, 2024, 09:08:50 PM
I have been using Scribus for several years and saved PDFs hundreds of times every year, and cannot remember that this has happened before.

When choosing File-Export-Save as PDF nothing happens.
Same (no) reaction when clicking "Save as PDF"-button.

Save as image and save page as svg is working.

I haven't made any (known) changes in computer settings or similar, but auto-updates might have been done.

Any ideas why?
#76
Layout Issues / Re: Align the top of the caps ...
Last post by a.l.e - November 17, 2024, 04:10:15 PM
No, Scribus does not have that...

And I could not find any reference in the internets mentioning "hang baselinegrid"...

How exactly is the feature called?
#77
Layout Issues / Align the top of the caps to t...
Last post by shrimp - November 17, 2024, 12:08:34 PM
I basically want that my letter "hang from the baslinegrid". At my uni where they teach us inDesign they told that we should use this setting. This way is easier to align texts that have bigger fonts sizes.

Is this possible in scribus? I have been searching for a while now but couldn't find anything.
#78
General Discussion / Re: Seeking Advice on Finding ...
Last post by abi - November 15, 2024, 04:03:35 AM
Thank you for the responses, will check them out
#79
Scripts and Plugins / Re: Is there a way to delete a...
Last post by a.l.e - November 14, 2024, 09:59:04 PM
I started to work on it...

... With a bit of luck, Saturday I could have a patch ready...
#80
General Discussion / Re: Seeking Advice on Finding ...
Last post by MrB - November 14, 2024, 08:55:33 PM