summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Docx.hs
Commit message (Collapse)AuthorAge
* Docx writer: Moved invalid character stripping to `formattedString`.John MacFarlane2015-08-10
| | | | | | | | This avoids an inefficient generic traversal. Updates f3aa03e. Closes #2356.
* Make sure we use dist version of reference.docx for some things.John MacFarlane2015-06-28
| | | | | | | Taking some values from a user-supplied reference.docx tends to lead to corruption. This fixes a regression from the last release. Closes #2249.
* Let reference.docx/odt behave as if they are virtual data files.John MacFarlane2015-06-28
| | | | | | | | | | | | | | | Now they are constructed on the fly from their components, but we now allow them to be printed with `--print-default-data-file` and to override the defaults if placed in the user data directory. Shared now exports getDefaultReferenceDocx and getDefaultReferenceODT (API change). These functions have been removed from the Docx and ODT writers. Shared.readDataFile has been modified so that requests to read a reference.odt or reference.docx will use these functions to generate the files.
* Better fix for #2187.John MacFarlane2015-05-28
| | | | | | | | | | | | | | | | | | | | | | * Reverted kludgy change to make-windows-installer.bat. * Removed make-reference-fiels.hs. * Moved the individual ingredients of reference.docx and reference.odt to the data directory. * Removed reference.docx and reference.odt from data directory. * We now build the reference archives from their ingredient pieces in the docx and odt writers, instead of having a reference.docx or reference.odt intermediary. This should fix #2187. It also simplifies the bulid procedure. The one thing users may notice is different is that you can no longer get the reference.docx or reference.odt using `--print-default-data-file`. Instead, simply generate a docx or odt using pandoc with a blank or minimal input, and use that (or a customized version) with `--reference-docx` or `--reference-odt`.
* Improved warnings when image size can't be determined.John MacFarlane2015-05-09
| | | | Closes #1834.
* ImageSize: make imageSize return an Either, not a Maybe.John MacFarlane2015-05-09
| | | | | This will give us better error reporting options. This is part of a fix for #1834.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Docx Writer: Take TOC title from toc-title metadata fieldNikolay Yakimov2015-04-14
|
* Added "noProof" to docx syntax highlighting SourceCode style.John MacFarlane2015-04-01
|
* Merge pull request #2035 from lierdakil/issue2031John MacFarlane2015-03-30
|\ | | | | Docx Writer/Reference: Add keepNext to objects w/ captions
| * Docx Writer: Add a style to figure imagesNikolay Yakimov2015-03-29
| | | | | | | | | | | | | | Figures with empty captions use style "Figure" Figures with nonempty captions use style "Figure with Caption", which is based on "Figure", and additionally has keepNext set.
* | Merge pull request #2038 from lierdakil/docx-hyphen-settingsJohn MacFarlane2015-03-29
|\ \ | | | | | | Docx Writer: Copy hyphenation settings from reference.docx
| * | Docx Writer: Copy hyphenation settings from reference.docxNikolay Yakimov2015-03-29
| |/
* | Merge pull request #2037 from lierdakil/issue458John MacFarlane2015-03-29
|\ \ | | | | | | Docx Writer: support for --toc option
| * | Docx Writer: Place toc after abstract, rather than beforeNikolay Yakimov2015-03-29
| | |
| * | Docx Writer: Initial support for --toc option (issue #458)Nikolay Yakimov2015-03-29
| |/ | | | | | | Creates a "dirty" TOC at the beginning of document, before abstract
* / Docx Writer: Filter out illegal XML charactersMatthew Pickering2015-03-29
|/ | | | Fixes #1992
* Docx Writer: set firstRow information in tablesNikolay Yakimov2015-03-08
|
* Code cleanupNikolay Yakimov2015-03-03
|
* Started moving StyleMap out of writer codeNikolay Yakimov2015-03-01
|
* Update Docx writer for 1cb601d reference.docxNikolay Yakimov2015-03-01
|
* Comment out unused functions to make CI happyNikolay Yakimov2015-02-24
|
* Treat some ambiguous styles as custom for nowNikolay Yakimov2015-02-24
| | | | | | | | | | | * Author * Abstract * Compact * ImageCaption * TableCaption * DefinitionTerm * Definition * FirstParagraph
* Do not lookup custom stylesNikolay Yakimov2015-02-23
|
* Also skip SourceCode style if existsNikolay Yakimov2015-02-23
|
* If --no-highlight is set, remove *Tok styles.Nikolay Yakimov2015-02-22
|
* Prototype fix for #1872Nikolay Yakimov2015-02-22
|
* Initial stab at more involved fix for #1607Nikolay Yakimov2015-02-21
| | | | | | This patch attempts to build a style name -> style id mapping based on styles.xml from reference doc, and changes pStyle and rStyle to accept style name as a parameter instead of styleId. There is a fallback mechanic that removes spaces from style name and returns it as style id, but it likely won't help much. Style names are matched lower-case, since headings and `footnote text` have lowercase names.
* Docx writer: Add footnotes id -1 and 0.Jesse Rosenthal2015-02-12
| | | | | | | | Word uses, by default, footnotes with id -1 and 0 for separators. If a user modifies reference.docx, they will end up with a settings.xml file that references these footnotes, but no such footnotes in the document. This will produce a corruption error. Here we add these to the document and settings.xml file, so future modifications won't break the file.
* Docx Writer: Add "BodyText" StyleJesse Rosenthal2015-02-11
| | | | | | | | | | | We apply a "BodyText" style to all unstyled paragraphs. This is, essentially, the same as "Normal" up until now -- except that since not everything inherits from "BodyText" (the metadata won't, for example, or the headers or footnote numbers) we can change the text in the body without having to make exceptions for everything. This will still inherit from Normal, so if we want to change *everything*, we can do it through "Normal".
* Docx Writer: Use FirstParagraph style at beginning.Jesse Rosenthal2015-02-10
| | | | | | | Before we had used `FirstParagraph` style after Headings, BlockQuotes, and other blocks a user might not want an indentation after. We hadn't actually used it for the first paragraph -- i.e. the opening of the body. This makes sure the first body paragraph gets that style.
* Docx Writer: Implement FirstParagraph StyleJesse Rosenthal2015-02-09
| | | | | | | Following the odt writer, we make the first text paragraph following an image, blockquote, table, or heading into a "FirstParagraph" style. This allows it to be styled differently, if the user wishes. The default is for it to be the same as "Normal"
* Added Text.Pandoc.Compat.Locale to assist with transition to time 1.5.John MacFarlane2014-12-19
|
* Fix for #1641 (docx table captions above tables)Nikolay Yakimov2014-12-08
| | | | Word doesn't really treat table captions as something special. It's just a paragraph with special style, nothing more, so simple reversal of output order in writer works fine.
* Docx Writer: Partial fix for #1607Nikolay Yakimov2014-10-24
| | | | International heading styles are inferred based on `<w:name val="heading #">` fallback, if there are no en-US "Heading#" styles
* DOCX writer: Look in user data dir for archive reference.docx.John MacFarlane2014-10-21
|
* Getting the page width from the reference fileGrégory Bataille2014-10-05
| | | | | | Uses it to scale images that are too large. When there is no reference files, default to a US letter portrait size to scale the images
* Docx writer: Renumber header and footer relationships to avoid collisions.Jesse Rosenthal2014-09-11
| | | | | | We previously took the old relationship names of the headers and footer in secptr. That led to collisions. We now make a map of availabl names in the relationships file, and then rename in secptr.
* Merge branch 'mime' of https://github.com/Aelve/John into Aelve-mimeJohn MacFarlane2014-08-30
|\ | | | | | | | | Conflicts: src/Text/Pandoc/Writers/Docx.hs
| * MIME cleanup.Artyom Kazak2014-08-17
| | | | | | | | | | | | | | * Create a type synonym for MIME type (instead of `String`). * Add `getMimeTypeDef` function. * Avoid recreating MIME type `Map`s every time. * Move “Formula-...” case handling into `getMimeType`.
* | Docx writer: Accomodate GHC 7.4 (no lookupEnv)Jesse Rosenthal2014-08-26
| |
* | Docx writer: Default to user login and time of change if not given.Jesse Rosenthal2014-08-25
| |
* | Docx writer: Implement track changes.Jesse Rosenthal2014-08-25
| | | | | | | | | | These have default authors and dates of "unknown" and timestamp-zero, respectively.
* | Hlint changes to Docx writer.John MacFarlane2014-08-24
| |
* | Docx writer: Bibliography entries get Bibliography style.John MacFarlane2014-08-23
| | | | | | | | Closes #1559.
* | Merge pull request #1536 from considerate/masterJohn MacFarlane2014-08-17
|\ \ | | | | | | Add row width to tables in Docx XML
| * | Simplify row width calculation.Viktor Kronvall2014-08-17
| | |
| * | Include row width in table rows.Christoffer Ackelman2014-08-17
| |/ | | | | | | | | Added a property to all table rows where the sum of column widths is specified in pct (fraction of 5000).
* / Docx writer: Fixed regression, bungled list numbering.John MacFarlane2014-08-17
|/ | | | | | | In pandoc 1.13, all lists come out as basic ordered lists. This fixes that bad regression. Closes #1544.
* Merge pull request #1365 from gbataille/docx-marginJohn MacFarlane2014-08-11
|\ | | | | Scale images to fit the page for DOCX