Field "Comments" are lost when converting epub to fb2

Bug #1815357 reported by Elisaveta on 2019-02-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

calibre_3.39.1 for Linux
Field "Comments" in metadata (without **)
<div><b>Change is only 50 minutes away! Find out everything you need to know about dealing with depression with this straightforward guide.</b><br>Depression can affect anyone, regardless of their age, gender or circumstances. For sufferers, it can feel like there is no way out, but it is important to know that you are not alone. From therapy to antidepressants to alternative treatments, there are a range of approaches that can help you to recover and prevent a relapse.<br><b><i><br>In just 50 minutes you will be able to:</i></b><br><li> Find out about the different treatments available for depression and choose the right one for you<br></li><li> Take positive steps to improve your mental health and guard against a relapse<br></li><li> Support a loved one who is suffering from depression<br><b>ABOUT 50MINUTES.COM | HEALTH AND WELLBEING </b><br>The Health and Wellbeing series from the 50Minutes collection is perfect for anyone looking to be healthier and happier in their personal life. Our guides...</li></div>

Conversion job details
Convert book 1 of 1 (Break Free of Your Depression)
Conversion options changed from defaults:
  format_scene_breaks: False
  output_profile: 'generic_eink'
  unwrap_lines: False
  verbose: 2
  italicize_common_cases: False
  dehyphenate: False
  cover: u'/tmp/calibre_3.39.1_tmp_oChopT/V95OFM.jpeg'
  read_metadata_from_opf: u'/tmp/calibre_3.39.1_tmp_oChopT/ytWjDl.opf'
  fix_indents: False
Resolved conversion options
calibre version: 3.39.1
{'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': u'/tmp/calibre_3.39.1_tmp_oChopT/V95OFM.jpeg',
 'debug_pipeline': None,
 'dehyphenate': False,
 '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,
 'fb2_genre': u'antique',
 'filter_css': u'',
 'fix_indents': False,
 'font_size_mapping': None,
 'format_scene_breaks': False,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x7f730bdb6850>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': False,
 '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.GenericEink object at 0x7f730bdb6c50>,
 'page_breaks_before': u'/',
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'/tmp/calibre_3.39.1_tmp_oChopT/ytWjDl.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': '[]',
 'sectionize': u'files',
 '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,
 'transform_css_rules': '[]',
 'unsmarten_punctuation': False,
 'unwrap_lines': False,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: EPUB Input running
on /tmp/calibre_3.39.1_tmp_oChopT/9kjUi4.epub
Parsing all content...
Parsing OEBPS/Text/output-1-1.xhtml ...
Parsing OEBPS/Text/output-1.xhtml ...
Parsing OEBPS/Text/output-1-3.xhtml ...
Parsing OEBPS/Text/output-1-7.xhtml ...
Parsing OEBPS/Text/output-1-6.xhtml ...
Parsing OEBPS/Text/output-1-4.xhtml ...
Parsing OEBPS/Styles/styles.css ...
Parsing OEBPS/Text/output-1-5.xhtml ...
Parsing OEBPS/Text/output-1-2.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 9.60000pt
Removing fake margins...
Found 17 items of level: div_1
Found 84 items of level: p_2
Found 8 items of level: div_3
Found 17 items of level: div_2
Found 17 items of level: p_4
Ignoring level div_3
Ignoring level p_4
div_1 left margin stats: Counter({u'': 6})
div_1 right margin stats: Counter({u'': 6})
p_2 left margin stats: Counter({u'0': 81, u'2em': 3})
p_2 right margin stats: Counter({u'0': 84})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Creating FB2 Output...
Rasterizing SVG images...
Converting XHTML to FB2 markup...
Converting OEBPS/Text/output-1.xhtml to FictionBook2 XML
Converting OEBPS/Text/output-1-1.xhtml to FictionBook2 XML
Converting OEBPS/Text/output-1-2.xhtml to FictionBook2 XML
Converting OEBPS/Text/output-1-3.xhtml to FictionBook2 XML
Converting OEBPS/Text/output-1-4.xhtml to FictionBook2 XML
Converting OEBPS/Text/output-1-5.xhtml to FictionBook2 XML
Converting OEBPS/Text/output-1-6.xhtml to FictionBook2 XML
Converting OEBPS/Text/output-1-7.xhtml to FictionBook2 XML
FB2 output written to /tmp/calibre_3.39.1_tmp_oChopT/kpG4p8.fb2

Are you see this " 'comments': None, "?
But comments present on the conversion form, look on this print-screen:

Elisaveta (lizaveta100477) wrote :

temporary solution: 'insert_metadata': True,

but before (in v. 3.28 for sure) the field "comment" passed correctly in the annotation of fb2

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers