[scribus] Scribus and Hebrew

Tzippy Yarom zpyarom at gmail.com
Wed Nov 13 14:33:04 UTC 2013


While looking to solve my problems with Hebrew and Scribus, I found the issue enclosed.

http://lists.scribus.net/pipermail/scribus/2012-December/048116.html

The general problem is that when you flip the Hebrew (with the flipped "R" in the options of the text box) it also flips the text itself into a mirror-text. So I used the following script to do both: flip the text and have it straight and not "mirrored".

Enclosed is the script, for anybody who would like to use it. It still have the problem with paranthesis, brackets and numbers, but this is a start. I hope to have time to do more, when I would - I'll post what I'll do.

If anybody have any ideas for more issues to solve with Hebrew and Scribus, please let me know and I'll try to put time for it.

Here is the script:

from scribus import *
if haveDoc():
    nbrSelected = selectionCount()
    objList = []
    for i in range(nbrSelected):
        objList.append(getSelectedObject(i))
    for i in range(nbrSelected):
        try:
            obj = objList[i]
            setProperty(obj, "m_ImageIsFlippedH", True)
            setProperty(obj, "reversed", True)
            moveObject(1, 0, obj)
            moveObject(-1, 0, obj)
            docChanged(1)
            setRedraw(True)
        except:
            nothing = "nothing"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20131113/b1a3edd8/attachment.html>


More information about the scribus mailing list