# Indents
---indent=tab=4
+--indent=force-tab=4
# Switch statements
# Use astyle
.PHONY : astyle
astyle:
- astyle --options=.astylerc "Sources/libMultiMarkdown/*.c" "Sources/multimarkdown/*.c" "Sources/libMultiMarkdown/*.h"
+ astyle --options=.astylerc "Sources/libMultiMarkdown/*.c" "Sources/multimarkdown/*.c" "Sources/libMultiMarkdown/*.h" "Sources/libMultiMarkdown/include/*.h"
// Prepare children
for (int i = 0; i < 256; ++i) {
if ((n->child[i] != 0) &&
- (n->child[i] != s)) {
+ (n->child[i] != s)) {
buffer[depth] = i;
ac_trie_node_prepare(a, n->child[i], buffer, depth + 1, last_match_state);
}
m = match_add(m, counter - a->node[temp_state].len,
- a->node[temp_state].len, a->node[temp_state].match_type);
+ a->node[temp_state].len, a->node[temp_state].match_type);
}
// Iterate to find shorter matches
void match_describe(match * m, const char * source) {
fprintf(stderr, "'%.*s'(%d) at %lu:%lu\n", (int)m->len, &source[m->start],
- m->match_type, m->start, m->start + m->len);
+ m->match_type, m->start, m->start + m->len);
}
}
while (m->next &&
- m->next->start > m->start &&
- m->next->start < m->start + m->len) {
+ m->next->start > m->start &&
+ m->next->start < m->start + m->len) {
// This match is "lefter" than next
match_excise(m->next);
}
while (m->next &&
- m->next->start < m->start) {
+ m->next->start < m->start) {
// Next match is "lefter" than us
n = m;
m = m->prev;
}
while (m->prev &&
- m->prev->len &&
- m->prev->start >= m->start) {
+ m->prev->len &&
+ m->prev->start >= m->start) {
// We are "lefter" than previous
n = m->prev;
match_excise(n);
if (start + len > d->currentStringLength) {
fprintf(stderr, "d_string: Asked to copy invalid substring range.\n");
fprintf(stderr, "start: %lu len: %lu string: %lu\n", start, len,
- d->currentStringLength);
+ d->currentStringLength);
return NULL;
}
}
struct tm * today = localtime(&t);
d_string_append_printf(out, "<meta property=\"dcterms:modified\">%d-%02d-%02d</meta>\n",
- today->tm_year + 1900, today->tm_mon + 1, today->tm_mday);
+ today->tm_year + 1900, today->tm_mon + 1, today->tm_mday);
}
d_string_append(out, "</metadata>\n");
temp_token = t->next->child;
if (temp_token->next &&
- temp_token->next->type == PAIR_BRACKET) {
+ temp_token->next->type == PAIR_BRACKET) {
temp_token = temp_token->next;
}
case ESCAPED_CHARACTER:
if (!(scratch->extensions & EXT_COMPATIBILITY) &&
- (source[t->start + 1] == ' ')) {
+ (source[t->start + 1] == ' ')) {
print_const(" "); // This is a non-breaking space character
} else {
mmd_print_char_odf(out, source[t->start + 1]);
case PAIR_BRACKET:
if ((scratch->extensions & EXT_NOTES) &&
- (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
+ (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
goto parse_citation;
}
temp_token = t->next;
if (temp_token &&
- ((temp_token->type == PAIR_BRACKET) ||
- (temp_token->type == PAIR_PAREN))) {
+ ((temp_token->type == PAIR_BRACKET) ||
+ (temp_token->type == PAIR_PAREN))) {
temp_token = temp_token->next;
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
break;
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
mmd_export_token_tree_odf(out, source, t->child, scratch);
case PAIR_CRITIC_SUB_DEL:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->next) &&
- (t->next->type == PAIR_CRITIC_SUB_ADD)) {
+ (t->next) &&
+ (t->next->type == PAIR_CRITIC_SUB_ADD)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
case PAIR_CRITIC_SUB_ADD:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->prev) &&
- (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
+ (t->prev) &&
+ (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
void mmd_start_complete_odf(DString * out, const char * source, scratch_pad * scratch) {
print_const("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" \
- "<office:document xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\"\n" \
- " xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\n" \
- " xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\n" \
- " xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\n" \
- " xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\n" \
- " xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\n" \
- " xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" \
- " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" \
- " xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\n" \
- " xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\n" \
- " xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\n" \
- " xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\n" \
- " xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\n" \
- " xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\n" \
- " xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\n" \
- " xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\n" \
- " xmlns:config=\"urn:oasis:names:tc:opendocument:xmlns:config:1.0\"\n" \
- " xmlns:ooo=\"http://openoffice.org/2004/office\"\n" \
- " xmlns:ooow=\"http://openoffice.org/2004/writer\"\n" \
- " xmlns:oooc=\"http://openoffice.org/2004/calc\"\n" \
- " xmlns:dom=\"http://www.w3.org/2001/xml-events\"\n" \
- " xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n" \
- " xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n" \
- " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" \
- " xmlns:rpt=\"http://openoffice.org/2005/report\"\n" \
- " xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\n" \
- " xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n" \
- " xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\n" \
- " xmlns:tableooo=\"http://openoffice.org/2009/table\"\n" \
- " xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\n" \
- " xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\n" \
- " xmlns:css3t=\"http://www.w3.org/TR/css3-text/\"\n" \
- " office:version=\"1.2\"\n" \
- " grddl:transformation=\"http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl\"\n" \
- " office:mimetype=\"application/vnd.oasis.opendocument.text\">\n");
+ "<office:document xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\"\n" \
+ " xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\n" \
+ " xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\n" \
+ " xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\n" \
+ " xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\n" \
+ " xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\n" \
+ " xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" \
+ " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" \
+ " xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\n" \
+ " xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\n" \
+ " xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\n" \
+ " xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\n" \
+ " xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\n" \
+ " xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\n" \
+ " xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\n" \
+ " xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\n" \
+ " xmlns:config=\"urn:oasis:names:tc:opendocument:xmlns:config:1.0\"\n" \
+ " xmlns:ooo=\"http://openoffice.org/2004/office\"\n" \
+ " xmlns:ooow=\"http://openoffice.org/2004/writer\"\n" \
+ " xmlns:oooc=\"http://openoffice.org/2004/calc\"\n" \
+ " xmlns:dom=\"http://www.w3.org/2001/xml-events\"\n" \
+ " xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n" \
+ " xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n" \
+ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" \
+ " xmlns:rpt=\"http://openoffice.org/2005/report\"\n" \
+ " xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\n" \
+ " xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n" \
+ " xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\n" \
+ " xmlns:tableooo=\"http://openoffice.org/2009/table\"\n" \
+ " xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\n" \
+ " xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\n" \
+ " xmlns:css3t=\"http://www.w3.org/TR/css3-text/\"\n" \
+ " office:version=\"1.2\"\n" \
+ " grddl:transformation=\"http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl\"\n" \
+ " office:mimetype=\"application/vnd.oasis.opendocument.text\">\n");
/* Font Declarations */
print_const("<office:font-face-decls>\n" \
- " <style:font-face style:name=\"Courier New\" svg:font-family=\"'Courier New'\"\n" \
- " style:font-adornments=\"Regular\"\n" \
- " style:font-family-generic=\"modern\"\n" \
- " style:font-pitch=\"fixed\"/>\n" \
- "</office:font-face-decls>\n");
+ " <style:font-face style:name=\"Courier New\" svg:font-family=\"'Courier New'\"\n" \
+ " style:font-adornments=\"Regular\"\n" \
+ " style:font-family-generic=\"modern\"\n" \
+ " style:font-pitch=\"fixed\"/>\n" \
+ "</office:font-face-decls>\n");
/* Append basic style information */
print_const("<office:styles>\n" \
- "<style:style style:name=\"Standard\" style:family=\"paragraph\" style:class=\"text\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.15in\"" \
- " fo:text-align=\"justify\" style:justify-single-word=\"false\"/>\n" \
- " </style:style>\n" \
- "<style:style style:name=\"Preformatted_20_Text\" style:display-name=\"Preformatted Text\"\n" \
- " style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"html\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0in\" fo:text-align=\"start\"\n" \
- " style:justify-single-word=\"false\"/>\n" \
- " <style:text-properties style:font-name=\"Courier New\" fo:font-size=\"11pt\"\n" \
- " style:font-name-asian=\"Courier New\"\n" \
- " style:font-size-asian=\"11pt\"\n" \
- " style:font-name-complex=\"Courier New\"\n" \
- " style:font-size-complex=\"11pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Source_20_Text\" style:display-name=\"Source Text\"\n" \
- " style:family=\"text\">\n" \
- " <style:text-properties style:font-name=\"Courier New\" style:font-name-asian=\"Courier New\"\n" \
- " style:font-name-complex=\"Courier New\"\n" \
- " fo:font-size=\"11pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"List\" style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"list\">\n" \
- " <style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
- " <style:text-properties style:font-size-asian=\"12pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Quotations\" style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"html\">\n" \
- " <style:paragraph-properties fo:margin-left=\"0.3937in\" fo:margin-right=\"0.3937in\" fo:margin-top=\"0in\"\n" \
- " fo:margin-bottom=\"0.1965in\"\n" \
- " fo:text-align=\"justify\"" \
- " style:justify-single-word=\"false\"" \
- " fo:text-indent=\"0in\"\n" \
- " style:auto-text-indent=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Table_20_Heading\" style:display-name=\"Table Heading\"\n" \
- " style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Table_20_Contents\"\n" \
- " style:class=\"extra\">\n" \
- " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"\n" \
- " text:number-lines=\"false\"\n" \
- " text:line-number=\"0\"/>\n" \
- " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
- " style:font-weight-complex=\"bold\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Horizontal_20_Line\" style:display-name=\"Horizontal Line\"\n" \
- " style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"html\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.1965in\"\n" \
- " style:border-line-width-bottom=\"0.0008in 0.0138in 0.0008in\"\n" \
- " fo:padding=\"0in\"\n" \
- " fo:border-left=\"none\"\n" \
- " fo:border-right=\"none\"\n" \
- " fo:border-top=\"none\"\n" \
- " fo:border-bottom=\"0.0154in double #808080\"\n" \
- " text:number-lines=\"false\"\n" \
- " text:line-number=\"0\"\n" \
- " style:join-border=\"false\"/>\n" \
- " <style:text-properties fo:font-size=\"6pt\" style:font-size-asian=\"6pt\" style:font-size-complex=\"6pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Footnote_20_anchor\" style:display-name=\"Footnote anchor\"" \
- " style:family=\"text\">" \
- " <style:text-properties style:text-position=\"super 58%\"/>" \
- " </style:style>\n" \
- "<style:style style:name=\"TOC_Item\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
- " <style:paragraph-properties>\n" \
- " <style:tab-stops>\n" \
- " <style:tab-stop style:position=\"6.7283in\" style:type=\"right\" style:leader-style=\"dotted\" style:leader-text=\".\"/>\n" \
- " </style:tab-stops>\n" \
- " </style:paragraph-properties>\n" \
- "</style:style>\n" \
- " <text:notes-configuration text:note-class=\"footnote\" text:default-style-name=\"Footnote\" text:citation-style-name=\"Footnote_20_Symbol\" text:citation-body-style-name=\"Footnote_20_anchor\" text:master-page-name=\"Footnote\" style:num-format=\"a\" text:start-value=\"0\" text:footnotes-position=\"page\" text:start-numbering-at=\"page\"/>\n" \
- " <text:notes-configuration text:note-class=\"endnote\" text:default-style-name=\"Endnote\" text:citation-style-name=\"Endnote_20_Symbol\" text:citation-body-style-name=\"Endnote_20_anchor\" text:master-page-name=\"Endnote\" style:num-format=\"1\" text:start-value=\"0\"/>\n" \
- "</office:styles>\n");
+ "<style:style style:name=\"Standard\" style:family=\"paragraph\" style:class=\"text\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.15in\"" \
+ " fo:text-align=\"justify\" style:justify-single-word=\"false\"/>\n" \
+ " </style:style>\n" \
+ "<style:style style:name=\"Preformatted_20_Text\" style:display-name=\"Preformatted Text\"\n" \
+ " style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"html\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0in\" fo:text-align=\"start\"\n" \
+ " style:justify-single-word=\"false\"/>\n" \
+ " <style:text-properties style:font-name=\"Courier New\" fo:font-size=\"11pt\"\n" \
+ " style:font-name-asian=\"Courier New\"\n" \
+ " style:font-size-asian=\"11pt\"\n" \
+ " style:font-name-complex=\"Courier New\"\n" \
+ " style:font-size-complex=\"11pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Source_20_Text\" style:display-name=\"Source Text\"\n" \
+ " style:family=\"text\">\n" \
+ " <style:text-properties style:font-name=\"Courier New\" style:font-name-asian=\"Courier New\"\n" \
+ " style:font-name-complex=\"Courier New\"\n" \
+ " fo:font-size=\"11pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"List\" style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"list\">\n" \
+ " <style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
+ " <style:text-properties style:font-size-asian=\"12pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Quotations\" style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"html\">\n" \
+ " <style:paragraph-properties fo:margin-left=\"0.3937in\" fo:margin-right=\"0.3937in\" fo:margin-top=\"0in\"\n" \
+ " fo:margin-bottom=\"0.1965in\"\n" \
+ " fo:text-align=\"justify\"" \
+ " style:justify-single-word=\"false\"" \
+ " fo:text-indent=\"0in\"\n" \
+ " style:auto-text-indent=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Table_20_Heading\" style:display-name=\"Table Heading\"\n" \
+ " style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Table_20_Contents\"\n" \
+ " style:class=\"extra\">\n" \
+ " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"\n" \
+ " text:number-lines=\"false\"\n" \
+ " text:line-number=\"0\"/>\n" \
+ " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
+ " style:font-weight-complex=\"bold\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Horizontal_20_Line\" style:display-name=\"Horizontal Line\"\n" \
+ " style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"html\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.1965in\"\n" \
+ " style:border-line-width-bottom=\"0.0008in 0.0138in 0.0008in\"\n" \
+ " fo:padding=\"0in\"\n" \
+ " fo:border-left=\"none\"\n" \
+ " fo:border-right=\"none\"\n" \
+ " fo:border-top=\"none\"\n" \
+ " fo:border-bottom=\"0.0154in double #808080\"\n" \
+ " text:number-lines=\"false\"\n" \
+ " text:line-number=\"0\"\n" \
+ " style:join-border=\"false\"/>\n" \
+ " <style:text-properties fo:font-size=\"6pt\" style:font-size-asian=\"6pt\" style:font-size-complex=\"6pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Footnote_20_anchor\" style:display-name=\"Footnote anchor\"" \
+ " style:family=\"text\">" \
+ " <style:text-properties style:text-position=\"super 58%\"/>" \
+ " </style:style>\n" \
+ "<style:style style:name=\"TOC_Item\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
+ " <style:paragraph-properties>\n" \
+ " <style:tab-stops>\n" \
+ " <style:tab-stop style:position=\"6.7283in\" style:type=\"right\" style:leader-style=\"dotted\" style:leader-text=\".\"/>\n" \
+ " </style:tab-stops>\n" \
+ " </style:paragraph-properties>\n" \
+ "</style:style>\n" \
+ " <text:notes-configuration text:note-class=\"footnote\" text:default-style-name=\"Footnote\" text:citation-style-name=\"Footnote_20_Symbol\" text:citation-body-style-name=\"Footnote_20_anchor\" text:master-page-name=\"Footnote\" style:num-format=\"a\" text:start-value=\"0\" text:footnotes-position=\"page\" text:start-numbering-at=\"page\"/>\n" \
+ " <text:notes-configuration text:note-class=\"endnote\" text:default-style-name=\"Endnote\" text:citation-style-name=\"Endnote_20_Symbol\" text:citation-body-style-name=\"Endnote_20_anchor\" text:master-page-name=\"Endnote\" style:num-format=\"1\" text:start-value=\"0\"/>\n" \
+ "</office:styles>\n");
/* Automatic style information */
print_const("<office:automatic-styles>" \
- " <style:style style:name=\"MMD-Italic\" style:family=\"text\">\n" \
- " <style:text-properties fo:font-style=\"italic\" style:font-style-asian=\"italic\"\n" \
- " style:font-style-complex=\"italic\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"MMD-Bold\" style:family=\"text\">\n" \
- " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
- " style:font-weight-complex=\"bold\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"MMD-Superscript\" style:family=\"text\">\n" \
- " <style:text-properties style:text-position=\"super 58%\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"MMD-Subscript\" style:family=\"text\">\n" \
- " <style:text-properties style:text-position=\"sub 58%\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Strike\" style:family=\"text\">\n" \
- " <style:text-properties style:text-line-through-style=\"solid\" />\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Underline\" style:family=\"text\">\n" \
- " <style:text-properties style:text-underline-style=\"solid\" style:text-underline-color=\"font-color\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Highlight\" style:family=\"text\">\n" \
- " <style:text-properties fo:background-color=\"#FFFF00\" />\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Comment\" style:family=\"text\">\n" \
- " <style:text-properties fo:color=\"#0000BB\" />\n" \
- " </style:style>\n" \
- "<style:style style:name=\"MMD-Table\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.05in\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"MMD-Table-Center\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
- " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"MMD-Table-Right\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
- " <style:paragraph-properties fo:text-align=\"right\" style:justify-single-word=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"P2\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
- " style:list-style-name=\"L2\">\n" \
- "<style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"fr1\" style:family=\"graphic\" style:parent-style-name=\"Frame\">\n" \
- " <style:graphic-properties style:print-content=\"true\" style:vertical-pos=\"top\"\n" \
- " style:vertical-rel=\"baseline\"\n" \
- " fo:padding=\"0in\"\n" \
- " fo:border=\"none\"\n" \
- " style:shadow=\"none\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"P1\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
- " style:list-style-name=\"L1\"/>\n" \
- "<text:list-style style:name=\"L1\">\n" \
- " <text:list-level-style-bullet text:level=\"1\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"•\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-bullet>\n" \
- " <text:list-level-style-bullet text:level=\"2\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"◦\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-bullet>\n" \
- " <text:list-level-style-bullet text:level=\"3\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"▪\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-bullet>\n" \
- " <text:list-level-style-number text:level=\"4\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"5\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"6\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"7\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"8\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"9\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"10\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- "</text:list-style>\n" \
- "<text:list-style style:name=\"L2\">\n" \
- " <text:list-level-style-number text:level=\"1\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"2\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"3\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"4\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"5\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"6\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"7\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"8\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"9\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"10\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- "</text:list-style>\n" \
- "</office:automatic-styles>\n" \
- " <office:master-styles>\n" \
- " <style:master-page style:name=\"Endnote\" >\n" \
- " <style:header><text:h text:outline-level=\"2\">Bibliography</text:h></style:header></style:master-page>\n" \
- " <style:master-page style:name=\"Footnote\" style:page-layout-name=\"pm2\"/>\n" \
- " </office:master-styles>\n");
+ " <style:style style:name=\"MMD-Italic\" style:family=\"text\">\n" \
+ " <style:text-properties fo:font-style=\"italic\" style:font-style-asian=\"italic\"\n" \
+ " style:font-style-complex=\"italic\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"MMD-Bold\" style:family=\"text\">\n" \
+ " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
+ " style:font-weight-complex=\"bold\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"MMD-Superscript\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-position=\"super 58%\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"MMD-Subscript\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-position=\"sub 58%\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Strike\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-line-through-style=\"solid\" />\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Underline\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-underline-style=\"solid\" style:text-underline-color=\"font-color\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Highlight\" style:family=\"text\">\n" \
+ " <style:text-properties fo:background-color=\"#FFFF00\" />\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Comment\" style:family=\"text\">\n" \
+ " <style:text-properties fo:color=\"#0000BB\" />\n" \
+ " </style:style>\n" \
+ "<style:style style:name=\"MMD-Table\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.05in\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"MMD-Table-Center\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
+ " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"MMD-Table-Right\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
+ " <style:paragraph-properties fo:text-align=\"right\" style:justify-single-word=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"P2\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
+ " style:list-style-name=\"L2\">\n" \
+ "<style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"fr1\" style:family=\"graphic\" style:parent-style-name=\"Frame\">\n" \
+ " <style:graphic-properties style:print-content=\"true\" style:vertical-pos=\"top\"\n" \
+ " style:vertical-rel=\"baseline\"\n" \
+ " fo:padding=\"0in\"\n" \
+ " fo:border=\"none\"\n" \
+ " style:shadow=\"none\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"P1\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
+ " style:list-style-name=\"L1\"/>\n" \
+ "<text:list-style style:name=\"L1\">\n" \
+ " <text:list-level-style-bullet text:level=\"1\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"•\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-bullet>\n" \
+ " <text:list-level-style-bullet text:level=\"2\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"◦\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-bullet>\n" \
+ " <text:list-level-style-bullet text:level=\"3\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"▪\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-bullet>\n" \
+ " <text:list-level-style-number text:level=\"4\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"5\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"6\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"7\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"8\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"9\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"10\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ "</text:list-style>\n" \
+ "<text:list-style style:name=\"L2\">\n" \
+ " <text:list-level-style-number text:level=\"1\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"2\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"3\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"4\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"5\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"6\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"7\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"8\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"9\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"10\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ "</text:list-style>\n" \
+ "</office:automatic-styles>\n" \
+ " <office:master-styles>\n" \
+ " <style:master-page style:name=\"Endnote\" >\n" \
+ " <style:header><text:h text:outline-level=\"2\">Bibliography</text:h></style:header></style:master-page>\n" \
+ " <style:master-page style:name=\"Footnote\" style:page-layout-name=\"pm2\"/>\n" \
+ " </office:master-styles>\n");
// Iterate over metadata keys
meta * m;
temp_token = t->next->child;
if (temp_token->next &&
- temp_token->next->type == PAIR_BRACKET) {
+ temp_token->next->type == PAIR_BRACKET) {
temp_token = temp_token->next;
}
case ESCAPED_CHARACTER:
if (!(scratch->extensions & EXT_COMPATIBILITY) &&
- (source[t->start + 1] == ' ')) {
+ (source[t->start + 1] == ' ')) {
print_const(" ");
} else {
mmd_print_char_html(out, source[t->start + 1], false);
case PAIR_BRACKET:
if ((scratch->extensions & EXT_NOTES) &&
- (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
+ (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
goto parse_citation;
}
temp_token = t->next;
if (temp_token &&
- ((temp_token->type == PAIR_BRACKET) ||
- (temp_token->type == PAIR_PAREN))) {
+ ((temp_token->type == PAIR_BRACKET) ||
+ (temp_token->type == PAIR_PAREN))) {
temp_token = temp_token->next;
}
if (temp_short2 == scratch->used_citations->size) {
// This is a re-use of a previously used note
printf("<a href=\"#cn:%d\" title=\"%s\" class=\"citation\">(%d)</a>",
- temp_short, LC("see citation"), temp_short);
+ temp_short, LC("see citation"), temp_short);
} else {
// This is the first time this note was used
printf("<a href=\"#cn:%d\" id=\"cnref:%d\" title=\"%s\" class=\"citation\">(%d)</a>",
- temp_short, temp_short, LC("see citation"), temp_short);
+ temp_short, temp_short, LC("see citation"), temp_short);
}
} else {
// Locator present
if (temp_short2 == scratch->used_citations->size) {
// This is a re-use of a previously used note
printf("<a href=\"#cn:%d\" title=\"%s\" class=\"citation\">(%s, %d)</a>",
- temp_short, LC("see citation"), temp_char, temp_short);
+ temp_short, LC("see citation"), temp_char, temp_short);
} else {
// This is the first time this note was used
printf("<a href=\"#cn:%d\" id=\"cnref:%d\" title=\"%s\" class=\"citation\">(%s, %d)</a>",
- temp_short, temp_short, LC("see citation"), temp_char, temp_short);
+ temp_short, temp_short, LC("see citation"), temp_char, temp_short);
}
}
} else {
}
printf("<a href=\"#fn:%d\" title=\"%s\" class=\"footnote\"><sup>%d</sup></a>",
- temp_short3, LC("see footnote"), temp_short);
+ temp_short3, LC("see footnote"), temp_short);
} else {
// This is the first time this note was used
}
printf("<a href=\"#fn:%d\" id=\"fnref:%d\" title=\"%s\" class=\"footnote\"><sup>%d</sup></a>",
- temp_short3, temp_short3, LC("see footnote"), temp_short);
+ temp_short3, temp_short3, LC("see footnote"), temp_short);
}
} else {
// Note-based syntax disabled
// This is a re-use of a previously used note
printf("<a href=\"#gn:%d\" title=\"%s\" class=\"glossary\">",
- temp_short, LC("see glossary"));
+ temp_short, LC("see glossary"));
mmd_print_string_html(out, temp_note->clean_text, false);
print_const("</a>");
} else {
printf("<a href=\"#gn:%d\" id=\"gnref:%d\" title=\"%s\" class=\"glossary\">",
- temp_short, temp_short, LC("see glossary"));
+ temp_short, temp_short, LC("see glossary"));
mmd_print_string_html(out, temp_note->clean_text, false);
print_const("</a>");
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
break;
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
mmd_export_token_tree_html(out, source, t->child, scratch);
case PAIR_CRITIC_SUB_DEL:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->next) &&
- (t->next->type == PAIR_CRITIC_SUB_ADD)) {
+ (t->next) &&
+ (t->next->type == PAIR_CRITIC_SUB_ADD)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
case PAIR_CRITIC_SUB_ADD:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->prev) &&
- (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
+ (t->prev) &&
+ (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
temp_token = t->next->child;
if (temp_token->next &&
- temp_token->next->type == PAIR_BRACKET) {
+ temp_token->next->type == PAIR_BRACKET) {
temp_token = temp_token->next;
}
case ESCAPED_CHARACTER:
if (!(scratch->extensions & EXT_COMPATIBILITY) &&
- (source[t->start + 1] == ' ')) {
+ (source[t->start + 1] == ' ')) {
print_const("~");
} else {
mmd_print_char_latex(out, source[t->start + 1]);
case PAIR_BRACKET:
if ((scratch->extensions & EXT_NOTES) &&
- (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
+ (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
goto parse_citation;
}
temp_token = t->next;
if (temp_token &&
- ((temp_token->type == PAIR_BRACKET) ||
- (temp_token->type == PAIR_PAREN))) {
+ ((temp_token->type == PAIR_BRACKET) ||
+ (temp_token->type == PAIR_PAREN))) {
temp_token = temp_token->next;
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
break;
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
mmd_export_token_tree_latex(out, source, t->child, scratch);
case PAIR_CRITIC_SUB_DEL:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->next) &&
- (t->next->type == PAIR_CRITIC_SUB_ADD)) {
+ (t->next) &&
+ (t->next->type == PAIR_CRITIC_SUB_ADD)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
case PAIR_CRITIC_SUB_ADD:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->prev) &&
- (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
+ (t->prev) &&
+ (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
/// Scan for the next token
int scan(
- Scanner * s, //!< Pointer to Scanner state structure
- const char * stop //!< Pointer to position in string at which to stop parsing
+ Scanner * s, //!< Pointer to Scanner state structure
+ const char * stop //!< Pointer to position in string at which to stop parsing
);
// Strip trailing '#' sequence if present
if (line->child->tail->type == TEXT_NL) {
if ((line->child->tail->prev->type >= HASH1) &&
- (line->child->tail->prev->type <= HASH6)) {
+ (line->child->tail->prev->type <= HASH6)) {
line->child->tail->prev->type -= HASH1;
line->child->tail->prev->type += MARKER_H1;
}
} else {
if ((line->child->tail->type >= HASH1) &&
- (line->child->tail->type <= HASH6)) {
+ (line->child->tail->type <= HASH6)) {
line->child->tail->type -= TEXT_EMPTY;
line->child->tail->type += MARKER_H1;
}
t = first_child;
while (t->next && ((t->next->type == INDENT_SPACE) ||
- (t->next->type == INDENT_TAB) ||
- (t->next->type == NON_INDENT_SPACE))) {
+ (t->next->type == INDENT_TAB) ||
+ (t->next->type == NON_INDENT_SPACE))) {
tokens_prune(t->next, t->next);
}
t = first_child;
while (t->next && ((t->next->type == INDENT_SPACE) ||
- (t->next->type == INDENT_TAB) ||
- (t->next->type == NON_INDENT_SPACE))) {
+ (t->next->type == INDENT_TAB) ||
+ (t->next->type == NON_INDENT_SPACE))) {
tokens_prune(t->next, t->next);
}
}
if ((line->type == LINE_PLAIN) &&
- !(e->extensions & EXT_COMPATIBILITY)) {
+ !(e->extensions & EXT_COMPATIBILITY)) {
// Check if this is a potential table line
token * walker = first_child;
// Do we treat this like metadata?
if (!(e->extensions & EXT_COMPATIBILITY) &&
- !(e->extensions & EXT_NO_METADATA)) {
+ !(e->extensions & EXT_NO_METADATA)) {
break;
}
offset = t->start;
if (!((offset == 0) ||
- (char_is_whitespace_or_line_ending_or_punctuation(str[offset - 1])) ||
- (char_is_whitespace_or_line_ending_or_punctuation(str[offset + 1])))) {
+ (char_is_whitespace_or_line_ending_or_punctuation(str[offset - 1])) ||
+ (char_is_whitespace_or_line_ending_or_punctuation(str[offset + 1])))) {
t->type = APOSTROPHE;
break;
}
if (offset && (char_is_punctuation(str[offset - 1])) &&
- (char_is_alphanumeric(str[offset + 1]))) {
+ (char_is_alphanumeric(str[offset + 1]))) {
// If possessive apostrophe, e.g. `x`'s
if (str[offset + 1] == 's' || str[offset + 1] == 'S') {
if (char_is_whitespace_or_line_ending_or_punctuation(str[offset + 2])) {
if (t->len == 1) {
// Check whether we have '1-2'
if ((offset == 0) || (!char_is_digit(str[offset - 1])) ||
- (!char_is_digit(str[offset + 1]))) {
+ (!char_is_digit(str[offset + 1]))) {
t->type = TEXT_PLAIN;
}
}
closer = t->mate;
if (t->next &&
- (t->next->mate == closer->prev) &&
- (t->type == t->next->type) &&
- (t->next->mate != t) &&
- (t->start + t->len == t->next->start) &&
- (closer->start == closer->prev->start + closer->prev->len)) {
+ (t->next->mate == closer->prev) &&
+ (t->type == t->next->type) &&
+ (t->next->mate != t) &&
+ (t->start + t->len == t->next->start) &&
+ (closer->start == closer->prev->start + closer->prev->len)) {
// We have a strong pair
t->type = STRONG_START;
/// Is this actually an HTML block?
void is_para_html(mmd_engine * e, token * block) {
if ((block == NULL) ||
- (block->child == NULL) ||
- (block->child->type != LINE_PLAIN)) {
+ (block->child == NULL) ||
+ (block->child->type != LINE_PLAIN)) {
return;
}
case LINE_SETEXT_1:
case LINE_SETEXT_2:
if ((block->type == BLOCK_SETEXT_1) ||
- (block->type == BLOCK_SETEXT_2)) {
+ (block->type == BLOCK_SETEXT_2)) {
temp = l->next;
tokens_prune(l, l);
l = temp;
// If we're not a code block, strip additional indents
if ((block->type != BLOCK_CODE_INDENTED) &&
- (block->type != BLOCK_CODE_FENCED)) {
+ (block->type != BLOCK_CODE_FENCED)) {
while (l->child && ((l->child->type == INDENT_SPACE) || (l->child->type == INDENT_TAB))) {
token_remove_first_child(l);
}
/// Allocate a new object pool
pool * pool_new(
- short size //!< How big are the objects to be allocated
+ short size //!< How big are the objects to be allocated
);
/// Free object pool
void pool_free(
- pool * p //!< Pool to be freed
+ pool * p //!< Pool to be freed
);
/// Drain pool -- free slabs previously allocated
void pool_drain(
- pool * p //!< Pool to be drained
+ pool * p //!< Pool to be drained
);
/// Request memory for a new object from the pool
void * pool_allocate_object(
- pool * p //!< Pool to be used for allocation
+ pool * p //!< Pool to be used for allocation
);
temp_token = t->next->child;
if (temp_token->next &&
- temp_token->next->type == PAIR_BRACKET) {
+ temp_token->next->type == PAIR_BRACKET) {
temp_token = temp_token->next;
}
case ESCAPED_CHARACTER:
if (!(scratch->extensions & EXT_COMPATIBILITY) &&
- (source[t->start + 1] == ' ')) {
+ (source[t->start + 1] == ' ')) {
print_const(" "); // This is a non-breaking space character
} else {
mmd_print_char_opendocument(out, source[t->start + 1]);
case PAIR_BRACKET:
if ((scratch->extensions & EXT_NOTES) &&
- (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
+ (t->next && t->next->type == PAIR_BRACKET_CITATION)) {
goto parse_citation;
}
temp_token = t->next;
if (temp_token &&
- ((temp_token->type == PAIR_BRACKET) ||
- (temp_token->type == PAIR_PAREN))) {
+ ((temp_token->type == PAIR_BRACKET) ||
+ (temp_token->type == PAIR_PAREN))) {
temp_token = temp_token->next;
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
break;
}
// Ignore if we're rejecting or accepting
if ((scratch->extensions & EXT_CRITIC_REJECT) ||
- (scratch->extensions & EXT_CRITIC_ACCEPT)) {
+ (scratch->extensions & EXT_CRITIC_ACCEPT)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
mmd_export_token_tree_opendocument(out, source, t->child, scratch);
case PAIR_CRITIC_SUB_DEL:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->next) &&
- (t->next->type == PAIR_CRITIC_SUB_ADD)) {
+ (t->next) &&
+ (t->next->type == PAIR_CRITIC_SUB_ADD)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
case PAIR_CRITIC_SUB_ADD:
if ((scratch->extensions & EXT_CRITIC) &&
- (t->prev) &&
- (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
+ (t->prev) &&
+ (t->prev->type == PAIR_CRITIC_SUB_DEL)) {
t->child->type = TEXT_EMPTY;
t->child->mate->type = TEXT_EMPTY;
/* Font Declarations */
print_const("<office:font-face-decls>\n" \
- " <style:font-face style:name=\"Courier New\" svg:font-family=\"'Courier New'\"\n" \
- " style:font-adornments=\"Regular\"\n" \
- " style:font-family-generic=\"modern\"\n" \
- " style:font-pitch=\"fixed\"/>\n" \
- "</office:font-face-decls>\n");
+ " <style:font-face style:name=\"Courier New\" svg:font-family=\"'Courier New'\"\n" \
+ " style:font-adornments=\"Regular\"\n" \
+ " style:font-family-generic=\"modern\"\n" \
+ " style:font-pitch=\"fixed\"/>\n" \
+ "</office:font-face-decls>\n");
/* Append basic style information */
print_const("<office:styles>\n" \
- "<style:style style:name=\"Standard\" style:family=\"paragraph\" style:class=\"text\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.15in\"" \
- " fo:text-align=\"justify\" style:justify-single-word=\"false\"/>\n" \
- " </style:style>\n" \
- "<style:style style:name=\"Preformatted_20_Text\" style:display-name=\"Preformatted Text\"\n" \
- " style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"html\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0in\" fo:text-align=\"start\"\n" \
- " style:justify-single-word=\"false\"/>\n" \
- " <style:text-properties style:font-name=\"Courier New\" fo:font-size=\"11pt\"\n" \
- " style:font-name-asian=\"Courier New\"\n" \
- " style:font-size-asian=\"11pt\"\n" \
- " style:font-name-complex=\"Courier New\"\n" \
- " style:font-size-complex=\"11pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Source_20_Text\" style:display-name=\"Source Text\"\n" \
- " style:family=\"text\">\n" \
- " <style:text-properties style:font-name=\"Courier New\" style:font-name-asian=\"Courier New\"\n" \
- " style:font-name-complex=\"Courier New\"\n" \
- " fo:font-size=\"11pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"List\" style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"list\">\n" \
- " <style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
- " <style:text-properties style:font-size-asian=\"12pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Quotations\" style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"html\">\n" \
- " <style:paragraph-properties fo:margin-left=\"0.3937in\" fo:margin-right=\"0.3937in\" fo:margin-top=\"0in\"\n" \
- " fo:margin-bottom=\"0.1965in\"\n" \
- " fo:text-align=\"justify\"" \
- " style:justify-single-word=\"false\"" \
- " fo:text-indent=\"0in\"\n" \
- " style:auto-text-indent=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Table_20_Heading\" style:display-name=\"Table Heading\"\n" \
- " style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Table_20_Contents\"\n" \
- " style:class=\"extra\">\n" \
- " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"\n" \
- " text:number-lines=\"false\"\n" \
- " text:line-number=\"0\"/>\n" \
- " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
- " style:font-weight-complex=\"bold\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Horizontal_20_Line\" style:display-name=\"Horizontal Line\"\n" \
- " style:family=\"paragraph\"\n" \
- " style:parent-style-name=\"Standard\"\n" \
- " style:class=\"html\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.1965in\"\n" \
- " style:border-line-width-bottom=\"0.0008in 0.0138in 0.0008in\"\n" \
- " fo:padding=\"0in\"\n" \
- " fo:border-left=\"none\"\n" \
- " fo:border-right=\"none\"\n" \
- " fo:border-top=\"none\"\n" \
- " fo:border-bottom=\"0.0154in double #808080\"\n" \
- " text:number-lines=\"false\"\n" \
- " text:line-number=\"0\"\n" \
- " style:join-border=\"false\"/>\n" \
- " <style:text-properties fo:font-size=\"6pt\" style:font-size-asian=\"6pt\" style:font-size-complex=\"6pt\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"Footnote_20_anchor\" style:display-name=\"Footnote anchor\"" \
- " style:family=\"text\">" \
- " <style:text-properties style:text-position=\"super 58%\"/>" \
- " </style:style>\n" \
- "<style:style style:name=\"TOC_Item\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
- " <style:paragraph-properties>\n" \
- " <style:tab-stops>\n" \
- " <style:tab-stop style:position=\"6.7283in\" style:type=\"right\" style:leader-style=\"dotted\" style:leader-text=\".\"/>\n" \
- " </style:tab-stops>\n" \
- " </style:paragraph-properties>\n" \
- "</style:style>\n" \
- " <text:notes-configuration text:note-class=\"footnote\" text:default-style-name=\"Footnote\" text:citation-style-name=\"Footnote_20_Symbol\" text:citation-body-style-name=\"Footnote_20_anchor\" text:master-page-name=\"Footnote\" style:num-format=\"a\" text:start-value=\"0\" text:footnotes-position=\"page\" text:start-numbering-at=\"page\"/>\n" \
- " <text:notes-configuration text:note-class=\"endnote\" text:default-style-name=\"Endnote\" text:citation-style-name=\"Endnote_20_Symbol\" text:citation-body-style-name=\"Endnote_20_anchor\" text:master-page-name=\"Endnote\" style:num-format=\"1\" text:start-value=\"0\"/>\n" \
- "</office:styles>\n");
+ "<style:style style:name=\"Standard\" style:family=\"paragraph\" style:class=\"text\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.15in\"" \
+ " fo:text-align=\"justify\" style:justify-single-word=\"false\"/>\n" \
+ " </style:style>\n" \
+ "<style:style style:name=\"Preformatted_20_Text\" style:display-name=\"Preformatted Text\"\n" \
+ " style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"html\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0in\" fo:text-align=\"start\"\n" \
+ " style:justify-single-word=\"false\"/>\n" \
+ " <style:text-properties style:font-name=\"Courier New\" fo:font-size=\"11pt\"\n" \
+ " style:font-name-asian=\"Courier New\"\n" \
+ " style:font-size-asian=\"11pt\"\n" \
+ " style:font-name-complex=\"Courier New\"\n" \
+ " style:font-size-complex=\"11pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Source_20_Text\" style:display-name=\"Source Text\"\n" \
+ " style:family=\"text\">\n" \
+ " <style:text-properties style:font-name=\"Courier New\" style:font-name-asian=\"Courier New\"\n" \
+ " style:font-name-complex=\"Courier New\"\n" \
+ " fo:font-size=\"11pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"List\" style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"list\">\n" \
+ " <style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
+ " <style:text-properties style:font-size-asian=\"12pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Quotations\" style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"html\">\n" \
+ " <style:paragraph-properties fo:margin-left=\"0.3937in\" fo:margin-right=\"0.3937in\" fo:margin-top=\"0in\"\n" \
+ " fo:margin-bottom=\"0.1965in\"\n" \
+ " fo:text-align=\"justify\"" \
+ " style:justify-single-word=\"false\"" \
+ " fo:text-indent=\"0in\"\n" \
+ " style:auto-text-indent=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Table_20_Heading\" style:display-name=\"Table Heading\"\n" \
+ " style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Table_20_Contents\"\n" \
+ " style:class=\"extra\">\n" \
+ " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"\n" \
+ " text:number-lines=\"false\"\n" \
+ " text:line-number=\"0\"/>\n" \
+ " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
+ " style:font-weight-complex=\"bold\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Horizontal_20_Line\" style:display-name=\"Horizontal Line\"\n" \
+ " style:family=\"paragraph\"\n" \
+ " style:parent-style-name=\"Standard\"\n" \
+ " style:class=\"html\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.1965in\"\n" \
+ " style:border-line-width-bottom=\"0.0008in 0.0138in 0.0008in\"\n" \
+ " fo:padding=\"0in\"\n" \
+ " fo:border-left=\"none\"\n" \
+ " fo:border-right=\"none\"\n" \
+ " fo:border-top=\"none\"\n" \
+ " fo:border-bottom=\"0.0154in double #808080\"\n" \
+ " text:number-lines=\"false\"\n" \
+ " text:line-number=\"0\"\n" \
+ " style:join-border=\"false\"/>\n" \
+ " <style:text-properties fo:font-size=\"6pt\" style:font-size-asian=\"6pt\" style:font-size-complex=\"6pt\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"Footnote_20_anchor\" style:display-name=\"Footnote anchor\"" \
+ " style:family=\"text\">" \
+ " <style:text-properties style:text-position=\"super 58%\"/>" \
+ " </style:style>\n" \
+ "<style:style style:name=\"TOC_Item\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
+ " <style:paragraph-properties>\n" \
+ " <style:tab-stops>\n" \
+ " <style:tab-stop style:position=\"6.7283in\" style:type=\"right\" style:leader-style=\"dotted\" style:leader-text=\".\"/>\n" \
+ " </style:tab-stops>\n" \
+ " </style:paragraph-properties>\n" \
+ "</style:style>\n" \
+ " <text:notes-configuration text:note-class=\"footnote\" text:default-style-name=\"Footnote\" text:citation-style-name=\"Footnote_20_Symbol\" text:citation-body-style-name=\"Footnote_20_anchor\" text:master-page-name=\"Footnote\" style:num-format=\"a\" text:start-value=\"0\" text:footnotes-position=\"page\" text:start-numbering-at=\"page\"/>\n" \
+ " <text:notes-configuration text:note-class=\"endnote\" text:default-style-name=\"Endnote\" text:citation-style-name=\"Endnote_20_Symbol\" text:citation-body-style-name=\"Endnote_20_anchor\" text:master-page-name=\"Endnote\" style:num-format=\"1\" text:start-value=\"0\"/>\n" \
+ "</office:styles>\n");
/* Automatic style information */
print_const("<office:automatic-styles>" \
- " <style:style style:name=\"MMD-Italic\" style:family=\"text\">\n" \
- " <style:text-properties fo:font-style=\"italic\" style:font-style-asian=\"italic\"\n" \
- " style:font-style-complex=\"italic\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"MMD-Bold\" style:family=\"text\">\n" \
- " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
- " style:font-weight-complex=\"bold\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"MMD-Superscript\" style:family=\"text\">\n" \
- " <style:text-properties style:text-position=\"super 58%\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"MMD-Subscript\" style:family=\"text\">\n" \
- " <style:text-properties style:text-position=\"sub 58%\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Strike\" style:family=\"text\">\n" \
- " <style:text-properties style:text-line-through-style=\"solid\" />\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Underline\" style:family=\"text\">\n" \
- " <style:text-properties style:text-underline-style=\"solid\" style:text-underline-color=\"font-color\"/>\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Highlight\" style:family=\"text\">\n" \
- " <style:text-properties fo:background-color=\"#FFFF00\" />\n" \
- " </style:style>\n" \
- " <style:style style:name=\"Comment\" style:family=\"text\">\n" \
- " <style:text-properties fo:color=\"#0000BB\" />\n" \
- " </style:style>\n" \
- "<style:style style:name=\"MMD-Table\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
- " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.05in\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"MMD-Table-Center\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
- " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"MMD-Table-Right\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
- " <style:paragraph-properties fo:text-align=\"right\" style:justify-single-word=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"P2\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
- " style:list-style-name=\"L2\">\n" \
- "<style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"fr1\" style:family=\"graphic\" style:parent-style-name=\"Frame\">\n" \
- " <style:graphic-properties style:print-content=\"true\" style:vertical-pos=\"top\"\n" \
- " style:vertical-rel=\"baseline\"\n" \
- " fo:padding=\"0in\"\n" \
- " fo:border=\"none\"\n" \
- " style:shadow=\"none\"/>\n" \
- "</style:style>\n" \
- "<style:style style:name=\"P1\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
- " style:list-style-name=\"L1\"/>\n" \
- "<text:list-style style:name=\"L1\">\n" \
- " <text:list-level-style-bullet text:level=\"1\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"•\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-bullet>\n" \
- " <text:list-level-style-bullet text:level=\"2\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"◦\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-bullet>\n" \
- " <text:list-level-style-bullet text:level=\"3\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"▪\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-bullet>\n" \
- " <text:list-level-style-number text:level=\"4\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"5\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"6\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"7\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"8\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"9\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"10\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- "</text:list-style>\n" \
- "<text:list-style style:name=\"L2\">\n" \
- " <text:list-level-style-number text:level=\"1\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"2\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"3\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"4\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"5\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"6\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"7\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"8\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"9\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- " <text:list-level-style-number text:level=\"10\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
- " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
- " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
- " </style:list-level-properties>\n" \
- " </text:list-level-style-number>\n" \
- "</text:list-style>\n" \
- "</office:automatic-styles>\n" \
- " <office:master-styles>\n" \
- " <style:master-page style:name=\"Endnote\" >\n" \
- " <style:header><text:h text:outline-level=\"2\">Bibliography</text:h></style:header></style:master-page>\n" \
- " <style:master-page style:name=\"Footnote\" style:page-layout-name=\"pm2\"/>\n" \
- " </office:master-styles>\n");
+ " <style:style style:name=\"MMD-Italic\" style:family=\"text\">\n" \
+ " <style:text-properties fo:font-style=\"italic\" style:font-style-asian=\"italic\"\n" \
+ " style:font-style-complex=\"italic\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"MMD-Bold\" style:family=\"text\">\n" \
+ " <style:text-properties fo:font-weight=\"bold\" style:font-weight-asian=\"bold\"\n" \
+ " style:font-weight-complex=\"bold\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"MMD-Superscript\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-position=\"super 58%\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"MMD-Subscript\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-position=\"sub 58%\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Strike\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-line-through-style=\"solid\" />\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Underline\" style:family=\"text\">\n" \
+ " <style:text-properties style:text-underline-style=\"solid\" style:text-underline-color=\"font-color\"/>\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Highlight\" style:family=\"text\">\n" \
+ " <style:text-properties fo:background-color=\"#FFFF00\" />\n" \
+ " </style:style>\n" \
+ " <style:style style:name=\"Comment\" style:family=\"text\">\n" \
+ " <style:text-properties fo:color=\"#0000BB\" />\n" \
+ " </style:style>\n" \
+ "<style:style style:name=\"MMD-Table\" style:family=\"paragraph\" style:parent-style-name=\"Standard\">\n" \
+ " <style:paragraph-properties fo:margin-top=\"0in\" fo:margin-bottom=\"0.05in\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"MMD-Table-Center\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
+ " <style:paragraph-properties fo:text-align=\"center\" style:justify-single-word=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"MMD-Table-Right\" style:family=\"paragraph\" style:parent-style-name=\"MMD-Table\">\n" \
+ " <style:paragraph-properties fo:text-align=\"right\" style:justify-single-word=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"P2\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
+ " style:list-style-name=\"L2\">\n" \
+ "<style:paragraph-properties fo:text-align=\"start\" style:justify-single-word=\"false\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"fr1\" style:family=\"graphic\" style:parent-style-name=\"Frame\">\n" \
+ " <style:graphic-properties style:print-content=\"true\" style:vertical-pos=\"top\"\n" \
+ " style:vertical-rel=\"baseline\"\n" \
+ " fo:padding=\"0in\"\n" \
+ " fo:border=\"none\"\n" \
+ " style:shadow=\"none\"/>\n" \
+ "</style:style>\n" \
+ "<style:style style:name=\"P1\" style:family=\"paragraph\" style:parent-style-name=\"Standard\"\n" \
+ " style:list-style-name=\"L1\"/>\n" \
+ "<text:list-style style:name=\"L1\">\n" \
+ " <text:list-level-style-bullet text:level=\"1\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"•\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-bullet>\n" \
+ " <text:list-level-style-bullet text:level=\"2\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"◦\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-bullet>\n" \
+ " <text:list-level-style-bullet text:level=\"3\" text:style-name=\"Numbering_20_Symbols\" style:num-suffix=\".\" text:bullet-char=\"▪\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-bullet>\n" \
+ " <text:list-level-style-number text:level=\"4\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"5\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"6\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"7\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"8\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"9\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"10\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ "</text:list-style>\n" \
+ "<text:list-style style:name=\"L2\">\n" \
+ " <text:list-level-style-number text:level=\"1\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"2\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"0.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"0.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"3\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"4\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"5\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"6\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"1.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"1.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"7\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"8\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.25in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.25in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"9\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.5in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.5in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ " <text:list-level-style-number text:level=\"10\" text:style-name=\"Standard\" style:num-suffix=\".\" style:num-format=\"1\">\n" \
+ " <style:list-level-properties text:list-level-position-and-space-mode=\"label-alignment\">\n" \
+ " <style:list-level-label-alignment text:label-followed-by=\"listtab\" text:list-tab-stop-position=\"2.75in\" fo:text-indent=\"-0.25in\" fo:margin-left=\"2.75in\"/>\n" \
+ " </style:list-level-properties>\n" \
+ " </text:list-level-style-number>\n" \
+ "</text:list-style>\n" \
+ "</office:automatic-styles>\n" \
+ " <office:master-styles>\n" \
+ " <style:master-page style:name=\"Endnote\" >\n" \
+ " <style:header><text:h text:outline-level=\"2\">Bibliography</text:h></style:header></style:master-page>\n" \
+ " <style:master-page style:name=\"Footnote\" style:page-layout-name=\"pm2\"/>\n" \
+ " </office:master-styles>\n");
char * result = out->str;
d_string_free(out, false);
d_string_append(out, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
print_const("<office:document-styles xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\"\n" \
- "xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\n" \
- "xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\n" \
- "xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\n" \
- "xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\n" \
- "xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\n" \
- "xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" \
- "xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" \
- "xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\n" \
- "xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\n" \
- "xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\n" \
- "xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\n" \
- "xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\n" \
- "xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\n" \
- "xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\n" \
- "xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\n" \
- "xmlns:ooo=\"http://openoffice.org/2004/office\"\n" \
- "xmlns:ooow=\"http://openoffice.org/2004/writer\"\n" \
- "xmlns:oooc=\"http://openoffice.org/2004/calc\"\n" \
- "xmlns:dom=\"http://www.w3.org/2001/xml-events\"\n" \
- "xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n" \
- "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n" \
- "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" \
- "xmlns:rpt=\"http://openoffice.org/2005/report\"\n" \
- "xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\n" \
- "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n" \
- "xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\n" \
- "xmlns:officeooo=\"http://openoffice.org/2009/office\"\n" \
- "xmlns:tableooo=\"http://openoffice.org/2009/table\"\n" \
- "xmlns:drawooo=\"http://openoffice.org/2010/draw\"\n" \
- "xmlns:calcext=\"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0\"\n" \
- "xmlns:loext=\"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0\"\n" \
- "xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\n" \
- "xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\n" \
- "xmlns:css3t=\"http://www.w3.org/TR/css3-text/\"\n" \
- "office:version=\"1.2\">\n");
+ "xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\n" \
+ "xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\n" \
+ "xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\n" \
+ "xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\n" \
+ "xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\n" \
+ "xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" \
+ "xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" \
+ "xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\n" \
+ "xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\n" \
+ "xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\n" \
+ "xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\n" \
+ "xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\n" \
+ "xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\n" \
+ "xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\n" \
+ "xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\n" \
+ "xmlns:ooo=\"http://openoffice.org/2004/office\"\n" \
+ "xmlns:ooow=\"http://openoffice.org/2004/writer\"\n" \
+ "xmlns:oooc=\"http://openoffice.org/2004/calc\"\n" \
+ "xmlns:dom=\"http://www.w3.org/2001/xml-events\"\n" \
+ "xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n" \
+ "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n" \
+ "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" \
+ "xmlns:rpt=\"http://openoffice.org/2005/report\"\n" \
+ "xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\n" \
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n" \
+ "xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\n" \
+ "xmlns:officeooo=\"http://openoffice.org/2009/office\"\n" \
+ "xmlns:tableooo=\"http://openoffice.org/2009/table\"\n" \
+ "xmlns:drawooo=\"http://openoffice.org/2010/draw\"\n" \
+ "xmlns:calcext=\"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0\"\n" \
+ "xmlns:loext=\"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0\"\n" \
+ "xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\n" \
+ "xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\n" \
+ "xmlns:css3t=\"http://www.w3.org/TR/css3-text/\"\n" \
+ "office:version=\"1.2\">\n");
// Styles
d_string_append(out, style);
/// Add shared office:document config
void opendocument_document_attr(DString * out) {
print_const("xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\"\n" \
- "xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\n" \
- "xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\n" \
- "xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\n" \
- "xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\n" \
- "xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\n" \
- "xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" \
- "xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" \
- "xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\n" \
- "xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\n" \
- "xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\n" \
- "xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\n" \
- "xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\n" \
- "xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\n" \
- "xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\n" \
- "xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\n" \
- "xmlns:ooo=\"http://openoffice.org/2004/office\"\n" \
- "xmlns:ooow=\"http://openoffice.org/2004/writer\"\n" \
- "xmlns:oooc=\"http://openoffice.org/2004/calc\"\n" \
- "xmlns:dom=\"http://www.w3.org/2001/xml-events\"\n" \
- "xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n" \
- "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n" \
- "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" \
- "xmlns:rpt=\"http://openoffice.org/2005/report\"\n" \
- "xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\n" \
- "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n" \
- "xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\n" \
- "xmlns:officeooo=\"http://openoffice.org/2009/office\"\n" \
- "xmlns:tableooo=\"http://openoffice.org/2009/table\"\n" \
- "xmlns:drawooo=\"http://openoffice.org/2010/draw\"\n" \
- "xmlns:calcext=\"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0\"\n" \
- "xmlns:loext=\"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0\"\n" \
- "xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\n" \
- "xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\n" \
- "xmlns:css3t=\"http://www.w3.org/TR/css3-text/\"\n" \
- "office:version=\"1.2\"");
+ "xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\n" \
+ "xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\n" \
+ "xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\n" \
+ "xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\n" \
+ "xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\n" \
+ "xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n" \
+ "xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n" \
+ "xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\n" \
+ "xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\n" \
+ "xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\n" \
+ "xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\n" \
+ "xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\n" \
+ "xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\n" \
+ "xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\n" \
+ "xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\n" \
+ "xmlns:ooo=\"http://openoffice.org/2004/office\"\n" \
+ "xmlns:ooow=\"http://openoffice.org/2004/writer\"\n" \
+ "xmlns:oooc=\"http://openoffice.org/2004/calc\"\n" \
+ "xmlns:dom=\"http://www.w3.org/2001/xml-events\"\n" \
+ "xmlns:xforms=\"http://www.w3.org/2002/xforms\"\n" \
+ "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n" \
+ "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" \
+ "xmlns:rpt=\"http://openoffice.org/2005/report\"\n" \
+ "xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\n" \
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\n" \
+ "xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\n" \
+ "xmlns:officeooo=\"http://openoffice.org/2009/office\"\n" \
+ "xmlns:tableooo=\"http://openoffice.org/2009/table\"\n" \
+ "xmlns:drawooo=\"http://openoffice.org/2010/draw\"\n" \
+ "xmlns:calcext=\"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0\"\n" \
+ "xmlns:loext=\"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0\"\n" \
+ "xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\n" \
+ "xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\n" \
+ "xmlns:css3t=\"http://www.w3.org/TR/css3-text/\"\n" \
+ "office:version=\"1.2\"");
}
for (j = KK + KK - 2; j >= KK; j--)
x[j - (KK - LL)] = mod_diff(x[j - (KK - LL)], x[j]),
- x[j - KK] = mod_diff(x[j - KK], x[j]);
+ x[j - KK] = mod_diff(x[j - KK], x[j]);
if (is_odd(ss)) { /* "multiply by z" */
for (j = KK; j > 0; j--) {
/// Create a new stack with dynamic storage with an
/// initial capacity (0 to use default capacity)
stack * stack_new(
- int startingSize //!< Default capacity for stack
+ int startingSize //!< Default capacity for stack
);
/// Free the stack
void stack_free(
- stack * s //!< Stack to be freed
+ stack * s //!< Stack to be freed
);
/// Add a new pointer to the stack
void stack_push(
- stack * s, //!< Stack to use
- void * element //!< Pointer to push onto stack
+ stack * s, //!< Stack to use
+ void * element //!< Pointer to push onto stack
);
/// Pop the top pointer off the stack and return it
void * stack_pop(
- stack * s //!< Stack to examine
+ stack * s //!< Stack to examine
);
/// Peek at the top pointer on the stack (but don't remove it from stack)
void * stack_peek(
- stack * s //!< Stack to examine
+ stack * s //!< Stack to examine
);
/// Peek at a specific index in the stack
void * stack_peek_index(
- stack * s, //!< Stack to examine
- size_t index //!< Index to peek at (0 is first pointer on stack)
+ stack * s, //!< Stack to examine
+ size_t index //!< Index to peek at (0 is first pointer on stack)
);
/// may or may not also be the start of a chain
void token_chain_append(token * chain_start, token * t) {
if ((chain_start == NULL) ||
- (t == NULL)) {
+ (t == NULL)) {
return;
}
/// Find the child node of a given parent that contains the specified
/// offset position.
token * token_child_for_offset(
- token * parent, //!< Pointer to parent token
- size_t offset //!< Search position
+ token * parent, //!< Pointer to parent token
+ size_t offset //!< Search position
) {
if (parent == NULL) {
return NULL;
}
if ((parent->start > offset) ||
- (parent->start + parent->len < offset)) {
+ (parent->start + parent->len < offset)) {
return NULL;
}
/// Find first child node of a given parent that intersects the specified
/// offset range.
token * token_first_child_in_range(
- token * parent, //!< Pointer to parent token
- size_t start, //!< Start search position
- size_t len //!< Search length
+ token * parent, //!< Pointer to parent token
+ size_t start, //!< Start search position
+ size_t len //!< Search length
) {
if (parent == NULL) {
return NULL;
}
if ((parent->start > start + len) ||
- (parent->start + parent->len < start)) {
+ (parent->start + parent->len < start)) {
return NULL;
}
/// Find last child node of a given parent that intersects the specified
/// offset range.
token * token_last_child_in_range(
- token * parent, //!< Pointer to parent token
- size_t start, //!< Start search position
- size_t len //!< Search length
+ token * parent, //!< Pointer to parent token
+ size_t start, //!< Start search position
+ size_t len //!< Search length
) {
if (parent == NULL) {
return NULL;
}
if ((parent->start > start + len) ||
- (parent->start + parent->len < start)) {
+ (parent->start + parent->len < start)) {
return NULL;
}
/// Add a new pairing configuration to a token pair engine
void token_pair_engine_add_pairing(token_pair_engine * e, unsigned short open_type, unsigned short close_type,
- unsigned short pair_type, int options) {
+ unsigned short pair_type, int options) {
// \todo: This needs to be more sophisticated
e->can_open_pair[open_type] = 1;
e->can_close_pair[close_type] = 1;
if (!e->empty_allowed[pair_type]) {
// Make sure they aren't consecutive tokens
if ((peek->next == walker) &&
- (peek->start + peek->len == walker->start)) {
+ (peek->start + peek->len == walker->start)) {
// i--;
i = start_counter; // In this situation, we can't use this token as a closer
continue;
/// Free existing token pair engine
void token_pair_engine_free(
- token_pair_engine * e //!< Token pair engine to be freed
+ token_pair_engine * e //!< Token pair engine to be freed
);
/// Add a new pairing configuration to a token pair engine
void token_pair_engine_add_pairing(
- token_pair_engine * e, //!< Token pair engine to add to
- unsigned short open_type, //!< Token type for opener
- unsigned short close_type, //!< Token type for closer
- unsigned short pair_type, //!< Token type for pairing
- int options //!< Token pair options to use
+ token_pair_engine * e, //!< Token pair engine to add to
+ unsigned short open_type, //!< Token type for opener
+ unsigned short close_type, //!< Token type for closer
+ unsigned short pair_type, //!< Token type for pairing
+ int options //!< Token pair options to use
);
/// Search a token's childen for matching pairs
void token_pairs_match_pairs_inside_token(
- token * parent, //!< Which tokens should we search for pairs
- token_pair_engine * e, //!< Token pair engine to be used for matching
- stack * s, //!< Pointer to a stack to use for pairing tokens
- unsigned short depth //!< Keep track of recursion depth
+ token * parent, //!< Which tokens should we search for pairs
+ token_pair_engine * e, //!< Token pair engine to be used for matching
+ stack * s, //!< Pointer to a stack to use for pairing tokens
+ unsigned short depth //!< Keep track of recursion depth
);
char * result = malloc(37);
sprintf(result, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
- raw[0], raw[1], raw[2], raw[3], raw[4], raw[5], raw[6], raw[7],
- raw[8], raw[9], raw[10], raw[11], raw[12], raw[13], raw[14], raw[15] );
+ raw[0], raw[1], raw[2], raw[3], raw[4], raw[5], raw[6], raw[7],
+ raw[8], raw[9], raw[10], raw[11], raw[12], raw[13], raw[14], raw[15] );
return result;
}
next_char++;
}
} else if ((*str >= '0' && *str <= '9') || (*str >= 'A' && *str <= 'Z')
- || (*str >= 'a' && *str <= 'z') || (*str == '.') || (*str == '_')
- || (*str == '-') || (*str == ':')) {
+ || (*str >= 'a' && *str <= 'z') || (*str == '.') || (*str == '_')
+ || (*str == '-') || (*str == ':')) {
// Allow 0-9, A-Z, a-z, ., _, -, :
d_string_append_c(out, tolower(*str));
}
// Advance remainder to end of destination
while ((*remainder)->next &&
- (*remainder)->next->start < start + scan_len) {
+ (*remainder)->next->start < start + scan_len) {
*remainder = (*remainder)->next;
}
// Is this <foo>?
if ((source[start] == '<') &&
- (source[start + scan_len - 1] == '>')) {
+ (source[start + scan_len - 1] == '>')) {
// Strip '<' and '>'
start++;
scan_len -= 2;
f->label_text = f->clean_text;
if (f->content->child &&
- f->content->child->next &&
- f->content->child->next->next) {
+ f->content->child->next &&
+ f->content->child->next->next) {
f->clean_text = clean_string_from_range(e->dstr->str, f->content->child->next->next->start, block->start + block->len - f->content->child->next->next->start, false);
} else {
f->clean_text = NULL;
token * temp_token = t->next->child;
if (temp_token->next &&
- temp_token->next->type == PAIR_BRACKET) {
+ temp_token->next->type == PAIR_BRACKET) {
temp_token = temp_token->next;
}
/// Parse metadata
void process_metadata_stack(mmd_engine * e, scratch_pad * scratch) {
if ((scratch->extensions & EXT_NO_METADATA) ||
- (scratch->extensions & EXT_COMPATIBILITY)) {
+ (scratch->extensions & EXT_COMPATIBILITY)) {
return;
}
}
} else if (strcmp(m->key, "latexheaderlevel") == 0) {
if ((scratch->output_format == FORMAT_LATEX) ||
- (scratch->output_format == FORMAT_BEAMER) ||
- (scratch->output_format == FORMAT_MEMOIR)) {
+ (scratch->output_format == FORMAT_BEAMER) ||
+ (scratch->output_format == FORMAT_MEMOIR)) {
header_level = atoi(m->value);
}
} else if (strcmp(m->key, "odfheaderlevel") == 0) {
if ((scratch->output_format == FORMAT_ODT) ||
- (scratch->output_format == FORMAT_FODT)) {
+ (scratch->output_format == FORMAT_FODT)) {
header_level = atoi(m->value);
}
} else if (strcmp(m->key, "language") == 0) {
temp_char = label_from_string(m->value);
if ((strcmp(temp_char, "dutch") == 0) ||
- (strcmp(temp_char, "nl") == 0)) {
+ (strcmp(temp_char, "nl") == 0)) {
scratch->quotes_lang = DUTCH;
} else if ((strcmp(temp_char, "french") == 0) ||
- (strcmp(temp_char, "fr") == 0)) {
+ (strcmp(temp_char, "fr") == 0)) {
scratch->quotes_lang = FRENCH;
} else if ((strcmp(temp_char, "german") == 0) ||
- (strcmp(temp_char, "de") == 0)) {
+ (strcmp(temp_char, "de") == 0)) {
scratch->quotes_lang = GERMAN;
} else if (strcmp(temp_char, "germanguillemets") == 0) {
scratch->quotes_lang = GERMANGUILL;
} else if ((strcmp(temp_char, "swedish") == 0) ||
- (strcmp(temp_char, "sv") == 0)) {
+ (strcmp(temp_char, "sv") == 0)) {
scratch->quotes_lang = SWEDISH;
} else {
scratch->quotes_lang = ENGLISH;
t = t->next;
if (t && t->next &&
- t->next->type == PAIR_BRACKET) {
+ t->next->type == PAIR_BRACKET) {
t = t->next;
}
if (t && t->next &&
- ((t->next->type == TEXT_NL) ||
- (t->next->type == TEXT_LINEBREAK))) {
+ ((t->next->type == TEXT_NL) ||
+ (t->next->type == TEXT_LINEBREAK))) {
t = t->next;
}
// argtable structs
struct arg_lit *a_help, *a_version, *a_compatibility, *a_nolabels, *a_batch,
- *a_accept, *a_reject, *a_full, *a_snippet, *a_random, *a_meta,
- *a_notransclude, *a_nosmart;
+ *a_accept, *a_reject, *a_full, *a_snippet, *a_random, *a_meta,
+ *a_notransclude, *a_nosmart;
struct arg_str *a_format, *a_lang, *a_extract;
struct arg_file *a_file, *a_o;
struct arg_end *a_end;