This Scribus script draws classical and modern page-construction canons directly into a Scribus document and automatically computes correct margins for left and right master pages. All constructions are drawn on a dedicated outlined layer on the appropriate pages (facing or single), and margins are applied with proper inside/outside mirroring.
You can find all the necessary files here: https://github.com/richard-cdbox/canons_of_page_construction
I hope this helps some of you.
Nice to see such a script.
... but from the README attached to your script, I would say that it does something that Scribus already has built-in.
preset-margins.png
https://gitlab.com/scribus/scribus/-/blob/master/scribus/ui/marginpresetlayout.cpp#L11
https://gitlab.com/scribus/scribus/-/blob/master/scribus/ui/marginpresetlayout.h
Not all the layouts you're proposing are there, but I'm confident that if you propose a patch implementing them, it will be accepted.
And if you need help converting your work into C++, just ask in here.
At first sight, even if it is C++, it looks almost as readable as Python code : - )
But, maybe, I did not understand correctly the goal of your script...
P.S.: We might need a nice small icon to the layouts drop down... to make it a bit more visible...
Yes, I know that these presets are available in Scribus, but it seemed to me that for someone who does not have enough knowledge in this area, some of the names are meaningless. But that's just my opinion. I also have three presets included in my script. When I was writing it, it seemed to me that the script would not be complete if they were not there, even though they are in the presets.
Let's take it step by step.
Gutenberg:
In my script, it's called Page ratio canon. My name makes it clearer how the page layout is constructed. Gutenberg probably tried to approach the Golden ratio with his Bible, but he ended up closer to the page ratio.
Nine Parts
Based on the name, I knew what canon it was supposed to be, but only because I'm familiar with this field. However, I don't think an uninitiated person would have any idea what it is. That it is an Interpretation of Rosarivo on Van de Graaf's canon, where a 9 x 9 grid is used for the construction, which is easier than calculating the intersections in Van de Graaf's canon.
Golden Mean
I have no idea if this preset was supposed to have anything to do with the golden ratio, because it doesn't.
I also wanted people who use my script to know or learn about this topic. That's why I put a short description of each canon in the README and created construction layers.
I also wanted to avoid this (See the attached image).
I hope my explanation helps you understand why I made the script.
Quote from: richard-cdbox on Today at 01:29:23 PMThis Scribus script draws classical and modern page-construction canons directly into a Scribus document and automatically computes correct margins for left and right master pages. All constructions are drawn on a dedicated outlined layer on the appropriate pages (facing or single), and margins are applied with proper inside/outside mirroring.
You can find all the necessary files here: https://github.com/richard-cdbox/canons_of_page_construction
I hope this helps some of you.
I get an error opening your script.
You probably saved the copied code to a file as UTF-8 with BOM. Try saving it as UTF-8 only.