![]() |
#766 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
You might consider opening the html file in Sigil then saving that as a epub, then running it through a epub to epub conversion in calibre to set font size indent etc... Sigil has html tidy built in to clean obvious errors. Or you can do your editing in Open Office.org's Writer and save to epub using the Writer 2 ePub extension downloaded here. The developer has a forum here at MobileRead for this extension. Last edited by DoctorOhh; 08-11-2010 at 01:14 AM. |
|
![]() |
![]() |
![]() |
#767 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 589
Karma: 1451235
Join Date: Jun 2008
Device: Sony PRS-505, Sony PRS-950
|
I actually haven't noticed the problem of Calibre removing Scene Breaks. I also set it to remove lines between paragraphs--I hate wasting space that way, personally, and I just double checked, and at least in the books I converted, the scene break lines were not removed. I am bothered, however, that lines that are meant to be poetry, for instance, at the beginning of a chapter, have the first line indented after conversion, instead of being all orderly without indentation as in the original book before conversion. So a poem that would look like
Random poetry blah blah blah gets converted to Random poetry blah blah blah It's a minor issue compared to removing scene breaks, but I wonder if there's any way for calibre to detect this sort of thing and not indent the first line of poems. I have to have the indents because I remove lines between paragraphs, else the page looks too busy, but I would prefer not to have indents in poetry.. any thoughts? ETA: i guess i should just try to mess around with some editing by hand through SIGIL. I just wanted to add that I love Calibre, and it has made my experience owning a Sony 505 the best that it could be! Thanks! Quote:
Last edited by seajewel; 08-11-2010 at 03:43 AM. |
|
![]() |
![]() |
![]() |
#768 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Off the top of my head, that would cause problems with consecutive lines of short dialog, for instance.
|
![]() |
![]() |
![]() |
#769 |
Connoisseur
![]() Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
|
I'm not sure if this has been reported yet, I hope it will prove helpful though. I've been wanting and trying to convert my BookDesigner created LRFs to EPUB, but noticed Calibre kept messing up the links and making them either not function at all or jump to wrong pages. Such as selecting Chapter 1 would jump to Chapter 2, then using the back-link on Chapter 2 would jump to Chapter 1 instead of going back to the TOC as it should and does in the original LRF.
Well after trying once more, I opened a Converted EPUB in Sigil to check the code. I noticed what's been happening is Calibre is adding "#xx" where xx represents some numbers, to the end of each link both in the TOC and chapter headers. An example of a chapter header: <a class="calibre5" href="../Text/53.xhtml#74">Part 1</a> After removing "#74" in Sigil then saving the EPUB, now the link is working properly. Is there some reason Calibre is adding that extra stuff after ''xhtml'' and is there some way to perhaps prevent it? I have over 80 LRFs I'd like to convert to EPUB. EDIT: Alright, now I know how to preserve spaces in the converted EPUB too. It seems Calibre is at least putting some code where the space should be. For example: <p class="calibre1"><span>Text here.</span></p> <p class="calibre1"></p> <p class="calibre1"><span>Text here.</span></p> The line "<p class="calibre1"></p>" is where the space is supposed to be, but it's not being read or whatever after conversion. So simply using find and replace, I changed the calibre1 part of the line to say calibre5, then in the stylesheet made calibre5 have a top and bottom margin setting of 1em. Now the output file looks exactly like the LRF. So overall, the process involves a bit of work but not too much. First removing all the "#XX" parts then replacing the space codes. Last edited by Ticallion; 08-12-2010 at 08:48 AM. |
![]() |
![]() |
![]() |
#770 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
|
Quote:
This goes back to the issue where Calibre ought to be able to retain the original LRF paragraph spaces. I don't want to add spaces throughout. I don't want to remove spaces throughout. Just leave my spacing alone! Instead, with neither of these options checked, Calibre ruins my epub by adding spaces between all paragraphs (AND the existing TOC entries). I'm still hoping that Kovid or one of the developers here can do something about this. That would make all of our LRF's future-proof. |
|
![]() |
![]() |
![]() |
#771 |
Connoisseur
![]() Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
|
No doubt it is tedious work, especially since it seems from EPUB to EPUB the calibre# changes codes. In one EPUB the paragraphs will use calibre10 then then the next it could use calibre15, not sure why it does that when they're all made in the same fashion in BookDesigner.
From what I understand though, it is someone else who made the LRF plugin and has abandoned it. Seems like what needs to be done is make the plugin change that space line code to input a different calibre# instead of one that is matching the paragraph code. |
![]() |
![]() |
![]() |
#772 | ||||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
If LRF was a simple html container like Lit, Mobi or ePub then it would be easy, but LRF is not that simple. LRF doesn't use CSS or html defined paragraphs, its a propriety format that uses objects defined by Sony. Kovid refused to even provide an avenue from LRF for the longest time. But he finally broke down and took the many hours needed and wrote a plugin to allow folks to easily convert their lrf files to other formats such as epub. This conversion provided a perfectly functional epub, not a perfect duplicate of the original lrf. Thank You Kovid! Quote:
Quote:
You could use Google and look elsewhere for a converter. I'm relatively sure you won't find one that provides a more functionally readable output then calibre, but if you do find a great alternative please let us know. ![]() Last edited by DoctorOhh; 08-13-2010 at 02:58 AM. |
||||
![]() |
![]() |
![]() |
#773 |
Connoisseur
![]() Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
|
Okay, I submitted two tickets for each problem. Looks like there are a ton of other things on there though.
Something else I've noticed after some testing; it seems like the code is a lot cleaner and easier to work with when you do LRF to MOBI to EPUB, instead of straight LRF to EPUB. When doing MOBI to EPUB, you get proper "calibre#" codes in the stylesheet and not much else. But doing that style doesn't even show the converted spaces in the code. When doing LRF to EPUB, you only get a few calibre codes and then some other ones that show as ".bs#". Seems to mess up the title page (if you have one) when you do some tweaking. Strange. |
![]() |
![]() |
![]() |
#774 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Have you looked in debug at the initial lrf2html to see what it looks like? |
|
![]() |
![]() |
![]() |
#775 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
|
Quote:
Quote:
Agreed. I think Sony made the right decision to switch to epub, but they absolutely and automatically should have furnished a converter. But I think we all know that the words "lobby Sony" are synonymous with knocking your head against a wall. |
||
![]() |
![]() |
![]() |
#776 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 274
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
|
|
![]() |
![]() |
![]() |
#777 |
Connoisseur
![]() Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
|
He closed the tickets with this quote: "calibre's LRF input plugin only supports LRF created by calibre. I have no interest in addng support for BD LRF files. Patches welcome."
I have no idea how to make patches, isn't there anyone around who knows about fixing this type of thing? Actually, this problem exists for non-BD LRFs as well, from what I recall. I've tried to convert other LRFs to EPUB, the spacing problem is still there. I'm sure the link bug is as well. |
![]() |
![]() |
![]() |
#778 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2010
Device: Nook
|
Probably a dumb question, but when I convert some .lit of .rtf to epub there are unwanted line feeds in the middle of a sentence. The first occurs in the middle of a line, then it adds another. In Sigil's code view there is a <p> before each line and a </p) ath the end.
Deleting these in the html view gives a continuous document with no breaks. How do I convert properly with Calibre, or amend the CSS file to better display the files? thanks. |
![]() |
![]() |
![]() |
#779 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
GIGO You have two choices. 1. Clean up or find a different source file. or 2. Clean up the output file. |
|
![]() |
![]() |
![]() |
#780 |
Connoisseur
![]() Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
|
Could anyone give some idea about how to make a user patch or even what specific files would need tweaking for fixing up the LRF to EPUB conversion? i know next to nothing about programming, but thought it'd be worth a try unless there would be a lot of lines of code that need to be changed.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Epub Output: Line Height | greenapple | Conversion | 20 | 01-27-2013 09:27 AM |
EPUB output justification | toki08 | Calibre | 10 | 01-08-2011 04:14 PM |
Calibre epub output details and Nook | squidward | Calibre | 6 | 11-24-2010 03:21 PM |
epub output metadata | troymc | Calibre | 5 | 05-22-2010 12:23 AM |
Problem with epub output in Cybook Gen3 | fjf | Calibre | 3 | 02-03-2010 02:23 AM |