Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-15-2010, 01:44 PM   #781
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: 43,885
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
All the LRF related files are in src/calibre/ebooks/lrf but this would be a far from trivial change.
kovidgoyal is offline   Reply With Quote
Old 08-16-2010, 12:20 PM   #782
Ticallion
Connoisseur
Ticallion began at the beginning.
 
Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
Do you have any suggestions then? I mean, I have about 85 LRF files I hand made in BookDesigner that took quite a long time. We're talking long novels with added artwork, author pictures and all errors fixed using HarryT's tutorial for a guide. I'd hate to just ditch them because having to go through that many books and fixing all those lines of code would take far too long. I know I could do without the TOC links, but that was something that took a bit of work as well.

I do have them in HTML output too, but the back-links weren't saved from BD.
Ticallion is offline   Reply With Quote
Advert
Old 08-16-2010, 12:39 PM   #783
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: 43,885
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
try lrftools
kovidgoyal is offline   Reply With Quote
Old 08-16-2010, 01:26 PM   #784
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by Ticallion View Post
Do you have any suggestions then? I mean, I have about 85 LRF files I hand made in BookDesigner that took quite a long time. We're talking long novels with added artwork, author pictures and all errors fixed using HarryT's tutorial for a guide. I'd hate to just ditch them because having to go through that many books and fixing all those lines of code would take far too long. I know I could do without the TOC links, but that was something that took a bit of work as well.

I do have them in HTML output too, but the back-links weren't saved from BD.
If you have them in Html, why don't you use Sigil to create epubs? TOC is created automatically and you can edit out what you don't like!
mtravellerh is offline   Reply With Quote
Old 08-16-2010, 04:56 PM   #785
Ticallion
Connoisseur
Ticallion began at the beginning.
 
Posts: 61
Karma: 12
Join Date: Jan 2010
Device: Kindle PW
I actually did try LRFtools a while back. While it did save the links correctly, it also would randomly insert like half-sentence spaces for some reason. Couldn't figure out why. For example:

text text text text text text
text text text text text text

text text text text text text


Except that space wouldn't be a full one, just a partial or halfway space.

As for Sigil, I gave that a go too but every HTML input I tested didn't have or generate a stylesheet. So the output would have huge fonts. Isn't there a way to auto-generate a stylesheet for an HTML file? Only could get EPUB input to make the needed stylesheet with all the code intact.

EDIT: Here is a sample screenshot of an LRFTools output EPUB:



Notice towards the bottom of the page where the lines are inserted between sentences? It seems to do that whenever italics are used. I tried in Calibre to do an EPUB to EPUB but the spaces still persisted. I checked in Sigil to see what the stylesheet showed, but I couldn't find anything problematic. Not sure what to do about those italic spaces.

EDIT 2: Wow, duh. Just now notcing that LRFtools also doesn't retain spaces. Just can't catch a break here.
Attached Thumbnails
Click image for larger version

Name:	epubsample.jpg
Views:	1027
Size:	190.8 KB
ID:	56750  

Last edited by Ticallion; 08-16-2010 at 07:16 PM.
Ticallion is offline   Reply With Quote
Advert
Old 08-16-2010, 11:58 PM   #786
seajewel
Fanatic
seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.seajewel ought to be getting tired of karma fortunes by now.
 
Posts: 589
Karma: 1451235
Join Date: Jun 2008
Device: Sony PRS-505, Sony PRS-950
Quote:
Originally Posted by kovidgoyal View Post
Off the top of my head, that would cause problems with consecutive lines of short dialog, for instance.
Kovid, would it be possible to perhaps allow removing lines between paragraphs but keeping original indentation? For instance, a lot of books are formatted to have the lines between paragraphs, and already have indentations that I would prefer to leave alone--that way, I can convert, remove lines, and still preserve indentation for titles, poetry, etc.

I also noticed that when I was converting an .lrf file to .epub, the lrf file itself didn't have lines between paragraphs, and I unchecked "remove lines between paragraphs" as well as unchecking "insert blank line" but the epub created defaulted to lines between paragraphs. Why wasn't the original formatting preserved? Is this an .lrf issue?
seajewel is offline   Reply With Quote
Old 08-20-2010, 01:06 AM   #787
johnb123
Junior Member
johnb123 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: Nook
thanks to all who answered my PDF to epub problems. I have researched it for some hours and found that apple with it's pdf output makes for nearly impossible conversion. PDF has its own display format that other free flowing text or more regimented html does not recognise.
I have solved the problem by a more tedius route, I load the pdf in ABBYY fine reader, fix any obvious errors, usually there are none, delete any superfluous cover images, and get ABBYY to save the file in html format.

Calibre then converts it properly.

Long winded but it works.
johnb123 is offline   Reply With Quote
Old 09-06-2010, 12:56 AM   #788
solati.sadegh
Junior Member
solati.sadegh began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2010
Device: Nook
Smile reversed images

hi,i download calibre yesterday.it is very useful.i convert a thechnical book from pdf to epub but images was reversed if we rotate it one time up to down and one time left to right it will be fixed.there is an interesting thing in first which must be the cover page the cover image is correct but in second page cover is printed again but in reverse as i described.is there any solution?i looked up the faqs but i didn't find any thing.can i use a css for fixing it?
thank you,so much

Last edited by solati.sadegh; 09-06-2010 at 01:00 AM.
solati.sadegh is offline   Reply With Quote
Old 09-06-2010, 12:58 AM   #789
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: 43,885
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That is a known bug in pdf conversion, fixing it is on the todo list.
kovidgoyal is offline   Reply With Quote
Old 09-06-2010, 10:46 AM   #790
bayside
Junior Member
bayside began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Kibo, ibook
Smile Trying to output an epub for the ibook with audio and video.

I already had an epub with apple for the ibook. I now, what to edit that file and have been having difficulty when I make changes to the epub.

I am trying to:

1. Add a video file in the beginning of the chapter.
2. Add three audio files at the end of the ebook
3. Add some more pictures at certain chapters.

All the epub creators that i have found have put all the medial files at the end.

Does anyone know the best way to edit epubs on the mac, and not using command line. I have no issues in recreating the ebook to epub if necessary. I have each chapter in rtf. I have a title, introduction and dedication page that needs to go first, then the chapters. I also have adobe indesign, which causes errors in apple's app submission itune producer. Right now, I have the epub with no errors, but now I just need to add media where on certain pages and I haven't found an easy way to do this.


Any suggestions?
bayside is offline   Reply With Quote
Old 09-15-2010, 07:08 PM   #791
arijon
Junior Member
arijon began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2010
Device: iPad
Can't create ePub

Hello,

Total newb to this process. I am trying to create an ePub from a PDF. I let it run for 45 minutes, but the progress bar doesn't move. When I opened up the log, this is what I got. Any ideas?

Thanks.



Convert book 1 of 1 (A Manual of Acupuncture)
Resolved conversion options
calibre version: 0.7.18
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': '/var/folders/As/As2cjkAWEL4CP23rNav-LE+++TI/-Tmp-/calibre_0.7.18_tmp_ZTZW1k/calibre_0.7.18_3T4V3h.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'extra_css': None,
'extract_to': None,
'flow_size': 260,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x67a0f70>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_toc_links': 50,
'new_pdf_engine': False,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_images': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x67a9170>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preprocess_html': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/As/As2cjkAWEL4CP23rNav-LE+++TI/-Tmp-/calibre_0.7.18_tmp_ZTZW1k/calibre_0.7.18_cjEt6Q.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'series': None,
'series_index': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unwrap_factor': 0.5,
'use_auto_toc': False,
'verbose': 2}
arijon is offline   Reply With Quote
Old 09-15-2010, 08:30 PM   #792
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,863
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by arijon View Post
Total newb to this process. I am trying to create an ePub from a PDF. I let it run for 45 minutes, but the progress bar doesn't move. When I opened up the log, this is what I got.
It may have been stuck, but the progress bar only moves in chunks after each major process is complete. The log doesn't seem to indicate any error, it is incomplete, stopped before creating an error, stopped before finishing. Maybe someone else will have more insight.

Did you try restarting your computer and trying again. Most conversions are fast but on rare occasions I've had conversions last longer.
DoctorOhh is offline   Reply With Quote
Old 09-16-2010, 08:56 AM   #793
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by dwanthny View Post
Did you try restarting your computer and trying again. Most conversions are fast but on rare occasions I've had conversions last longer.
After restart, I suggest trying another test conversion on a small pdf that you know is all text. Just make sure something isn't interfering with the conversion process.
Starson17 is offline   Reply With Quote
Old 09-16-2010, 11:27 AM   #794
arijon
Junior Member
arijon began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2010
Device: iPad
Quote:
Originally Posted by Starson17 View Post
After restart, I suggest trying another test conversion on a small pdf that you know is all text. Just make sure something isn't interfering with the conversion process.


I did try a restart. Even if it does do a small pdf with all text, that won't help me. If it can't do a big PDF (like 400+ MB) that includes pics (whether or not the pics show up in the ePub doesn't matter), then I need to figure out another way to get my book converted...
arijon is offline   Reply With Quote
Old 09-16-2010, 12:02 PM   #795
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by arijon View Post
I did try a restart. Even if it does do a small pdf with all text, that won't help me. If it can't do a big PDF (like 400+ MB) that includes pics (whether or not the pics show up in the ePub doesn't matter), then I need to figure out another way to get my book converted...
I suggested a small test to make sure your system is working. A "400+ MB" pdf is almost certainly a scanned page pdf. If so, it probably won't have any text to convert - just images of pages. You would need to OCR the scanned page images to get text you can convert, and that's a long difficult process. Acrobat Pro can do some of it, but you'd need to do a lot of proofreading. You'd probably be better off just reading the pdf of scanned page images.
Starson17 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


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


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