Bugs item #3541319, was opened at 2012-07-07 23:33
Message generated for change (Comment added) made by bobstayton
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3541319&group_id=21935
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: ePub
Group: output: ePub
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: compagnon (ccomp)
>Assigned to: Robert Stayton (bobstayton)
Summary: epub3: wrong format of dates in package.opf
Initial Comment:
Hello !
In the package.opf (epub3), I can see the following date :
<meta property="dcterms:date">01/05/2010</meta>
from http://www.w3.org/TR/NOTE-datetime, the date should be <meta property="dcterms:date">2010-01-05</meta>
Thanks and regards
----------------------------------------------------------------------
>Comment By: Robert Stayton (bobstayton)
Date: 2012-10-26 15:35
Message:
I added a test to the templates processing date and pubdate elements to
check the format of the element's date string. Now it warns when the date
format does not match one of YYYY, YYYY-MM or YYYY-MM-DD. It is not
feasible to convert every possible date string into this format (Europeans
and Americans reverse the positions of month and day, for example).
----------------------------------------------------------------------
Comment By: Robert Stayton (bobstayton)
Date: 2012-07-10 00:35
Message:
The epub3 stylesheet currently just copies the content of any text in a
info/date or info/pubdate element in the document. Work was started on a
utility template named 'format.meta.date' in epub3/epub3-element-mods.xsl
that would convert any date to the proper format, but that turned out to be
a complicated problem for the general case, because there are lots of ways
to represent dates. The current workaround it to put the proper format in
your document's date or pubdate element.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3541319&group_id=21935
|