00001
00008
00009
00010 #include "NME.h"
00011
00013 static NMEEncodeCharDict const opsCharDict[] =
00014 {
00015 {'<', "<"},
00016 {'>', ">"},
00017 {'"', """},
00018 {'&', "&"},
00019 {0, NULL}
00020 };
00021
00022 NMEOutputFormat const NMEOutputFormatOPSXHTML =
00023 {
00024 " ",
00025 2,
00026 0,
00027 '%',
00028 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"
00029 "<!-- Generated by Nyctergatis Markup Engine, "
00030 __DATE__ " " __TIME__ " -->\n"
00031 "<!DOCTYPE html PUBLIC\n"
00032 " \"-//W3C//DTD XHTML 1.1//EN\"\n"
00033 " \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n"
00034 "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
00035 "<head>\n"
00036 "<title>Epub fragment</title>\n"
00037 "<style type=\"text/css\">\n"
00038 "h1 {page-break-before: always}\n"
00039 "p.img {text-align: center}\n"
00040 "</style>\n"
00041 "</head>\n"
00042 "<body>\n",
00043 "</body>\n</html>\n",
00044 4,
00045 "<h%{l}%%{x} id=\"h%{o}\"%%>",
00046 "</h%{l}>\n",
00047 "<p>", "</p>\n",
00048 "<br />",
00049 "<pre>\n", "</pre>\n",
00050 "", "\n",
00051 TRUE,
00052 "\n<ul>\n", "</ul>\n",
00053 "%%{2*l} %%<li>", "</li>\n",
00054 "\n<ol>\n", "</ol>\n",
00055 "%%{2*l} %%<li>", "</li>\n",
00056 "\n<dl>\n", "</dl>\n",
00057 "%%{2*l} %%<dt>", "</dt>\n",
00058 NULL,
00059 "%%{2*l} %%<dd>", "</dd>\n",
00060 "<div style=\"margin-left:2em\">\n",
00061 "</div>\n",
00062 "%%{2*l} %%<p>", "</p>\n",
00063 "<table>\n", "</table>\n",
00064 "<tr>", "</tr>\n",
00065 "<th>", "</th>\n",
00066 "<td>", "</td>\n",
00067 "<hr />\n",
00068 "<b>", "</b>",
00069 "<i>", "</i>",
00070 "<u>", "</u>",
00071 "<sup>", "</sup>",
00072 "<sub>", "</sub>",
00073 "<tt>", "</tt>",
00074 "<a href=\"", "</a>", "\">", FALSE,
00075 "<img src=\"", "\" />", "\" alt=\"", FALSE, TRUE,
00076 NULL,
00077 NULL, NULL,
00078 NMEEncodeCharFunDict, (void *)opsCharDict,
00079 NMEEncodeCharFunDict, (void *)opsCharDict,
00080 70, NULL, NULL,
00081 NULL, NULL,
00082 NULL, NULL, NULL, NULL,
00083 NULL,
00084 NULL,
00085 NULL, NULL
00086 };