Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2024, 08:56 PM   #16
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,484
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DNSB View Post
My stock body class has widows: 1; and orphans: 1;. I also use the RMSDK Disable orphans/widows avoidance patch. I do remember years back someone mentioned using readingWidows=0 and readingOrphans=0 (or was it =1??) in the Kobo eReader.conf file but in my testing at that time, I did not find those settings having any effect. I did find that settings widows and orphans to 0 in the CSS had two different effects. Some renderers treated 0 as equivalent to 1 and others disregarded it and went with their default of 2 or 3.
I'd guess it was 1 in the conf file, not 0. I've found that together with the book css, it keeps the widows and orphans in line. The patch presumably does the same (I've not used it).
Sirtel is offline   Reply With Quote
Old 08-20-2024, 08:59 PM   #17
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,484
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by foosion View Post
Since I'm doing kepubs it seems there's no need for widows/orphans management.
No. I use epubs on my Libra 2, hence the need for widows/orphans management. On my Sage I too have kepubs.
Sirtel is offline   Reply With Quote
Advert
Old 08-20-2024, 09:04 PM   #18
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,484
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DNSB View Post
Are you certain that you are killing it everywhere? I have one epub where the original CSS specified a padding at the end of each block in the body style, in each paragraph style and in a div style that was applied to every <expletive deleted> paragraph. The lovely part was that the padding was not consistent.
Those are fun. I've also had books with inconsistent left and right margins, inconsistent text indents, inconsistent section breaks and so on. And just now I'm editing a book that has double chapter headings. Yes, the exact same heading twice, first larger and then smaller. Makes one really wonder about people who design those books...
Sirtel is offline   Reply With Quote
Old 08-20-2024, 09:11 PM   #19
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,501
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
Find isn't finding "padding". To have an extra line on the page, wouldn't I need negative padding or negative bottom margins? Or would this do it:

Code:
<a class="Footnote-Reference" epub:type="noteref" href="05_Chapter_One.xhtml#footnote-002" id="footnote-002-backlink" role="doc-noteref" title="footnote">[*1]</a>
Code:
.Footnote-Reference {
  vertical-align: 0.25em;
  line-height: 0;
  font-size: 0.8em;
}
Are you looking in the CSS stylesheets? Anything with padding or margin in a class should be given a hard look. Here's a sample from a recent purchase. Please note that you can find margin and padding in a short hand format with 2 to 4 values.

margin-bottom: 2px;
margin-bottom: 0.1em;
margin-bottom: 8px;
padding-bottom: 0.25em;
padding-bottom: 6px;

You may want to check CSS Margins and CSS Padding on the W3Schools site for more information.


Quote:
Originally Posted by foosion View Post
Or is it because most files are about 50KB and that's too big for pop-up footnotes?
I seem to remember the limit is 5K in the Kobo documentation. Perhaps look at splitting your footnote files.

Last edited by DNSB; 08-20-2024 at 09:15 PM.
DNSB is offline   Reply With Quote
Old 08-20-2024, 09:22 PM   #20
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 445
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by DNSB View Post
Are you looking in the CSS stylesheets?
The first code fragment was the from the text referencing the footnote. The second was the relevant CSS for that text. Otherwise the text was just a normal <p> ... </p>, same as the rest of the book.

I tend to kill padding CSS and change main body text margins to 0 0 0 0. Neither appear implicated here.

Quote:
Originally Posted by DNSB View Post
I seem to remember the limit is 5K in the Kobo documentation. Perhaps look at splitting your footnote files.
You have written that before.

It's a mass market book, so they probably weren't concerned with kobo formatting.

Last edited by foosion; 08-20-2024 at 09:24 PM.
foosion is offline   Reply With Quote
Advert
Old 08-21-2024, 05:45 AM   #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,395
Karma: 136466962
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 foosion View Post
My default font and line height results in 15 lines of text on my Libra 2. However, if there's a footnote which would otherwise display at the top of the next page, I get 16 lines of text with the footnote on the bottom line. Is this some widow and orphan manifestation or is it something else?

I've come to dislike large first letters of a chapter, often bold and extending above or below the line, so they need a special margin (such as 0.7em) to display nicely. Accordingly, I've been changing these to regular text. Anyone else?

Why do almost all books not indent the first paragraph of a chapter, but then indent all subsequent paragraphs? I toy with indenting all paragraphs.

Somewhere in the 1.4em range seems best for indenting, although maybe 5%?

Is there some way to automate making sure all actual text (body, rather than headings or special sections) is normal size?

The current book I'm reading doesn't have the footnote preview feature (clicking on a footnote brings you to the footnote) and image viewer. How can I fix this?

All of this relates to kepub files on my Libra 2 (or Clara BW).
I get 46 lines of text on the screen of my Libra 2. You must be using some large font size and some rather large line height. 30 lines would be more normal.

Anyway, if you install Diaps Editing Toolbag then in the editor you'll easily be able to remove the spans that give you the large first letter that you don't like. As to the first paragraph not being indented, that's normal. Not just in eBooks, but in pBooks as well. It shows you that you are at the beginning of the paragraph or section. To me, it looks cheap and tacky when those paragraphs are indented. My preferred indent is 1.2em.

As for Widows/orphans, you can override them in multiple ways.

In CSS, in Kobo ereader.conf with
Code:
[Reading]
readingAdobeOrphans=1
readingAdobeWidows=1
but this is only for ePub, and you can apply the patch that gets rid of widows/orphans that works for both ePub and KePub.

Footnotes don't popup with ePub, only KePub. Footnotes should be in a separate HTML file with page breaks in between each footnote.
JSWolf is offline   Reply With Quote
Old 08-21-2024, 05:47 AM   #22
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,395
Karma: 136466962
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 Sirtel View Post
Yeah, I absolutely detest paragraph spaces and those get immediately deleted, before reading the book.

OTOH, there are folks here who add them to their books.

Section breaks and sections with a different font size (letters, diaries etc) can also change the number of lines.
I too cannot stand paragraph spaces. I see no point. We already have indents to denote the start of a new paragraph.
JSWolf is offline   Reply With Quote
Old 08-21-2024, 05:49 AM   #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,395
Karma: 136466962
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
Correct. Unlike the RMSDK renderer which defaults to widows/orphans=2, the WebKit based renderer defaults to widows/orphans=1.
I have seen a number of eBooks that do have widows/orphans set to 2 in CSS. So unless the CSS is examined before reading the book, you won't know if it has widows/orphans set to 2 or not until you are reading the book. This does not happen in most book, but it does in some.
JSWolf is offline   Reply With Quote
Old 08-21-2024, 07:12 AM   #24
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 445
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by JSWolf View Post
I get 46 lines of text on the screen of my Libra 2. You must be using some large font size and some rather large line height. 30 lines would be more normal.
I'm currently at FontSize 54 and LineHeight 1.35. I could probably go a bit smaller, but I'm used to this.

Quote:
Originally Posted by JSWolf View Post
Anyway, if you install Diaps Editing Toolbag then in the editor you'll easily be able to remove the spans that give you the large first letter that you don't like.
It's easy enough to click on a first letter, see the code then find it in the CSS file. I guess I'll try that plugin to see if it's easier. https://www.mobileread.com/forums/sh....php?p=2980740

Quote:
Originally Posted by JSWolf View Post
As to the first paragraph not being indented, that's normal. Not just in eBooks, but in pBooks as well. It shows you that you are at the beginning of the paragraph or section. To me, it looks cheap and tacky when those paragraphs are indented. My preferred indent is 1.2em.
I characterized it as "almost all" in the OP.

De gustibus ...

Indent range in this thread is 1 to 1.5em


Quote:
Originally Posted by JSWolf View Post
As for Widows/orphans, you can override them in multiple ways.
Kepub doesn't do widows/orphans, so no action required. Besides, that was a guess as to why I get 16 lines/page when there's a footnote reference in the text on the bottom line. It continues to be a mystery.

Quote:
Originally Posted by JSWolf View Post
Footnotes don't popup with ePub, only KePub. Footnotes should be in a separate HTML file with page breaks in between each footnote.
As noted, I'm using kepub. The book at issue has footnotes in the same files as text and those files are about 50KB each. It was published by parts of Penguin this year. You'd think they knew better.

Last edited by foosion; 08-21-2024 at 07:15 AM.
foosion is offline   Reply With Quote
Old 08-21-2024, 09:26 AM   #25
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,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
At your font size you cannot fit 16 lines on the screen. You have extra space at the bottom of the screen but not enough for your font size. But the footnote text is a smaller font size so it fits in the space available. That's the answer to why you get 16 lines with the footnote.
JSWolf is offline   Reply With Quote
Old 08-21-2024, 11:17 AM   #26
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 445
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by JSWolf View Post
At your font size you cannot fit 16 lines on the screen. You have extra space at the bottom of the screen but not enough for your font size. But the footnote text is a smaller font size so it fits in the space available. That's the answer to why you get 16 lines with the footnote.
The bottom line is normal text with a footnote reference (e.g., lorem ipsum[2] lorem ipsum), so this doesn't sound right, unless the footnote reference on the line is causing the entire line to be a touch smaller. It's not visibly smaller. Usually there's a fair amount of white space at the bottom, but in the footnote line case the bottom line just about touches the bottom of the screen.
foosion is offline   Reply With Quote
Old 08-21-2024, 06:17 PM   #27
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 445
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Here are examples of a 15 line page and a page with a footnote that's 16 lines.

Both are from a single 90KB kepub file that includes both the text and the footnotes. Popup footnote previews work properly. It therefore appears neither a 90KB file size nor texts and footnotes in the same file are a problem.

Another page has a footnote reference in the middle of the page and that page is 15 lines. I've only seen 16 lines when the footnote reference is at the bottom.
Attached Thumbnails
Click image for larger version

Name:	z15.jpg
Views:	50
Size:	816.6 KB
ID:	210359   Click image for larger version

Name:	z16.jpg
Views:	48
Size:	882.2 KB
ID:	210360  

Last edited by foosion; 08-22-2024 at 03:06 AM.
foosion is offline   Reply With Quote
Old 08-21-2024, 08:53 PM   #28
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,501
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sirtel View Post
And just now I'm editing a book that has double chapter headings. Yes, the exact same heading twice, first larger and then smaller. Makes one really wonder about people who design those books...
I've found that happening when media-queries are used to select the size of the image. RMSDK will display both while the WebKit renderer will display only one. Sample code would be:

Code:
  <div class="element element-bodymatter element-container-single element-type-chapter element-with-heading" role="doc-chapter" epub:type="chapter">
    <div class="heading heading-container-single heading-size-full heading-format-full heading-alignment-flexible heading-without-image">
      <div class="heading-contents">
        <div class="title-subtitle-block title-block-title-is-element-number">
          <img src="../images/00003.jpeg" alt="" class="chapter_heading_image high-res" data-AmznRemoved="mobi7"/>
          <img height="75" " class="chapter_heading_image low-res" src="../images/00004.jpeg" width="172" data-AmznRemoved-M8="true"/>
        </div>
      </div>
    </div>
  </div>
DNSB is offline   Reply With Quote
Old 08-21-2024, 08:55 PM   #29
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,501
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
@foosion: Perhaps you could do screenshots instead of taking pictures of the device screen?
DNSB is offline   Reply With Quote
Old 08-21-2024, 09:15 PM   #30
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,484
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DNSB View Post
I've found that happening when media-queries are used to select the size of the image. RMSDK will display both while the WebKit renderer will display only one. Sample code would be:
They were not images, just text. Different size too, and a lot of empty white space between them. No idea what the reason for such a decision could conceivably be.

I deleted the smaller headings (and most of the empty space) in the calibre editor.

Last edited by Sirtel; 08-21-2024 at 09:18 PM.
Sirtel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.dat in miscellaneous ottischwenk Editor 1 01-06-2024 07:45 PM
Accessories Best display graphics tablet for photo editing? fanhun enTourage eDGe 0 06-05-2018 06:15 AM
File gets moved to Miscellaneous MerlinMama Editor 13 01-14-2017 10:19 PM
Preferences Miscellaneous Tab adun EPUBReader 2 07-28-2010 07:06 AM
Miscellaneous questions ? bugsbunny14 iRex 5 09-17-2006 12:40 PM


All times are GMT -4. The time now is 11:33 PM.


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