Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2015, 04:25 PM   #1
Reptile Smile
Junior Member
Reptile Smile began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: none
Strange first line in Mobi file - everything else fine

Hi all,

My source document is created in OpenOffice as an ODT file. I then convert in Calibre to a Mobi.

I've used style sheets throughout. The first page is a dedication page, so that particular style ash a large margin above it (I used a similar technique with other styles).

The first page ignores the style command (though it looks fine in the ODT file), and just puts the text at the top of the page.

Subsequent styles (chapter beginnings, etc) work fine, and have a gap above them - it's just the first page that doesn't do what I want. Any ideas what it might be?

Cheers
Reptile Smile is offline   Reply With Quote
Old 06-02-2015, 05:10 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
https://www.mobileread.com/forums/sho...d.php?t=186697

Show me the CODES
theducks is offline   Reply With Quote
Old 06-02-2015, 05:30 PM   #3
Reptile Smile
Junior Member
Reptile Smile began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: none
Apols

______________________________
Log file
______________________________
Spoiler:
Code:
Convert book 1 of 1 (temp file for Mobile Reads)
Resolved conversion options
calibre version: 2.29.0
{'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(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': u'',
 'fix_indents': True,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x032F0EF0>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 '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,
 'markup_chapter_headings': True,
 'max_toc_links': 50,
 'minimum_line_height': 120.0,
 'mobi_file_type': u'old',
 'mobi_ignore_margins': False,
 'mobi_keep_original_images': False,
 'mobi_toc_at_start': False,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'no_inline_toc': False,
 'output_profile': <calibre.customize.profiles.GenericEink object at 0x0232B110>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'personal_doc': u'[PDOC]',
 'prefer_author_sort': False,
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\Ian\\AppData\\Local\\Temp\\calibre_dhwmbz\\5nig3m.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'share_not_sync': False,
 'smarten_punctuation': False,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'start_reading_at': None,
 'subset_embedded_fonts': False,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: ODT Input running
on C:\Users\Ian\AppData\Local\Temp\calibre_dhwmbz\sr7nnm.odt
Extracting ODT file...
Parsing all content...
Parsing index.xhtml ...
Parsing odfpy.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 5 items of level: p_1
Ignoring level p_1
Cleaning up manifest...
Trimming unused files from manifest...
Creating MOBI Output...
Serializing resources...
Creating MOBI 6 output
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
  Compressing markup content...
No TOC, MOBI index not generated
MOBI output written to C:\Users\Ian\AppData\Local\Temp\calibre_dhwmbz\rlkzg2.mobi

__________________________________________________ _______

Can't attach an ODT file, but it's this: https://www.dropbox.com/s/oef5ioy9ur...forth.odt?dl=0
Attached Files
File Type: mobi temp file for Mobile Reads - Ian Garforth.mobi (9.6 KB, 111 views)

Last edited by PeterT; 06-02-2015 at 05:41 PM. Reason: Wrap log in tags
Reptile Smile is offline   Reply With Quote
Old 06-02-2015, 05:52 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Reptile Smile - Try saving the file as DOCX, calibre does a better job of converting DOCX than it does ODT - see What are the best source formats to convert?

You also can import the DOCX directly into the calibre book editor, which should preserve style names, then you could do any fine tuning on the layout using the editor, and convert the resultant EPUB to MOBI.

BR

Last edited by BetterRed; 06-02-2015 at 05:54 PM.
BetterRed is offline   Reply With Quote
Old 06-03-2015, 03:48 AM   #5
Reptile Smile
Junior Member
Reptile Smile began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: none
Just tried it. Docx produces exactly the same issue.
Reptile Smile is offline   Reply With Quote
Old 06-03-2015, 04:47 AM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Reptile Smile View Post
Just tried it. Docx produces exactly the same issue.
To get further help you should read and comply with this ==>> How to ask a question about conversion problems. That's a sticky thread at the top of the Conversion subforum.

BR

Last edited by BetterRed; 06-03-2015 at 04:58 AM.
BetterRed is offline   Reply With Quote
Old 06-03-2015, 06:34 AM   #7
Reptile Smile
Junior Member
Reptile Smile began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: none
Ah - I thought that's what I'd done in my second post?
Reptile Smile is offline   Reply With Quote
Old 06-03-2015, 06:37 AM   #8
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont convert to MOBI, MOBI has very limited styling support and is obsolete. Convert to AZW3.
kovidgoyal is online now   Reply With Quote
Old 06-03-2015, 09:37 AM   #9
Reptile Smile
Junior Member
Reptile Smile began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2015
Device: none
But then I can't transfer the azw3 file to the kindle reading app on my iPad, as far as I understand it..? And now, it isn't showing any of the margins above paragraphs...
Reptile Smile is offline   Reply With Quote
Old 06-03-2015, 05:17 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Reptile Smile View Post
Ah - I thought that's what I'd done in my second post?
sorry about that, cross post because I didn't refresh after an interrupt

Why don't you try importing the DOCX into the calibre editor and then look at the EPUB it creates. If it exhibits the same behaviour then there'll be some markup code to tweak, and that will probably lead to discovering what needs to be done in Writer.

BR

Last edited by BetterRed; 06-03-2015 at 05:27 PM.
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC fine in Epub but not in Mobi Talis Conversion 0 12-13-2014 04:29 AM
Insert a cover in a MOBI file - Mobi or Epub as default file ? myki Library Management 12 06-27-2014 05:55 PM
Recipe works fine with EPUB output, but not with MOBI Rackamouth Recipes 1 07-12-2013 10:48 PM
Line spacing disappearing in .mobi file John123 Workshop 6 12-15-2012 08:39 AM
Uncracking .mobi for fine-tuning twedigteam Kindle Formats 2 01-21-2011 07:44 PM


All times are GMT -4. The time now is 10:57 PM.


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