Commit graph

205 commits

Author SHA1 Message Date
Salim B
fae6a204f1
Fix/update URLs and use HTTP**S** where possible (#7122) 2021-02-26 17:56:04 -08:00
John MacFarlane
e0984a43a9 Add built-in citation support using new citeproc library.
This deprecates the use of the external pandoc-citeproc
filter; citation processing is now built in to pandoc.

* Add dependency on citeproc library.
* Add Text.Pandoc.Citeproc module (and some associated unexported
  modules under Text.Pandoc.Citeproc).  Exports `processCitations`.
  [API change]
* Add data files needed for Text.Pandoc.Citeproc:  default.csl
  in the data directory, and a citeproc directory that is just
  used at compile-time.  Note that we've added file-embed as a mandatory
  rather than a conditional depedency, because of the biblatex
  localization files. We might eventually want to use readDataFile
  for this, but it would take some code reorganization.
* Text.Pandoc.Loging: Add `CiteprocWarning` to `LogMessage` and use it
  in `processCitations`. [API change]
* Add tests from the pandoc-citeproc package as command tests (including
  some tests pandoc-citeproc did not pass).
* Remove instructions for building pandoc-citeproc from CI and
  release binary build instructions.  We will no longer distribute
  pandoc-citeproc.
* Markdown reader: tweak abbreviation support.  Don't insert a
  nonbreaking space after a potential abbreviation if it comes right before
  a note or citation.  This messes up several things, including citeproc's
  moving of note citations.
* Add `csljson` as and input and output format. This allows pandoc
  to convert between `csljson` and other bibliography formats,
  and to generate formatted versions of CSL JSON bibliographies.
* Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`. [API
  change]
* Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`. [API
  change]
* Added `bibtex`, `biblatex` as input formats.  This allows pandoc
  to convert between BibLaTeX and BibTeX and other bibliography formats,
  and to generated formatted versions of BibTeX/BibLaTeX bibliographies.
* Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
  `readBibLaTeX`. [API change]
* Make "standalone" implicit if output format is a bibliography format.
  This is needed because pandoc readers for bibliography formats put
  the bibliographic information in the `references` field of metadata;
  and unless standalone is specified, metadata gets ignored.
  (TODO: This needs improvement. We should trigger standalone for the
  reader when the input format is bibliographic, and for the writer
  when the output format is markdown.)
* Carry over `citationNoteNum` to `citationNoteNumber`.  This was just
  ignored in pandoc-citeproc.
* Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
  [API change] This runs the processCitations transformation.
  We need to treat it like a filter so it can be placed
  in the sequence of filter runs (after some, before others).
  In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
  so this special filter may be specified either way in a defaults file
  (or by `citeproc: true`, though this gives no control of positioning
  relative to other filters).  TODO: we need to add something to the
  manual section on defaults files for this.
* Add deprecation warning if `upandoc-citeproc` filter is used.
* Add `--citeproc/-C` option to trigger citation processing.
  This behaves like a filter and will be positioned
  relative to filters as they appear on the command line.
* Rewrote the manual on citatations, adding a dedicated Citations
  section which also includes some information formerly found in
  the pandoc-citeproc man page.
* Look for CSL styles in the `csl` subdirectory of the pandoc user data
  directory.  This changes the old pandoc-citeproc behavior, which looked
  in `~/.csl`.  Users can simply symlink `~/.csl` to the `csl`
  subdirectory of their pandoc user data directory if they want
  the old behavior.
* Add support for CSL bibliography entry formatting to LaTeX, HTML,
  Ms writers.  Added CSL-related CSS to styles.html.
2020-09-21 10:15:50 -07:00
John MacFarlane
5028278569 windows release candidate build: More fixes to get 'light' to work. 2020-01-18 16:02:28 -08:00
John MacFarlane
adc14ff245 Windows ci - fix path to COPYING.rtf in dialog. 2020-01-18 09:33:05 -08:00
John MacFarlane
c78af6f3a6 Use versioned directory for windows release zipfile.
Also remove old make-windows-installer.bat, superseded
by GitHub actions workflow, and modify pandoc.wxs for
new paths.
2020-01-17 15:37:49 -08:00
John MacFarlane
1123c9779f Improve Makefile for signing windows release candidates. 2019-11-29 22:02:04 -08:00
John MacFarlane
ee6cf6ad6b Add Makefile to windows release-candidate build.
Running 'make' in this directory will do the code signing of the msi.
2019-11-29 11:50:09 -08:00
John MacFarlane
ffa3d7160e Removed stack.pkg.yaml.
We only really need stack.yaml; we can put flag settings
for pandoc-citeproc there.

Also use ghc-8.0.2 in dockerized linux build.  This is
the only version available for alpine so far.
2017-12-27 20:21:37 -08:00
John MacFarlane
5087b05df4 Use -O2 for windows, macos binary packages. 2017-11-04 15:57:21 -07:00
ickc
5c1d844e40 Name change OSX -> macOS (#3869)
* Name change OSX -> macOS

fix commit c96b64e

This commit finishes remaining osx to macOS change, as well as replacing MacOS with macOS.

The reason for the later one is because the "correct" casing of macOS is like that. Apple styles it to looks like iOS, watchOS, tvOS, etc. And unfortunately they all start with a lowercase letter, making propercasing (or even title-casing) odd.

* fix casing of Linux, UNIX, and Windows
2017-08-23 13:48:10 -07:00
John MacFarlane
cc75635bc9 Windows packaging fixes to use new stack.pkg.yaml. 2017-02-12 22:04:53 +01:00
John MacFarlane
395f20a048 Replaced {deb,macos,windows}/stack.yaml with stack.pkg.yaml. 2017-02-12 21:45:30 +01:00
John MacFarlane
1e694805a1 stack.yamls: Use lts-8.0. 2017-02-12 19:16:53 +01:00
John MacFarlane
4ae0cddb92 Use latest pandoc-citeproc dev in stack builds. 2017-02-07 15:07:48 +01:00
John MacFarlane
e07e83f831 Update dev version of pandoc-citeproc in stack.yaml. 2017-02-07 10:42:18 +01:00
John MacFarlane
0d9cac7ed6 Use latest dev version of pandoc-citeproc. 2017-02-07 09:30:44 +01:00
John MacFarlane
5cc32b7032 stack.yaml - use latest skylighting. 2017-01-31 15:29:57 +01:00
John MacFarlane
cb79e9c28d Windows builds: removed -S option from pandoc invocations. 2017-01-30 11:49:25 +01:00
John MacFarlane
42257b9be9 stack.yamls: Updated commit of pandoc-citeproc to build against. 2017-01-30 11:08:32 +01:00
John MacFarlane
d9809ac1a3 stack.yamls: Updated commit of pandoc-citeproc to build against. 2017-01-30 10:53:49 +01:00
John MacFarlane
25c1f58d18 Use dev pandoc-citeproc in windows,osx,deb/stack.yaml. 2017-01-30 10:12:12 +01:00
John MacFarlane
2e178f0990 Updated deb, osx, windows stack.yaml.
Use latest skylighting, pandoc-citeproc.
2017-01-29 21:15:30 +01:00
John MacFarlane
faf4f7818b Use skylighting 0.1.1.1 in stack.yaml. 2017-01-21 23:30:24 +01:00
John MacFarlane
aad7c3bf54 windows stack.yaml - use latest skylighting. 2017-01-19 20:04:02 +01:00
John MacFarlane
9e67e1dedc Updated windows stack.yaml. 2016-12-23 18:10:18 -07:00
John MacFarlane
aedd604842 Use pandoc-citeproc 0.10.3 release in stack.yamls for binary pkgs. 2016-11-30 17:03:37 +01:00
John MacFarlane
804bba1b64 stack.yaml - use texmath 0.9 release. 2016-11-30 12:43:23 +01:00
John MacFarlane
ac83d4b806 Use new module from texmath to lookup MS font codepoints.
+ Removed Text.Pandoc.Readers.Docx.Fonts
+ Moved its code to texmath; we now use (from texmath 0.9)
  Text.TeXMath.Unicode.Fonts
+ Use texmath 0.9 (currently from git).
+ Updated epub tests because texmath now handles more mathml.
2016-11-30 00:43:55 +01:00
John MacFarlane
08bf8f2e9d Updated stack.yaml to use lts 7.9 + latest pandoc-citeproc dev. 2016-11-27 20:24:23 +01:00
John MacFarlane
9141f1fdbb windows/stack.yaml - use latest pandoc-citeproc from git.
Otherwise tests will fail on appveyor.
2016-11-18 16:20:22 +01:00
John MacFarlane
d2bc983455 Update pandoc-citeproc commit to use for binary packages. 2016-10-27 22:33:24 +02:00
John MacFarlane
b55310de7f stack.yamls - use git commit from pandoc-citeproc
so we don't have to wait for stackage's hackage mirror to update.
2016-10-26 23:36:59 +02:00
John MacFarlane
bd71569483 Use lts-7.5 resolver. 2016-10-26 12:32:30 +02:00
John MacFarlane
fa5b0b6708 Use latest pandoc-citeproc. 2016-10-26 12:31:26 +02:00
John MacFarlane
bd2681904b Use pandoc-citeproc 0.10.2 in stack package builds. 2016-10-25 08:29:33 +02:00
John MacFarlane
7b1a9d7aca stack.yamls - use latest pandoc-citeproc. 2016-10-24 22:12:33 +02:00
John MacFarlane
b2c8b979d9 stack.yamls - use latest pandoc-citeproc. 2016-10-23 23:32:01 +02:00
John MacFarlane
4851986187 Merge pull request #3158 from ickc/COPY-LICENSE
Use the markdown version of COPYING from GNU
2016-10-19 14:08:56 +02:00
Kolen Cheung
4b51ed3823 Download markdown version of the license from GNU and rename to COPYING.md
From https://www.gnu.org/licenses/old-licenses/gpl-2.0.md
2016-10-19 04:11:36 -07:00
John MacFarlane
630e79fbf0 Added pandoc-citeproc back to extra-deps in stack.yaml.
Otherwise we can't set flags.
2016-10-18 15:07:43 +02:00
John MacFarlane
ea31c9e88b Use lts-7.4 resolver. 2016-10-18 14:46:17 +02:00
John MacFarlane
7a2d9a2646 stack.yaml - use latest pandoc-types. 2016-10-18 14:43:47 +02:00
John MacFarlane
f8603e6df5 Bump pandoc-types versions to 1.17.0.3 in stack.yaml. 2016-10-17 15:05:38 +02:00
John MacFarlane
54d54fc57f Use pandoc-types 1.17.0.2 in stack.yaml. 2016-10-17 13:59:58 +02:00
John MacFarlane
e298dc2065 BUmp pandoc-types version in stack.yamls. 2016-10-17 09:57:55 +02:00
John MacFarlane
8625ff21a9 Update stack.yamls to use pandoc-types 1.17 release. 2016-10-16 22:18:03 +02:00
John MacFarlane
8049a43800 Use latest pandoc-types in windows/stack.yaml. 2016-10-13 21:03:26 +02:00
John MacFarlane
886e131949 Use latest pandoc-citeproc in stack.yamls. 2016-10-13 16:35:23 +02:00
John MacFarlane
6156cdda13 Update stack.yaml files. 2016-10-13 13:02:18 +02:00
John MacFarlane
354c4ab04f Updated stack.yaml and windows/stack.yaml to use latest pandoc-types. 2016-10-13 11:51:44 +02:00