I am trying to use Markdown-tagged TXT files (.MD) as input to Calibre. These I want to convert, ultimately to Kindle PW3, but I'll settle for ePub. The problem I'm having is that the metadata in the .MD doesn't seem to be reading into Calibre properly.
My desired outcome is to (1) populate the Calibre metadata fields with the values in the .MD, and (2) be able to include metadata values in the converted ePub. Neither of which seem to be working.
Here is my test-flow...
I created a TEST.MD file containing the following 9 lines (copied from the Metadata Extension doc):
Title: My Document
Summary: A brief description of my document.
Authors: Waylan Limberg
John Doe
Date: October 2, 2007
blank-value:
base_url: http://example.com
<blank line>
This is the first paragraph of the document.
Calibre Preference settings:
[Preferences - Input Options - TXT Input -]
Paragraph Style: auto
Formatting Style: markdown
Markdown - Meta: checked
all other options: unchecked
[Preferences - Common Options - Structure Detection -]
Insert Metadata as page at start of book: checked
[Preferences - Adding Books - The Add Process -]
Read Metadata from File Contents rather than file name: checked
Procedure:
1) restarted Calibre (to be sure settings "took")
2) 'Calibre - Add Books' for the TEST.MD file
3) I note: at this point, Calibre metadata fields contain all default values. They were not automatically changed by the 'Add Book' (would have been nice).
4) In Calibre, I set Author, Tags, and Publisher metadata values to the word 'test'.
5) 'Calibre - Edit Metadata' (clicking the MD format, then clicking the 'Set metadata for the book from the selected format' icon).
6) Calibre metadata values do not change to those in TEST.MD.
7) 'Calibre - Convert Books' (MD to EPUB).
8) I note: The in-file metadata lines are NOT included in the ePub as text/paragraphs (this implies that they were actually recognized as something special).
9) I note: NO 'Insert Metadata as page at start of book' page was created in the ePub (this should have worked regardless of the metadata values).
10) 'Calibre - Convert Books' (MD to MOBI).
11) Same results as the ePub, except a final blank page was included (as viewed with the Calibre viewer).
Any idea what I might be missing?
Calibre 2.70[64 bit] / Win7
My desired outcome is to (1) populate the Calibre metadata fields with the values in the .MD, and (2) be able to include metadata values in the converted ePub. Neither of which seem to be working.
Here is my test-flow...
I created a TEST.MD file containing the following 9 lines (copied from the Metadata Extension doc):
Title: My Document
Summary: A brief description of my document.
Authors: Waylan Limberg
John Doe
Date: October 2, 2007
blank-value:
base_url: http://example.com
<blank line>
This is the first paragraph of the document.
Calibre Preference settings:
[Preferences - Input Options - TXT Input -]
Paragraph Style: auto
Formatting Style: markdown
Markdown - Meta: checked
all other options: unchecked
[Preferences - Common Options - Structure Detection -]
Insert Metadata as page at start of book: checked
[Preferences - Adding Books - The Add Process -]
Read Metadata from File Contents rather than file name: checked
Procedure:
1) restarted Calibre (to be sure settings "took")
2) 'Calibre - Add Books' for the TEST.MD file
3) I note: at this point, Calibre metadata fields contain all default values. They were not automatically changed by the 'Add Book' (would have been nice).
4) In Calibre, I set Author, Tags, and Publisher metadata values to the word 'test'.
5) 'Calibre - Edit Metadata' (clicking the MD format, then clicking the 'Set metadata for the book from the selected format' icon).
6) Calibre metadata values do not change to those in TEST.MD.
7) 'Calibre - Convert Books' (MD to EPUB).
8) I note: The in-file metadata lines are NOT included in the ePub as text/paragraphs (this implies that they were actually recognized as something special).
9) I note: NO 'Insert Metadata as page at start of book' page was created in the ePub (this should have worked regardless of the metadata values).
10) 'Calibre - Convert Books' (MD to MOBI).
11) Same results as the ePub, except a final blank page was included (as viewed with the Calibre viewer).
Any idea what I might be missing?
Calibre 2.70[64 bit] / Win7