Hi Dag, nice to see the progress.

I've attached a patch:

- The line_break.py filter is no longer necessary (handled by replacements3 substittion). http://code.google.com/p/asciidoc/source/detail?r=05257f9b440922e8971a1e313df036b2d3a629c4

- strip() backend_opts in a2x.conf.

Some time back I worked with Lex to add the {blockname} attribute for ODF nested paragraphs, did that work out?

See:

http://groups.google.com/group/asciidoc/browse_thread/thread/8200e29815c40f72?pli=1

8<-----------------
8. The `{blockname}` attribute identifies the style of the current
   block. It applies to delimited blocks, lists and tables. Here is a
   list of `{blockname}` values (does not include filters or custom
   block and style names):

   delimited blocks:: comment, sidebar, open, pass, literal, verse,
   listing, quote, example, note, tip, important, caution, warning,
   abstract, partintro

   lists:: arabic, loweralpha, upperalpha, lowerroman, upperroman,
   labeled, labeled3, labeled4, qanda, horizonatal, bibliography,
   glossary

   tables:: table
8<-----------------


Cheers, Stuart


On 08/02/12 11:55, Dag Wieers wrote:
Hi,

There has been some progress on the ODF front. Most related to integration with
other existing software.

- We managed to get the ODF support in GNU source-highlight release as
part of v3.1.6

- We managed to get unencapsulated SVG support into LibreOffice so that
we can have base64 SVG files embedded in Flat ODF files and zipped ODF
files

- In the upcoming LibreOffice 3.4.6 and 3.5.1, Flat ODF files will work
out of the box on the default Windows installation (now it requires a
custom installation)

- We are still pursuing to have Flat ODF file associations (currently the
mime-types are not being installed as expected)

- We managed to get xmllint fixed to parse ODF using RelaxNG

Apart from some small visual changes to the default stylesheets, the ODF backend
itself has not evolved much. I am hoping some people come forward to help out
finishing the backend as I lack sufficient free time atm. :-/


--
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.

diff --git a/odt.conf b/odt.conf
index c828312..04fbf5a 100644
--- a/odt.conf
+++ b/odt.conf
@@ -15,6 +15,11 @@
 
 [miscellaneous]
 outfilesuffix=.fodt
+subsverbatim=specialcharacters,callouts,replacements3
+
+[replacements3]
+(\n|$)=<text:line-break/>\n
+\s=<text:s/>
 
 [attributes]
 basebackend=odf
@@ -167,9 +172,6 @@ endif::icons[]
 [comment-blockmacro]
 {showcomments#}<text:p text:style-name="comment">{passtext}</text:p>
 
-[paradef-literal]
-filter="line_break.py"
-
 [literal-inlinemacro]
 # Inline literal.
 <text:span text:style-name="monospaced">{passtext}</text:span>
@@ -351,9 +353,6 @@ comment-style=template="commentblock",options=(),subs=("normal",)
 {showcomments#}<text:p text:style-name="comment">|</text:p>
 
 # Delimited blocks.
-[blockdef-listing]
-filter="line_break.py"
-
 [listingblock]
 <text:p text:style-name="title">{id?<text:bookmark-start text:name="{id}"/>}{title}{id?<text:bookmark-end text:name="{id}"/>}</text:p>
 <text:p text:style-name="listingblock">{title!{id?<text:bookmark text:name="{id}"/>}}|</text:p>
@@ -371,9 +370,6 @@ ifdef::pygments[source-style=template="source-highlight-block",presubs=(),postsu
 postsubs=callouts
 filter=source-highlight -f odf -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}
 
-[blockdef-literal]
-filter="line_break.py"
-
 [literalblock]
 <text:p text:style-name="title">{id?<text:bookmark-start text:name="{id}"/>}{title}{id?<text:bookmark-end text:name="{id}"/>}</text:p>
 <text:p text:style-name="literalblock">{title!{id?<text:bookmark text:name="{id}"/>}}|</text:p>
@@ -404,7 +400,7 @@ template::[quoteblock]
 
 ### FIXME: filter for verseblock does not work
 [blockdef-quote]
-verse-style=template="verseblock",filter="line_break.py"
+verse-style=template="verseblock"
 
 ### FIXME: Add {role} ?
 [quoteblock]
diff --git a/packaged/a2x.conf b/packaged/a2x.conf
index f9a53c4..1b89a5d 100644
--- a/packaged/a2x.conf
+++ b/packaged/a2x.conf
@@ -75,7 +75,7 @@ class odt_archive:
 
 def to_odt(self):
 	opts = AttrDict(base_doc=None, temp_dir=None) # TODO default base doc?
-	u = [ o.strip().split('=') for o in self.backend_opts.split('--') if o != '' ]
+	u = [ o.strip().split('=') for o in self.backend_opts.strip().split('--') if o != '' ]
 	opts.update(u)
 	if opts.base_doc is None:
 		die("No base document found")

Reply via email to