On 14/02/12 03:20, Dag Wieers wrote:
On Mon, 13 Feb 2012, Dag Wieers wrote:
On Mon, 13 Feb 2012, Stuart Rackham wrote:
I assume you mean in the Plugins table 1 in
http://www.methods.co.nz/asciidoc/plugins.html
If so could you package it as a plugin so it can be downloaded and
installed using the asciidoc backend install command e.g.
asciidoc --backend install odt-0.1.zip
I am already stuck :-)
Not anticipating any feedback, being young (ahem) and restless, I went forward
and did what I reported. You can now find the ODP and ODT backends, as well as
the 'cv' theme and improved 'code' filter at:
https://github.com/dagwieers/asciidoc-odf/downloads
My feedback took a little while :-)
I downloaded and installed the odt backend:
$ asciidoc -b install /home/srackham/tmp/odt-backend-0.1.zip
Ran a small test:
$ asciidoc -b odt t.txt
asciidoc: WARNING: t.txt: line 1: include file not found:
/home/srackham/projects/asciidoc/trunk/backends/odt/asciidoc.odt.styles
I fixed this with a small patch to odt.conf which gets it to look in the same
directory as odt.conf (the backend plugin install directory) for the .styles files:
8<--------
$ diff -u odt.conf.ORIG odt.conf
--- odt.conf.ORIG 2012-02-15 14:07:04.653207662 +1300
+++ odt.conf 2012-02-15 14:30:17.041753779 +1300
@@ -740,8 +740,7 @@
</office:event-listeners>
</office:scripts>
-include1::{theme%}{backenddir={asciidoc-confdir}/backends/{backend}}/asciidoc.odt.styles[]
-include1::{themedir}/{theme}.odt.styles[]
+include1::./{theme=asciidoc}.odt.styles[]
endif::not_flat_odf[]
<!-- body -->
8<--------
So now you can bundle any built-in .styles files with the backend plugin. The
only problem is that if you use the asciidoc --theme option you get a harmless
warning e.g.
$ asciidoc -b odt --theme cv t.txt
asciidoc: WARNING: missing theme: cv
Maybe asciidoc should suppress the warning for external backends.
Cheers, Stuart
I will now modify the original README.asciidoc and add a Download section
explaining how to activate the plugins. I should also point out that you need
the latest AsciiDoc source-code (or 8.6.7 when it is released).
Beware though that there seems to be an issue with Github, since the
code-examples in the Github asciidoc output is missing newlines :-(
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.