To find the rough location of where the text box should appear, sit the cursor on the target location and look at the coordinates at the bottom of the Scribus window.Ĭlick on the image for a higher resolution viewĪlthough I have not included it in this edition of the script I see it as being a simple modification to the code to skip all even pages so as to allow space for images on the backside of the cards if it is printed double sided. In the illustration, I wanted a smaller text box of 36mm x 36mm located in the centre of each card. The image below shows which constants to change in the script in order to do this. At this stage the text box size matches the card size, but in use for my game cards I shall make the text boxes smaller to allow some space around the edges of the text. To adjust the card size alter the number in the x and y expressions to reflect the margins used, and the new card size. For different sized text boxes it is just a matter of changing the variables w and h to the desired size. An A4 landscape format page can hold ten of them if the margins are set at 11mm for the sides, and 15mm for the top and bottom. I have designed this script for business card size cards which are 55mm x 90mm. The script also raises the text boxes to the top layer so that they are above anything else that may be added. Below is the script for taking a text file and turning each line into a separate text box and distributing them across a grid based on the size of a business card and spread over multiple pages. Scribus has python as its scripting language, and despite the documentation I could find being quite patchy, I was able to figure out how to get it to meet my needs successfully. Tool for the job is Scribus, a publishing package that I came to appreciate when when writing newsletters for the Wellington Potters Association. The more SVG files, the more room for errors. This would mean that multiple SVG files would need to be generated to carry all of the cards envisaged. The Inkscape script I had developed for this purpose worked OK, but Inkscape only allows one page per SVG file. One is for applying an image multiple times to a series of pages, and is described on this page, and the other script described below is for distributing the contents of a text list across the pages. Doing this by hand with such a huge deck of cards is a bit of a chore, and so I developed some scripts to help me. In order to be focused on creating the content, I wanted to come up with some tools to take a text list and distribute it across a series of pages to make cards and then add a background image to each card. As I alluded to in an earlier page on the Inkscape script, I am creating a story telling card game.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |