Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-06-2007, 07:25 PM   #46
Xenophon
curmudgeon
Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.
 
Xenophon's Avatar
 
Posts: 1,487
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
Quote:
Originally Posted by JSWolf View Post
But do your scripts take into account the need for some page break(s) and the fact that the paragraph indents are too big. I can go with l;eaving the quotes as is, but thge indents are too large and the only way to fix that is to go in and change the css code. Also, pages breaking needs to be fixed in at least one spot in a book I was testing last night. Also, the chapter text size is too large. These are things no script can fix unless the script edits the css code.
Nope. Those are things that would need to be addressed through pre-processing or some other command-line switch. A reasonably straight-forward thing to do... once someone figures out what the "right" fixes are.
Xenophon is offline   Reply With Quote
Old 10-06-2007, 07:27 PM   #47
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: 79,249
Karma: 145488788
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 Xenophon View Post
Nope. Those are things that would need to be addressed through pre-processing or some other command-line switch. A reasonably straight-forward thing to do... once someone figures out what the "right" fixes are.
Perhaps they could be made part of the --bean switch. That would do.
JSWolf is offline   Reply With Quote
Advert
Old 10-06-2007, 09:53 PM   #48
jasonkchapman
Guru
jasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it isjasonkchapman knows what time it is
 
jasonkchapman's Avatar
 
Posts: 767
Karma: 2347
Join Date: Jul 2007
Location: NYC
Device: Sony Reader, nook, Droid, nookColor, nookTablet
Quote:
Originally Posted by DrMoze View Post
The free beer offer is still open to anyone in the NYC area. Right now I have Heartland Brewery's Cornhusker Lager on tap.
Which totally rocks, by the way. (In case anyone needs a second opinion.)
jasonkchapman is offline   Reply With Quote
Old 10-09-2007, 02:07 AM   #49
WayneD
Enthusiast
WayneD began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2007
Device: Android phone + PRS-505
Quote:
Originally Posted by Xenophon View Post
The only remaining problem that I've seen is occasional missing scene breaks.
I've noticed some missing scene breaks in a non-Baen book I converted with libprs500, and it turned out to be a bug (whether in the reader or in libprs500, I haven't determined yet): a paragraph with a non-breaking space as the sole content is not rendering as an empty line. I tweaked my version of libprs500 to change all such paragraphs into (centered) "* * *" scene breaks (which I prefer anyway, since the break might appear at the edge of the page).

I wonder if this is the same problem you noticed?
WayneD is offline   Reply With Quote
Old 10-09-2007, 02:10 PM   #50
Xenophon
curmudgeon
Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.
 
Xenophon's Avatar
 
Posts: 1,487
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
Quote:
Originally Posted by WayneD View Post
I've noticed some missing scene breaks in a non-Baen book I converted with libprs500, and it turned out to be a bug (whether in the reader or in libprs500, I haven't determined yet): a paragraph with a non-breaking space as the sole content is not rendering as an empty line. I tweaked my version of libprs500 to change all such paragraphs into (centered) "* * *" scene breaks (which I prefer anyway, since the break might appear at the edge of the page).

I wonder if this is the same problem you noticed?
That's probably it. Would you please enter a ticket at libprs500.kovidgoyal.net with the necessary info so that kovid can fix this? You can certainly request the "* * *" option as part of the fix. In fact, you can even submit your patch (hint hint).
Xenophon is offline   Reply With Quote
Advert
Old 10-09-2007, 07:58 PM   #51
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
Quote:
Originally Posted by JSWolf View Post
But do your scripts take into account the need for some page break(s) and the fact that the paragraph indents are too big. I can go with l;eaving the quotes as is, but thge indents are too large and the only way to fix that is to go in and change the css code. Also, pages breaking needs to be fixed in at least one spot in a book I was testing last night. Also, the chapter text size is too large. These are things no script can fix unless the script edits the css code.
I have no idea what you're on about this. The Baen CSS has "page-break-before" on H1, so adding --force-page-break-before-tag=h1 fixes the few that html2lrf misses, and comparing paragraph indents, the LIT format version actually has larger paragraph indents than the LRF converted version. If anything, the LRF versions are too small. (I'm assuming you're talking about the first line indent).
I use the LIT for conversions now, since it gives the best results from my extensive testing. I only have a few issues with it still:
a) lit2lrf does not use the defined <spine> in the OPF, and I really hate having the TOC actually in the book. The TOC should only be used to define TOC entries, the book should only contain the files defined by <spine>, in the order that <spine> defines them. For now I'm living with the ugly TOC pages, but I'd really prefer for them to go away.
b) Some files require individual settings, for instance "Wind Rider's Oath" by David Weber requires an embedded font (I use Times New Roman) because it has crazy characters (The second o in "Sothōii") that the default fonts don't support.

I solved (b) in my case by allowing individual files to define extra settings, and the ability to create a defaults file for an entire directory tree.
Here are the DOS scripts I use
Main Converter script - It will convert all files in all subdirectories of your current directory, unless a LRF file already exists, so it works for updates too:
Code:
@echo off
REM Set Defaults for all books.
set VARS=--disable-autorotation --header --left-margin=30 --right-margin=30
REM Set the Root for your book library
set ROOT=c:\EBooks\NewSrc

REM This variable can be changed in any directory with defaults.cmd
set DEFAULTVARS=

REM Add in any passed in options
set VARS=%VARS% %*
goto :main

:getdefaults
set curDir=%1
set curDir=%curDir:~1,-1%
:rinse
for %%j in ("%curDir%") DO set curDir=%%~dpj
set curDir=%curDir:~0,-1%
if exist "%curDir%\defaults.cmd" goto :found
if /i "%curDir%"=="%ROOT%" goto :notfound
goto :rinse
:found
call "%curDir%\defaults.cmd"
:notfound
goto :eof

:convert
set LIT=%1
set LRF=%LIT:~0,-4%lrf"
if exist %LRF% goto :eof
set OPTIONS=%LIT:~0,-4%cmd"
set DEFAULTVARS=
set EXTRAVARS=
set USEVARS=

call :getdefaults %LIT%

if exist %OPTIONS% (
   call %OPTIONS%
)

set USEVARS=%VARS% %DEFAULTVARS% %EXTRAVARS%

@echo Filename: %LIT% USEVARS : %USEVARS%

lit2lrf %USEVARS% -o %LRF% %LIT%

goto :eof


:main
for /R %%i in (*.lit) do (
   call :convert "%%i"
)
Defaults.cmd in my "root" of c:\ebooks\NewSRC, sets defaults for an entire tree (for instance all baen books):
Code:
SET DEFAULTVARS=--baen --force-page-break-before-tag=h1
And Wind_Riders_Oath.cmd (named the same as the .lit, and in the same directory)
Code:
SET EXTRAVARS=--serif-family="c:\windows\fonts, Times New Roman"

Last edited by bkilian; 10-09-2007 at 08:05 PM.
bkilian is offline   Reply With Quote
Old 10-09-2007, 08:07 PM   #52
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The --use-spine option is going to be implemented when I get a large enough block of time. Unfortunately it requires refactoring some of the internals of html2lrf, so it needs more time than the typical feature.
kovidgoyal is offline   Reply With Quote
Old 10-09-2007, 08:43 PM   #53
WayneD
Enthusiast
WayneD began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2007
Device: Android phone + PRS-505
Quote:
Originally Posted by Xenophon View Post
Would you please enter a ticket at libprs500.kovidgoyal.net with the necessary info so that kovid can fix this?
I had filed some bug info prior to my post here, and indeed, the bug that was causing vanishing scene breaks is now fixed in the svn version (and QA tested too ). Kovid has been very responsive to bug reports, which is great. I've only had my 505 for about a day now, but it's been really nice to be able to convert some of my already-purchased books, get them looking good, and really enjoy reading them.
WayneD is offline   Reply With Quote
Old 10-09-2007, 08:45 PM   #54
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
Quote:
Originally Posted by kovidgoyal View Post
The --use-spine option is going to be implemented when I get a large enough block of time. Unfortunately it requires refactoring some of the internals of html2lrf, so it needs more time than the typical feature.
Will --use-spine still generate the Table of Contents?
Sorry if I sounded grumpy about it, I'm not really, it just offends my sense of aesthetics. I'd like the generated LRF to look as similar as possible to the original LIT, and the TOC being shoehorned in at the beginning of the book violates that.
Your tool does an amazing job otherwise.
bkilian is offline   Reply With Quote
Old 10-09-2007, 09:07 PM   #55
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If the spine doesn't specify the TOC file as an element of the book then no it wont be generated.
kovidgoyal is offline   Reply With Quote
Old 10-09-2007, 09:48 PM   #56
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
Quote:
Originally Posted by kovidgoyal View Post
If the spine doesn't specify the TOC file as an element of the book then no it wont be generated.
It isn't specified in the spine, it's specified as a reference:
<reference type="toc" title="Table of Contents" href="0671876422_top.htm" />
You could also use the <tour> section to generate a TOC.
bkilian is offline   Reply With Quote
Old 10-09-2007, 09:58 PM   #57
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah then it wont be included.
kovidgoyal is offline   Reply With Quote
Old 10-09-2007, 11:32 PM   #58
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: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
But will it create an external ToC with --use-spine? Also, for LIT files where I have no control over the paragraph indent, I would like a switch for that so I can control how the paragraph indents look. Also, I'd like to be able to control the size of the chapter headings since they do come out rather large. This ia ll because Baen books do some odd things.
JSWolf is offline   Reply With Quote
Old 10-09-2007, 11:34 PM   #59
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah it will. open a ticket requesting merging of an external CSS file. That way you can override BAEN css.
kovidgoyal is offline   Reply With Quote
Old 10-09-2007, 11:35 PM   #60
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: 79,249
Karma: 145488788
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 kovidgoyal View Post
yeah <this is to satisfy mobileread's message length criteria>
Is that a yeah for the ToC only of for the ToC plus all the other requests I just made?
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Baen Free Library VillageReader Deals and Resources (No Self-Promotion or Affiliate Links) 3 12-23-2008 10:57 PM
Format of Baen books radius Workshop 5 02-14-2008 02:08 AM
Baen format upgrade in the works Nate the great Workshop 11 12-09-2007 09:32 PM
Converting Baen books to LRF igorsk Sony Reader 0 12-21-2006 05:59 PM
Baen Library derekweb Deals and Resources (No Self-Promotion or Affiliate Links) 1 07-22-2004 07:29 PM


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


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