Scribus > Text and Typography

How to have a line counter appearing on my pages?

(1/3) > >>

I'm very new to Scribus and I checked the forum but didn't find an answer to that question: how can I have the number of each line appearing in my document?
For context, I only want the numbers to appear for some textboxes, and if possible, I'd like to parameter myself which lines are taken into account, and which are not. Also, I'd like the number of only every 5 line to show.
I know I ask a lot, but that's the last thing I lack before I can ditch MS Word for good.  ::)

Exemple :

--- Quote ---1 Once upon a time, in a far far away land, a princess was imprisoned by an evil sorceress.
   She couldn't even see what was outside her prison, for there was no other window than a tiny hole in the
   ceiling, allowing a dim light inside.
   One day, she grew tired of all this crap, and decided to act, instead of sitting on her hands like she always had done.
5 She grabbed the knife and fork the evil sorceress gave her for her to ear, and she began to take out the mortar
   between the stones.
   Maybe this way she would be free one day?
--- End quote ---

If you think that's at all possible, please help!  ;)

no, that's not currently possible with scribus.

i understand in which context you might use it, and -- in a very different context -- i also could have used it.
but i wonder if and how scribus could provide that, without making its interface even more complex.

depending on the way you have defined your document, i can create a script for you that automates the typing of the numbers, but you will have to put a second frame on the left of your "real" text frame... and make sure that you have a fixed line height.
the result is similar to what you see in the document linked above:

- you don't need the zebra background of course
- and i can let you specify how often the number appears.

just ask for it, if you want the script... it's not that hard to create...

Thank you for your swift reply. Yes, I'd be glad to know how to add the script, if you would be so kind. I had thought of the solution of a separate column/box, but I guess I will have to count the lines myself, since I doubt any script would keep counting on a linked text box on the next page? This is for a 4 pages document.

That's sad, however, that Scribus can't do that. I'm sure it would be a fun interface with many options and all.  :D
And definitely, hand-writing the numbers on the document after printing it is not satisfactory.

here is the script:

you can download it from here:

It works! Thanks a lot.  ;D But you should know that, if there's anything at all written in the textbox where you try to apply the script, there's an error pop up window that won't go whatever you do. I had to force Scribus to reboot.  :-[
Also, it doesn't like to be applied to several linked boxes on different pages. But it works great on a one-page document.  :)


[0] Message Index

[#] Next page

Go to full version