Recent posts

#1
Beginner Talk / Re: why the order of the layer...
Last post by a.l.e - Today at 07:43:20 PM
did you also let chat gpt write the question for you?

anyway, the answer to the question you're asking is in the title you have set for this thread.
up to the "not", which is wrong.

so:

the order of the layers is movable.

so:

put the page number and the content on different layers and put the layer with the page number on top of the layer with the content.
#2
Beginner Talk / why the order of the layer is ...
Last post by AFournier - Today at 06:51:17 PM
EXAMPLE why master pages and grids are not movable to the front of the composition?

I use Scribus 1.4.8 for editing a whole pages graphic iconography catalogue and I wanted to use automatic numbering pages at the bottom center of every page.
It was already a nightmare to find a readable tutorial for automatic numbering a 70 pages book (it took me 1h30 to understand, all those tutos are confusing, do better please). I created a master page and applied it in the whole document....AND....
The numbers are hidden under the images  >:(
Another hour asking "how to move the master pages in the front" everywhere, nothing. I finally ask Chatgpt, it tell me "Scribus doesn't allow to move the master page from the background."

OK, I have to INSERT MANUALLY every single 70 numbers .... in the center of the page BUT  ???
the grid is BESIDE THE IMAGE!!!
I don't know WHERE IS THE CENTER OF THE PAGE!

My question is: why can't we choose if we want those (or anything for that matter) in the front?
Thank you, I have to go back editing manually every single number now...
#3
PDF Generation / Re: Can Scribus create a SEARC...
Last post by utnik - Today at 06:05:36 PM
hi hanna

as prcek suspected, if you embed the fonts (full fonts or subsets) the .pdf file will contain searchable text while outlined text just looks like text but is (technically spoken) just a vector graphic.

utnik
#4
PDF Generation / Re: Can Scribus create a SEARC...
Last post by prcek - Today at 05:44:55 PM
I'm newbie as well. What do you mean by "searchable"?

PDF I've generated from Scribus can be opened in a PDF reader (qpdfview in mycase) and I can use the "Find" function to search for text. And it works.
But the text was inserted into a text frame and export was done with embedding fonts not outlining them. I'm just describing my process not sure if the outlining will nor won't work.
#5
PDF Generation / Can Scribus create a SEARCHABL...
Last post by hannaconner - Today at 03:52:46 AM
I'm a DTP newbie as well as a Scribus newbie, but an old hand in IT
(60 years since - honest!)

I'm trying to help the new editor of our Village Magazine
- imaginative, very enthusiastic, but hasn't a clue about how PCs & software work
#6
Scripts and Plugins / Re: error message
Last post by rafferty - July 14, 2025, 08:06:51 PM
Edit: You can use any font you like for the calendar generation and afterwards change only the 'char_style_Moons'- character style with one which contains all special moonphase characters (I use Symbola font for this).
#7
Scripts and Plugins / Re: error message
Last post by rafferty - July 14, 2025, 05:05:02 PM
Hi Zaza,

1) If your language and unicode page is not defined in lines 92-116 of the 'MonthlyCalendar.py'-file, then open the file with a simple text editor and change an existing line or add a new line in between with your language and unicode page parameters.

2) As stated in the 'Monthly Calendar Instructions.pdf'-file under the moonphases section, you have to find a font for the moonphases that contains these characters.

Regards,
Rafferty
#8
Scripts and Plugins / Re: error message
Last post by Zaza - July 14, 2025, 03:24:35 PM
Thank you I have no more error message.

I've tried with the Roboto regular font as in the pdf example and I have no moon phases.
Today I tried with the Arial regular font and I have the full moon and the empty moon too. I don't know why it doesn't work with the Roboto font as in example.

I have to try with other fonts until I find the right one.


-----
I have the four moon drawings with the "Yu Gothic UI" font.
#9
Scripts and Plugins / Re: error message in RaffertyR...
Last post by hjh - July 14, 2025, 01:46:26 PM
Hi Zaza

I tried out the script as well with language=German and font=Arial regular on MSWindows with Scribus 1.6.4.

It went through smoothly but only showed the full moon and the empty moon. It means that the font must support all the moon symbols.

Which language did you use?

I also realize that the error is at the line
https://github.com/RaffertyR/Monthly-calendar-script-for-Scribus/blob/e656ff77d82ffd4e3804d88caf695ddd4fad973e/MonthlyCalendar.py#L1155


This is where the locale information is set back to the original value stored earlier in the variable original_locale1.


The code in question is the main program
def main():
    """ Application/Dialog loop with Scribus sauce around """
    try:
        statusMessage('Running script...')
        progressReset()
        original_locale1=locale.getlocale(locale.LC_CTYPE)
        original_locale2=locale.getlocale(locale.LC_TIME)
        root = Tk()
        app = TkCalendar(root)
        root.mainloop()
        locale.setlocale(locale.LC_CTYPE, original_locale1)
        locale.setlocale(locale.LC_TIME, original_locale2)
    finally:
        if haveDoc() > 0:
            redrawAll()
        statusMessage('Done.')
        progressReset()

So a thing to try out is to forget about saving the original locale information and setting it back by commenting it out by adding a hash # sign in front of the program line.

def main():
    """ Application/Dialog loop with Scribus sauce around """
    try:
        statusMessage('Running script...')
        progressReset()
        # original_locale1=locale.getlocale(locale.LC_CTYPE)
        # original_locale2=locale.getlocale(locale.LC_TIME)
        root = Tk()
        app = TkCalendar(root)
        root.mainloop()
        # locale.setlocale(locale.LC_CTYPE, original_locale1)
        # locale.setlocale(locale.LC_TIME, original_locale2)
    finally:
        if haveDoc() > 0:
            redrawAll()
        statusMessage('Done.')
        progressReset()

You might then later set back your locale information manually (maybe by restarting Scribus?)
In any case the script wants to set a locale information which does not exist in your case. In the case I tested out it went through without problems.

Below I have inserted in the code that message boxes are shown before and after execution of the main loop script. This will help for debugging purposes.

HTH

Hannes


For debugging purposes it might also be useful to insert
messagebox.showinfo("INFO:",'locale.LC_CTYPE=' + str(original_locale1)) 
which in my case gave back
locale.LC_CTYPE=('English_Switzerland','1252')before the script run and
locale.LC_CTYPE ('de_DE','cp1252') after the script ran.

def main():
    """ Application/Dialog loop with Scribus sauce around """
    try:
        statusMessage('Running script...')
        progressReset()
        original_locale1=locale.getlocale(locale.LC_CTYPE)
        original_locale2=locale.getlocale(locale.LC_TIME)
        messagebox.showinfo("INFO:",'locale.LC_CTYPE=' + str(original_locale1))       
        root = Tk()
        app = TkCalendar(root)
        root.mainloop()
        messagebox.showinfo("INFO:",'locale.getlocale(locale.LC_CTYPE)' + str(locale.getlocale(locale.LC_CTYPE)))     
        locale.setlocale(locale.LC_CTYPE, original_locale1)
        locale.setlocale(locale.LC_TIME, original_locale2)
    finally:
        if haveDoc() > 0:
            redrawAll()
        statusMessage('Done.')
        progressReset()

#10
Scripts and Plugins / error message
Last post by Zaza - July 13, 2025, 05:09:28 PM
Hi,
I test the script from here : https://github.com/RaffertyR/Monthly-calendar-script-for-Scribus/
but I have this message :

Traceback (most recent call last):
  File "<string>", line 11, in <module>
  File "<string>", line 1164, in <module>
  File "<string>", line 1155, in main
  File "C:\Program Files\Scribus 1.6.4\python\lib\locale.py", line 608, in setlocale
      return _setlocale(category, locale)
  locale.Error: unsupported locale setting

The calendar is create but I have no moon phase drawing.

What can I do ?