Recent posts

#41
General Discussion / Re: Running Clamwin and found ...
Last post by Magpius - May 30, 2023, 05:43:39 AM
Directly from the scribus website. No 3rd party site.
#42
General Discussion / Re: Running Clamwin and found ...
Last post by utnik - May 30, 2023, 05:16:57 AM
where did you download scribus?
#43
General Discussion / Running Clamwin and found this...
Last post by Magpius - May 30, 2023, 04:52:06 AM
Is this a known issue?
Screenshot attached.
#44
Installation and Setup / Re: AppImage 1.5.8 Crashes at ...
Last post by CharlesV - May 30, 2023, 01:06:09 AM
Thank you all for your help.  I tried various things, only renaming a font was the work around.  When I moved to MX 21.1 linux the issue resolved and has not reappeared. (same apimage.)
#45
Text and Typography / Re: Right-aligned tabs
Last post by a.l.e - May 29, 2023, 04:52:58 PM
i have created a ticket in the bug tracker for this:

https://bugs.scribus.net/view.php?id=16949
#46
Text and Typography / Re: Right-aligned tabs
Last post by PatJr - May 29, 2023, 04:16:10 PM
don't think you can align text to the frame like that
when I tried it the frame had to be just slightly bigger then the what the tab stop was set to, about 1/2 mm or the paragraph would wrap to the next line


#47
Beginner Talk / Re: Word Count function
Last post by qwazix - May 29, 2023, 03:45:40 PM
Updated to ignore leading and trailing whitespaces

#!/usr/bin/env python
# File: count_words.py - Counts all words in a document
# also lists image files with pathnames
# 2006.03.04 Gregory Pittman
# 2008.02.28 Petr Vanek - fileDialog replaces valueDialog
# 2023.05.29 Michalis Demetriou - modify in order to just count all words
# this version 2023.05.29
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

import scribus
import re

def countWords():
    page = 1
    pagenum = scribus.pageCount()
    T = []
    content = []
    while (page <= pagenum):
        scribus.gotoPage(page)
        d = scribus.getPageItems()
        for item in d:
            if (item[1] == 4):
                contents = scribus.getAllText(item[0])
                if (contents in content):
                    contents = ''
                T.append(contents)
                content.append(contents)
        page += 1
    text = " ".join(T)
    text = re.sub('^ ','',re.sub(' $','',re.sub(' +', ' ', text)))
    count = len(text.split(" "))
    print(count)
    endmessage =  str(count) + ' words'
    scribus.messageBox("Finished", endmessage,scribus.ICON_INFORMATION, scribus.BUTTON_OK)


if scribus.haveDoc():
    try:
        countWords()
    except (Exception, e):
        print(e)

else:
    scribus.messageBox('Export Error', 'You need a Document open, and a frame selected.', \
                       icon=0, button1=1)

#48
Beginner Talk / Re: Word Count function
Last post by qwazix - May 29, 2023, 01:16:14 PM
I modified the "export all text" script to count all words in a document (and work with python3)

#!/usr/bin/env python
# File: count_words.py - Counts all words in a document
# also lists image files with pathnames
# 2006.03.04 Gregory Pittman
# 2008.02.28 Petr Vanek - fileDialog replaces valueDialog
# 2023.05.29 Michalis Demetriou - modify in order to just count all words
# this version 2023.05.29
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

import scribus
import re

def countWords():
    page = 1
    pagenum = scribus.pageCount()
    T = []
    content = []
    while (page <= pagenum):
        scribus.gotoPage(page)
        d = scribus.getPageItems()
        for item in d:
            if (item[1] == 4):
                contents = scribus.getAllText(item[0])
                if (contents in content):
                    contents = ''
                T.append(contents)
                content.append(contents)
        page += 1
#        T.append('')
    text = " ".join(T)
    text = re.sub(' +', ' ', text)
    count = len(text.split(" "))
    print(count)
    endmessage =  str(count) + ' words'
    scribus.messageBox("Finished", endmessage,scribus.ICON_INFORMATION, scribus.BUTTON_OK)


if scribus.haveDoc():
    try:
        countWords()
    except (Exception, e):
        print(e)

else:
    scribus.messageBox('Export Error', 'You need a Document open, and a frame selected.', \
                       icon=0, button1=1)

#49
Text and Typography / Right-aligned tabs
Last post by Southern-X-87 - May 29, 2023, 04:09:25 AM
Hi all. I am new to Scribus, but reasonably familiar with InDesign and QuarkXPress. Using Scribus 1.5.8 on macOS Ventura 13.0.1.

I am having trouble with using a right-aligned tab stop in Scribus. The context is a CV/résumé where I'd like the position and company worked on the left, and the dates worked on the right. The text box in question is 150mm wide. This is the *effect* I'd like, mocked up using text boxes:

1-Effect.png

I can easily do this in InDesign using a right-aligned tab stop (set at 150mm for a 150mm-wide text box):

2-InD-example.JPG

I can't work out how to do the same in Scribus. I set up the text like this:

3-Scribus-tab.png

Then set the tab stop in paragraph styles like this:

4-Scribus-tab.png

And this is the result:

5-Scribus-tab.png

I can reduce the position of the tab stop, e.g. to 140mm, but can't work out how to achieve the effect I'd like - a date aligned to the right edge of the text box.

Any advice gratefully received.
#50
General Discussion / Re: Donate to Scribus
Last post by MrB - May 28, 2023, 02:02:08 PM
The amount of money I have spent on persona lhardware that has almost 100% gone to supporting Scribus over the years is huge. We get donations for website etc hosting but giving money to that entity would help support server maintenance. Sure, a single euro won't go far, but it would add up over time.