pandoc/test/docx
Emily Bourke 56b211120c
Docx reader: Support new table features.
* Column spans
* Row spans
  - The spec says that if the `val` attribute is ommitted, its value
    should be assumed to be `continue`, and that its values are
    restricted to {`restart`, `continue`}. If the value has any other
    value, I think it seems reasonable to default it to `continue`. It
    might cause problems if the spec is extended in the future by adding
    a third possible value, in which case this would probably give
    incorrect behaviour, and wouldn't error.
* Allow multiple header rows
* Include table description in simple caption
  - The table description element is like alt text for a table (along
    with the table caption element). It seems like we should include
    this somewhere, but I’m not 100% sure how – I’m pairing it with the
    simple caption for the moment. (Should it maybe go in the block
    caption instead?)
* Detect table captions
  - Check for caption paragraph style /and/ either the simple or
    complex table field. This means the caption detection fails for
    captions which don’t contain a field, as in an example doc I added
    as a test. However, I think it’s better to be too conservative: a
    missed table caption will still show up as a paragraph next to the
    table, whereas if I incorrectly classify something else as a table
    caption it could cause havoc by pairing it up with a table it’s
    not at all related to, or dropping it entirely.
* Update tests and add new ones

Partially fixes: 
2021-05-28 20:15:23 +02:00
..
golden Docx reader: Read table column widths. 2021-05-28 20:15:23 +02:00
0_level_headers.docx
0_level_headers.native Docx reader: Read table column widths. 2021-05-28 20:15:23 +02:00
adjacent_codeblocks.docx [Docx Reader] Update tests 2019-09-21 11:37:21 -07:00
adjacent_codeblocks.native Docx reader tests: Test for combining adjacent code blocks. 2018-04-17 09:29:54 -04:00
already_auto_ident.docx
already_auto_ident.native
alternate_document_path.docx Docx reader: Tests for alternate document.xml 2019-02-06 21:14:46 -05:00
alternate_document_path.native Support new Underline element in readers and writers () 2020-04-28 07:53:06 -07:00
block_quotes.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
block_quotes_parse_indent.native
char_styles.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
char_styles.native
codeblock.docx
codeblock.native
comments.docx
comments.native
comments_no_comments.native
comments_warning.docx
compact-style-removal.docx [Docx Reader] Use style names, not ids, for assigning semantic meaning 2019-09-21 11:18:15 -07:00
compact-style-removal.native [Docx Reader] Use style names, not ids, for assigning semantic meaning 2019-09-21 11:18:15 -07:00
custom-style-no-styles.native Docx reader tests: test custom style extension. 2018-02-22 13:05:44 -05:00
custom-style-preserve.native Preserve built-in styles in DOCX with custom style () 2019-09-20 22:13:29 -07:00
custom-style-reference.docx
custom-style-roundtrip-end.native
custom-style-with-styles.native [Docx Reader] Update tests 2019-09-21 11:37:21 -07:00
custom_style.native Docx writer tests: Add tests for custom styles 2018-01-27 11:46:41 -05:00
deep_normalize.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
deep_normalize.native
definition_list.docx
definition_list.native
document-properties-short-desc.native Improve writing metadata for docx, pptx and odt () 2019-01-26 16:14:35 -08:00
document-properties.native Improve writing metadata for docx, pptx and odt () 2019-01-26 16:14:35 -08:00
drop_cap.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
drop_cap.native
dummy_item_after_list_item.docx
dummy_item_after_list_item.native
dummy_item_after_paragraph.docx
dummy_item_after_paragraph.native
enumerated_headings.docx
enumerated_headings.native
german_styled_lists.docx
german_styled_lists.native
hanging_indent.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
hanging_indent.native
headers.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
headers.native
i18n_blocks.docx
i18n_blocks.native
image.docx
image_no_embed.native
image_no_embed_writer.native
image_vml.docx
image_vml.native
image_vml_as_object.docx Docx reader: add handling of vml image objects (jgm#4735) () 2021-04-29 09:11:44 -07:00
image_vml_as_object.native Docx reader: add handling of vml image objects (jgm#4735) () 2021-04-29 09:11:44 -07:00
image_writer_test.native Docx test: adjust test for fix of bug 2018-02-23 11:50:33 -05:00
inline_code.docx
inline_code.native
inline_formatting.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
inline_formatting.native [Docx Reader] Refactor/update smushInlines 2020-07-07 09:04:38 +03:00
inline_formatting_writer.native
inline_images.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
inline_images.native
inline_images_writer.native
inline_images_writer_test.native
instrText_hyperlink.docx
instrText_hyperlink.native
link_in_notes.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
link_in_notes.native
links.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
links.native
links_writer.native
lists-compact.docx [Docx Reader] Use style names, not ids, for assigning semantic meaning 2019-09-21 11:18:15 -07:00
lists-compact.native [Docx Reader] Use style names, not ids, for assigning semantic meaning 2019-09-21 11:18:15 -07:00
lists.docx [Docx Reader] Update tests 2019-09-21 11:37:21 -07:00
lists.native [Docx Reader] Update tests 2019-09-21 11:37:21 -07:00
lists_continuing.docx
lists_continuing.native
lists_level_override.docx Docx: add test for lists with level overrides. 2018-12-10 19:24:56 -05:00
lists_level_override.native Docx reader tests: fix test file with trailing space. 2019-02-18 15:49:36 -05:00
lists_multiple_initial.native Docx writer: better handle list items whose contents are lists () 2020-10-02 09:30:05 -07:00
lists_restarting.docx
lists_restarting.native
lists_sublist_reset.docx Docx reader: fix list number resumption for sublists. Closes . 2019-11-03 12:54:42 -08:00
lists_sublist_reset.native Docx reader: fix list number resumption for sublists. Closes . 2019-11-03 12:54:42 -08:00
lists_writer.native
metadata.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
metadata.native
metadata_after_normal.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
metadata_after_normal.native
nested_anchors_in_header.docx
nested_anchors_in_header.native [Docx Reader] Update tests 2019-09-21 11:37:21 -07:00
nested_sdt.docx Docx reader: Handle nested sdt tags. 2018-02-28 16:32:20 -05:00
nested_sdt.native Docx reader: Handle nested sdt tags. 2018-02-28 16:32:20 -05:00
nested_smart_tags.docx Docx reader: add tests for nested smart tags. 2018-03-13 22:16:54 -04:00
nested_smart_tags.native Docx reader: add tests for nested smart tags. 2018-03-13 22:16:54 -04:00
normalize.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
normalize.native
notes.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
notes.native
numbered_header.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
numbered_header.native
overlapping_targets.docx
overlapping_targets.native
paragraph_insertion_deletion.docx
paragraph_insertion_deletion_accept.native
paragraph_insertion_deletion_all.native
paragraph_insertion_deletion_reject.native
raw-blocks.native Docx writer: keep raw openxml strings verbatim. 2020-12-13 14:09:59 +01:00
raw-bookmarks.native Docx writer: keep raw openxml strings verbatim. 2020-12-13 14:09:59 +01:00
sdt_elements.docx
sdt_elements.native Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
sdt_in_footnote.docx Docx reader: Add test for reading sdts in footnotes. 2019-02-12 17:26:37 -05:00
sdt_in_footnote.native Docx reader: Add test for reading sdts in footnotes. 2019-02-12 17:26:37 -05:00
special_punctuation.docx
special_punctuation.native
table_captions_no_field.docx Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_captions_no_field.native Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_captions_with_field.docx Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_captions_with_field.native Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_header_rowspan.docx Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_header_rowspan.native Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_one_header_row.docx Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_one_header_row.native Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_one_row.docx Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_one_row.native Docx reader: Read table column widths. 2021-05-28 20:15:23 +02:00
table_variable_width.docx Docx reader: Pick table width from the longest row or header 2018-02-15 15:06:01 -05:00
table_variable_width.native Docx reader: Support new table features. 2021-05-28 20:15:23 +02:00
table_with_list_cell.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
table_with_list_cell.native Docx reader: Read table column widths. 2021-05-28 20:15:23 +02:00
tables-default-widths.native Docx reader: Read table column widths. 2021-05-28 20:15:23 +02:00
tables.docx Remove nonfree ICC profiles from thumbnails in test docx files. 2018-04-25 17:00:21 -07:00
tables.native Docx reader: Read table column widths. 2021-05-28 20:15:23 +02:00
tabs.docx
tabs.native
track_changes_deletion.docx
track_changes_deletion_accept.native
track_changes_deletion_all.native
track_changes_deletion_reject.native
track_changes_insertion.docx
track_changes_insertion_accept.native
track_changes_insertion_all.native
track_changes_insertion_reject.native
track_changes_move.docx
track_changes_move_accept.native
track_changes_move_all.native
track_changes_move_reject.native
track_changes_scrubbed_metadata.docx DOCX reader: Allow empty dates in comments and tracked changes () 2020-10-06 21:03:00 -07:00
track_changes_scrubbed_metadata.native DOCX reader: Allow empty dates in comments and tracked changes () 2020-10-06 21:03:00 -07:00
trailing_spaces_in_formatting.docx
trailing_spaces_in_formatting.native
trim_last_inline.docx Docx reader: add tests for trimming last inline. 2019-02-18 15:49:00 -05:00
trim_last_inline.native Docx reader: add tests for trimming last inline. 2019-02-18 15:49:00 -05:00
unicode.docx
unicode.native
unused_anchors.docx
unused_anchors.native
verbatim_subsuper.docx
verbatim_subsuper.native