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 03-11-2021, 05:14 PM   #1
Skydog
Wizard
Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.
 
Skydog's Avatar
 
Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
Question Epub rendering or CSS fix?

This is one of those I-don't-know-what-I-don't-know questions.

First, one of the patches I have enabled is: "Don't uppercase header/footer text and change page number text: yes" and it works like a charm as long as the original epub header/footer is in lower case.

Question: If the header/footer text in the original epub is already all upper case, is it possible to edit the CSS and force header/footer text to lower case? If so, how does one accomplish this? What is the header/footer referencing?
Skydog is offline   Reply With Quote
Old 03-11-2021, 09:31 PM   #2
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 914
Karma: 275656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by Skydog View Post
Question: If the header/footer text in the original epub is already all upper case, is it possible to edit the CSS and force header/footer text to lower case? If so, how does one accomplish this? What is the header/footer referencing?
The title of the book in the metadata and the title of the chapters in the table of contents. It's not in css. You must manually change the title in the metadata for the book and the title for each chapter. Сan do this with a regular expression.

Last edited by Semwize; 03-11-2021 at 09:34 PM.
Semwize is offline   Reply With Quote
Advert
Old 03-11-2021, 09:51 PM   #3
Skydog
Wizard
Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.
 
Skydog's Avatar
 
Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
Quote:
Originally Posted by Semwize View Post
The title of the book in the metadata and the title of the chapters in the table of contents. It's not in css. You must manually change the title in the metadata for the book and the title for each chapter. Сan do this with a regular expression.
Thank you, Semwize. I'm not knowledgeable about regular expressions, but I can certainly accomplish the task manually. Unfortunately, I cannot understand why another epub, containing all uppercase chapter titles in the ToC and book itself, does indeed honor the patch of retaining lower case. It doesn't make sense.

Last edited by Skydog; 03-11-2021 at 09:56 PM.
Skydog is offline   Reply With Quote
Old 03-11-2021, 10:05 PM   #4
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 914
Karma: 275656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by Skydog View Post
Unfortunately, I cannot understand why another epub, containing all uppercase chapter titles in the ToC and book itself, does indeed honor the patch of retaining lower case.
Can see this epub? Because the patch does not convert headers to lowercase at all, the patch cancels uppercase.

Last edited by Semwize; 03-11-2021 at 10:13 PM.
Semwize is offline   Reply With Quote
Old 03-11-2021, 10:30 PM   #5
Skydog
Wizard
Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.
 
Skydog's Avatar
 
Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
Quote:
Originally Posted by Semwize View Post
Can see this epub? Because the patch does not convert headers to lowercase at all, the patch cancels uppercase.
Yes, that is the head-scratcher. The epub in question contains uppercase in both TOC and chapters yet the patch, for some reason, is being ignored. This occurs on both the Forma and Libra, each with firmware v4.26.16704 and associated patch. I've not seen this occur before which prompted my original post. Not a big deal but would like to figure out why the patch is being ignored in this case.

BTW, I recall something Patrick (geek1011) mentioned in the past. I believe the patch only prevents lowercase => upper case when the source is in lowercase. If it is already in uppercase, it stays in uppercase. I just do not know what "it" is, hence my original question.

Last edited by Skydog; 03-11-2021 at 10:50 PM.
Skydog is offline   Reply With Quote
Advert
Old 03-11-2021, 10:55 PM   #6
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 914
Karma: 275656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by Skydog View Post
The epub in question contains uppercase in both TOC and chapters
Do you see them in lowercase? This can't be happening. Pass this epub to private messages if possible.
Semwize is offline   Reply With Quote
Old 03-12-2021, 12:19 AM   #7
Skydog
Wizard
Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.
 
Skydog's Avatar
 
Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
Quote:
Originally Posted by Semwize View Post
Do you see them in lowercase? This can't be happening. Pass this epub to private messages if possible.
Thank you, Semwize. After some searching through my older messages, I found the solution from geek1011's reply (below) that I had completely forgotten about. When I have time, I will edit the patch:

Quote:
This is by design. Note the careful wording in the patch name: it only prevents it being uppercased; it doesn't change it to lowercase.

If you want everything in lowercase, change the ::trimmed to ::toLower in the replacement SymPLTs.
Skydog is offline   Reply With Quote
Old 03-12-2021, 01:25 AM   #8
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 914
Karma: 275656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by Skydog View Post
When I have time, I will edit the patch:
This is not a solution - you will get everything in lowercase: both the first letter of the title and the lowercase letters in the name, if there is such a thing. It's not pretty.

You may have misunderstood geek1011.
Semwize is offline   Reply With Quote
Old 03-12-2021, 11:46 AM   #9
Skydog
Wizard
Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.Skydog ought to be getting tired of karma fortunes by now.
 
Skydog's Avatar
 
Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
After giving it some thought, I suspected as much, it's logical.
Skydog is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOreader rendering: CSS rule after @namespace ignored maraskan_user KOReader 4 01-27-2021 05:58 AM
MoonReader and html/css rendering nindotza Android Devices 4 09-26-2020 04:01 AM
Epub rendering bug on ka1 Stevex Kobo Reader 19 01-19-2017 05:35 AM
Epub rendering with italics and em dashes TCFAN Kobo Reader 6 03-30-2012 02:22 AM
Override ePub CSS with userStyle.css? barium Sony Reader Dev Corner 11 07-16-2011 03:25 PM


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


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