View Single Post
Old 09-02-2013, 06:33 AM   #472
tigran
Zealot
tigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
Quote:
Originally Posted by Markismus View Post
This morning I read the following line in defaults.lua:
-- DjVu page rendering mode (used in djvu.c:drawPage())
-- See comments in djvureader.luaJVUReader:select_render_mode()
DRENDER_MODE = 0 -- 0 is COLOUR
Would this enable you to switch to B&W?

As for non-bitonal DjVu-files: The cover image of "Rene Descartes The Philosophical Writings of Descartes Volume I 1985" is in color and it gets rendered without problems. Does that answer your question?
Rendering a colour cover "without problems" has no bearing on the fact that when every normal page has a background then rendering it in colour mode makes it practically unreadable (i.e. most books from archive.org, but practically no modern books on physics/mathematics which is most of my e-library --- this explains why I didn't bother to port the rendering mode switch code myself).

Yes, changing DRENDER_MODE = 1 should switch it to B&W. But then the colour (or greyscale) pictures embedded on a page of text will disappear, beware.
tigran is offline   Reply With Quote