Width of the text frame has been modified it is necessary to rerun the script if either the height or.I could experience at least two drawbacks with this script: The text inside the selected text frame will then be vertically centred. a Run Script window appears in which you select the.go to Script (next to Extras) in the main menu at the top, then select Execute Scripts.py file, calling it whatever name you want Notepad for example) with no style formatting applied to the document copy and paste the script in a text document (using bloc note or.Scribus.sizeObject(w, original_height, frame) # undo the latest 10pt step and fine adjust in 1pt steps While (scribus.textOverflows(frame) > 0) : While ((scribus.textOverflows(frame) = 0) and (h > 0)) : # if the frame doesn't overflow, shorten it to make it overflow (dl, dr, dt, db) = scribus.getTextDistances() ssageBox('Error:', 'You can\' center a text which is overflowing') ssageBox('Error:', 'You can\'t adjust an empty frame') ssageBox('Error:', 'You may only adjust text frames') ssageBox('Error:', 'You may select only one frame') # check that the selection is one text frame and get that frame Print "This script only works from within Scribus" To exactly put its content in the middle of the alessandro 1.0 / (c) 2009 alessandro rimoldi under the mit license This script adjust the top and bottom distance of a text frame SCRIBUS SPACE BETWEEN PARAGRAPHS HOW TOHere is the script (if needed, a brief instruction on how to use the script follows these lines of code): #!/usr/bin/python
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |