summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/ODT.hs
Commit message (Collapse)AuthorAge
* Fixed regression in ODT writer.John MacFarlane2013-03-15
| | | | | | | This was due to a change in the Show instance for Text.Pandoc.Pretty.Doc, which led 1.11 to produce corrupt ODTs. Closes #780.
* Refactoring:John MacFarlane2013-01-11
| | | | | | | * Shared now exports fetchItem (instead of getItem) and openURL * fetchItem has different parameters than getItem and includes some logic formerly in the ODT and Docx writers * getItem still used in SelfContained
* ODT, Docx writers: Properly handle URL refs for images.John MacFarlane2013-01-11
| | | | | | These images are now downloaded instead of being ignored (as used to happen in the docx reader) or causing an error (as used to happen in the odt reader).
* Data files changes.John MacFarlane2012-12-29
| | | | | | | | | | * Added `embed_data_files` flag. (not yet used) * Shared no longer exports `findDataFile`. * `readDataFile` now returns a strict bytestring. * Shared now exports `readDataFileUTF8` which returns a string like the old `readDataFile`. * Rewrote modules to use new data file functions and to avoid using functions from Paths_pandoc directly.
* Removed need for utf8-string package.John MacFarlane2012-09-25
| | | | | | | | * Depend on text. * Expose Text.Pandoc.UTF8. * Text.Pandoc.UTF8 now exports toString, fromString, toStringLazy, fromStringLazy. * These are used instead of the old utf8-string functions.
* Merge commit 'd25656571a4662a4e67b195daed69e77d80c4c2c'John MacFarlane2012-08-23
|\ | | | | | | | | Conflicts: src/Text/Pandoc/Writers/ODT.hs
| * Set ODT title propertyArlo O'Keeffe2012-07-13
| |
* | Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
| |
* | Use catch from Control.Exception to avoid warnings.John MacFarlane2012-07-24
| |
* | Changed signatures of writeODT, writeDocx, writeEPUB.John MacFarlane2012-07-24
|/ | | | | | | | | These now take WriterOptions and Pandoc only. The extra parameters for epub stylesheet, epub fonts, reference Docx, and reference ODT have been removed, since these things are now in WriterOptions. Note: breaking API change!
* Remove dependency on old-time.John MacFarlane2012-01-28
|
* ImageSize: extract dpi information from PNG and JPEG.John MacFarlane2012-01-15
| | | | | * ImageSize record now includes dpiX, dpiY, pxX, pxY. * New functions sizeInPixels and sizeInPoints.
* ODT writer now sizes images appropriately.John MacFarlane2012-01-14
| | | | | | | | | | | | | OpenDocument writer: a title like "123x467" is interpreted as size in *points*. ODT writer: while adding images to the archive, computes their sizes and inserts a title attribute with the size before calling opendocument writer. Size is computed as follows: size in points = size in pixels * 96 / 72
* Added unexported Text.Pandoc.MIME.John MacFarlane2011-07-19
| | | | | Moved getMimeType from Text.Pandoc.Shared to Text.Pandoc.MIME, so we won't have an API change.
* ODT writer: Construct META-INF/manifest.xml based on archive contents.John MacFarlane2011-07-17
| | | | | | This fixes a bug in ODTs containing images. LibreOffice would signal that these ODTs were corrupt, because the manifest.xml did not contain a reference to the image files.
* Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.John MacFarlane2011-07-16
| | | | | | Also do this when copying image files into EPUBs and ODTs. Closes #263.
* Use functions from Text.Pandoc.Generic instead of processWith(M).John MacFarlane2010-12-24
|
* ODT writer: Don't wrap text in opendocument.John MacFarlane2010-12-22
|
* Added writerUserDataDir to WriterOptions.John MacFarlane2010-07-08
|
* Added writerSourceDirectory to WriterOptions.John MacFarlane2010-07-08
| | | | | This allows us to remove an argument from the ODT and EPUB writers.
* Made a proper ODT writer.John MacFarlane2010-07-05
+ Transformed the old Text.Pandoc.ODT module into a proper writer module, Text.Pandoc.Writers.ODT. + Instead of saveOpenDocumentAsODT, we now have writeODT, which takes a Pandoc document and produces a bytestring. saveOpenDocumentAsODT has been removed. + To extract the images and insert them into the ODT, we now use processPandocM on the Pandoc document rather than a custom XML parser. + Handle the case where the image is remote (or not found) by converting the Image element into an Emph with the label. + Plumbing in pandoc.hs changed slightly to accomodate this, and to allow other writers that live in the IO monad.