![]() |
#676 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#677 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#678 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#679 |
Member
![]() Posts: 17
Karma: 10
Join Date: Dec 2009
Location: Oslo, Norway
Device: Nook
|
|
![]() |
![]() |
![]() |
#680 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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} |
![]() |
![]() |
Advert | |
|
![]() |
#681 | |
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:
That's the extent of my knowledge in this area. I'll be lurking hoping to learn something. Good Luck! |
|
![]() |
![]() |
![]() |
#682 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,484
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#683 |
Junior Member
![]() 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?
|
![]() |
![]() |
![]() |
#684 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#685 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,194
Karma: 317184274
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
#686 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#687 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,194
Karma: 317184274
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
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> |
|
![]() |
![]() |
![]() |
#688 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() (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.] ![]() ![]() |
|
![]() |
![]() |
![]() |
#689 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
![]() |
![]() |
![]() |
![]() |
#690 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |