Problems registering, no confirmation email - see http://wiki.scribus.net/canvas/Forums_Registration
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.Quote from: artweave on June 05, 2023, 07:07:04 PMCan't we collect Item>duplicate and transform on the distribute and align panel in the window menu
Quote from: artweave on June 05, 2023, 07:07:04 PMelement that I often used was the shortcut opening a dialog allowing me to type a page number to go there.
Quote from: artweave on June 05, 2023, 07:07:04 PMregarding the import of bitmap photos, plan to accept the AVIF format in scribus?