Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2024, 04:15 PM   #16
dan2the6th
Connoisseur
dan2the6th began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Mar 2014
Device: iPhone XR
Thanks for all the responses. I was able to use some primitive regex to wipe out all the line numbers. Then some global replacement of several CSS entries with the one for normal paragraphs fixed it all up.

Each line of the poetry is one paragraph in the code, yes. If anyone wants to see any snippets of the code or the CSS, I'll be glad to oblige, but my problem is basically solved.
dan2the6th is offline   Reply With Quote
Old 07-25-2024, 06:16 PM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Karellen View Post
Yea, you can see the line numbers are inline with the paragraph text, not a separate paragraph. There is a very slight indent to the text after the number.
That's why it cannot be done. There is no way to do this properly. Even if you had columns, it cannot be done correctly.
JSWolf is offline   Reply With Quote
Advert
Old 07-25-2024, 11:41 PM   #18
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,400
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For what it may be worth, I have two books of poetry where the creator used a table for the stanza/verse numbers. The stanza numbers are in a narrow column on the left hand edge and the rest of the screen width is the 2nd column for the verses. I've also seen on Gutenberg, a version of a Shakespeare's play with the numbers on the right hand side.

So yes, it can be done but it's a nasty manual procedure in the two books I have.
DNSB is offline   Reply With Quote
Old 07-26-2024, 07:51 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
For what it may be worth, I have two books of poetry where the creator used a table for the stanza/verse numbers. The stanza numbers are in a narrow column on the left hand edge and the rest of the screen width is the 2nd column for the verses. I've also seen on Gutenberg, a version of a Shakespeare's play with the numbers on the right hand side.

So yes, it can be done but it's a nasty manual procedure in the two books I have.
Change the font size to something large and how to the line numbers line up?
JSWolf is offline   Reply With Quote
Old 07-26-2024, 10:42 AM   #20
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,441
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
Change the font size to something large and how to the line numbers line up?
It is a Table ROW. The better stay in line
theducks is online now   Reply With Quote
Advert
Old 07-26-2024, 12:44 PM   #21
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
It is a Table ROW. The better stay in line
So you have 35 lined up in a table with the appropriate line. Now what happens when someone sets the font size to double the size you have it when you created the table?
JSWolf is offline   Reply With Quote
Old 07-26-2024, 01:38 PM   #22
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,441
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
So you have 35 lined up in a table with the appropriate line. Now what happens when someone sets the font size to double the size you have it when you created the table?
Baseline ??
The table grows size to hold the field. the font baseline stays.
Now, if you play tricks to move the number around in the number column (away from where it would normally land), Yes, you can break it
theducks is online now   Reply With Quote
Old 07-26-2024, 03:07 PM   #23
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,326
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
Baseline ??
The table grows size to hold the field. the font baseline stays.
Now, if you play tricks to move the number around in the number column (away from where it would normally land), Yes, you can break it
That's why I've said line numbers cannot be done reliably.
JSWolf is offline   Reply With Quote
Old 07-26-2024, 04:29 PM   #24
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,400
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Jon, did you even read what @theducks said? Breaking it will require someone to edit the code. If so, blame the nidjit who edited the code.

I just checked on the two poetry books I have and changing the font size did nothing until got to the point where the number took more than 50% of the screen to display. At that point, I was seeing 1-2 words per row in the text section. This happened with 3 applications on my computer, a Kobo Sage and a Kobo Libra Colour.

Yes, it is fragile. Yes, I would not recommend doing it. Yes, it is reliable but requires too much manual input for my taste.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate ID Error line numbers wrong phossler Editor 7 05-10-2019 10:05 PM
Poetry: line numbers aligned to the right. 1v4n0 ePub 20 12-16-2017 05:02 AM
Shakespeare Collection for Kindle with line numbers SamTCat Amazon Kindle 0 08-20-2011 12:36 AM
Adding line numbers to an ebook txgecko Workshop 8 06-11-2011 03:59 PM
Formatting epic poems with line numbers? Lima_dat Workshop 4 02-25-2008 04:53 PM


All times are GMT -4. The time now is 04:34 AM.


MobileRead.com is a privately owned, operated and funded community.