|
@@ -84,19 +84,21 @@ MediaWiki markup, Haddock markup, OPML, Emacs Org-mode, and Textile,
|
|
and it can write markdown, reStructuredText, HTML,
|
|
and it can write markdown, reStructuredText, HTML,
|
|
LaTeX (including rendering as plain PDF or beamer slide shows),
|
|
LaTeX (including rendering as plain PDF or beamer slide shows),
|
|
ConTeXt, DocBook, OPML, OpenDocument, ODT, Word docx, RTF, MediaWiki, Textile,
|
|
ConTeXt, DocBook, OPML, OpenDocument, ODT, Word docx, RTF, MediaWiki, Textile,
|
|
- groff man pages, GNU Texinfo, plain text, Emacs Org-Mode, AsciiDoc, InDesign ICML,
|
|
|
|
-EPUB (v2 or v3), FictionBook2, and several kinds of HTML/javascript slide shows
|
|
|
|
- (S5, Slidy, Slideous, DZSlides, reveal.js).
|
|
|
|
|
|
+ groff man pages, GNU Texinfo, plain text, Emacs Org-Mode, AsciiDoc, InDesign
|
|
|
|
+ ICML, EPUB (v2 or v3), FictionBook2, and several kinds of HTML/javascript
|
|
|
|
+ slide shows (S5, Slidy, Slideous, DZSlides, reveal.js).
|
|
|
|
|
|
Pandoc extends standard markdown syntax with footnotes, embedded LaTeX,
|
|
Pandoc extends standard markdown syntax with footnotes, embedded LaTeX,
|
|
definition lists, tables, and other features.
|
|
definition lists, tables, and other features.
|
|
-A compatibility mode is provided for those who need a drop-in replacement for Markdown.pl.
|
|
|
|
|
|
+A compatibility mode is provided for those who need a drop-in replacement for
|
|
|
|
+ Markdown.pl.
|
|
|
|
|
|
In contrast to existing tools for converting markdown to HTML,
|
|
In contrast to existing tools for converting markdown to HTML,
|
|
which use regex substitutions, pandoc has a modular design:
|
|
which use regex substitutions, pandoc has a modular design:
|
|
it consists of a set of readers, which parse text in a given format
|
|
it consists of a set of readers, which parse text in a given format
|
|
and produce a native representation of the document,
|
|
and produce a native representation of the document,
|
|
- and a set of writers, which convert this native representation into a target format.
|
|
|
|
|
|
+ and a set of writers, which convert this native representation into a target
|
|
|
|
+ format.
|
|
Thus, adding an input or output format requires only adding a reader or writer.
|
|
Thus, adding an input or output format requires only adding a reader or writer.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
@@ -105,10 +107,11 @@ Pandoc はあるマークアップ形式から別の形式に変換するHaskell
|
|
markdown、HTML (のサブセット)、reStructuredText、 LaTeX、DocBook、
|
|
markdown、HTML (のサブセット)、reStructuredText、 LaTeX、DocBook、
|
|
MediaWikiマークアップ、Haddockマークアップ、OPML、Emacs Org-mode、
|
|
MediaWikiマークアップ、Haddockマークアップ、OPML、Emacs Org-mode、
|
|
およびTextileを読み取り、
|
|
およびTextileを読み取り、
|
|
-markdown、reStructuredText、HTML、LaTeX (プレインPDFまたはbeamerスライドショーでの描画を含む)、
|
|
|
|
-ConTeXt、DocBook、OPML、OpenDocument、ODT、Word docx、RTF、 MediaWiki、Textile、
|
|
|
|
-groff manページ、GNU Texinfo、プレーンテキスト、Emacs Org-Mode、AsciiDoc、InDesign ICML、
|
|
|
|
-EPUB (v2 または v3)、FictionBook2、およびいくつかの種類のHTML/javascriptスライドショー
|
|
|
|
|
|
+markdown、reStructuredText、HTML、LaTeX (プレインPDFまたはbeamerスライドショー
|
|
|
|
+での描画を含む)、ConTeXt、DocBook、OPML、OpenDocument、ODT、Word docx、RTF、
|
|
|
|
+MediaWiki、Textile、groff manページ、GNU Texinfo、プレーンテキスト、
|
|
|
|
+Emacs Org-Mode、AsciiDoc、InDesign ICML、EPUB (v2 または v3)、FictionBook2、
|
|
|
|
+およびいくつかの種類のHTML/javascriptスライドショー
|
|
(S5, Slidy, Slideous, DZSlides, reveal.js) に書き出せます。
|
|
(S5, Slidy, Slideous, DZSlides, reveal.js) に書き出せます。
|
|
|
|
|
|
Pandocは標準的なmarkdownの文法に脚注、組み込み LaTeX、定義リスト、表、
|
|
Pandocは標準的なmarkdownの文法に脚注、組み込み LaTeX、定義リスト、表、
|
|
@@ -118,8 +121,9 @@ Markdown.plの気軽な置き換えを希望する方向けに互換モードを
|
|
markdownからHTMLに変換する既存のツールは正規表現で置換していますが、
|
|
markdownからHTMLに変換する既存のツールは正規表現で置換していますが、
|
|
これらとは異なり、pandoc はモジュール式の設計になっています:
|
|
これらとは異なり、pandoc はモジュール式の設計になっています:
|
|
テキストを指定された形式でパースし、文書のネイティブ表現を生成するリーダ一式、
|
|
テキストを指定された形式でパースし、文書のネイティブ表現を生成するリーダ一式、
|
|
-および、このネイティブ表現を対象とする形式に変換するライタ一式で構成されています。
|
|
|
|
-したがって、入力または出力形式を追加するにはリーダやライタを 追加することだけが必要です。
|
|
|
|
|
|
+および、このネイティブ表現を対象とする形式に変換するライタ一式で構成されて
|
|
|
|
+います。したがって、入力または出力形式を追加するにはリーダやライタを追加する
|
|
|
|
+ことだけが必要です。
|
|
|
|
|
|
|
|
|
|
%package citeproc
|
|
%package citeproc
|
|
@@ -130,9 +134,10 @@ Group: Applications/Text
|
|
Requires: pandoc = %{pkg_version}-%{release}
|
|
Requires: pandoc = %{pkg_version}-%{release}
|
|
|
|
|
|
%description citeproc
|
|
%description citeproc
|
|
-The pandoc-citeproc library exports functions for using the citeproc system with pandoc.
|
|
|
|
-It relies on citeproc-hs, a library for rendering bibliographic reference citations
|
|
|
|
- into a variety of styles using a macro language called Citation Style Language (CSL).
|
|
|
|
|
|
+The pandoc-citeproc library exports functions for using the citeproc system
|
|
|
|
+with pandoc. It relies on citeproc-hs, a library for rendering bibliographic
|
|
|
|
+reference citations into a variety of styles using a macro language called
|
|
|
|
+Citation Style Language (CSL).
|
|
More details on CSL can be found here: http://citationstyles.org/.
|
|
More details on CSL can be found here: http://citationstyles.org/.
|
|
|
|
|
|
|
|
|
|
@@ -145,8 +150,8 @@ Requires: pandoc = %{pkg_version}-%{release}
|
|
|
|
|
|
%description crossref
|
|
%description crossref
|
|
pandoc-crossref is a pandoc filter for numbering figures, equations, tables
|
|
pandoc-crossref is a pandoc filter for numbering figures, equations, tables
|
|
- and cross-references to them. Input file (like demo.md) can be converted into html,
|
|
|
|
- latex, pdf, md or other formats.
|
|
|
|
|
|
+ and cross-references to them. Input file (like demo.md) can be converted into
|
|
|
|
+ html, latex, pdf, md or other formats.
|
|
Optionally, you can use cleveref for latex/pdf output,
|
|
Optionally, you can use cleveref for latex/pdf output,
|
|
e.g. cleveref pdf, cleveref latex, and listings package,
|
|
e.g. cleveref pdf, cleveref latex, and listings package,
|
|
e.g. listings pdf, listings latex.
|
|
e.g. listings pdf, listings latex.
|
|
@@ -163,12 +168,11 @@ You need to specify -M chapters for non-latex/pdf output however.
|
|
%build
|
|
%build
|
|
# Initialise the package db
|
|
# Initialise the package db
|
|
ghc-pkg init %{_builddir}/package.conf
|
|
ghc-pkg init %{_builddir}/package.conf
|
|
-# cabal update
|
|
|
|
|
|
|
|
# install dependent packages
|
|
# install dependent packages
|
|
cd %{_builddir}
|
|
cd %{_builddir}
|
|
for pkg in `cat %{_sourcedir}/packages`; do
|
|
for pkg in `cat %{_sourcedir}/packages`; do
|
|
- tar xzf %{_sourcedir}/${pkg}.tar.gz
|
|
|
|
|
|
+ %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
cd ${pkg}
|
|
cd ${pkg}
|
|
cabal configure
|
|
cabal configure
|
|
cabal build
|
|
cabal build
|
|
@@ -178,10 +182,10 @@ for pkg in `cat %{_sourcedir}/packages`; do
|
|
done
|
|
done
|
|
|
|
|
|
# build pandoc and related packages
|
|
# build pandoc and related packages
|
|
-for pkg in pandoc-%{pkg_version} pandoc-citeproc-%{citeproc_version} pandoc-crossref-%{crossref_version};
|
|
|
|
|
|
+for pkg in pandoc-%{pkg_version} pandoc-citeproc-%{citeproc_version} \
|
|
|
|
+ pandoc-crossref-%{crossref_version};
|
|
do
|
|
do
|
|
cd %{_builddir}/${pkg}
|
|
cd %{_builddir}/${pkg}
|
|
- # cabal install --only-dependencies
|
|
|
|
cabal configure \
|
|
cabal configure \
|
|
--prefix=%{_prefix} \
|
|
--prefix=%{_prefix} \
|
|
--libdir=%{_libdir}/${pkg} \
|
|
--libdir=%{_libdir}/${pkg} \
|
|
@@ -204,7 +208,7 @@ cd ${RPM_BUILD_ROOT}%{_datadir}/pandoc-%{pkg_version}
|
|
%{__mv} man ${RPM_BUILD_ROOT}%{_mandir}/
|
|
%{__mv} man ${RPM_BUILD_ROOT}%{_mandir}/
|
|
|
|
|
|
# pandoc-citeproc
|
|
# pandoc-citeproc
|
|
-%{__mkdir} -p ${RPM_BUILD_ROOT}%{_docdir}/pandoc-citeproc-%{citeproc_version}
|
|
|
|
|
|
+%{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/pandoc-citeproc-%{citeproc_version}
|
|
cd ${RPM_BUILD_ROOT}%{_datadir}/pandoc-citeproc-%{citeproc_version}
|
|
cd ${RPM_BUILD_ROOT}%{_datadir}/pandoc-citeproc-%{citeproc_version}
|
|
%{__mv} README.md changelog \
|
|
%{__mv} README.md changelog \
|
|
${RPM_BUILD_ROOT}%{_docdir}/pandoc-citeproc-%{citeproc_version}
|
|
${RPM_BUILD_ROOT}%{_docdir}/pandoc-citeproc-%{citeproc_version}
|
|
@@ -212,15 +216,15 @@ cd ${RPM_BUILD_ROOT}%{_datadir}/pandoc-citeproc-%{citeproc_version}
|
|
%{__rm} -rf man
|
|
%{__rm} -rf man
|
|
|
|
|
|
# pandoc-crossref
|
|
# pandoc-crossref
|
|
-%{__mkdir} -p ${RPM_BUILD_ROOT}%{_docdir}/pandoc-crossref-%{crossref_version}
|
|
|
|
-%{__install} -m 644 %{_builddir}/pandoc-crossref-%{crossref_version}/{demo,LICENSE,README}.md \
|
|
|
|
- ${RPM_BUILD_ROOT}%{_docdir}/pandoc-crossref-%{crossref_version}
|
|
|
|
|
|
+%{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/pandoc-crossref-%{crossref_version}
|
|
|
|
+%{__install} -m 644 \
|
|
|
|
+ %{_builddir}/pandoc-crossref-%{crossref_version}/{demo,LICENSE,README}.md \
|
|
|
|
+ ${RPM_BUILD_ROOT}%{_docdir}/pandoc-crossref-%{crossref_version}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}%{_datadir}/pandoc-crossref-%{crossref_version}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}%{_datadir}/pandoc-crossref-%{crossref_version}
|
|
|
|
|
|
# delete unnecessary folder
|
|
# delete unnecessary folder
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}
|
|
|
|
|
|
-
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
@@ -250,13 +254,13 @@ cd ${RPM_BUILD_ROOT}%{_datadir}/pandoc-citeproc-%{citeproc_version}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
-* Mon Mar 07 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-5
|
|
|
|
|
|
+* Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.3-5
|
|
- correct SPEC file
|
|
- correct SPEC file
|
|
|
|
|
|
-* Mon Mar 07 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-4
|
|
|
|
|
|
+* Mon Mar 07 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.3-4
|
|
- correct pandoc-citeproc error
|
|
- correct pandoc-citeproc error
|
|
|
|
|
|
-* Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-3
|
|
|
|
|
|
+* Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.3-2
|
|
- rebuild under dependent rpm packages
|
|
- rebuild under dependent rpm packages
|
|
|
|
|
|
* Sun Feb 21 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-2
|
|
* Sun Feb 21 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-2
|