-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing custom styles in docbook #3657
Comments
see also the issue of extending custom styles to ODT/ICML: #2106... |
The code changes would indeed be simple. It's a matter of deciding on bigger architectural issues. Do we assume that Another option would be treat |
Some answers :
Ideally, the parser would also add a custom-style on specific docbook elements like |
a precision : my docbook files are generated from asciidoc python tool, which already generate phases with role for quoted text, see http://www.methods.co.nz/asciidoc/userguide.html#X51. |
I also miss this.
|
The
You could use a Lua filter that converts classes on Span into function Span(el)
if el.classes[1] then
el.attributes['custom-style'] = el.classes[1]1
end
end (untested) The |
Docbook has a way of specifying custom styles with the
role
attribute in thephrase
element, but Pandoc does'nt parse them.So Pandoc is able to generates custom styles in docx, odt, html... formats, but only from markdown or html
<span>
elementfrom the code of the docbook parser, I can imagine that it would take just one line or two to generate a
Span
element withcustom-style
attribute, but I'm not an Haskell developer...I think this would also solve #1235.
The text was updated successfully, but these errors were encountered: