mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25:30 +00:00
Add dc:subject metadata to EPUB output.
This commit is contained in:
parent
3aaa12c7d7
commit
f634350601
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user