dagwieers / asciidoc-odf

ODF backend for AsciiDoc
98 stars 26 forks source link

Creating ODF variables from attribute entries #11

Open dagwieers opened 12 years ago

dagwieers commented 12 years ago

It would be very useful if attribute entries would automatically be converted into ODF variables so that custom attribute entries automatically can be added to the stylesheets.

That way, one could customize the text that ends up in the future by simply defining such attributes.

elextr commented 12 years ago

On 8 October 2011 08:10, Dag Wieërs reply@reply.github.com wrote:

It would be very useful if attribute entries would automatically be converted into ODF variables so that custom attribute entries automatically can be added to the stylesheets.

In all other asciidoc usage attributes are substituted within asciidoc. It would require significant changes to asciidoc to not substitute them so the ODF could do so.

Also I am not sure that the semantics are identical.

This looks to me as something that is too specific to ODF

Cheers Lex

That way, one could customize the text that ends up in the future by simply defining such attributes.

Reply to this email directly or view it on GitHub: https://github.com/dagwieers/asciidoc-odf/issues/11

dagwieers commented 12 years ago

I do not necessarily want LibreOffice do the substitution, but some information can only be changed in the stylesheet (eg. header/footer text) and AsciiDoc does not substitute attributes placed in stylesheets. While obviously using variables works. (I use it for my footer to show the document-title, the chapter-title and page-numbers in the footer). It would be nice that eg. I can put the date in a custom format there too (eg. having Oct 2011 in the footer of my curriculum vitae).