Recent posts

#1
General Discussion / Re: Running Clamwin and found ...
Last post by Magpius - Today at 08:13:57 AM
Thanks. Windows defender has found no issues. Happy to reinstall a fresh 1.5.8 and re-scan. Appreciate the feedback.
#2
General Discussion / Re: Running Clamwin and found ...
Last post by MrB - Today at 06:57:11 AM
BitDefender finds no issues on a fresh install which comes from sourceforge.net via our website. (https://sourceforge.net/projects/scribus/files/scribus-devel/1.5.8/scribus-1.5.8-windows-x64.exe/download)

I'd question ClamWin's false positives, but also check for ClamWin updates.. last release of the program in 2021 from what I see on their website, even if they are getting ClamAV definition updates? We'll still double check further.
#3
General Discussion / Re: Running Clamwin and found ...
Last post by Magpius - Today at 05:43:39 AM
Directly from the scribus website. No 3rd party site.
#4
General Discussion / Re: Running Clamwin and found ...
Last post by utnik - Today at 05:16:57 AM
where did you download scribus?
#5
General Discussion / Running Clamwin and found this...
Last post by Magpius - Today at 04:52:06 AM
Is this a known issue?
Screenshot attached.
#6
Installation and Setup / Re: AppImage 1.5.8 Crashes at ...
Last post by CharlesV - Today at 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.)
#7
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
#8
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


#9
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)

#10
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)