| 1 |
2018-06-03 David Tardon <[email protected]> [fd2ae0e844db71dbd8feaf65fbfdd9b88d43b201] |
| 2 |
|
| 3 |
prepare for a release |
| 4 |
|
| 5 |
|
| 6 |
2018-05-05 David Tardon <[email protected]> [a6e5b2f011654357d2057b4b170a661a6bee3072] |
| 7 |
|
| 8 |
disable werror by default |
| 9 |
|
| 10 |
|
| 11 |
2018-04-24 Mark Hung <[email protected]> [fbb6a8ed14f81361ba73cee304a3dbe9ec232263] |
| 12 |
|
| 13 |
Make EPUBSpanStyleManager a base calss of EPUBBodyStyleManager. |
| 14 |
|
| 15 |
The new EPUBBodyStyleManager::extractProperties was |
| 16 |
EPUBSpanStyleManager::extractBodyProperties(). |
| 17 |
|
| 18 |
2018-04-24 Mark Hung <[email protected]> [aa254c9e6f2d1ecfa2512111746a77c05ba9717f] |
| 19 |
|
| 20 |
Enclose <span> with <ruby> if text:ruby-text is set. |
| 21 |
|
| 22 |
|
| 23 |
2018-04-18 Mark Hung <[email protected]> [c256f0a9383647cde947243c6be1b5b1f7d5fb23] |
| 24 |
|
| 25 |
assertXPathContent -> CPPUNIT_ASSERT_XPATH_CONTENT |
| 26 |
|
| 27 |
So that the line number shows up when the assertion fails. |
| 28 |
|
| 29 |
2018-04-17 Mark Hung <[email protected]> [722cfb26c481719493b5cf77dc62af997fbe6450] |
| 30 |
|
| 31 |
assertXPath -> CPPUNIT_ASSERT_XPATH to catch the line number. |
| 32 |
|
| 33 |
|
| 34 |
2018-04-11 Mark Hung <[email protected]> [096f9f5a703c73ec2cd4e7fc04122338495b5a8b] |
| 35 |
|
| 36 |
Use an independent object for body style manager. |
| 37 |
|
| 38 |
Original body style manager is mixed in EPUBSpanStyleManager. |
| 39 |
|
| 40 |
Refactor a little bit so that it depend less on checking |
| 41 |
whether it is taking care of a body or a span element, as a |
| 42 |
preparation step for further refacoring. |
| 43 |
|
| 44 |
This revert part of 9a284081eea4a95235a6d6a6a50cbe3f7ad323ba |
| 45 |
|
| 46 |
2018-04-05 Mark Hung <[email protected]> [48117c86ecc3073eab043733641297a079b31431] |
| 47 |
|
| 48 |
assertXPath -> CPPUNIT_ASSERT_XPATH_ATTRIBUTE |
| 49 |
|
| 50 |
To display the line number when assertion failed. |
| 51 |
|
| 52 |
2018-04-04 Mark Hung <[email protected]> [042c1562c647feb8cb288eef30bfc31f58cbaf12] |
| 53 |
|
| 54 |
Replace assertCss with CPPUNIT_ASSERT_CSS. |
| 55 |
|
| 56 |
So that the source line is displayed when test breaks. |
| 57 |
|
| 58 |
2018-03-28 Mark Hung <[email protected]> [1f602fcaa74fc9dbc6457019d11c602ff4040a4e] |
| 59 |
|
| 60 |
Ensure page properties in the page span works. |
| 61 |
|
| 62 |
As the page properties are converted to CSS styles of the |
| 63 |
body element, this patch force it to start a new HTML file |
| 64 |
when openPageSpan is invoked to open the second page span. |
| 65 |
|
| 66 |
This ensures that page properties in every page span works, |
| 67 |
even there are multiple page spans between intentional HTML |
| 68 |
page splits such as on size, on headings, or on page breaks. |
| 69 |
|
| 70 |
2018-03-27 Mark Hung <[email protected]> [0318031b9094b9180d1d391d0ca31a782b016e99] |
| 71 |
|
| 72 |
Always keep page properties when splitting the HTML file. |
| 73 |
|
| 74 |
Those page properties shall be changed only via openPageSpan. |
| 75 |
It was kept only when the layout out method is EPUB_LAYOUT_METHOD_FIXED |
| 76 |
before. |
| 77 |
|
| 78 |
2018-03-26 Mark Hung <[email protected]> [9a284081eea4a95235a6d6a6a50cbe3f7ad323ba] |
| 79 |
|
| 80 |
Support writing-mode for reflowable layout method. |
| 81 |
|
| 82 |
Convert style:writing-mode in page properties to css style for |
| 83 |
HTML body element. The class names of body elements will be like |
| 84 |
"body0". |
| 85 |
|
| 86 |
2018-03-24 David Tardon <[email protected]> [50321a1dbecb428ac56a6c23a4eb5c102bc839fc] |
| 87 |
|
| 88 |
rename EPUBXMLSink to EPUBXMLContent |
| 89 |
|
| 90 |
There are too many things called 'sink' in this project... |
| 91 |
|
| 92 |
2018-03-24 David Tardon <[email protected]> [9b903cbc983891c770db90b76832b44fe9481b8b] |
| 93 |
|
| 94 |
rename EPUBBinarySink to EPUBBinaryContent |
| 95 |
|
| 96 |
There are too many things called 'sink' in this project... |
| 97 |
|
| 98 |
2018-03-24 David Tardon <[email protected]> [f59ab80216dcae492e7e6e6f3f01292a6a34a38b] |
| 99 |
|
| 100 |
rename EPUBCSSSink to EPUBCSSContent |
| 101 |
|
| 102 |
There are too many things called 'sink' in this project... |
| 103 |
|
| 104 |
2018-02-03 David Tardon <[email protected]> [30e51ff79b984372ea15159417fd1a440e298905] |
| 105 |
|
| 106 |
drop unused deleter |
| 107 |
|
| 108 |
|
| 109 |
2018-02-03 David Tardon <[email protected]> [3718a2798d4b25e1a153fabf9c6adce807d263e7] |
| 110 |
|
| 111 |
drop unused typedef |
| 112 |
|
| 113 |
|
| 114 |
2018-02-03 David Tardon <[email protected]> [231f47c0c20547ad5dd9a2e6454d6ef3c53fc885] |
| 115 |
|
| 116 |
use make_shared |
| 117 |
|
| 118 |
|
| 119 |
2018-02-03 David Tardon <[email protected]> [cbb329c6bb88a810f4c3b39fdac03d7e35606509] |
| 120 |
|
| 121 |
drop unnecessary typedef |
| 122 |
|
| 123 |
|
| 124 |
2018-02-03 David Tardon <[email protected]> [d009c267bfc486829ea7dd5a6c89f3172f6a9b4d] |
| 125 |
|
| 126 |
drop typedef |
| 127 |
|
| 128 |
|
| 129 |
2018-02-03 David Tardon <[email protected]> [edfd90c522ee82cb662a5b7137aec266822bf2a2] |
| 130 |
|
| 131 |
split EPUBFontManager into separate file |
| 132 |
|
| 133 |
|
| 134 |
2018-02-03 David Tardon <[email protected]> [13d536cde294c49c59f46e67757693ac83dcaf6b] |
| 135 |
|
| 136 |
iwyu: prune includes |
| 137 |
|
| 138 |
|
| 139 |
2018-02-03 David Tardon <[email protected]> [7e47b278ce9c8942c7df459120a8e65ac0e0b496] |
| 140 |
|
| 141 |
put own header first |
| 142 |
|
| 143 |
|
| 144 |
2018-02-03 David Tardon <[email protected]> [6ad037a4fdeef1025f8c56ddd2655ee9be69a542] |
| 145 |
|
| 146 |
avoid conversion to inches |
| 147 |
|
| 148 |
|
| 149 |
2018-02-01 David Tardon <[email protected]> [159705cd934725a45926ecc78145325eb518d46f] |
| 150 |
|
| 151 |
WaE: unnecessary parentheses in declaration of 'type' |
| 152 |
|
| 153 |
|
| 154 |
2018-02-01 David Tardon <[email protected]> [bc1588367984c84f386a2c4155869f0b392ff857] |
| 155 |
|
| 156 |
WaE: unnecessary parentheses in declaration of 'type' |
| 157 |
|
| 158 |
|
| 159 |
2018-02-01 David Tardon <[email protected]> [2431170b678ca8785c9c398769560f232fbfe2f0] |
| 160 |
|
| 161 |
WaE: unnecessary parentheses in declaration of 'type' |
| 162 |
|
| 163 |
|
| 164 |
2018-02-01 David Tardon <[email protected]> [e1e1fc97056fd7d07cd8fd8d5aac91ff8d79707c] |
| 165 |
|
| 166 |
WaE: unnecessary parentheses in declaration of 'types' |
| 167 |
|
| 168 |
|
| 169 |
2018-01-22 Miklos Vajna <[email protected]> [b6081f659e3000d9f3d5851278d8abdd33448353] |
| 170 |
|
| 171 |
fixed layout: avoid Page <N> entries when chapter names are provided |
| 172 |
|
| 173 |
|
| 174 |
2018-01-22 Miklos Vajna <[email protected]> [c081609849b18113340c39a73b6af432a103a102] |
| 175 |
|
| 176 |
fixed layout: allow defining chapter names |
| 177 |
|
| 178 |
Fixed layout normally just works with SVG images (one image / page), but |
| 179 |
readable navigation document is still expected, e.g. PDF provides it. So |
| 180 |
add a way to mention what chapters start on a given page. |
| 181 |
|
| 182 |
2018-01-18 Miklos Vajna <[email protected]> [51e17dc87d85f1dc71b380906f9260de4cd0371c] |
| 183 |
|
| 184 |
EPUBImageManager: handle relative and absolute width |
| 185 |
|
| 186 |
|
| 187 |
2017-12-22 Miklos Vajna <[email protected]> [60baa7fb597cde57c3489d8b5066937e7edb779f] |
| 188 |
|
| 189 |
EPUBHTMLGenerator: fix invalid XHTML with links at footnote start |
| 190 |
|
| 191 |
ERROR(RSC-005): test3.epub/OEBPS/sections/section0001.xhtml(2,568): Error while parsing file: The a element must not appear inside a elements. |
| 192 |
|
| 193 |
2017-12-22 Miklos Vajna <[email protected]> [a97e7f40bddba8e5d572b29811a19f34536190dc] |
| 194 |
|
| 195 |
EPUBTableStyleManager: avoid vertical-align key without value |
| 196 |
|
| 197 |
ERROR(CSS-008): test.epub/OEBPS/styles/stylesheet.css(1625,19): An error occurred while parsing the CSS: Token ';' not allowed here, expecting a property value. |
| 198 |
|
| 199 |
2017-12-22 Miklos Vajna <[email protected]> [006848cb62225647c418d5143d4e88a9d73829da] |
| 200 |
|
| 201 |
EPUBHTMLGenerator: avoid <div> inside <p> and/or <span> |
| 202 |
|
| 203 |
This is not allowed in XHTML, but we wrote that markup when a text frame |
| 204 |
was inside a span or a paragraph. The closest allowed markup in XHTML |
| 205 |
seems to be closing the span/paragraph before opening the text box and |
| 206 |
doing the opposite after the text box is closed. |
| 207 |
|
| 208 |
2017-12-13 David Tardon <[email protected]> [65f070609482c10410311dbd42fca1739bca293e] |
| 209 |
|
| 210 |
bump release |
| 211 |
|
| 212 |
|
| 213 |
2017-12-13 David Tardon <[email protected]> [593447a1a855a6470dc0d7c5e8d8d60a55c1e693] |
| 214 |
|
| 215 |
WaE: remove unused function |
| 216 |
|
| 217 |
|
| 218 |
2017-12-13 David Tardon <[email protected]> [f4514f4ad225b87a8ded9b7ff965568eb7827fe6] |
| 219 |
|
| 220 |
prepare for a release |
| 221 |
|
| 222 |
|
| 223 |
2017-12-01 Miklos Vajna <[email protected]> [99f0e7ec6fbaef4ff71d51e3ff700e3038f88748] |
| 224 |
|
| 225 |
Move EPUBSplitMethod from the generator constructors |
| 226 |
|
| 227 |
To a case of setOption(). Also check for version >= 30, and not for == |
| 228 |
30, so e.g. 31 defaults to 30 and not 20 (in an else branch). |
| 229 |
|
| 230 |
2017-12-01 Miklos Vajna <[email protected]> [75c4fb3bb96c6e6777a4dc6e6b035b494daa9116] |
| 231 |
|
| 232 |
EPUBTextGenerator: setOptions() -> setOption() to keep it simple |
| 233 |
|
| 234 |
|
| 235 |
2017-12-01 Miklos Vajna <[email protected]> [2ecb8443af7769df0764f41a4b23af9ba6d22c98] |
| 236 |
|
| 237 |
EPUBTextGenerator: default to EPUB3 |
| 238 |
|
| 239 |
The next release will be an API-breaking one anyway. |
| 240 |
|
| 241 |
2017-12-01 Miklos Vajna <[email protected]> [f9386051137c0f20bb5b0558262a6020636a8518] |
| 242 |
|
| 243 |
NEWS: prepare for a release |
| 244 |
|
| 245 |
|
| 246 |
2017-12-01 Miklos Vajna <[email protected]> [35407d886084160415c6e96416d71a02804a16ca] |
| 247 |
|
| 248 |
EPUBTextGenerator: replace set*Method() with setOptions() |
| 249 |
|
| 250 |
These were not in a release yet, so cheap to remove. OTOH adding a |
| 251 |
generic function allows addition of further options without an ABI break |
| 252 |
in the future. |
| 253 |
|
| 254 |
2017-12-01 Miklos Vajna <[email protected]> [fce595008f94e91d18448275dc3c2d6370eec5c7] |
| 255 |
|
| 256 |
Fixed layout: spine items are pages, not sections |
| 257 |
|
| 258 |
|
| 259 |
2017-11-30 Miklos Vajna <[email protected]> [88b9d9a1efb9b064ea99c57ec273f76712d361ff] |
| 260 |
|
| 261 |
EPUBTextGenerator: allow a single image on a page |
| 262 |
|
| 263 |
|
| 264 |
2017-11-29 Miklos Vajna <[email protected]> [d9921c47befa3eabcfc916e26e273667232be637] |
| 265 |
|
| 266 |
EPUBTextGenerator: page-break=auto is not a page break |
| 267 |
|
| 268 |
|
| 269 |
2017-11-29 Miklos Vajna <[email protected]> [38aa728708641942371507b975193f0ab60f0b50] |
| 270 |
|
| 271 |
EPUBGenerator: fixed layout implies split on page break |
| 272 |
|
| 273 |
|
| 274 |
2017-11-28 Miklos Vajna <[email protected]> [bd49e1672d0e914736824dadc8f89c26ae955088] |
| 275 |
|
| 276 |
[ABI CHANGE] optionally support the EPUB3 fixed layout |
| 277 |
|
| 278 |
Default is still the reflowable method, of course. |
| 279 |
|
| 280 |
2017-11-24 Miklos Vajna <[email protected]> [6e094bbe9fd8c1784ef3c348d04e2add8b48fc67] |
| 281 |
|
| 282 |
EPUBHTMLGenerator: support image popup for text |
| 283 |
|
| 284 |
And also make sure that the popup anchor is not superscript. |
| 285 |
|
| 286 |
2017-11-24 Miklos Vajna <[email protected]> [bc80bf98172e8e0f8c803dec0b8e74e233ac482e] |
| 287 |
|
| 288 |
EPUBHTMLGenerator: support image popup for images |
| 289 |
|
| 290 |
If the user of the lib uses the librevenge:mime-type and |
| 291 |
office:binary-data keys (instead of xlink:href) for a link around an |
| 292 |
image, then open that image in a popup (using the footnote markup). |
| 293 |
|
| 294 |
The usual assumption is that the footnote anchor is trivial (just a |
| 295 |
string) and the content is complex, but here the situation is the |
| 296 |
opposite: the anchor can be something complex, OTOH the footnote content |
| 297 |
is always a single inline image -- this requires the new |
| 298 |
closeAnchor mode when adding the footnote label. |
| 299 |
|
| 300 |
2017-11-24 Miklos Vajna <[email protected]> [cdf53305d151cf177257821b21cd9895321a86e5] |
| 301 |
|
| 302 |
EPUBTextSink: remove this, dead code |
| 303 |
|
| 304 |
< vmiklos> dtardon: is EPUBTextSink dead code? |
| 305 |
<@dtardon> vmiklos, i don't remember :-( |
| 306 |
|
| 307 |
2017-11-24 Miklos Vajna <[email protected]> [a8444b113df52769849ad45ea440def8d1884b15] |
| 308 |
|
| 309 |
EPUBHTMLGenerator: implement custom footnote anchor text |
| 310 |
|
| 311 |
Try to avoid our default F<N> anchor text if possible, which only makes |
| 312 |
sense in English. |
| 313 |
|
| 314 |
2017-11-24 Miklos Vajna <[email protected]> [502948041df07729572bf4f2b222e03073baa6c8] |
| 315 |
|
| 316 |
EPUBHTMLGenerator: implement EPUB3 footnote markup |
| 317 |
|
| 318 |
The main difference is that in the EPUB3 case the footnote has an |
| 319 |
explicit end. |
| 320 |
|
| 321 |
2017-11-23 Miklos Vajna <[email protected]> [9c723bbe42673906d8d0faf5083a186cf86d05ce] |
| 322 |
|
| 323 |
EPUBHTMLGenerator: avoid <title> in EPUB3 XHTML content documents |
| 324 |
|
| 325 |
- there were multiple of them, which is invalid |
| 326 |
- just don't write them, content.opf has the same info |
| 327 |
|
| 328 |
2017-11-23 Miklos Vajna <[email protected]> [8c447caee18b4400170ecce36ea3714fdc377989] |
| 329 |
|
| 330 |
EPUBHTMLGenerator: fix footnotes/endnotes/comments |
| 331 |
|
| 332 |
There were two problems here: |
| 333 |
|
| 334 |
- when working with two sinks (footnote and main), make sure that we |
| 335 |
save the main one before the push of the sink stack |
| 336 |
|
| 337 |
- when handing out a non-const xml sink reference, make sure there is no |
| 338 |
parallel empty bool that tracks its size, otherwise these can out of |
| 339 |
sync (empty is still true, even if there is footnote content) |
| 340 |
|
| 341 |
2017-11-21 Miklos Vajna <[email protected]> [631b21834883aa8f2ee83a20717dd37900331696] |
| 342 |
|
| 343 |
EPUBGenerator: allow overwriting dc:identifier default |
| 344 |
|
| 345 |
All other types had a way to be overwritten. |
| 346 |
|
| 347 |
2017-11-17 Miklos Vajna <[email protected]> [0d06b60d45b3e1465976eb027c3fde31fccdc025] |
| 348 |
|
| 349 |
EPUBGenerator: add support for cover image metadata |
| 350 |
|
| 351 |
The librevenge:cover-images key can't have a property list as a value, |
| 352 |
so go with a list of cover images, though in practice more than one |
| 353 |
won't result in a valid EPUB3 file. |
| 354 |
|
| 355 |
2017-11-16 Miklos Vajna <[email protected]> [889add1be67b8ddcd93c9dd306f2b73275ead5a0] |
| 356 |
|
| 357 |
EPUBFontManager: map ODF mime type to EPUB mime type |
| 358 |
|
| 359 |
|
| 360 |
2017-11-16 David Tardon <[email protected]> [73f5e40c90c32f8a48fef037558146a126cdab3a] |
| 361 |
|
| 362 |
WaE: suggest braces around empty body in an 'if' statement |
| 363 |
|
| 364 |
|
| 365 |
2017-11-15 Miklos Vajna <[email protected]> [9e571ba79d782d3e780f657c745b0447d45e51e6] |
| 366 |
|
| 367 |
EPUBFontManager: fold this into EPUBImageManager |
| 368 |
|
| 369 |
After all it's a small class, sounds like it is not worth having that |
| 370 |
much boilerplate for it. |
| 371 |
|
| 372 |
2017-11-15 Miklos Vajna <[email protected]> [ee5201290e8160c28fca45ebb79acad1d1ee705a] |
| 373 |
|
| 374 |
Add a font manager for initial embedded font support |
| 375 |
|
| 376 |
The epubcheck validator insists on opentype as for the format of the |
| 377 |
font, but as far as I see at least Calibre is happy with the same data |
| 378 |
as it's in ODF already, so no need to do any heavy font conversion. |
| 379 |
|
| 380 |
2017-11-10 Miklos Vajna <[email protected]> [3da66e7b1fbda75e43b3ab63502d66097f39ef7a] |
| 381 |
|
| 382 |
EPUBImageManager: handle text box wrap types |
| 383 |
|
| 384 |
By sharing the image and textbox wrap code. |
| 385 |
|
| 386 |
2017-11-10 Miklos Vajna <[email protected]> [da840df8eaacfcfbd93d82751a774371d7e5c9b9] |
| 387 |
|
| 388 |
EPUBHTMLGenerator: avoid wrap type for as-char anchored images |
| 389 |
|
| 390 |
|
| 391 |
2017-11-10 Miklos Vajna <[email protected]> [40111db25a92537c922a768dd04916cb5edd0239] |
| 392 |
|
| 393 |
EPUBHTMLGenerator: map TextBox to <div> |
| 394 |
|
| 395 |
This way e.g. image with caption is no longer lost from the text |
| 396 |
generator. This generalizes image and textbox styles as "frame" styles. |
| 397 |
|
| 398 |
2017-11-10 Miklos Vajna <[email protected]> [3d47458738729c86992a1ed0002726cba5ec315c] |
| 399 |
|
| 400 |
EPUBImageManager: initial wrap type handling |
| 401 |
|
| 402 |
You could assume that the wrap is the opposide of clear, but given it's |
| 403 |
an attribute on the next element, they are the same at the end in case |
| 404 |
of left and right. |
| 405 |
|
| 406 |
2017-11-09 Miklos Vajna <[email protected]> [0f5073481b094562f2c78481475a660fb6826cdb] |
| 407 |
|
| 408 |
EPUBImageManager: initial horizontal positioning |
| 409 |
|
| 410 |
For now position everything to the left, except for explicit "right". |
| 411 |
|
| 412 |
2017-11-08 Miklos Vajna <[email protected]> [094db625e36b91b57e152296a1f7db1bdcc682c5] |
| 413 |
|
| 414 |
EPUBHTMLGenerator: add missing rel attribute for CSS reference |
| 415 |
|
| 416 |
Turns out a number of readers (checked Calibre and Aldiko on Android) do |
| 417 |
support taking formatting from an external CSS, but only in case this |
| 418 |
attribute is present. |
| 419 |
|
| 420 |
2017-11-08 Miklos Vajna <[email protected]> [801367ee905aa70bb2ba2ad5b8257cd2a25bed9b] |
| 421 |
|
| 422 |
EPUBImageManager: add support for borders |
| 423 |
|
| 424 |
The properties are on the frame, but the inner binary object emits the |
| 425 |
"img" element that has the properties in XHTML. Solve this by |
| 426 |
maintaining a stack of currently opened frames, with their properties. |
| 427 |
|
| 428 |
2017-11-06 Miklos Vajna <[email protected]> [d5bd8c9078eeb63769ff1807be1a9571430eaed1] |
| 429 |
|
| 430 |
EPUBTableStyleManager: handle table props |
| 431 |
|
| 432 |
Other than column properties. Only width and relative width for now. |
| 433 |
|
| 434 |
2017-11-03 Miklos Vajna <[email protected]> [20930e2d8151fd2ec44feb9cdb8ca502df99365f] |
| 435 |
|
| 436 |
EPUBTableStyleManager: handle style:rel-column-width col prop |
| 437 |
|
| 438 |
Previously only fixed width was supported, but relative width works |
| 439 |
better for reflowable formats and ODF has markup to express this. |
| 440 |
|
| 441 |
2017-11-03 Miklos Vajna <[email protected]> [85fe982b2ad158f6e050c15e4a59d51d863cc28d] |
| 442 |
|
| 443 |
columWidths -> columnWidths |
| 444 |
|
| 445 |
|
| 446 |
2017-11-03 Miklos Vajna <[email protected]> [45bf16a8b384010814148538d86ee584b9295c7a] |
| 447 |
|
| 448 |
Witdh -> Width |
| 449 |
|
| 450 |
|
| 451 |
2017-11-02 Miklos Vajna <[email protected]> [6c8e86ccebb11df7ece32d10da2894c6698c5515] |
| 452 |
|
| 453 |
EPUBTableStyleManager: witdh -> width |
| 454 |
|
| 455 |
|
| 456 |
2017-10-31 Miklos Vajna <[email protected]> [258dcc4a98405238f4e32f89d122a7ccbb9a1357] |
| 457 |
|
| 458 |
EPUBTableStyleManager: handle EPUB_STYLES_METHOD_INLINE for cells |
| 459 |
|
| 460 |
So that a typical table has an empty CSS when requested. |
| 461 |
|
| 462 |
2017-10-31 Miklos Vajna <[email protected]> [c5e32608ecea8410b11760284d49e1f1958c6f75] |
| 463 |
|
| 464 |
EPUBTableStyleManager: handle EPUB_STYLES_METHOD_INLINE for rows |
| 465 |
|
| 466 |
This was working for paragraphs and spans only previously. |
| 467 |
|
| 468 |
2017-10-31 Miklos Vajna <[email protected]> [f3a04df200d818b4aaa9d54910b670cd6cf3149f] |
| 469 |
|
| 470 |
EPUBHTMLGenerator: librevenge:type -> xlink:type |
| 471 |
|
| 472 |
That's what libetonyek and LO's librevenge producer generates, also |
| 473 |
matches librevenge documentation. This isn't really a behavior change, |
| 474 |
just makes the warning go away in the xlink case. |
| 475 |
|
| 476 |
2017-10-31 Fridrich Štrba <[email protected]> [2c6375ab025f61e8412b6e63998a7b89084d09f4] |
| 477 |
|
| 478 |
doxygen -u |
| 479 |
|
| 480 |
|
| 481 |
2017-10-26 Miklos Vajna <[email protected]> [2349199cc17a989ec2491245f446241dbfc30c50] |
| 482 |
|
| 483 |
Use auto when declaring iterators and when initializing with a cast |
| 484 |
|
| 485 |
|
| 486 |
2017-10-18 Miklos Vajna <[email protected]> [c5bb9ad8922c9f537f0d613d42c33487717455c3] |
| 487 |
|
| 488 |
EPUBHTMLGenerator: better handling of tabs |
| 489 |
|
| 490 |
Mapping ODF/librevenge tab to \t in HTML is not a great idea, as it's |
| 491 |
ignorable whitespace. Go with NBSPs and a breakable space instead, that |
| 492 |
is much closer visually (15 is just an arbitrary number, it's what MS |
| 493 |
Word uses in its HTML export, LO Writer HTML export doesn't handle |
| 494 |
this). |
| 495 |
|
| 496 |
Adapt the empty paragraph case to also use NBSP for consistency. |
| 497 |
|
| 498 |
2017-10-18 Miklos Vajna <[email protected]> [8166fc972e3d4b930ad0baab164f99b3c717252e] |
| 499 |
|
| 500 |
EPUBTextGenerator: handle headings inside sections |
| 501 |
|
| 502 |
On one hand, we don't want to split inside a section as there might be |
| 503 |
elements we need to close/open at split boundary, OTOH this is currently |
| 504 |
not a problem as we don't produce any output for sections. |
| 505 |
|
| 506 |
So remove the level management for sections (this way allowing headings |
| 507 |
to split inside sections), let's get back to this when there is a |
| 508 |
concept how e.g. multiple columns would be represented in EPUB. |
| 509 |
|
| 510 |
Use case is when sections are used to just group paragraph together and |
| 511 |
mark all of them read-only: in this case it's unexpected that headings |
| 512 |
are handled differently to not-in-section ones. |
| 513 |
|
| 514 |
2017-10-17 Miklos Vajna <[email protected]> [383f315b067e9fc1aa840913c581e7451949c2db] |
| 515 |
|
| 516 |
EPUBHTMLGenerator: better handling of empty paragraphs |
| 517 |
|
| 518 |
The ODF/librevenge concept is that empty paragraphs still take their |
| 519 |
vertical space, i.e. inserting lots of them is a (poor) equivalent of a |
| 520 |
page break. |
| 521 |
|
| 522 |
HTML collapses empty paragraphs by default, so empty paragraphs need |
| 523 |
some content to preserve this effect. Do the same trick what LibreOffice |
| 524 |
Writer does: if the text has no content, add a <br/> element inside the |
| 525 |
paragraph. |
| 526 |
|
| 527 |
2017-10-17 Miklos Vajna <[email protected]> [4f46bc715a5fc8a0e13bb1596f6f5dbb55ca0632] |
| 528 |
|
| 529 |
EPUBSpanStyleManager: ignore underline type/style 'none' |
| 530 |
|
| 531 |
This is similar to commit 7be89d1881e175182039ca93a1546d79933cab85 |
| 532 |
(EPUBSpanStyleManager: ignore line though type/style 'none', |
| 533 |
2017-09-11). |
| 534 |
|
| 535 |
2017-09-18 Miklos Vajna <[email protected]> [d8ee84ff50a6113f49105a70f946b23acfa2566f] |
| 536 |
|
| 537 |
[ABI CHANGE] optionally support not writing formatting to CSS files |
| 538 |
|
| 539 |
This should help a number of poor readers, which don't support the old |
| 540 |
method. Examples: |
| 541 |
|
| 542 |
- Sigil |
| 543 |
- Readium |
| 544 |
- Moon+ reader |
| 545 |
- Calibre |
| 546 |
- MS Edge |
| 547 |
|
| 548 |
2017-09-11 Miklos Vajna <[email protected]> [7be89d1881e175182039ca93a1546d79933cab85] |
| 549 |
|
| 550 |
EPUBSpanStyleManager: ignore line though type/style 'none' |
| 551 |
|
| 552 |
In CSS this is a boolean property, but in ODF it's an enum, so map none |
| 553 |
to false and everything else to true. |
| 554 |
|
| 555 |
2017-09-08 Miklos Vajna <[email protected]> [7cf3c6541a61f9d74cd51fb2a01344df783cb26d] |
| 556 |
|
| 557 |
EPUBTextGenerator: ignore invalid media types |
| 558 |
|
| 559 |
This assumes there is no image type that is valid in EPUB2, but not in |
| 560 |
EPUB3. |
| 561 |
|
| 562 |
2017-09-08 Miklos Vajna <[email protected]> [bce7c05a18a4c5089d5ac77bc61b9f6978e7224b] |
| 563 |
|
| 564 |
EPUBHTMLGenerator: write un-escaped NBSP |
| 565 |
|
| 566 |
Package implementations are supposed to take care of escaping, like it |
| 567 |
was already a requirement for normal text. |
| 568 |
|
| 569 |
2017-09-04 Miklos Vajna <[email protected]> [7e3b5186616326534b1ae95c6d2d188c5e522c7f] |
| 570 |
|
| 571 |
EPUBGenerator: always write author and title |
| 572 |
|
| 573 |
Some EPUB3 readers categorize books by author and then title, so if |
| 574 |
these are empty, then it's next to impossible to reach the export result |
| 575 |
there. |
| 576 |
|
| 577 |
2017-08-25 Miklos Vajna <[email protected]> [143a470f190aaf2f420d2f84b5f08e9b01b40473] |
| 578 |
|
| 579 |
Export generator |
| 580 |
|
| 581 |
|
| 582 |
2017-08-25 Miklos Vajna <[email protected]> [e012273d304e5f70b96e53712239efabdacdb065] |
| 583 |
|
| 584 |
EPUBTextGeneratorTest: clean up unintentional Hungarian notation |
| 585 |
|
| 586 |
|
| 587 |
2017-08-24 Miklos Vajna <[email protected]> [28e5e30c20aba54dff6505df4c03d6a3da0ee0f3] |
| 588 |
|
| 589 |
EPUBHTMLGenerator: sanitize URLs a bit in openLink() |
| 590 |
|
| 591 |
epubcheck warns on this: |
| 592 |
|
| 593 |
WARNING(RSC-023): large.epub/OEBPS/sections/section0018.xhtml(2,5171): The URL 'https:///www.fsf.org' is missing 1 slash(es) '/' after the protocol 'https:' |
| 594 |
|
| 595 |
2017-08-24 Miklos Vajna <[email protected]> [89ae3e392890b9360d271f1c1796cb27e36be26f] |
| 596 |
|
| 597 |
EPUBTextGenerator: empty mime type is the same as no mime type |
| 598 |
|
| 599 |
epubcheck says: |
| 600 |
|
| 601 |
ERROR(RSC-005): image.epub/OEBPS/content.opf(11,69): Error while parsing file: value of attribute "media-type" is invalid; must be a string matching the regular expression "[a-zA-Z0-9!#$&+\-\^_]+/[a-zA-Z0-9!#$&+\-\^_]+.*" |
| 602 |
|
| 603 |
2017-08-23 Miklos Vajna <[email protected]> [f23707df299cb91643a8af6877596a35bd3e6850] |
| 604 |
|
| 605 |
Add EPUB_SPLIT_METHOD_PAGE_BREAK testcase |
| 606 |
|
| 607 |
Fails with commit 39470cf360cfc67f2dd078646162a63168a84c05 |
| 608 |
(EPUBSplitGuard: fix tracking current size, 2017-08-15) reverted. |
| 609 |
|
| 610 |
2017-08-22 Miklos Vajna <[email protected]> [12a583e980cf97ee4fa82650ec77a8278074c256] |
| 611 |
|
| 612 |
EPUBHTMLGenerator image validation fix testcase |
| 613 |
|
| 614 |
Fails with the previous commit reverted. |
| 615 |
|
| 616 |
2017-08-22 Miklos Vajna <[email protected]> [1376b91046ad50f3a443b6fd4887252c1922870c] |
| 617 |
|
| 618 |
EPUBHTMLGenerator: fix validation problem with non-page anchored images |
| 619 |
|
| 620 |
In most cases (except for at-page anchored images) there is a paragraph |
| 621 |
already opened, and writing <p> inside <span> results in a validation |
| 622 |
error. |
| 623 |
|
| 624 |
So just write <p> in case we're not in paragraph already. |
| 625 |
|
| 626 |
2017-08-22 Miklos Vajna <[email protected]> [2a0a1086fa782c478ba5babccc9b4663f4b658ae] |
| 627 |
|
| 628 |
First chapter name special handling testcase |
| 629 |
|
| 630 |
Fails with the previous commit. |
| 631 |
|
| 632 |
2017-08-22 Miklos Vajna <[email protected]> [a4e85e191813e7c8f4e6b5bcf2458504f9d06aeb] |
| 633 |
|
| 634 |
EPUB_SPLIT_METHOD_HEADING: fix unexpected first chapter name |
| 635 |
|
| 636 |
If the structure of the document is like this: |
| 637 |
|
| 638 |
Heading 2 |
| 639 |
Heading 1 |
| 640 |
Heading 2 |
| 641 |
Heading 1 |
| 642 |
Heading 2 |
| 643 |
|
| 644 |
Then this resulted in 3 chapters: Section 1, Heading 1 and Heading 1. |
| 645 |
The first one is unexpected; so in case we don't have a heading 1 |
| 646 |
paragraph for the first section, then fall back to any other heading. |
| 647 |
|
| 648 |
2017-08-17 Miklos Vajna <[email protected]> [00d151dec482192b20729cc369f2a99fc1ce713e] |
| 649 |
|
| 650 |
Add chapter names testcase |
| 651 |
|
| 652 |
Fails with the previous commit reverted. |
| 653 |
|
| 654 |
2017-08-17 Miklos Vajna <[email protected]> [8a3cc9733f567864ad0658cf1a25c60d5e7205a6] |
| 655 |
|
| 656 |
EPUB_SPLIT_METHOD_HEADING: fix unexpected text in chapter names |
| 657 |
|
| 658 |
We used to add text for all headings for the chapter name, but if we |
| 659 |
split on heading 1, then text of heading2+ should not be included. |
| 660 |
|
| 661 |
2017-08-16 Miklos Vajna <[email protected]> [576c2472e384ea1a71739b15f42561cd34de5bba] |
| 662 |
|
| 663 |
EPUB_SPLIT_METHOD_HEADING: try to use real chapter names, not Section N |
| 664 |
|
| 665 |
What users call "chapter title" is the text of a paragraph with an |
| 666 |
outline level set. |
| 667 |
|
| 668 |
To keep this simple just handle the text after opening such a paragraph, |
| 669 |
but no other paragraph is opened, i.e. assume that in: |
| 670 |
|
| 671 |
<para outline=y>A<para outline=n>B</para>C</para> |
| 672 |
|
| 673 |
only A is interesting, but not B, neither C. (Which could happen with an |
| 674 |
at-character anchored frame inside a heading text e.g.) |
| 675 |
|
| 676 |
2017-08-15 Miklos Vajna <[email protected]> [3155cb6164f04fa8170dd9912c579ad90586c8a8] |
| 677 |
|
| 678 |
EPUBTextGenerator: handle EPUB_SPLIT_METHOD_HEADING |
| 679 |
|
| 680 |
It seems to me this was unimplemented so far. |
| 681 |
|
| 682 |
2017-08-15 Miklos Vajna <[email protected]> [39470cf360cfc67f2dd078646162a63168a84c05] |
| 683 |
|
| 684 |
EPUBSplitGuard: fix tracking current size |
| 685 |
|
| 686 |
In case incrementing size and split affects the reference size, the |
| 687 |
current size won't be ever greather than zero in |
| 688 |
EPUBSplitGuard::canSplit(), and it will always return false. |
| 689 |
|
| 690 |
With this, EPUB_SPLIT_METHOD_PAGE_BREAK works again. |
| 691 |
|
| 692 |
2017-08-11 Miklos Vajna <[email protected]> [c28f02f21a6d80ad258cf8f052705508567e2418] |
| 693 |
|
| 694 |
Fix image mime-type key |
| 695 |
|
| 696 |
libepubgen expected librevenge:mimetype, but: |
| 697 |
|
| 698 |
1) LO's ODF output has loext:mime-type |
| 699 |
2) libabw generates librevenge:mime-type |
| 700 |
3) libodfgen expects librevenge:mime-type |
| 701 |
|
| 702 |
So probably this one has to be adjusted. |
| 703 |
|
| 704 |
2017-08-11 Miklos Vajna <[email protected]> [c8cba54a7025ee0f1129233912f6e9ceda254c64] |
| 705 |
|
| 706 |
EPUB3: fix validation error with doc modified date format |
| 707 |
|
| 708 |
ERROR(RSC-005): test.epub/OEBPS/content.opf(2,420): Error while parsing file: dcterms:modified illegal syntax (expecting: 'CCYY-MM-DDThh:mm:ssZ') |
| 709 |
|
| 710 |
Both of them looked like XML date formats, but actually librevenge is |
| 711 |
more precise, so truncate it. |
| 712 |
|
| 713 |
2017-08-11 Miklos Vajna <[email protected]> [14da42819f1f96b87b2337da395e5ad6639dcebe] |
| 714 |
|
| 715 |
EPUBGenerator: write language and modification date into content.opf |
| 716 |
|
| 717 |
With this, all metadata which had a hardcoded value is now parsed and |
| 718 |
the old values are just defaults. |
| 719 |
|
| 720 |
2017-08-11 Miklos Vajna <[email protected]> [d855721de6b4e55fb0b2a02a6a1132802dba5f63] |
| 721 |
|
| 722 |
EPUBGenerator: write title into content.opf |
| 723 |
|
| 724 |
|
| 725 |
2017-08-11 Miklos Vajna <[email protected]> [c30bc184c18837203e9f249386711e9cd616c9f0] |
| 726 |
|
| 727 |
EPUB3: write the deprecated NCX navication as well |
| 728 |
|
| 729 |
<http://www.idpf.org/epub/30/spec/epub30-changes.html#sec-new-changed-nav> |
| 730 |
"3.2 Navigation" says: |
| 731 |
|
| 732 |
EPUB 3 Publications may include the EPUB 2 NCX for EPUB 2 Reading System |
| 733 |
forward compatibility purposes. |
| 734 |
|
| 735 |
2017-08-10 Miklos Vajna <[email protected]> [2e9e9af9f49a78cca75d3c862c8dd4b5f7cc7eb2] |
| 736 |
|
| 737 |
Use .xhtml for XHTML content |
| 738 |
|
| 739 |
The EPUB3 validator warns: |
| 740 |
|
| 741 |
WARNING(HTM-014a): test30.epub/OEBPS/content.opf(2,718): XHTML Content Document file name 'OEBPS/sections/section0001.html' should have the extension '.xhtml'. |
| 742 |
|
| 743 |
And it does not hurt for EPUB2, either. |
| 744 |
|
| 745 |
2017-08-10 Miklos Vajna <[email protected]> [28090aa5d57162302122686cb020d4bf2231cab4] |
| 746 |
|
| 747 |
EPUB3: implement navigation document |
| 748 |
|
| 749 |
As |
| 750 |
<http://www.idpf.org/epub/30/spec/epub30-changes.html#sec-new-changed-nav> |
| 751 |
says, EPUB 3 defines a new grammar for navigation based on XHTML, which |
| 752 |
replaces the old NCX grammar -- so use that in EPUB3 mode. |
| 753 |
|
| 754 |
With this, a hello world input in EPUB3 mode results in 0 errors in the |
| 755 |
validator. |
| 756 |
|
| 757 |
2017-08-09 Miklos Vajna <[email protected]> [575a09f637b5afe4d61387c7be3c8b2b67039ccb] |
| 758 |
|
| 759 |
EPUB3: add missing nav property on first HTML stream |
| 760 |
|
| 761 |
ERROR(RSC-005): test30.epub/OEBPS/content.opf(2,459): Error while parsing file: Exactly one manifest item must declare the 'nav' property (number of 'nav' items: 0). |
| 762 |
|
| 763 |
This is the last error in OEBPS/content.opf in case of EPUB3. |
| 764 |
|
| 765 |
2017-08-09 Miklos Vajna <[email protected]> [cfd57f50c9d33781f90018d40902ccce68a13a5c] |
| 766 |
|
| 767 |
EPUB3: write missing modification date |
| 768 |
|
| 769 |
ERROR(RSC-005): test.epub/OEBPS/content.opf(2,236): Error while parsing file: package dcterms:modified meta element must occur exactly once |
| 770 |
|
| 771 |
But not for EPUB2, which doesn't allow so. |
| 772 |
|
| 773 |
(Similar story as with dc:title: later commit should read the this |
| 774 |
optional info from librevenge.) |
| 775 |
|
| 776 |
2017-08-09 Miklos Vajna <[email protected]> [862ec6735c25760edadf05d83717daaf65f39f99] |
| 777 |
|
| 778 |
[ABI CHANGE] optionally support generating EPUB3 output |
| 779 |
|
| 780 |
Versions are 20 and 30 to be consistent with |
| 781 |
<https://github.com/idpf/epubcheck/tree/master/src/main/resources/com/adobe/epubcheck/schema/>. |
| 782 |
|
| 783 |
2017-08-09 Miklos Vajna <[email protected]> [a4585b8f35c76472eb91688c9177b9f532c290d8] |
| 784 |
|
| 785 |
EPUBGenerator: avoid empty dc:language element |
| 786 |
|
| 787 |
Same story as with dc:title: |
| 788 |
|
| 789 |
ERROR(RSC-005): test.epub/OEBPS/content.opf(2,362): Error while parsing file: character content of element "dc:language" invalid; must be an RFC 3066 language identifier |
| 790 |
|
| 791 |
(This is a warning for EPUB2, but it'll be an error for EPUB3; this is optional |
| 792 |
for ODF; later commit should read the this info, though.) |
| 793 |
|
| 794 |
2017-08-09 Miklos Vajna <[email protected]> [aa71784fcee0404c2f136f035887ca4c52d0e756] |
| 795 |
|
| 796 |
EPUBGenerator: avoid empty dc:title element |
| 797 |
|
| 798 |
This is a warning for EPUB2, but it'll be an error for EPUB3: |
| 799 |
|
| 800 |
ERROR(RSC-005): test.epub/OEBPS/content.opf(2,337): Error while parsing file: character content of element "dc:title" invalid; must be a string with length at least 1 (actual length was 0) |
| 801 |
|
| 802 |
The problem is that for ODF/librevenge this element is optional, so work |
| 803 |
it around by adding a zero-width space. |
| 804 |
|
| 805 |
A later commit should read the optional title of declared with a |
| 806 |
librevenge API call, though. |
| 807 |
|
| 808 |
2017-08-09 Miklos Vajna <[email protected]> [8ca1fe2b9db9bacd6e868e69a0909a441fb6a7f8] |
| 809 |
|
| 810 |
EPUBGenerator: avoid opf:scheme attribute when writing the UUID |
| 811 |
|
| 812 |
This will be an error for EPUB3: |
| 813 |
|
| 814 |
ERROR(RSC-005): test.epub/OEBPS/content.opf(2,292): Error while parsing file: found attribute "opf:scheme", but no attributes allowed here |
| 815 |
|
| 816 |
But it's optional for EPUB2 already. |
| 817 |
|
| 818 |
2017-08-09 Miklos Vajna <[email protected]> [17b4d0a2b595d1504f3d957268e2085ae0f80db7] |
| 819 |
|
| 820 |
EPUBGenerator: avoid container version roundtrip to double |
| 821 |
|
| 822 |
This will be an error for EPUB3: |
| 823 |
|
| 824 |
ERROR(RSC-005): test.epub/META-INF/container.xml(2,85): Error while parsing file: value of attribute "version" is invalid; must be equal to "1.0" |
| 825 |
|
| 826 |
But it does not hurt for EPUB2, either. |
| 827 |
|
| 828 |
2017-08-09 Miklos Vajna <[email protected]> [8b43a3c1db56f11f661726476f4893ff0f974c7d] |
| 829 |
|
| 830 |
EPUBGenerator: add missing include |
| 831 |
|
| 832 |
This broke the MSVC build. |
| 833 |
|
| 834 |
2017-08-08 Miklos Vajna <[email protected]> [9041ef42f9e0a5c4bc3b0a912d36683c4e10ca84] |
| 835 |
|
| 836 |
EPUBHTMLManager: fix value of <navPoint playOrder"..."> |
| 837 |
|
| 838 |
<http://www.niso.org/workrooms/daisy/Z39-86-2005.html#NCXplay> "8.4.3 |
| 839 |
playOrder Attribute" says: |
| 840 |
|
| 841 |
playOrder is a positive integer; the first playOrder value in a document |
| 842 |
shall be 1. |
| 843 |
|
| 844 |
So instead of writing an empty attribute, write the same number that's |
| 845 |
already used for <navPoint id="...">. |
| 846 |
|
| 847 |
2017-08-08 Miklos Vajna <[email protected]> [2e51fb9163bbc6b9a27fa524382c5aad9700dd0d] |
| 848 |
|
| 849 |
EPUBGenerator: don't write empty guide element |
| 850 |
|
| 851 |
<http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6> "2.6: |
| 852 |
Guide" requires: |
| 853 |
|
| 854 |
Within the package there may be one guide element, containing one or |
| 855 |
more reference elements. |
| 856 |
|
| 857 |
Given that we never wrote reference child-elements, just don't write the |
| 858 |
guide element at all, especially seeing that it's deprecated in OPF3. |
| 859 |
|
| 860 |
2017-08-08 Miklos Vajna <[email protected]> [96e9786f5aba1078251f36e58feefc8d953cdea0] |
| 861 |
|
| 862 |
EPUBGenerator: fix validation error with empty dc:identifier element |
| 863 |
|
| 864 |
<http://www.idpf.org/epub/31/spec/epub-packages.html#sec-opf-dcidentifier> |
| 865 |
"3.4.3.2.1 The identifier Element" says that the character content is |
| 866 |
not optional, so write it. |
| 867 |
|
| 868 |
2017-08-03 Miklos Vajna <[email protected]> [a027c71d1c1d18e9fc0bc223c84203b0f480fbc3] |
| 869 |
|
| 870 |
EPUBPackage: document insertCharacters vs insertText difference |
| 871 |
|
| 872 |
|
| 873 |
2017-08-02 Miklos Vajna <[email protected]> [49f6461d4751d3b16e32ab8f9c93a3856b33be49] |
| 874 |
|
| 875 |
m4: MSVC defines __cplusplus as 199711L still |
| 876 |
|
| 877 |
See e.g. |
| 878 |
<https://stackoverflow.com/questions/37503029/cplusplus-is-equal-to-199711-in-msvc-does-it-support-c11>, |
| 879 |
on MSVC we can't depend on the value of __cplusplus, since that one is a |
| 880 |
too low value, even if everything else works fine. |
| 881 |
|
| 882 |
2017-08-02 David Tardon <[email protected]> [28b77fcf685e3c7a246297063273303ef4c87efb] |
| 883 |
|
| 884 |
BUILD_EXTRA_DIST does not exist |
| 885 |
|
| 886 |
|
| 887 |
2017-08-02 David Tardon <[email protected]> [e53039f89ccf49e3927d415a6e837e1de807dd4b] |
| 888 |
|
| 889 |
these files are distributed automatically |
| 890 |
|
| 891 |
|
| 892 |
2017-08-02 David Tardon <[email protected]> [e4fef18225f89b68077d6fad7a6dd6385d71ec73] |
| 893 |
|
| 894 |
prepare for a release |
| 895 |
|
| 896 |
|
| 897 |
2017-08-02 David Tardon <[email protected]> [a215111cbdd64c1c870cfd7b558eb9fad7733ee9] |
| 898 |
|
| 899 |
look for macros in m4/ |
| 900 |
|
| 901 |
|
| 902 |
2017-07-18 Miklos Vajna <[email protected]> [fe5fb9ebe9714e5a833225b9643b9f3ddde9f07e] |
| 903 |
|
| 904 |
Convert explicit for loops to range-based ones where possible |
| 905 |
|
| 906 |
This is most useful in EPUBTableStyleManager::extractCellProperties() to |
| 907 |
avoid repeating ourselves. |
| 908 |
|
| 909 |
2017-07-17 Miklos Vajna <[email protected]> [37bbf7e7e8822a1be4ac4a48eaa85531015a6176] |
| 910 |
|
| 911 |
Convert 0 to nullptr where it's used as a pointer value |
| 912 |
|
| 913 |
To make the code easier to read, because this means the remaining zeros |
| 914 |
all mean numbers. |
| 915 |
|
| 916 |
2017-07-14 Miklos Vajna <[email protected]> [dba4dd2d2bd8cac2367a3ce0ff01ae5927db347d] |
| 917 |
|
| 918 |
Mark overriding member functions as 'override' |
| 919 |
|
| 920 |
This does not affect the generated code (API or ABI), but: |
| 921 |
|
| 922 |
1) Makes sure that in case the signature of one of these functions would |
| 923 |
change by accident, the build breaks as the function no longer overrides |
| 924 |
a base function. |
| 925 |
|
| 926 |
2) Makes the code readable by explicitly marking all overriding |
| 927 |
functions as 'override', where previously the reader had to read the |
| 928 |
interface of the base class(es) as well to find out if the function is |
| 929 |
virtual or not. |
| 930 |
|
| 931 |
3) Since 'override' implies 'virtual', remove the 'virtual' keyword |
| 932 |
where 'override' is present. |
| 933 |
|
| 934 |
2017-07-14 Miklos Vajna <[email protected]> [fc5b1e1fd8f7f6a5a20277ea4c74df2f862e0c24] |
| 935 |
|
| 936 |
Remove unused using declarations |
| 937 |
|
| 938 |
|
| 939 |
2017-04-25 David Tardon <[email protected]> [2af63eebee98bbf01cd0086192f8e83b9da5035f] |
| 940 |
|
| 941 |
replace a dumb pointer by a smart one |
| 942 |
|
| 943 |
|
| 944 |
2017-04-25 David Tardon <[email protected]> [425202b6e5ab68ec88bca17f10e70752d81fe8fd] |
| 945 |
|
| 946 |
use std::stack for stack |
| 947 |
|
| 948 |
|
| 949 |
2017-04-25 David Tardon <[email protected]> [20091543f3e0d8f8bb47afde28dace32c2c03673] |
| 950 |
|
| 951 |
replace a dumb pointer by a smart one |
| 952 |
|
| 953 |
|
| 954 |
2017-04-25 David Tardon <[email protected]> [ed44836767dd658bdffe866bee474e488c91ea44] |
| 955 |
|
| 956 |
replace a dumb pointer by a smart one |
| 957 |
|
| 958 |
|
| 959 |
2017-04-25 David Tardon <[email protected]> [c96c323ebc449232c82150c5668991143a4ed39a] |
| 960 |
|
| 961 |
drop unused files |
| 962 |
|
| 963 |
|
| 964 |
2017-04-25 David Tardon <[email protected]> [0b6dcd1668c9e028808e6d5b6b6a3b9acd29a28d] |
| 965 |
|
| 966 |
drop dead code |
| 967 |
|
| 968 |
|
| 969 |
2017-04-25 David Tardon <[email protected]> [5445474673a15d343a91770bf3befd8b24c8f91e] |
| 970 |
|
| 971 |
replace boost::assign with C++11 code |
| 972 |
|
| 973 |
|
| 974 |
2017-04-25 David Tardon <[email protected]> [6657770ce1c86788cfd98a46bc32a0cd68a57c40] |
| 975 |
|
| 976 |
boost::unordered_map -> std::unordered_map |
| 977 |
|
| 978 |
This conversion would look better if the standard actually bothered to |
| 979 |
provide hash function for its container types... |
| 980 |
|
| 981 |
2017-04-25 David Tardon <[email protected]> [fbb9844ec0de727f3683f0f483821da2a125e44b] |
| 982 |
|
| 983 |
replace manual def. of int types by boost |
| 984 |
|
| 985 |
|
| 986 |
2017-04-25 David Tardon <[email protected]> [170b454c446ecd42caf860c69757eb30403c40b5] |
| 987 |
|
| 988 |
drop verbose debug |
| 989 |
|
| 990 |
|
| 991 |
2017-04-25 David Tardon <[email protected]> [cec6405d9f946482534cb7087611f32ec73a4104] |
| 992 |
|
| 993 |
boost::shared_ptr -> std::shared_ptr |
| 994 |
|
| 995 |
|
| 996 |
2017-04-25 David Tardon <[email protected]> [e911706502f426eba9111b7bf6e9c942f2e98011] |
| 997 |
|
| 998 |
use for-each loop |
| 999 |
|
| 1000 |
|
| 1001 |
2017-04-25 David Tardon <[email protected]> [4c17c5677886d6ac93bc9a3772987ca7c780c85e] |
| 1002 |
|
| 1003 |
drop unused boost headers from configure check |
| 1004 |
|
| 1005 |
|
| 1006 |
2017-04-25 David Tardon <[email protected]> [97bb74c589fefbc65ec8462cad87c5ff425f2ec2] |
| 1007 |
|
| 1008 |
move check for __attribute__((format)) to configure |
| 1009 |
|
| 1010 |
|
| 1011 |
2017-04-25 David Tardon <[email protected]> [9a56b66b65ff9d7434688618a6ba7c095c18adfb] |
| 1012 |
|
| 1013 |
switch to C++11 |
| 1014 |
|
| 1015 |
|
| 1016 |
2017-04-25 David Tardon <[email protected]> [5e146e1d1c6a0fb8807fc3e13397189f873a50a7] |
| 1017 |
|
| 1018 |
only ignore auto-updated files in m4 |
| 1019 |
|
| 1020 |
|
| 1021 |
2016-07-03 Fridrich Štrba <[email protected]> [4ded0352c730b906db9a4dee8e52b7efa6272063] |
| 1022 |
|
| 1023 |
-Werror=unused-function |
| 1024 |
|
| 1025 |
|
| 1026 |
2015-12-27 David Tardon <[email protected]> [2a25ba477bada25604cfc9855dbc2e151ae082b8] |
| 1027 |
|
| 1028 |
print debug output to stderr |
| 1029 |
|
| 1030 |
|
| 1031 |
2015-12-27 David Tardon <[email protected]> [785a2452dcadd2ea6e27f3eadd29370715fe4a38] |
| 1032 |
|
| 1033 |
simplify dist. and inst. of headers |
| 1034 |
|
| 1035 |
|
| 1036 |
2015-03-12 David Tardon <[email protected]> [28891005308793f507dd00c4c8c310817f9c7308] |
| 1037 |
|
| 1038 |
add make target for astyle |
| 1039 |
|
| 1040 |
|
| 1041 |
2015-03-12 David Tardon <[email protected]> [d0f90f3f53ed3c42cf9db7b9e4b33dafda72e367] |
| 1042 |
|
| 1043 |
do not assert |
| 1044 |
|
| 1045 |
|
| 1046 |
2015-02-02 David Tardon <[email protected]> [17f2b28d1e7961a3a60db9eeef0be83fe19c0705] |
| 1047 |
|
| 1048 |
remove bashism |
| 1049 |
|
| 1050 |
|
| 1051 |
2015-01-05 osnola <[email protected]> [10c72fd24b75684da4e068f4dd1704d05cef3200] |
| 1052 |
|
| 1053 |
Merge libepubgen_@EPUBGEN_MAJOR_VERSION@_@EPUBGEN_MINOR_VERSION@_la_LIBADD definitions :-) |
| 1054 |
|
| 1055 |
|
| 1056 |
2014-12-01 Fridrich Štrba <[email protected]> [1cf137ab0d86311290832a1f36cf3fca7ea859d9] |
| 1057 |
|
| 1058 |
Dist errors |
| 1059 |
|
| 1060 |
|
| 1061 |
2014-11-24 David Tardon <[email protected]> [b94f1e816ffd87d4d31c4a03f500befe9c6bbca0] |
| 1062 |
|
| 1063 |
only export public symbols |
| 1064 |
|
| 1065 |
|
| 1066 |
2014-11-24 David Tardon <[email protected]> [6adad68441614bef8f56ea71eda175fa2e392317] |
| 1067 |
|
| 1068 |
unused function |
| 1069 |
|
| 1070 |
|
| 1071 |
2014-11-24 David Tardon <[email protected]> [d58963141379dd8e0a0335645cc8ca50055df0b0] |
| 1072 |
|
| 1073 |
add compile to .gitignore |
| 1074 |
|
| 1075 |
|
| 1076 |
2014-07-10 David Tardon <[email protected]> [95aa4c92480ed9a684c3e129ed795e1ea7b1fa07] |
| 1077 |
|
| 1078 |
pass value by const ref |
| 1079 |
|
| 1080 |
|
| 1081 |
2014-07-08 David Tardon <[email protected]> [54a037324e591629319b58c1daf5108bf61e688b] |
| 1082 |
|
| 1083 |
escaping should be done by the generator |
| 1084 |
|
| 1085 |
|
| 1086 |
2014-07-08 Fridrich Štrba <[email protected]> [5529501d1486fc3916f102384bb7fb869f0d5300] |
| 1087 |
|
| 1088 |
This will be escaped in writerperfect |
| 1089 |
|
| 1090 |
|
| 1091 |
2014-07-05 David Tardon <[email protected]> [6f44b89f82afd1f15febff78a51a567698c76afd] |
| 1092 |
|
| 1093 |
add some TODO items |
| 1094 |
|
| 1095 |
|
| 1096 |
2014-07-05 David Tardon <[email protected]> [e7543ba616d2a81231503c488730a8f5c68d6ac3] |
| 1097 |
|
| 1098 |
prepare for a release |
| 1099 |
|
| 1100 |
|
| 1101 |
2014-07-05 David Tardon <[email protected]> [603a762c5da3d1fb145b31d71542907e2da2c01b] |
| 1102 |
|
| 1103 |
write README |
| 1104 |
|
| 1105 |
|
| 1106 |
2014-07-05 David Tardon <[email protected]> [e1d79ee3bb8f031b5949788941bd86baed607c0c] |
| 1107 |
|
| 1108 |
improve documentation |
| 1109 |
|
| 1110 |
|
| 1111 |
2014-07-05 David Tardon <[email protected]> [981630b5be9d31bcd1e51ae39f7e9957b6166c00] |
| 1112 |
|
| 1113 |
handle splitting to files on page break |
| 1114 |
|
| 1115 |
|
| 1116 |
2014-06-29 David Tardon <[email protected]> [316be1caa89177da9bf8140005fb32c7b9dfbc7d] |
| 1117 |
|
| 1118 |
rename class to avoid confusion |
| 1119 |
|
| 1120 |
|
| 1121 |
2014-06-29 David Tardon <[email protected]> [1d3bc8c8f7bfb1db0e3536f51019b8a4ed2cf646] |
| 1122 |
|
| 1123 |
use existing typedef |
| 1124 |
|
| 1125 |
|
| 1126 |
2014-06-29 David Tardon <[email protected]> [98bcac802c14815fbe0fb904bf0819f0000ad7b4] |
| 1127 |
|
| 1128 |
drop unneeded include |
| 1129 |
|
| 1130 |
|
| 1131 |
2014-06-29 David Tardon <[email protected]> [50c660a825691a030aca5d23490cd928cd550946] |
| 1132 |
|
| 1133 |
rename class; there will be no other HTML generators |
| 1134 |
|
| 1135 |
|
| 1136 |
2014-06-29 David Tardon <[email protected]> [40d0dd866539e3af2e6342a086b16e7a46e15cdd] |
| 1137 |
|
| 1138 |
allow to register image handlers for all generators |
| 1139 |
|
| 1140 |
|
| 1141 |
2014-06-29 David Tardon <[email protected]> [10a52e2386c4c60ea32e68812505aebd65a91806] |
| 1142 |
|
| 1143 |
add API for HTML splitting |
| 1144 |
|
| 1145 |
|
| 1146 |
2014-06-29 David Tardon <[email protected]> [600f784d0df2b2bcc1c42b97b39018ab69c2d1fd] |
| 1147 |
|
| 1148 |
impl. ctors |
| 1149 |
|
| 1150 |
|
| 1151 |
2014-06-29 David Tardon <[email protected]> [c000ce3ffcc2b2667098ec93259e5b37dca4060f] |
| 1152 |
|
| 1153 |
drop broken win32 project files |
| 1154 |
|
| 1155 |
|
| 1156 |
2014-06-29 David Tardon <[email protected]> [77a7fe0868ce13ffcef8ef96754cb07770923c03] |
| 1157 |
|
| 1158 |
one-param. ctors should be explicit |
| 1159 |
|
| 1160 |
|
| 1161 |
2014-06-29 David Tardon <[email protected]> [90087f3165859d7a2972e87890c5f06ff300bd8f] |
| 1162 |
|
| 1163 |
add support for embedded images and objects |
| 1164 |
|
| 1165 |
|
| 1166 |
2014-06-29 David Tardon <[email protected]> [c4548090a5a0765e8c52582883c1f5491d43557a] |
| 1167 |
|
| 1168 |
handle text blocks of page-based interfaces |
| 1169 |
|
| 1170 |
|
| 1171 |
2014-06-29 David Tardon <[email protected]> [f0ff01bdf92bea628b323740afb4d028d5b00aec] |
| 1172 |
|
| 1173 |
move handling of text size to the common class too |
| 1174 |
|
| 1175 |
|
| 1176 |
2014-06-29 David Tardon <[email protected]> [c9fb74c86096667338fdccfb8a734b36a50c0ed7] |
| 1177 |
|
| 1178 |
provide common impl. for page-based generators |
| 1179 |
|
| 1180 |
|
| 1181 |
2014-06-29 David Tardon <[email protected]> [433f72f4c7edbb824527921ca55977c5397487a1] |
| 1182 |
|
| 1183 |
distribute and install libepubgen-api.h |
| 1184 |
|
| 1185 |
|
| 1186 |
2014-06-29 David Tardon <[email protected]> [2b5d3fa1fa01ac5a588c9163387b07ba111753df] |
| 1187 |
|
| 1188 |
put the common parts of EPUB creation to a class |
| 1189 |
|
| 1190 |
|
| 1191 |
2014-06-29 David Tardon <[email protected]> [a85587b1a6a5f62b5403fc255fbcdfd793e735ac] |
| 1192 |
|
| 1193 |
add collecting class for page elements |
| 1194 |
|
| 1195 |
For future use. |
| 1196 |
|
| 1197 |
2014-06-29 David Tardon <[email protected]> [5bd80f1971ebe40312826139d5c47ca83d54fa51] |
| 1198 |
|
| 1199 |
rename class |
| 1200 |
|
| 1201 |
|
| 1202 |
2014-06-28 David Tardon <[email protected]> [9daab5ce0acbb3af66b615203a25e7e7cb0d082c] |
| 1203 |
|
| 1204 |
group the functions by purpose |
| 1205 |
|
| 1206 |
|
| 1207 |
2014-06-28 David Tardon <[email protected]> [36b775d40dd31b4a9ec3f27e74cbaffefc121525] |
| 1208 |
|
| 1209 |
output to text files is useful after all |
| 1210 |
|
| 1211 |
It can be used for writing SVG images. |
| 1212 |
|
| 1213 |
2014-06-28 David Tardon <[email protected]> [6b945868291fa3a287afdfe547949d873e809ac2] |
| 1214 |
|
| 1215 |
clean old cruft |
| 1216 |
|
| 1217 |
|
| 1218 |
2014-06-28 David Tardon <[email protected]> [8a3573a288cecb750e796fee13e77aea0af6e472] |
| 1219 |
|
| 1220 |
add presentation generator (dummy impl. for now) |
| 1221 |
|
| 1222 |
|
| 1223 |
2014-06-28 David Tardon <[email protected]> [bb3f5b28660f870f8ed5ba802be3c2cc39ba4652] |
| 1224 |
|
| 1225 |
add drawing generator (dummy impl. for now) |
| 1226 |
|
| 1227 |
|
| 1228 |
2014-06-23 David Tardon <[email protected]> [01d0e4bc5df67a9afb1a69dace5f0676bf8e22db] |
| 1229 |
|
| 1230 |
bah, forgot to implement two functions |
| 1231 |
|
| 1232 |
|
| 1233 |
2014-06-22 David Tardon <[email protected]> [5755f94d17fd2c3e087fb71a9a610395ac31ae14] |
| 1234 |
|
| 1235 |
split HTML content into smaller files |
| 1236 |
|
| 1237 |
|
| 1238 |
2014-06-22 David Tardon <[email protected]> [79fd359b7115ff2f2f41c95bb9e202c1d0481188] |
| 1239 |
|
| 1240 |
there is no need to create text files in the package |
| 1241 |
|
| 1242 |
|
| 1243 |
2014-06-22 David Tardon <[email protected]> [994d733a9847b8dd6acfbd933abc0c02bdd46757] |
| 1244 |
|
| 1245 |
struct -> class in forward decl |
| 1246 |
|
| 1247 |
|
| 1248 |
2014-06-22 David Tardon <[email protected]> [a846255a2f48c739ea26c53044ae79ac3bfbc3b1] |
| 1249 |
|
| 1250 |
check for all used boost headers |
| 1251 |
|
| 1252 |
|
| 1253 |
2014-06-22 David Tardon <[email protected]> [f711a7f348b8dc5c066377f4848b135f785f3603] |
| 1254 |
|
| 1255 |
keep CSS props in a map |
| 1256 |
|
| 1257 |
|
| 1258 |
2014-06-22 David Tardon <[email protected]> [a4b6632c0cde956546a4cc45995dd5ae08e9eee7] |
| 1259 |
|
| 1260 |
add a separate interface functions for CSS files |
| 1261 |
|
| 1262 |
This will replace the text functions in near future, as CSS is the only |
| 1263 |
text-based file that is needed. |
| 1264 |
|
| 1265 |
2014-06-22 David Tardon <[email protected]> [49094cf981efd53c953a4b68cb409ad34db6034b] |
| 1266 |
|
| 1267 |
write separate stylesheet file |
| 1268 |
|
| 1269 |
|
| 1270 |
2014-06-22 David Tardon <[email protected]> [b2f632bc0e866a6e86d1d506388015bf0075938d] |
| 1271 |
|
| 1272 |
rename style generating classes |
| 1273 |
|
| 1274 |
|
| 1275 |
2014-06-21 David Tardon <[email protected]> [6a0965e2517192b922e5078f3f1f0bf1cd5d587e] |
| 1276 |
|
| 1277 |
follow the recommendation from OCF 2.0.1 |
| 1278 |
|
| 1279 |
|
| 1280 |
2014-06-21 David Tardon <[email protected]> [a74584212e46b56d5487ab2ff2d1d21888079d87] |
| 1281 |
|
| 1282 |
reformat |
| 1283 |
|
| 1284 |
|
| 1285 |
2014-06-21 David Tardon <[email protected]> [859074650571b4ca6a04ea1a1d93756c78450efa] |
| 1286 |
|
| 1287 |
start using path |
| 1288 |
|
| 1289 |
|
| 1290 |
2014-06-21 David Tardon <[email protected]> [394452d1d6f430a4146ca3feb5a1959a868dfe32] |
| 1291 |
|
| 1292 |
add helper class for handling internal paths |
| 1293 |
|
| 1294 |
|
| 1295 |
2014-06-21 David Tardon <[email protected]> [cc9146c8190b68481e0b4430a679add226882547] |
| 1296 |
|
| 1297 |
produce valid XHTML |
| 1298 |
|
| 1299 |
|
| 1300 |
2014-06-21 David Tardon <[email protected]> [9dbc267e70a7c92715f688b910fe66f8429148eb] |
| 1301 |
|
| 1302 |
really insert images to the output |
| 1303 |
|
| 1304 |
|
| 1305 |
2014-06-19 David Tardon <[email protected]> [f9fd161967a677c495a6a37f241864e31b45f1ca] |
| 1306 |
|
| 1307 |
coverity#12665 dereference null return value |
| 1308 |
|
| 1309 |
|
| 1310 |
2014-06-15 David Tardon <[email protected]> [b1866629b945f87c889bc8da7b6f05eded361107] |
| 1311 |
|
| 1312 |
add support for images |
| 1313 |
|
| 1314 |
|
| 1315 |
2014-06-15 David Tardon <[email protected]> [bba55bc5e493012f3cc7ce57b47f5157f951929b] |
| 1316 |
|
| 1317 |
handle manifest in a centralized way |
| 1318 |
|
| 1319 |
|
| 1320 |
2014-06-15 David Tardon <[email protected]> [4e3442bd9bd23ec73d7dc180f21e236635e0cef7] |
| 1321 |
|
| 1322 |
simplify insertion of empty elements |
| 1323 |
|
| 1324 |
|
| 1325 |
2014-06-15 David Tardon <[email protected]> [6fad06043d60467f828051a6b216b094a1b9bf90] |
| 1326 |
|
| 1327 |
simplify creation of elements without attributes |
| 1328 |
|
| 1329 |
|
| 1330 |
2014-06-15 David Tardon <[email protected]> [557e491ad757c3451f5c9da62084946a6c014fcd] |
| 1331 |
|
| 1332 |
the typedef does not neet to be accessible from outside |
| 1333 |
|
| 1334 |
|
| 1335 |
2014-06-13 David Tardon <[email protected]> [5d30cbc9b4840c652d2449bcd19daf670eab617e] |
| 1336 |
|
| 1337 |
produce conforming ePub 2.0 |
| 1338 |
|
| 1339 |
|
| 1340 |
2014-06-13 David Tardon <[email protected]> [4fea820c2e35271258b5057d0b4fad183691aa16] |
| 1341 |
|
| 1342 |
remove functions to better match purpose |
| 1343 |
|
| 1344 |
|
| 1345 |
2014-06-11 David Tardon <[email protected]> [0b5e300ac4997820f5f934a22e8b9cf074d1ab90] |
| 1346 |
|
| 1347 |
write out ePub package |
| 1348 |
|
| 1349 |
|
| 1350 |
2014-06-11 David Tardon <[email protected]> [6763280ecad73b08524fd396584fa09e5c409fa1] |
| 1351 |
|
| 1352 |
produce (nearly) valid XHTML |
| 1353 |
|
| 1354 |
|
| 1355 |
2014-06-08 David Tardon <[email protected]> [13155daa10b1bb595463c030cddec3e90f3a3db1] |
| 1356 |
|
| 1357 |
copy HTML text generator from librevenge |
| 1358 |
|
| 1359 |
I would really rather use librevenge-generators, but the code will need |
| 1360 |
some modifications. First thing, the generator produces HTML, not XHTML. |
| 1361 |
Second, it only produces one output file, while I need any number of |
| 1362 |
XHTML files and one CSS file. Last but not least, it drops images. |
| 1363 |
|
| 1364 |
2014-06-08 David Tardon <[email protected]> [607828da0035cb4db6ad18402700ae26cf26ef77] |
| 1365 |
|
| 1366 |
create a new project |
| 1367 |
|