414 Commits

Author SHA1 Message Date
Michael Williamson
27c021131c Use simpler structure for HTML without fragments 2016-06-09 22:32:30 +01:00
Michael Williamson
2e4585098e Simplify vMerge logic 2016-05-12 22:10:57 +01:00
Michael Williamson
5b8c7012f7 Remove unused rowIndex argument 2016-05-12 21:53:55 +01:00
Michael Williamson
9ecffea916 Actually add support for table cells spanning multiple rows 2016-05-12 21:43:09 +01:00
Michael Williamson
786ed7e34f Avoid merging in non-conforming cells 2016-05-10 21:29:20 +01:00
Michael Williamson
1417c93beb Add support for table cells spanning multiple rows 2016-05-10 21:25:10 +01:00
Michael Williamson
245082a0c5 Add support for table cells spanning multiple columns 2016-05-02 11:41:09 +01:00
Michael Williamson
1b54156c52 Read colSpan for table cells 2016-05-02 11:32:44 +01:00
Michael Williamson
3433c9bfcc Change document transforms to create copies of elements 2016-04-02 17:56:07 +01:00
Michael Williamson
6a4cc9231f Rename images.inline to images.imgElement 2016-04-02 17:14:31 +01:00
Michael Williamson
4a61edf089 Remove support for convertUnderline 2016-03-28 13:47:37 +01:00
Michael Williamson
b4a2cfa279 Default the ID prefix to the empty string 2016-03-28 13:47:37 +01:00
Michael Williamson
1caa452c06 Generated IDs no longer insert a hyphen after the ID prefix 2016-03-28 13:47:37 +01:00
Michael Williamson
2e818b7bea Improve collapsing of elements when there are empty elements
Specifically, strip out empty nodes before attempting to collapse.
2016-03-23 00:11:16 +00:00
Michael Williamson
137f9e20d3 Allow italic runs to be configured using style mapping 2016-02-25 19:28:11 +00:00
Michael Williamson
63dff589c8 Allow bold runs to be configured using style mapping 2016-02-25 19:27:23 +00:00
Michael Williamson
afe8acc82a Parse italic document matcher 2016-02-25 19:20:16 +00:00
Michael Williamson
50851fc4e2 Parse bold document matcher 2016-02-25 19:18:45 +00:00
Michael Williamson
9d3874dad6 Extract common code for reading styles 2016-02-04 13:34:16 +00:00
Michael Williamson
8408269bfe Handle missing run styles in the source document 2016-02-04 13:34:16 +00:00
Michael Williamson
53804571b2 Handle missing paragraph styles in the source document 2016-02-04 13:34:16 +00:00
Michael Williamson
2935aefeb2 Improve support for lists made in LibreOffice 2016-01-13 18:57:52 +00:00
Michael Williamson
b077df1b5a Replace nomnom with argparse 2015-12-28 11:47:38 +00:00
Michael Williamson
1c582ffacd Always use mc:Fallback when reading mc:AlternateContent elements 2015-12-20 20:40:31 +00:00
Michael Williamson
af8b26e0e1 Read v:imagedata with r:id attribute 2015-12-06 15:44:56 +00:00
Michael Williamson
9878af20ba Split up image reading into separate functions 2015-12-06 15:39:16 +00:00
Michael Williamson
647b99931c Ignore office-word:wrap 2015-12-06 14:33:08 +00:00
Michael Williamson
c7e4ee3375 Ignore v:shapetype 2015-12-06 14:29:48 +00:00
Michael Williamson
85d9120f0d Ignore v:shadow 2015-12-06 12:36:21 +00:00
Michael Williamson
9976e9bb7a Read children of v:roundrect 2015-12-06 12:19:27 +00:00
Michael Williamson
995fe75d57 Write result messages to stderr in CLI 2015-12-06 12:19:12 +00:00
Michael Williamson
0fc88bee80 Avoid inserting newlines around inline elements for pretty printing 2015-10-20 09:26:37 +01:00
Michael Williamson
b97b743968 Fix recursive collapsing elements 2015-10-14 19:59:21 +01:00
Michael Williamson
7aab2c5023 Remove unused module 2015-10-14 19:27:39 +01:00
Michael Williamson
9de6bed1cd Don't escape double quotes outside of attributes 2015-10-14 19:26:10 +01:00
Michael Williamson
68a681c30a Use html.nonFreshElement in document-to-html 2015-10-14 19:18:30 +01:00
Michael Williamson
e0397dcd7f Rename html.element to html.freshElement 2015-10-14 19:17:07 +01:00
Michael Williamson
46ad965f93 Add extra tests for simplification of empty elements 2015-10-14 19:14:11 +01:00
Michael Williamson
7b7ce0d563 Collapse similar HTML elements 2015-10-13 23:49:31 +01:00
Michael Williamson
e04d054a1b Reuse matchesElement from HTML paths 2015-10-13 22:14:41 +01:00
Michael Williamson
aac776b171 Add simplification of nodes 2015-10-13 22:10:42 +01:00
Michael Williamson
2fb7a36230 Add element node 2015-10-13 21:26:50 +01:00
Michael Williamson
5f67ade998 Add HTML text and fragment nodes 2015-10-13 21:24:38 +01:00
Michael Williamson
4163a1ec77 Fix HTML generation when the HTML path has no fresh elements 2015-10-13 21:09:40 +01:00
Michael Williamson
a4afe3c01c Fix race condition 2015-09-12 14:02:49 +01:00
Michael Williamson
a34fb36159 Remove duplicated code for adding or updating element 2015-09-12 13:49:45 +01:00
Michael Williamson
41cdf4345f Add content type for embedded style map 2015-09-12 13:43:30 +01:00
Michael Williamson
e479598b2e Provide slightly more description error on file open failure 2015-09-07 20:46:10 +01:00
Michael Williamson
2596c1c712 Continue with warning when failing to read image 2015-09-07 20:39:54 +01:00
Michael Williamson
e5e37a6f2c Add support for external images 2015-09-07 20:04:58 +01:00