07-23-2024, 05:15 PM | #1 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Mar 2014
Device: iPhone XR
|
Line numbers mutilated
I have a copy of The Iliad, translated by Richmond Lattimore. EPUB format. The text is in verse, and there are line numbers every five lines, as is somewhat common in works like this. The trouble is that once the line numbers reach three digits, they get cut off at the left margin. I've uploaded a screen shot. Those numbers are supposed to be 135, 140, 145, etc. Is there any way I can make this work, or is this book just poorly formatted? Thanks.
|
07-23-2024, 09:41 PM | #2 | |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
07-23-2024, 09:44 PM | #3 |
creator of calibre
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can probably tweak the CSS of the book to fix it, but cant say how without seeing the actual book.
|
07-23-2024, 09:57 PM | #4 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I cannot see a way to fix it as the line numbers that do not start at the beginning of a paragraph will need to have lines split. That and large enough text will cause the line numbers to be wrong.
|
07-23-2024, 10:56 PM | #5 |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You might try making the line number font-size smaller (~85%)
You may need to wrap them in a span, with appropriate CSS callout |
Advert | |
|
07-24-2024, 06:48 AM | #6 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
07-24-2024, 12:08 PM | #7 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Mar 2014
Device: iPhone XR
|
I thought of just removing the line numbers, since I don't really care about them, but it looks like it would be one-at-a-time tedious work.
I tried tinkering with the CSS (at which I am NOT an expert) and I kept introducing other problems, so I gave up on that approach. |
07-24-2024, 02:00 PM | #8 |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Why not. I don't have a sample of the file to play with.
I am assuming this is just a case of running out of space for the hanging indent. Years ago, I made my Body font 1.2em and a margin-right:16pt to give room for 3 digits of ADE # on my EZReader |
07-24-2024, 02:05 PM | #9 | |
Well trained by Cats
Posts: 30,443
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:
Code:
\.\d+\s |
|
07-25-2024, 07:03 AM | #10 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Looking at the screen grab from the OP's post, how would you put in 35 without splitting the paragraph?
|
07-25-2024, 12:36 PM | #11 |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I really need to see the code view .
I suspect these are individual Paragraphs (and not just a normal wrapped line.) |
07-25-2024, 01:14 PM | #12 | |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
35 is not the start of a new paragraph. It's in the middle of a paragraph. |
|
07-25-2024, 01:27 PM | #13 |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
07-25-2024, 02:57 PM | #14 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
07-25-2024, 04:14 PM | #15 |
Wizard
Posts: 1,356
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
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.
|
|
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 |