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 01-28-2021, 09:49 AM   #1
ignosticism
Junior Member
ignosticism began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2021
Device: none
Unhappy Epub to PDF Issue: text lines cut in half (Chinese font vertical-rl script)

Hello!

Hopefully someone can provide some pointers how to fix this. I tried several different settings for Epub->PDF conversion after reading dozens of threads here, but still have the same issue no matter the font size/margins etc.

What could be causing the vertical chinese line to be cut through at the page break??
Any help is highly appreciated...

-------------------------------

I have attached a screenshot and the test epub file (screenshot is of page 6, body text. Images , Chapter page and TOC render just fine)

--------------------
Here is my latest conversion log for a test file i created (just changed the font type and size, other settings were default):

Spoiler:


"Convert book 1 of 1 (14000k_aside_seperate_footnote)
Failed to initialize plugin: 'C:\\Users\\Kamil\\AppData\\Roaming\\calibre\\plug ins\\KFX Input.zip'
Conversion options changed from defaults:
pdf_mono_font_size: 14
read_metadata_from_opf: 'C:\\Users\\Kamil\\AppData\\Local\\Temp\\calibre_8 rq8g8fj\\xul9_s1s.opf'
pdf_use_document_margins: True
pdf_default_font_size: 16
pdf_sans_family: 'Arial'
pdf_serif_family: 'Arial'
cover: 'C:\\Users\\Kamil\\AppData\\Local\\Temp\\calibre_8 rq8g8fj\\aqahuo_r.jpeg'
output_profile: 'tablet'
paper_size: 'b5'
verbose: 2
Resolved conversion options
calibre version: 5.8.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': 'C:\\Users\\Kamil\\AppData\\Local\\Temp\\calibre_8 rq8g8fj\\aqahuo_r.jpeg',
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'filter_css': '',
'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 0x00000243E8A13640>,
'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,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x00000243E8A13F10>,
'page_breaks_before': '/',
'paper_size': 'b5',
'pdf_add_toc': False,
'pdf_default_font_size': 16,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_hyphenate': False,
'pdf_mark_links': False,
'pdf_mono_family': 'Courier',
'pdf_mono_font_size': 14,
'pdf_odd_even_offset': 0.0,
'pdf_page_margin_bottom': 72.0,
'pdf_page_margin_left': 72.0,
'pdf_page_margin_right': 72.0,
'pdf_page_margin_top': 72.0,
'pdf_page_number_map': None,
'pdf_page_numbers': False,
'pdf_sans_family': 'Arial',
'pdf_serif_family': 'Arial',
'pdf_standard_font': 'serif',
'pdf_use_document_margins': True,
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\Kamil\\AppData\\Local\\Temp\\calibre_8 rq8g8fj\\xul9_s1s.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': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'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,
'transform_css_rules': '[]',
'uncompressed_pdf': False,
'unit': 'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\Kamil\AppData\Local\Temp\calibre_8rq8g8fj \uxfi1uvm.epub
Parsing all content...
Parsing OEBPS/Styles/sgc-nav.css ...
PropertyValue: No match: ('CHAR', ':', 33, 12)
PropertyValue: Unknown syntax or no value: none
text-align: center
CSSStyleDeclaration: Syntax Error in Property: text-decoration: none
text-align: center
Parsing OEBPS/Styles/ebookstyle.css ...
Parsing OEBPS/Text/Ch01_01.xhtml ...
Parsing OEBPS/Text/nav.xhtml ...
Parsing OEBPS/Styles/ebookstyle-hzt.css ...
Parsing OEBPS/Text/Part1_img01.xhtml ...
Parsing OEBPS/Text/Ch01.xhtml ...
Parsing OEBPS/Text/TOC.xhtml ...
Parsing OEBPS/Text/Part1_img02.xhtml ...
Parsing OEBPS/Text/Ch01_img01.xhtml ...
Parsing OEBPS/Styles/sgc-toc.css ...
Referenced file 'OEBPS/Images/img_01_01.jpg' not found
Referenced file 'OEBPS/Images/img_01_05.jpg' not found
Referenced file 'OEBPS/Text/Ch12.xhtml' not found
Referenced file 'OEBPS/Text/Ackn01.xhtml' not found
Referenced file 'OEBPS/Text/Ch08.xhtml' not found
Referenced file 'OEBPS/Images/img_01_03.jpg' not found
Referenced file 'OEBPS/Text/cover.xhtml' not found
Referenced file 'OEBPS/Text/Ch04.xhtml' not found
Referenced file 'OEBPS/Images/img_01_02.jpg' not found
Referenced file 'OEBPS/Text/License.xhtml' not found
Referenced file 'OEBPS/Text/Ch15.xhtml' not found
Referenced file 'OEBPS/Images/img_01_06.jpg' not found
Referenced file 'OEBPS/Images/img_01_07.jpg' not found
Referenced file 'OEBPS/Text/Ch13.xhtml' not found
Referenced file 'OEBPS/Text/Ch11.xhtml' not found
Referenced file 'OEBPS/Text/Part2_img1.xhtml' not found
Referenced file 'OEBPS/Text/Ch03.xhtml' not found
Referenced file 'OEBPS/Text/Ch02.xhtml' not found
Referenced file 'OEBPS/Text/Part3_img1.xhtml' not found
Referenced file 'OEBPS/Text/Ch14.xhtml' not found
Referenced file 'OEBPS/Images/img_01_04.jpg' not found
Referenced file 'OEBPS/Text/Ch16.xhtml' not found
Referenced file 'OEBPS/Text/Ch09.xhtml' not found
Referenced file 'OEBPS/Text/Ch10.xhtml' not found
Referenced file 'OEBPS/Text/Part4_img1.xhtml' not found
Referenced file 'OEBPS/Text/Ch06.xhtml' not found
Referenced file 'OEBPS/Text/Ch07.xhtml' not found
Referenced file 'OEBPS/Text/Ch05.xhtml' not found
Reading TOC from NCX...
TOC reference 'OEBPS/Text/cover.xhtml#sigil_toc_id_cover' not found
TOC reference 'OEBPS/Text/Ch02.xhtml#sigil_toc_id_2' not found
TOC reference 'OEBPS/Text/Ch03.xhtml#sigil_toc_id_3' not found
TOC reference 'OEBPS/Text/Ch04.xhtml#sigil_toc_id_4' not found
TOC reference 'OEBPS/Text/Part2_img1.xhtml' not found
TOC reference 'OEBPS/Text/Ch05.xhtml#sigil_toc_id_5' not found
TOC reference 'OEBPS/Text/Ch06.xhtml#sigil_toc_id_6' not found
TOC reference 'OEBPS/Text/Ch07.xhtml#sigil_toc_id_7' not found
TOC reference 'OEBPS/Text/Ch08.xhtml#sigil_toc_id_8' not found
TOC reference 'OEBPS/Text/Part3_img1.xhtml' not found
TOC reference 'OEBPS/Text/Ch09.xhtml#sigil_toc_id_9' not found
TOC reference 'OEBPS/Text/Ch10.xhtml#sigil_toc_id_10' not found
TOC reference 'OEBPS/Text/Ch11.xhtml#sigil_toc_id_11' not found
TOC reference 'OEBPS/Text/Ch12.xhtml#sigil_toc_id_12' not found
TOC reference 'OEBPS/Text/Part4_img1.xhtml' not found
TOC reference 'OEBPS/Text/Ch13.xhtml#sigil_toc_id_13' not found
TOC reference 'OEBPS/Text/Ch14.xhtml#sigil_toc_id_14' not found
TOC reference 'OEBPS/Text/Ch15.xhtml#sigil_toc_id_15' not found
TOC reference 'OEBPS/Text/Ch16.xhtml#sigil_toc_id_16' not found
TOC reference 'OEBPS/Text/Ackn01.xhtml' not found
TOC reference 'OEBPS/Text/License.xhtml' not found
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 26 items of level: div_1
Found 34 items of level: p_1
Found 7 items of level: div_2
Found 7 items of level: p_2
Ignoring level p_2
div_1 left margin stats: Counter({'': 1})
div_1 right margin stats: Counter({'': 1})
p_1 left margin stats: Counter({'0': 34})
p_1 right margin stats: Counter({'0': 34})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'OEBPS/Images/14000k_pin.JPG' from manifest
Trimming 'OEBPS/Images/img_00_01.jpg' from manifest
Creating PDF Output...
Converting input as a text based book...
Removed 1 unused fonts
Merged 2 instances of PMingLiU reducing size from 313 KB to 202.1 KB
Merged 2 instances of Arial-BoldMT reducing size from 14.8 KB to 8.7 KB
Merged 12 instances of ArialMT reducing size from 113.7 KB to 21.8 KB
Merged 2 instances of Arial-ItalicMT reducing size from 11.4 KB to 5.4 KB
Merged 8 instances of SimSun reducing size from 1.1 MB to 382.4 KB
Removed 21 duplicated Type3 glyphs
PDF output written to C:\Users\Kamil\AppData\Local\Temp\calibre_8rq8g8fj \idl_ezk9.pdf
"
Attached Thumbnails
Click image for larger version

Name:	pdf issue2.JPG
Views:	135
Size:	117.4 KB
ID:	185030  
Attached Files
File Type: epub mobileread.epub (777.2 KB, 139 views)

Last edited by theducks; 01-28-2021 at 12:02 PM. Reason: spoilered
ignosticism is offline   Reply With Quote
Old 01-28-2021, 10:21 AM   #2
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,963
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That looks like a bug in chromium as far as I can tell. That's what calibre uses to render HTML to PDF.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-28-2021, 10:31 AM   #3
ignosticism
Junior Member
ignosticism began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2021
Device: none
Thanks for the swift reply!

Do you know of any other options worth trying to convert this type of script into PDF ?
ignosticism is offline   Reply With Quote
Old 01-28-2021, 10:43 AM   #4
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,963
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you can try calibre v 5.6 it uses an earlier build of chromium before it switched to harfbuzz for font positioning, it might not have this issue.
kovidgoyal is offline   Reply With Quote
Old 01-28-2021, 11:17 AM   #5
ignosticism
Junior Member
ignosticism began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2021
Device: none
thank you, i'll give this a go tomorrow
ignosticism is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any Chinese vertical text ePub 3 samples? Nil Einne ePub 2 08-05-2022 12:10 PM
some bulleted text cut off when converting epub to pdf Swifty4635 Conversion 10 06-05-2022 08:32 PM
Libra Text with side-loaded font cut off at the bottom in vertical layout (synched KePub) kch Kobo Reader 0 01-17-2021 08:30 PM
Which ereader should I get? [Chinese ePub/vertical text] lilly456 Which one should I buy? 7 04-07-2018 11:56 AM
pdf to epub - blank lines between text ? Vortex Conversion 2 06-13-2014 01:03 PM


All times are GMT -4. The time now is 04:34 PM.


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