Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2010, 02:40 PM   #676
davotibarna
Member
davotibarna began at the beginning.
 
davotibarna's Avatar
 
Posts: 17
Karma: 10
Join Date: Dec 2009
Location: Oslo, Norway
Device: Nook
I did what dwanthny suggested, set up a short script and run the conversions on the command line in debug mode. Surprise: all of them got converted correctly. Then I run the GUI conversions again and realized 2 things:

1. Bela.lrf
The "Extra CSS" was set under preferences but when I run the conversion for this ebook, the "Extra CSS" field was empty in the conversion dialog under "Look & Feel". Hmmm.... it must mean that Calibre remembers a kind of "conversion profile" for each ebook which was converted before? This individual conversion profile must overwrite the global preferences.

2. SG.hu.lrf
I cannot explain this. It's great if I run this from the command line, but this line is missing from the style (in xhtml) when I run it from the GUI:
src: url(res:///system/media/sdcard/myfonts/LiberationSerif-Italic.ttf)

So CL version has this style:
@font-face {
font-style: italic;
font-family: "LiberationSerif", serif, sans-serif;
font-weight: normal;
src: url(res:///system/media/sdcard/myfonts/LiberationSerif-Italic.ttf)
}

The GUI version is lacking:
@font-face {
font-style: italic;
font-family: "LiberationSerif", serif, sans-serif;
font-weight: normal
}


I've doublechecked the parameters, I believe I use the same for both the GUI and CL.
davotibarna is offline   Reply With Quote
Old 05-04-2010, 02:40 PM   #677
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,484
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Important part is "should". No guarantees, when it comes to that, I'm afraid. The difficulty of just applying css and having it override pre existing styles is one of the reasons that I haven't yet written font embedding for EPUB yet.

Basically, to do it, I have to go through all the css, remove font-family definitions and replace them with user specified ones. Then there is the problem of figuring out when a font-family should be left alone and when it should be replaced.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-04-2010, 02:41 PM   #678
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,484
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There's a section in the User Manual about how conversion options are stacked. At the start of any conversion, the final used options are printed out, compare them from the CLI and the GUI to see what is different.
kovidgoyal is offline   Reply With Quote
Old 05-04-2010, 03:53 PM   #679
davotibarna
Member
davotibarna began at the beginning.
 
davotibarna's Avatar
 
Posts: 17
Karma: 10
Join Date: Dec 2009
Location: Oslo, Norway
Device: Nook
Quote:
Originally Posted by kovidgoyal View Post
At the start of any conversion, the final used options are printed out, compare them from the CLI and the GUI to see what is different.
Where are the final used options printed out? I can't see them in the debug log.
davotibarna is offline   Reply With Quote
Old 05-04-2010, 07:01 PM   #680
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,484
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Right at the beginning, it looks like this
Note on the command line you have to add -vv

Code:
Resolved conversion options
{'asciiize': False,                                                                                                                                                                     
 'author_sort': None,                                                                                                                                                                   
 'authors': None,                                                                                                                                                                       
 'base_font_size': 0,                                                                                                                                                                   
 'book_producer': None,                                                                                                                                                                 
 'breadth_first': False,                                                                                                                                                                
 'change_justification': 'original',                                                                                                                                                    
 'chapter': "//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",                                                           
 'chapter_mark': 'pagebreak',                                                                                                                                                           
 'comments': None,                                                                                                                                                                      
 'cover': None,                                                                                                                                                                         
 'debug_pipeline': None,                                                                                                                                                                
 'disable_font_rescaling': False,                                                                                                                                                       
 'dont_package': False,                                                                                                                                                                 
 'dont_split_on_page_breaks': False,                                                                                                                                                    
 'extra_css': None,                                                                                                                                                                     
 'extract_to': None,                                                                                                                                                                    
 'flow_size': 260,                                                                                                                                                                      
 'font_size_mapping': None,                                                                                                                                                             
 'footer_regex': '(?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': '(?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 0x21dc7d0>,                                                                                                        
 'insert_blank_line': False,                                                                                                                                                            
 'insert_metadata': False,                                                                                                                                                              
 'isbn': None,                                                                                                                                                                          
 'language': None,                                                                                                                                                                      
 'level1_toc': None,                                                                                                                                                                    
 'level2_toc': None,                                                                                                                                                                    
 'level3_toc': None,                                                                                                                                                                    
 'line_height': 0,                                                                                                                                                                      
 'linearize_tables': False,                                                                                                                                                             
 'margin_bottom': 5.0,                                                                                                                                                                  
 'margin_left': 5.0,                                                                                                                                                                    
 'margin_right': 5.0,                                                                                                                                                                   
 'margin_top': 5.0,                                                                                                                                                                     
 'max_levels': 5,                                                                                                                                                                       
 'max_toc_links': 50,                                                                                                                                                                   
 'no_chapters_in_toc': False,                                                                                                                                                           
 'no_default_epub_cover': False,                                                                                                                                                        
 'no_inline_navbars': False,                                                                                                                                                            
 'no_svg_cover': False,                                                                                                                                                                 
 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x21dcb90>,                                                                                                      
 'page_breaks_before': "//*[name()='h1' or name()='h2']",                                                                                                                               
 'prefer_metadata_cover': False,                                                                                                                                                        
 'preprocess_html': False,                                                                                                                                                              
 'pretty_print': True,                                                                                                                                                                  
 'pubdate': None,                                                                                                                                                                       
 'publisher': None,                                                                                                                                                                     
 'rating': None,                                                                                                                                                                        
 'read_metadata_from_opf': None,                                                                                                                                                        
 '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.0,                                                                                                                                                                  
 'use_auto_toc': False,                                                                                                                                                                 
 'verbose': 2}
kovidgoyal is offline   Reply With Quote
Advert
Old 05-04-2010, 07:43 PM   #681
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,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by davotibarna View Post
it must mean that Calibre remembers a kind of "conversion profile" for each ebook which was converted before? This individual conversion profile must overwrite the global preferences.
This is true, every time I go back to reconvert a book that I previously converted the default settings are the settings I used to convert the book originally.

That's the extent of my knowledge in this area.

I'll be lurking hoping to learn something.

Good Luck!
DoctorOhh is offline   Reply With Quote
Old 05-04-2010, 07:48 PM   #682
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,484
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://calibre-ebook.com/user_manual...for-conversion
kovidgoyal is offline   Reply With Quote
Old 05-06-2010, 09:31 PM   #683
twodog
Junior Member
twodog began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2010
Device: nook
help with nook

just downloaded calibre and some books in .lit format and plugged in my nook and my nook library wouldnt pop up and then i got the meta info and edited it then tried to send to device and they never show up there what do i do? is this a nook issue or a calibre issue?
twodog is offline   Reply With Quote
Old 05-27-2010, 03:06 AM   #684
Bismar
Connoisseur
Bismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-books
 
Posts: 76
Karma: 928
Join Date: Jul 2008
Location: Down Under
Device: Kobo eReader
Hi, i was wondering, could anyone tell me more about this validation error, unknown element "u" from namespace "http://www.w3.org/1999/xhtml"?

I'm trying to find out what it is, if i can delete it, and how it might possibly be giving me the content locked message on the kobo.
Bismar is offline   Reply With Quote
Old 05-27-2010, 03:55 AM   #685
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,194
Karma: 317184274
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Bismar View Post
Hi, i was wondering, could anyone tell me more about this validation error, unknown element "u" from namespace "http://www.w3.org/1999/xhtml"?

I'm trying to find out what it is, if i can delete it, and how it might possibly be giving me the content locked message on the kobo.
If this is an error message from epubcheck, it should also give a filename and a line number. Look there.
pdurrant is offline   Reply With Quote
Old 05-27-2010, 05:20 AM   #686
Bismar
Connoisseur
Bismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-books
 
Posts: 76
Karma: 928
Join Date: Jul 2008
Location: Down Under
Device: Kobo eReader
Could this be it? As far as i can tell i'm at the correct line.

<span class="calibre3"><u class="calibre4">[1]</u></span></p><div class="calibre2"></div>

Last edited by Bismar; 05-27-2010 at 05:27 AM.
Bismar is offline   Reply With Quote
Old 05-27-2010, 07:32 AM   #687
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,194
Karma: 317184274
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Bismar View Post
Could this be it? As far as i can tell i'm at the correct line.

<span class="calibre3"><u class="calibre4">[1]</u></span></p><div class="calibre2"></div>
Yes, that's the line. ePub is based on XHTML 1.1.
http://www.w3.org/TR/xhtml11/

the underline <u> tag was deprecated in XHTML 1.0 Transitional, and removed from XHTML 1.0 Strict and XHTML 1.1

Try changing
<u class="calibre4">[1]</u>
to
<span class="calibre 4" style="text-decoration:underline">....</span>
pdurrant is offline   Reply With Quote
Old 05-27-2010, 04:27 PM   #688
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by pdurrant View Post
Try changing
<u class="calibre4">[1]</u>
to
<span class="calibre 4" style="text-decoration:underline">....</span>
Or better still, convert it to a hyperlinked reference and you will get the "underline" for free.

(Aside: I personally would avoid using underlines for emphasis as they are too easily confused with hyperlinked text [and one would expect to see/use hyperlinks within XHTML documents.]

Nothing more frustrating than trying to "tap" a decorative underline.. )
nrapallo is offline   Reply With Quote
Old 05-29-2010, 12:23 AM   #689
Bismar
Connoisseur
Bismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-booksBismar has learned how to read e-books
 
Posts: 76
Karma: 928
Join Date: Jul 2008
Location: Down Under
Device: Kobo eReader
Seems that the latest version of calibre fixed this. Thanks anyway
Bismar is offline   Reply With Quote
Old 05-30-2010, 03:32 AM   #690
blueresistance
Junior Member
blueresistance began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2010
Location: Türkiye/Mersin
Device: Reeder
pdf to epub character encoding problem

hello to all,
I am new at this forum and I have a question,
I loaded Calibre yesterday , I try to convert pdf to epub but Turkish characters don't display correctly.I asked this question to them and they sent me here


''I'm new at Calibre, I convert pdf to epub but Turkish chracters don't display correctly, I write at Input character encoding as UTF-8 but it doesn't effect. What can I do for proper display of Turkish chracters?''

''-You have to embed the correct fonts in the epub. AT the moment calibre does not support font embedding, so you have to do it by hand. See the epub forum in mobileread.com for help''

How can I embed characters by hand?
Thanks
blueresistance 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 08:27 AM.


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