Problems registering, no confirmation email - see http://wiki.scribus.net/canvas/Forums_Registration
Quoteas far i can tell, the page panel gets useful, when there are lot of pages and -- then -- i guess i would prefer to have the preview to be a/ as small as possible b/ showing as many pages as possible.
Quotei'm also eager to see how the palette looks when the layout is horizontal
Quoteit will be simpler to use an alternative interaction, like "select and apply".Good point, I will think about it.
Quoteit should probably also be possible to select multiple pages at onceI also thought about it and planned it as an update later.
import scribus
word = "psicologia"
occurrence_pages = []
for page_num in range(scribus.pageCount()):
scribus.gotoPage(page_num + 1)
for item in scribus.getAllObjects():
if scribus.getObjectType(item) == "TextFrame":
if scribus.getTextLength(item) > 0:
text = scribus.getText(item)
if word in text:
occurrence_pages.append(page_num + 1)
break
print(f"{word}: {', '.join(map(str, occurrence_pages))}")
3 - Pressione F9 para executar o código e ele retornará a palavra e em quais paginas ela aparece. import scribus
word="psychology"
occurrence_pages = []
for page_num in range(scribus.pageCount()):
scribus.gotoPage(page_num + 1)
for item in scribus.getAllObjects():
if scribus.getObjectType(item) == "TextFrame":
if scribus.getTextLength(item) > 0:
text = scribus.getText(item)
if word in text:
occurrence_pages.append(page_num + 1)
break
print(f"{word}: {', '.join(map(str, occurrence_pages))}")
3 - Press F9 to run the code and it will return the word and which pages it appears on.