* Build systems for binary reference files?
@ 2015-03-18 5:26 Nick Yakimov
[not found] ` <5c9b6cc5-f967-4362-bd1d-08738c51d5ce-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Nick Yakimov @ 2015-03-18 5:26 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 1270 bytes --]
I've thought about it for a bit, and came to conclusion that it might be a
good idea to store binary reference files like reference.docx and
reference.odt in unpacked form in repository, to track changes across those
easily. That would need a crossplatform "build system", which would create
binary files on build (in essence, just create a zip archive). Since pandoc
already works with these binary formats, necessary libraries should already
be installed by cabal, so it should be relatively hassle-free. I'm not very
familiar with cabal build system though, so I might be missing something.
So, I'd like to ask for any ideas on implementation details or reservations
against this idea.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5c9b6cc5-f967-4362-bd1d-08738c51d5ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1698 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <5c9b6cc5-f967-4362-bd1d-08738c51d5ce-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-18 19:23 ` Nick Yakimov
[not found] ` <12a3374e-c84f-452e-8052-3adec564ae34-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Nick Yakimov @ 2015-03-18 19:23 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 3491 bytes --]
I played around with this idea a bit, and I present here a working
prototype. I use postBuild hook for various reasons, but that's arguable
decision. Any comments are welcome.
diff --git a/Setup.hs b/Setup.hs
index 7777a51..f39f602 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -21,9 +21,15 @@ import Distribution.Simple.PreProcess
import Distribution.PackageDescription (PackageDescription(..),
Executable(..))
import System.Process ( rawSystem )
import System.FilePath ( (</>) )
-import System.Directory ( findExecutable )
+import System.Directory
import Distribution.Simple.Utils (info)
+import Codec.Archive.Zip
+import System.Environment
+import qualified Data.ByteString.Lazy as BS
+import qualified Control.Exception as E
+import System.IO.Error (isDoesNotExistError)
+
main :: IO ()
main = defaultMainWithHooks $ simpleUserHooks {
-- enable hsb2hs preprocessor for .hsb files
@@ -35,6 +41,7 @@ main = defaultMainWithHooks $ simpleUserHooks {
, instHook = \pkgdescr ->
(instHook simpleUserHooks) pkgdescr{ executables =
[x | x <- executables pkgdescr, exeName x /=
"make-pandoc-man-pages"] }
+ , postBuild = \_ _ _ _ -> mapM_ mkzip ["docx", "odt"]
}
ppBlobSuffixHandler :: PPSuffixHandler
@@ -49,3 +56,22 @@ ppBlobSuffixHandler = ("hsb", \_ _ ->
Nothing -> error "hsb2hs is needed to build this program:
cabal install hsb2hs"
return ()
})
+
+mkzip :: String -> IO ()
+mkzip fmt = do
+ let dir = "data/"++fmt
+ output = "data/reference."++fmt
+ cd <- getCurrentDirectory
+ setCurrentDirectory dir
+ archive <-
+ getDirectoryContents "."
+ >>= addFilesToArchive [OptRecursive] emptyArchive
+ setCurrentDirectory cd
+ removeIfExists output
+ BS.writeFile output $ fromArchive archive
+
+removeIfExists :: FilePath -> IO ()
+removeIfExists fileName = removeFile fileName `E.catch` handleExists
+ where handleExists e
+ | isDoesNotExistError e = return ()
+ | otherwise = E.throwIO e
среда, 18 марта 2015 г., 8:26:29 UTC+3 пользователь Nick Yakimov написал:
>
> I've thought about it for a bit, and came to conclusion that it might be a
> good idea to store binary reference files like reference.docx and
> reference.odt in unpacked form in repository, to track changes across those
> easily. That would need a crossplatform "build system", which would create
> binary files on build (in essence, just create a zip archive). Since pandoc
> already works with these binary formats, necessary libraries should already
> be installed by cabal, so it should be relatively hassle-free. I'm not very
> familiar with cabal build system though, so I might be missing something.
>
> So, I'd like to ask for any ideas on implementation details or
> reservations against this idea.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/12a3374e-c84f-452e-8052-3adec564ae34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 4939 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <12a3374e-c84f-452e-8052-3adec564ae34-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-19 7:54 ` John MacFarlane
[not found] ` <20150319075414.GC48021-jF64zX8BO082Zs7wWoiTUGZHpeb/A1Y/@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: John MacFarlane @ 2015-03-19 7:54 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
I believe it's a bad idea for Setup.hs to import any packages
not in base (that would include zip-archive), since Setup needs
to get compiled before cabal install will install dependent
packages. If you don't already have zip-archive installed,
the build will just fail at the first step. Or at least that's
what I recall from last time I tried something like this.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <20150319075414.GC48021-jF64zX8BO082Zs7wWoiTUGZHpeb/A1Y/@public.gmane.org>
@ 2015-03-19 9:59 ` Nick Yakimov
2015-03-19 11:34 ` Nick Yakimov
1 sibling, 0 replies; 10+ messages in thread
From: Nick Yakimov @ 2015-03-19 9:59 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 4923 bytes --]
Something like this then
diff --git a/Setup.hs b/Setup.hs
index 7777a51..e155e22 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -22,7 +22,10 @@ import Distribution.PackageDescription
(PackageDescription(..), Executable(..))
import System.Process ( rawSystem )
import System.FilePath ( (</>) )
import System.Directory ( findExecutable )
-import Distribution.Simple.Utils (info)
+import Distribution.Simple.Utils (info, rawSystemExit, findProgramLocation)
+import Distribution.Simple.Setup
+import Distribution.Simple.LocalBuildInfo
+import Distribution.Verbosity
main :: IO ()
main = defaultMainWithHooks $ simpleUserHooks {
@@ -31,11 +34,14 @@ main = defaultMainWithHooks $ simpleUserHooks {
-- ensure that make-pandoc-man-pages doesn't get installed to bindir
, copyHook = \pkgdescr ->
(copyHook simpleUserHooks) pkgdescr{ executables =
- [x | x <- executables pkgdescr, exeName x /=
"make-pandoc-man-pages"] }
+ [x | x <- executables pkgdescr, exeName x `notElem` noInstall]
}
, instHook = \pkgdescr ->
(instHook simpleUserHooks) pkgdescr{ executables =
- [x | x <- executables pkgdescr, exeName x /=
"make-pandoc-man-pages"] }
+ [x | x <- executables pkgdescr, exeName x `notElem` noInstall]
}
+ , postBuild = makeReferenceFiles
}
+ where
+ noInstall = ["make-pandoc-man-pages","make-reference-files"]
ppBlobSuffixHandler :: PPSuffixHandler
ppBlobSuffixHandler = ("hsb", \_ _ ->
@@ -49,3 +55,13 @@ ppBlobSuffixHandler = ("hsb", \_ _ ->
Nothing -> error "hsb2hs is needed to build this program:
cabal install hsb2hs"
return ()
})
+
+makeReferenceFiles :: Args -> BuildFlags -> PackageDescription ->
LocalBuildInfo -> IO ()
+makeReferenceFiles _ bf _ LocalBuildInfo{buildDir=buildDir}
+ = mapM_
+ (rawSystemExit verbosity progPath . return)
+ referenceFormats
+ where
+ verbosity = fromFlagOrDefault normal $ buildVerbosity bf
+ progPath = buildDir++"/make-reference-files/make-reference-files"
+ referenceFormats = ["docx", "odt"]
diff --git a/data/make-reference-files.hs b/data/make-reference-files.hs
new file mode 100644
index 0000000..5978dab
--- /dev/null
+++ b/data/make-reference-files.hs
@@ -0,0 +1,28 @@
+import System.Environment
+import System.Directory
+import Codec.Archive.Zip
+import qualified Data.ByteString.Lazy as BS
+import qualified Control.Exception as E
+import System.IO.Error (isDoesNotExistError)
+
+mkzip :: String -> IO ()
+mkzip fmt = do
+ let dir = "data/"++fmt
+ output = "data/reference."++fmt
+ cd <- getCurrentDirectory
+ setCurrentDirectory dir
+ archive <-
+ getDirectoryContents "."
+ >>= addFilesToArchive [OptRecursive] emptyArchive
+ setCurrentDirectory cd
+ removeIfExists output
+ BS.writeFile output $ fromArchive archive
+
+removeIfExists :: FilePath -> IO ()
+removeIfExists fileName = removeFile fileName `E.catch` handleExists
+ where handleExists e
+ | isDoesNotExistError e = return ()
+ | otherwise = E.throwIO e
+
+main :: IO ()
+main = getArgs >>= mkzip . (!!0)
diff --git a/pandoc.cabal b/pandoc.cabal
index 823e928..ca01596 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -418,6 +418,15 @@ Executable make-pandoc-man-pages
else
Buildable: False
+Executable make-reference-files
+ Main-Is: make-reference-files.hs
+ Hs-Source-Dirs: data
+ Build-Depends: zip-archive >= 0.2.3.4 && < 0.3,
+ base >= 4.2 && < 5,
+ directory >= 1 && < 1.3,
+ bytestring >= 0.9 && < 0.11
+ Default-Language: Haskell2010
+
Test-Suite test-pandoc
Type: exitcode-stdio-1.0
Main-Is: test-pandoc.hs
четверг, 19 марта 2015 г., 10:54:33 UTC+3 пользователь John MacFarlane
написал:
>
> I believe it's a bad idea for Setup.hs to import any packages
> not in base (that would include zip-archive), since Setup needs
> to get compiled before cabal install will install dependent
> packages. If you don't already have zip-archive installed,
> the build will just fail at the first step. Or at least that's
> what I recall from last time I tried something like this.
>
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/86f84354-859f-420a-9b3b-da739fcc7a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 7364 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <20150319075414.GC48021-jF64zX8BO082Zs7wWoiTUGZHpeb/A1Y/@public.gmane.org>
2015-03-19 9:59 ` Nick Yakimov
@ 2015-03-19 11:34 ` Nick Yakimov
[not found] ` <0cd06096-8e50-4040-85d7-c67f415c5d44-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
1 sibling, 1 reply; 10+ messages in thread
From: Nick Yakimov @ 2015-03-19 11:34 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 1235 bytes --]
Anyway, if you're not opposed to the idea itself, I could create a PR -- I
think it would simplify implementation discussion a little.
четверг, 19 марта 2015 г., 10:54:33 UTC+3 пользователь John MacFarlane
написал:
>
> I believe it's a bad idea for Setup.hs to import any packages
> not in base (that would include zip-archive), since Setup needs
> to get compiled before cabal install will install dependent
> packages. If you don't already have zip-archive installed,
> the build will just fail at the first step. Or at least that's
> what I recall from last time I tried something like this.
>
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0cd06096-8e50-4040-85d7-c67f415c5d44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1781 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <0cd06096-8e50-4040-85d7-c67f415c5d44-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-19 16:32 ` John MacFarlane
[not found] ` <20150319163223.GE32893-0VdLhd/A9Pm0ooXD8Eul3TpoUNQFg/XNTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: John MacFarlane @ 2015-03-19 16:32 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
I'm not completely sure yet, but I'd certainly consider a PR.
+++ Nick Yakimov [Mar 19 15 04:34 ]:
>Anyway, if you're not opposed to the idea itself, I could create a PR -- I
>think it would simplify implementation discussion a little.
>
>четверг, 19 марта 2015 г., 10:54:33 UTC+3 пользователь John MacFarlane
>написал:
>>
>> I believe it's a bad idea for Setup.hs to import any packages
>> not in base (that would include zip-archive), since Setup needs
>> to get compiled before cabal install will install dependent
>> packages. If you don't already have zip-archive installed,
>> the build will just fail at the first step. Or at least that's
>> what I recall from last time I tried something like this.
>>
>>
>
>--
>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0cd06096-8e50-4040-85d7-c67f415c5d44%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20150319163223.GE32893%40dhcp-128-32-252-54.lips.berkeley.edu.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <20150319163223.GE32893-0VdLhd/A9Pm0ooXD8Eul3TpoUNQFg/XNTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
@ 2015-03-19 17:15 ` Nick Yakimov
[not found] ` <a14562f2-a0fa-411b-aa6a-c1b8f8b85dd1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Nick Yakimov @ 2015-03-19 17:15 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 2248 bytes --]
You've probably seen that already, but for posterity's sake,
https://github.com/jgm/pandoc/pull/2014
четверг, 19 марта 2015 г., 19:32:39 UTC+3 пользователь John MacFarlane
написал:
>
> I'm not completely sure yet, but I'd certainly consider a PR.
>
> +++ Nick Yakimov [Mar 19 15 04:34 ]:
> >Anyway, if you're not opposed to the idea itself, I could create a PR --
> I
> >think it would simplify implementation discussion a little.
> >
> >четверг, 19 марта 2015 г., 10:54:33 UTC+3 пользователь John MacFarlane
> >написал:
> >>
> >> I believe it's a bad idea for Setup.hs to import any packages
> >> not in base (that would include zip-archive), since Setup needs
> >> to get compiled before cabal install will install dependent
> >> packages. If you don't already have zip-archive installed,
> >> the build will just fail at the first step. Or at least that's
> >> what I recall from last time I tried something like this.
> >>
> >>
> >
> >--
> >You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> >To unsubscribe from this group and stop receiving emails from it, send an
> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
> >To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> <javascript:>.
> >To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/0cd06096-8e50-4040-85d7-c67f415c5d44%40googlegroups.com.
>
> >For more options, visit https://groups.google.com/d/optout.
>
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a14562f2-a0fa-411b-aa6a-c1b8f8b85dd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 3880 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <a14562f2-a0fa-411b-aa6a-c1b8f8b85dd1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-04-01 8:32 ` tolot27
[not found] ` <b94035e4-f263-4495-9ca1-26f6fff536fd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: tolot27 @ 2015-04-01 8:32 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 925 bytes --]
Is there any way to build the reference.docx based on a source path by
command line?
Background: I have a source (unzipped) directory of my reference.docx and
from time to time I adjust settings (i. e. merging changes from
pandoc/data/docx/word). Now it would be great to just use the newly
commited build mechanism to build by own reference.docx.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b94035e4-f263-4495-9ca1-26f6fff536fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1357 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <b94035e4-f263-4495-9ca1-26f6fff536fd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-04-01 12:36 ` Nikolay Yakimov
[not found] ` <CA+hqrpVdA9f8z2zU8gUjZ1Jyt9OktsZso7tXGjLzngG-+BiSWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Nikolay Yakimov @ 2015-04-01 12:36 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2408 bytes --]
Docx is basically a zip-file. You only need to zip your unpacked contents
and rename it to *.docx. We only had to roll our own to keep it
cross-platform. In essence, you don't need pandoc's reference builder to
make your own. If you want though, there is data/make-reference-files.hs,
which takes single string argument $arg and zips data/$arg into
data/reference.$arg, e.g.
runhaskell data/make-reference-files docx
will create data/reference.docx from data/docx/*
ср, 1 апр. 2015 г. в 11:32, tolot27 <mathias-taBouHiV1h1goHlPtYpdqQ@public.gmane.org>:
> Is there any way to build the reference.docx based on a source path by
> command line?
>
> Background: I have a source (unzipped) directory of my reference.docx and
> from time to time I adjust settings (i. e. merging changes from
> pandoc/data/docx/word). Now it would be great to just use the newly
> commited build mechanism to build by own reference.docx.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pandoc-discuss/i9lconsh0yw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/b94035e4-f263-4495-9ca1-26f6fff536fd%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/b94035e4-f263-4495-9ca1-26f6fff536fd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CA%2BhqrpVdA9f8z2zU8gUjZ1Jyt9OktsZso7tXGjLzngG-%2BBiSWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 3475 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Build systems for binary reference files?
[not found] ` <CA+hqrpVdA9f8z2zU8gUjZ1Jyt9OktsZso7tXGjLzngG-+BiSWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-04-01 12:38 ` Walter, Mathias
0 siblings, 0 replies; 10+ messages in thread
From: Walter, Mathias @ 2015-04-01 12:38 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 3515 bytes --]
Argh! Yes, you are right. I just had overseen this triviality.
2015-04-01 14:36 GMT+02:00 Nikolay Yakimov <g.livid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Docx is basically a zip-file. You only need to zip your unpacked contents
> and rename it to *.docx. We only had to roll our own to keep it
> cross-platform. In essence, you don't need pandoc's reference builder to
> make your own. If you want though, there is data/make-reference-files.hs,
> which takes single string argument $arg and zips data/$arg into
> data/reference.$arg, e.g.
>
> runhaskell data/make-reference-files docx
>
> will create data/reference.docx from data/docx/*
>
> ср, 1 апр. 2015 г. в 11:32, tolot27 <mathias-taBouHiV1h1goHlPtYpdqQ@public.gmane.org>:
>
>> Is there any way to build the reference.docx based on a source path by
>> command line?
>>
>> Background: I have a source (unzipped) directory of my reference.docx and
>> from time to time I adjust settings (i. e. merging changes from
>> pandoc/data/docx/word). Now it would be great to just use the newly
>> commited build mechanism to build by own reference.docx.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "pandoc-discuss" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/pandoc-discuss/i9lconsh0yw/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/b94035e4-f263-4495-9ca1-26f6fff536fd%40googlegroups.com
>> <https://groups.google.com/d/msgid/pandoc-discuss/b94035e4-f263-4495-9ca1-26f6fff536fd%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pandoc-discuss/i9lconsh0yw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/CA%2BhqrpVdA9f8z2zU8gUjZ1Jyt9OktsZso7tXGjLzngG-%2BBiSWg%40mail.gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/CA%2BhqrpVdA9f8z2zU8gUjZ1Jyt9OktsZso7tXGjLzngG-%2BBiSWg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEoNs9rk%3DhDFKdD5cTBQ7RnX7WP%2B3pT8MWPLb8eHnYc%2ByFQGWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 5358 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-04-01 12:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-18 5:26 Build systems for binary reference files? Nick Yakimov
[not found] ` <5c9b6cc5-f967-4362-bd1d-08738c51d5ce-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-18 19:23 ` Nick Yakimov
[not found] ` <12a3374e-c84f-452e-8052-3adec564ae34-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-19 7:54 ` John MacFarlane
[not found] ` <20150319075414.GC48021-jF64zX8BO082Zs7wWoiTUGZHpeb/A1Y/@public.gmane.org>
2015-03-19 9:59 ` Nick Yakimov
2015-03-19 11:34 ` Nick Yakimov
[not found] ` <0cd06096-8e50-4040-85d7-c67f415c5d44-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-19 16:32 ` John MacFarlane
[not found] ` <20150319163223.GE32893-0VdLhd/A9Pm0ooXD8Eul3TpoUNQFg/XNTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
2015-03-19 17:15 ` Nick Yakimov
[not found] ` <a14562f2-a0fa-411b-aa6a-c1b8f8b85dd1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-04-01 8:32 ` tolot27
[not found] ` <b94035e4-f263-4495-9ca1-26f6fff536fd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-04-01 12:36 ` Nikolay Yakimov
[not found] ` <CA+hqrpVdA9f8z2zU8gUjZ1Jyt9OktsZso7tXGjLzngG-+BiSWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-01 12:38 ` Walter, Mathias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).