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 03-16-2018, 06:40 PM   #1
skb
Evangelist
skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.
 
skb's Avatar
 
Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
HTML to ePub - including comments in meta tags?

Just what it says on the tin.

When I convert HTML to epub via Calibre I include:
Code:
<meta name="author" content="John Doe">
to get the author's name field, but it'd be awesome if there was a meta tag for comments so that'd populate that meta data when I import the HTML file.

Is this possible? Does my question even make sense?

Thanks!
skb is offline   Reply With Quote
Old 03-16-2018, 07:12 PM   #2
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: 21,658
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@skb - try 'description', that's the DC tag for what calibre calls 'comments'.

BR
BetterRed is offline   Reply With Quote
Advert
Old 03-17-2018, 01:47 AM   #3
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: 45,246
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THe list is here: https://www.mobileread.com/forums/sh...44&postcount=9
kovidgoyal is offline   Reply With Quote
Old 03-17-2018, 03:18 AM   #4
skb
Evangelist
skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.
 
skb's Avatar
 
Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
Thanks BR & Kovid!

So close. I can't get Calibre to use the Description (I tried all three).

On the bright side, I am getting the published date to work.

I've attached my test crash dummy HTML (as a TXT file, because I can't attach HTML to a post, apparently).

Am I doing something wrong?

Edited: Oh snap. When I view the txt file it has stripped out the HTML. Sigh.

How about this:

Spoiler:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="John Doe">
<meta name="DC.description" content="Sed at sapien tempus, facilisis justo ac, tristique tortor. Quisque leo erat, laoreet in erat in, iaculis vulputate eros." />
<meta name="DC.date.published" content="2000-01-01" />
<title>Boing</title>
</head>

<body>

  <p>In sodales lectus at cursus lacinia. Integer porttitor metus sit amet aliquet porta. Sed at sapien tempus, facilisis justo ac, tristique tortor. Quisque leo erat, laoreet in erat in, iaculis vulputate eros. Ut quis orci eu ipsum ullamcorper vestibulum. Proin malesuada nunc eu varius pulvinar. Nam elementum dictum massa placerat pretium. Nullam neque ante, faucibus non vulputate quis, suscipit gravida enim.</p>
  <p>Donec dolor lorem, volutpat quis tellus in, congue efficitur purus. Proin accumsan, dolor ut porta vulputate, mi ipsum luctus ipsum, eget viverra risus elit nec neque. In ac ex libero. Nam facilisis mauris risus, at placerat augue mattis a. Fusce cursus est in blandit faucibus. Mauris ut leo purus. Sed non tempor metus. Duis et eros blandit lorem posuere iaculis at ac turpis. Maecenas porta volutpat ex, sed vehicula risus finibus quis. Vivamus elit sapien, tristique et leo vel, gravida maximus enim. Cras varius suscipit odio, id venenatis eros euismod sed. Etiam finibus augue sit amet dapibus posuere. Sed sed velit arcu. Maecenas in lorem aliquet, rhoncus augue vitae, aliquet mauris. Nullam volutpat venenatis lectus ac condimentum. Cras neque diam, faucibus non maximus sit amet, laoreet aliquam ante.</p>


</body>
</html>
Attached Files
File Type: txt Untitled-661.txt (2.8 KB, 188 views)

Last edited by skb; 03-17-2018 at 03:20 AM.
skb is offline   Reply With Quote
Old 03-17-2018, 04:34 AM   #5
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: 45,246
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try

Code:
<meta name="comments" value="xxx">
kovidgoyal is offline   Reply With Quote
Advert
Old 03-17-2018, 05:00 PM   #6
skb
Evangelist
skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.
 
skb's Avatar
 
Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
Thanks Kovid, but it didn't work either.

I must be doing something wrong.
skb is offline   Reply With Quote
Old 03-17-2018, 11:46 PM   #7
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: 45,246
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me with:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="John Doe">
<meta name="dc.description" content="Sed at sapien tempus, facilisis justo ac, tristique tortor. Quisque leo erat, laoreet in erat in, iaculis vulputate eros." />
<meta name="DC.date.published" content="2000-01-01" />
<title>Boing</title>
</head>

<body>

  <p>In sodales lectus at cursus lacinia. Integer porttitor metus sit amet aliquet porta. Sed at sapien tempus, facilisis justo ac, tristique tortor. Quisque leo erat, laoreet in erat in, iaculis vulputate eros. Ut quis orci eu ipsum ullamcorper vestibulum. Proin malesuada nunc eu varius pulvinar. Nam elementum dictum massa placerat pretium. Nullam neque ante, faucibus non vulputate quis, suscipit gravida enim.</p>
  <p>Donec dolor lorem, volutpat quis tellus in, congue efficitur purus. Proin accumsan, dolor ut porta vulputate, mi ipsum luctus ipsum, eget viverra risus elit nec neque. In ac ex libero. Nam facilisis mauris risus, at placerat augue mattis a. Fusce cursus est in blandit faucibus. Mauris ut leo purus. Sed non tempor metus. Duis et eros blandit lorem posuere iaculis at ac turpis. Maecenas porta volutpat ex, sed vehicula risus finibus quis. Vivamus elit sapien, tristique et leo vel, gravida maximus enim. Cras varius suscipit odio, id venenatis eros euismod sed. Etiam finibus augue sit amet dapibus posuere. Sed sed velit arcu. Maecenas in lorem aliquet, rhoncus augue vitae, aliquet mauris. Nullam volutpat venenatis lectus ac condimentum. Cras neque diam, faucibus non maximus sit amet, laoreet aliquam ante.</p>
Code:
ebook-meta file.html
Title               : Boing
Author(s)           : John Doe
Published           : 1999-12-31T18:30:00+00:00
Comments            : Sed at sapien tempus, facilisis justo ac, tristique tortor. Quisque leo erat, laoreet in erat in, iaculis vulputate eros.
kovidgoyal is offline   Reply With Quote
Old 03-18-2018, 09:01 PM   #8
skb
Evangelist
skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.
 
skb's Avatar
 
Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
Thanks again, Kovid.

I have got to be doing something wrong.

I checked my preferences:

Adding Books: "Read metadata from file contents rather than file name" is checked (I didn't even know it was there).

I'm not sure where I'm going wrong.
skb is offline   Reply With Quote
Old 05-05-2018, 07:16 PM   #9
skb
Evangelist
skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.
 
skb's Avatar
 
Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
I was doing something wrong!

My DocType was XHTML 1.0 Transitional (what the??) for some reason. So I tried HTML 4.01 Transitional and walla!

I am ridiculously excited by this discovery.

Thanks again Kovid and BR.
skb is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add HTML with meta tags Pixelmagic Calibre 9 04-19-2020 05:47 PM
Searching in comments for html-tags Kuhnke Calibre 1 05-23-2017 09:33 PM
HTML Calibre META tag reference - tags recognized / used? MrWarper Conversion 2 07-11-2012 09:54 PM
Read Meta-Tags out of EPUB-Files Eternico Calibre 0 08-17-2011 10:37 AM
epub-meta tags JeffElkins Calibre 2 10-17-2008 04:04 PM


All times are GMT -4. The time now is 09:29 PM.


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