Commit Graph
10211 Commits
Author SHA1 Message Date
Lars-Dominik Braun 3b2c50ed93 Fix RST reference names with special characters 2015-06-29 18:34:45 +02:00
John MacFarlane 27754e170b Removed unneeded import. 2015-06-28 23:59:10 -07:00
John MacFarlane 7c6277d2c1 Added a needed import in Shared. 2015-06-28 23:43:17 -07:00
John MacFarlane 36baded572 Make sure we use dist version of reference.docx for some things.
Taking some values from a user-supplied reference.docx
tends to lead to corruption.

This fixes a regression from the last release. Closes #2249.
2015-06-28 23:25:55 -07:00
John MacFarlane 5f198c019b pandoc.wxs: removed line breaks in RegistryValue.
See #2205
2015-06-28 22:43:05 -07:00
John MacFarlane de184a80ec Let reference.docx/odt behave as if they are virtual data files.
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.
2015-06-28 22:38:13 -07:00
John MacFarlane 7bbb007359 Minor fixes to previous commit.
* Instead of defining readmeFile in Text.Pandoc.Data (which we forgot
  to export anyway), we simply add a record for "README" to the
  `dataFiles` lookup table.  This allows simplifying some of the code
  for `readDefaultDataFile` in SHared.

* As a bonus, `pandoc --print-default-data-file README` now works.
2015-06-28 20:59:18 -07:00
John MacFarlane fe625e053d New method for producing man pages.
This change adds `--man1` and `--man5` options to pandoc, so
pandoc can generate its own man pages.

It removes the old overly complex method of building a separate
executable (but not installing it) just to create the man pages.

The man pages are no longer automatically created in the build
process.

The man/ directory has been removed.  The man page templates
have been moved to data/.

New unexported module:  Text.Pandoc.ManPages.

Text.Pandoc.Data now exports readmeFile, and `readDataFile`
knows how to find README.

Closes #2190.
2015-06-28 14:39:17 -07:00
mb21 7ce5302d20 ConTeXt template description lists 2015-06-28 23:35:43 +02:00
John MacFarlane 3e5b4faaf2 Version bump to 1.14.1.
Because of the addition of `Options.plainExtensions`.
2015-06-28 11:58:50 -07:00
John MacFarlane ed9a118b54 Fixed regression in CSS parsing with --self-contained.
In 1b44acf0c5 we replaced some
hackish CSS parsing with css-text, which I thought was a complete
CSS parser.  It turns out that it is very buggy, which results
in lots of things being silently dropped from CSS when
`--self-contained` is used (#2224).

This commit replaces the use of css-text with a small but
more principled css preprocessor, which only removes whitespace
and replaces URLs with base 64 data when possible.

Closes #2224.
2015-06-28 11:54:18 -07:00
John MacFarlane 2768d1c2d2 New pandoc.wxs.
This should allow the user to select a per-user or systemwide install.
It also shows install location in the list of installed programs.

Thanks to @nkalvi.
See #2205.
2015-06-27 20:47:37 -07:00
John MacFarlane 2b1fd52403 Removed unused import. 2015-06-27 20:41:00 -07:00
John MacFarlane 7df4d86006 Textile writer: escape + and - as entities.
Closes #2225.
2015-06-27 20:30:20 -07:00
John MacFarlane fce3ebb8e0 Plain writer: don't use symbols for super/subscript.
Simplified code by using plainExtensions from Options.

Closes #2237.
2015-06-27 20:19:04 -07:00
John MacFarlane 177533d3f8 Options: Export plainExtensions.
These are the extensions used in `plain` output.
2015-06-27 20:18:14 -07:00
John MacFarlane ba76e6fcf1 Updated latex writer tests for last template change. 2015-06-27 18:37:59 -07:00
John MacFarlane 6f527e1f1a Updated LaTeX template: CJKoptions variable, allow dvipsnames for colors.
Thanks to Xavier Olive.

The addition of the `CJKoptions` variable allows one to set (e.g.)
a bigger font size for Asian fonts than latin ones.

Including dvipsnames allows specifying colors like MidnightBlue
for link colors.  This brings in a dependency on the color package,
but it is a standard package and required anyway by graphics.
2015-06-27 18:07:49 -07:00
John MacFarlane 4d9a73d767 Merge pull request #106 from xoolive/pr-cjk
Pass options to CJKmainfont (CJKoption)
2015-06-27 18:06:38 -07:00
John MacFarlane c731010d23 Merge pull request #107 from xoolive/pr-color
Add dvipsnames colors
2015-06-27 18:04:01 -07:00
Xavier Olive efed5dd879 Rename CJKoption to CJKoptions 2015-06-27 18:41:26 +02:00
John MacFarlane 3de72d82eb Merge pull request #2241 from mb21/docbook-reader-figures
DocBook reader mediaobjects and figures, closes #2184
2015-06-26 21:23:49 -07:00
Xavier Olive 8ca9de455b Add dvipsnames colors 2015-06-24 22:54:57 +02:00
Xavier Olive 742d658f5f Pass options to CJKmainfont (CJKoption) 2015-06-24 22:54:06 +02:00
mb21 82e363a727 DocBook reader mediaobjects and figures, closes #2184 2015-06-21 18:36:47 +02:00
John MacFarlane 320228777d Document CJKmainfont. 2015-06-13 09:37:03 -07:00
John MacFarlane 602130259d Added CJKmainfont to latex template (Xavier Olive). 2015-06-13 09:35:33 -07:00
John MacFarlane 63ac9416c8 Merge pull request #99 from xoolive/master
Support for Asian languages, CJKmainfont label
2015-06-13 09:34:43 -07:00
John MacFarlane e69bf25ede epub templates: use 'author.role', not 'author.type'. 2015-06-13 09:33:32 -07:00
John MacFarlane d574235805 Merge pull request #98 from majutsushi/epub-role-fix
Use creator.role instead of creator.type
2015-06-13 09:32:06 -07:00
John MacFarlane 1d04797d5c Updated pandoc.wxs (from @nvalki). 2015-06-12 21:30:18 -07:00
John MacFarlane 767be5a97b Fixed tests/docx/links.docx for new url. 2015-06-09 16:55:38 -07:00
John MacFarlane 956559b8b8 Merge pull request #2217 from ousia/master
replace old url with pandoc.org
2015-06-09 16:34:56 -07:00
Pablo Rodríguez c18e93ca6e replace old url with pandoc.org 2015-06-09 22:22:58 +02:00
John MacFarlane dc0e5c34b7 Amends last commit: don't use https for google charts.
They don't have a certificate.
2015-06-09 12:37:35 -07:00
John MacFarlane 8c47bd63e8 Use https: for mathjax/katex/google-charts CDNs.
Closes #1920.
2015-06-09 12:19:06 -07:00
John MacFarlane edb0bcc04f Merge pull request #2215 from DigitalPublishingToolkit/icml-crashfix
Fix InDesign crash with URLs containing more than one colon character
2015-06-09 12:11:22 -07:00
John MacFarlane 3e533b4f95 Removed relann1.6. 2015-06-09 11:02:57 -07:00
gohai f51757bd16 Fix InDesign crash with URLs containing more than one colon character
Colons are valid characters in URLs, and used e.g. by the Internet Archive's Wayback Machine - a popular resource amongst researchers. When InDesign encounters a HyperlinkURLDestination with more than one colon character in it, it crashes when placing the ICML. (This was tested against CS6.) The IDML specification hints at this requirement in section 6.4.1: "The colon apppears in the Name attribute of the style, but is encoded as %3a when it appears in the Self attribute". Follow this example for all colon characters in URLs.
2015-06-09 15:46:23 +02:00
John MacFarlane 70b76bb633 Bump cmark version to >= 0.3.4. 2015-06-08 13:37:11 -07:00
John MacFarlane 7b4f077652 DokuWiki writer: Use proper <code> tags for code blocks.
Closes #2213.
2015-06-07 11:29:47 -07:00
John MacFarlane cb7dd4469d HTML reader: allow <body> to close <head>. 2015-06-04 10:23:38 +02:00
John MacFarlane f47f53d959 Windows msi changes (nkalvi):
* Allow setting of installation path.
* Use cleaner wix syntax for setting the path:
  https://www.firegiant.com/wix/tutorial/com-expression-syntax-miscellanea/environmentally-friendly/
* Show the user what changes, in a new command window.

See #2205.
2015-06-03 00:16:38 +02:00
Xavier Olive fc6ef27970 Support for Asian languages, CJKmainfont label
Works only with xelatex.
This is not a big deal since when it hits on a utf8 unknown char (say Asian script), pandoc suggests to switch to the xelatex engine.
2015-06-02 22:53:58 +02:00
Jan Larres afd95e8e11 Use creator.role instead of creator.type
The EPUB metadata description specifies "role" for creators, not "type":
http://pandoc.org/README.html#epub-metadata

This fixed the two epub templates to use the correct syntax.
2015-06-03 00:28:55 +12:00
John MacFarlane d8e37d84ab Updated changelog. 1.14.0.4 2015-06-02 13:25:56 +02:00
John MacFarlane bbd429ae70 Version bump to 1.14.0.4, added commonmark template to data files. 2015-06-02 13:23:32 +02:00
John MacFarlane 6f79cf1983 Added default commonmark template. 2015-06-02 13:22:27 +02:00
John MacFarlane 7db51bc9ae Added default.commonmark template. 2015-06-02 13:22:05 +02:00
John MacFarlane 706589b594 Misc. fixes to trypandoc html. 2015-06-02 03:38:31 -07:00