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 12-14-2020, 04:44 PM   #1
drglenn
Junior Member
drglenn began at the beginning.
 
drglenn's Avatar
 
Posts: 4
Karma: 10
Join Date: Dec 2020
Location: South Carolina, USA
Device: none
Unhappy Customize viewer css. pygments.css not found

Using the Developer tools, I see the particular file above is in a sandbox and only shows up in the binary libraries.

Quote:
$ grep -rie pygments
Binary file lib/calibre-extensions/python-lib.bypy.frozen matches
Binary file lib/libcalibre-launcher.so matches
The issue is with a book on programming where the examples are shown as if they are quote. It is not displaying the actual example text in the theme I'm using in KDE (kubuntu 20.04).

With Chrome as my default browser I can use the the tools to view the code and highlight each section a particular <div> is displayed in the viewer. I can adjust the code easily enough by:
Code:
<span style="color: blue;">
  code example text
</span>
But I don't have any idea where I could apply the change to this particular book.

Thank y'all in advance.

PS: I've scanned the docs, but can't claim to have read it and see any information on customizing a individual books CSS. So shoot me if it exists and just give the section I need to look in pretty please. (Ah, did I mention I'm a wee bit lazy?)

Last edited by drglenn; 12-14-2020 at 04:45 PM. Reason: forgot end salutation
drglenn is offline   Reply With Quote
Old 12-14-2020, 09:09 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
pygments is used by calibre for syntax highlighting, and has nothing to do with book styling. If you want to edit the css for a book, use the edit book tool.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-18-2020, 04:52 PM   #3
drglenn
Junior Member
drglenn began at the beginning.
 
drglenn's Avatar
 
Posts: 4
Karma: 10
Join Date: Dec 2020
Location: South Carolina, USA
Device: none
Quote:
Originally Posted by kovidgoyal View Post
pygments is used by calibre for syntax highlighting, and has nothing to do with book styling. If you want to edit the css for a book, use the edit book tool.
I found it in poking around the ebook reader. Right clicked on the page, then preferences and changing the page theme to White was the answer to the problem. Previous to this the page looked like the attachment
Attached Thumbnails
Click image for larger version

Name:	CalibreView.jpg
Views:	261
Size:	109.0 KB
ID:	184122  
drglenn is offline   Reply With Quote
Reply

Tags
css, viewer


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable CSS property in viewer? odonterla Calibre 2 05-14-2020 10:50 PM
Serious Trouble with the Book Viewer through the Use of CSS Imperative Library Management 16 10-11-2019 02:39 PM
pagestyle.css extra / integrated in stylesheet.css / or not at all? chaot Workshop 14 02-24-2017 11:10 PM
# user css for viewer.py/ ebook-viewer/ prs-650 tscamera Calibre 0 01-02-2011 06:28 PM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 05:56 PM.


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