Add dc:subject metadata to EPUB output.

This commit is contained in:
Michael R Sweet 2018-10-02 11:35:12 -04:00
parent 3aaa12c7d7
commit f634350601
No known key found for this signature in database
GPG Key ID: 999559A027815955
3 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,8 @@
---
title: Mini-XML API Reference
author: Michael R Sweet
copyright: Copyright © 2003-2017, All Rights Reserved.
docversion: 2.11
copyright: Copyright © 2003-2018, All Rights Reserved.
docversion: 2.12
...
# Introduction

View File

@ -1,4 +1,4 @@
.TH mxml 3 "Mini-XML API" "10/01/18" "Mini-XML API"
.TH mxml 3 "Mini-XML API" "10/02/18" "Mini-XML API"
.SH NAME
mxml \- Mini-XML API
.SH INCLUDE FILE

View File

@ -4036,6 +4036,9 @@ write_epub(const char *epubfile, /* I - EPUB file (output) */
temp = mxmlNewElement(metadata, "dc:publisher");
mxmlNewOpaque(temp, "mxmldoc");
temp = mxmlNewElement(metadata, "dc:subject");
mxmlNewOpaque(temp, "Programming");
temp = mxmlNewElement(metadata, "dc:identifier");
mxmlElementSetAttr(temp, "id", epubbase);
snprintf(identifier, sizeof(identifier), "%s-%s", epubbase, docversion);