aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Data.hs
AgeCommit message (Collapse)Author
2024-04-25Update copyright dates to 2024.John MacFarlane
2024-03-15Typos: remove repeated words (#9577)standstaff
Signed-off-by: standstaff <[email protected]>
2023-04-28Writers.ODT: don't add settings.xmlMichael Stahl
The way "ooo:configuration-settings" work is that if LibreOffice Writer loads a file in which it exists, it assumes that an old version of itself has produced it and it defaults any config-item that it knows but that doesn't exist in the file to the "backward-compatible" value, which usually means to enable some layout or text formatting bugs so that the document looks the same as in the old LO version that created it. If there is no "ooo:configuration-settings" then it will use the default values for a new document, which should give the best formatting results. Pandoc's documents are obviously not created by LO, so it doesn't make sense to produce ooo:configuration-settings. Regarding the "ooo:view-settings", IIRC these mainly set to the document view to the position where the document was last edited (by default only if the user in meta.xml matches the user data in LO's configuration), which is also irrelevant for Pandoc. So just leave out the settings.xml; only content.xml/styles.xml are required (see ODF 1.3, part 3, 2.2.1 OpenDocument Document, A.2). (The settings.xml that is produced for formulas by the documentSettings function hopefully isn't problematic because LO Math works a bit differently and stores important formatting attributes in settings.xml because MathML doesn't allow it in content.xml.)
2023-04-28Writers.ODT: don't add Configurations2 dirMichael Stahl
This empty file is some ancient OOo wart and it's quite pointless here.
2023-04-28Writers.ODT: don't add thumbnailMichael Stahl
Quite pointless to add a hardcoded image that doesn't show the document content.
2023-02-22Trap error in getAppUserDataDirectory.John MacFarlane
This can raise an error if pandoc is run in a non-user environment. Closes #8648.
2023-01-10Update copyright years, it's 2023!Albert Krewinkel
2022-10-19T.P.Class: make `getPOSIXTime`, `getZonedTime` sensitive to...John MacFarlane
`SOURCE_DATE_EPOCH` environment variable if set. (`getTimestamp` was already sensitive.) This ensures that EPUB builds are reproducible. Closes #7093.
2022-10-19Move `defaultUserDataDir` from T.P.Shared to T.P.Data [API change].John MacFarlane
2022-10-15Minor code cleanups.John MacFarlane
2022-10-03Separate out T.P.Data, T.P.Translations from T.P.Class. (#8348)John MacFarlane
This makes T.P.Class more self-contained, and suitable for extraction into a separate package if desired. [API changes] - T.P.Data is now an exported module, providing `readDataFile`, `readDefaultDataFile` (both formerly provided by T.P.Class), and also `getDataFileNames` (formerly unexported in T.P.App.CommandLineOptions). - T.P.Translations is now an exported module (along with T.P.Translations.Types), providing `readTranslations`, `getTranslations`, `setTranslations`, `translateTerm`, `lookupTerm`, `readTranslations`, `Term(..)`, and `Translations`. - T.P.Class: `readDataFile`, `readDefaultDataFile`, `setTranslations`, and `translateTerm` are no longer exported. `checkUserDataDir` is now exported. - Text.Pandoc now exports Text.Pandoc.Data and `setTranslations` and `translateTerm`.
2022-01-02Copyright notices: update for 2022Albert Krewinkel
2021-01-08Update copyright notices for 2021 (#7012)Albert Krewinkel
2020-03-15Use implicit Prelude (#6187)Albert Krewinkel
* Use implicit Prelude The previous behavior was introduced as a fix for #4464. It seems that this change alone did not fix the issue, and `stack ghci` and `cabal repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded for these versions. Given this, it seems cleaner to revert to the implicit Prelude. * PandocMonad: remove outdated check for base version Only base versions 4.9 and later are supported, the check for `MIN_VERSION_base(4,8,0)` is therefore unnecessary. * Always use custom prelude Previously, the custom prelude was used only with older GHC versions, as a workaround for problems with ghci. The ghci problems are resolved by replacing package `base` with `base-noprelude`, allowing for consistent use of the custom prelude across all GHC versions.
2020-03-13Update copyright year (#6186)Albert Krewinkel
* Update copyright year * Copyright: add notes for Lua and Jira modules
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2017-12-13Removed whitespace at ends of line.John MacFarlane
2017-12-11Integrate Powerpoint writer into pandoc.Jesse Rosenthal
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane
2017-04-02Make sure docx/_rels/.rels gets into data files.John MacFarlane
embedDir in file-embed excludes hidden files, so we need to add this manually.
2017-04-02Revert "Revert "Use file-embed instead of hsb2hs to embed data files.""John MacFarlane
This reverts commit 1fa15c225b515e1fa1c6566f90f1be363a4d770f.
2017-03-26Revert "Use file-embed instead of hsb2hs to embed data files."John MacFarlane
This reverts commit 10d91c147968d2e4d63b99b5b0342624827f416f.
2017-03-26Revert "Text.Pandoc.Data: ensure it compiles even without embed_data_files."John MacFarlane
This reverts commit 453970c6b34ed7cc2f52181e5e77b9182a3639e9.
2017-03-26Text.Pandoc.Data: ensure it compiles even without embed_data_files.John MacFarlane
In this case we don't depend on file-embed or use TH.
2017-03-26Use file-embed instead of hsb2hs to embed data files.John MacFarlane
I think template haskell is robust enough now across platforms that this will work. Motivation: file-embed gives us better dependency tracking: if a data file changes, ghc/stack/cabal know to recompile the Data module. This also removes hsb2hs as a build dependency.
2013-01-23Use hsb2hs preprocessor instead of TH for embed_data_files.John MacFarlane
This should work on Windows, unlike the TH solution with file-embed.
2013-01-23Added Text.Pandoc.Data (non-exported) if embed_data_files selected.John MacFarlane
This module just exports the association list of embedded data files, which is used by Shared.