-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
citations in docbook not properly treated #10651
Comments
So your preferred output would be this?
What about complex citations like
Also, the idea in the page you link to seems to be that you'd have a bibliography section at the end that defined the same citation identifiers. |
I use the docbook format only to have a simple xml format with markup such that the text can be translated automatically and the markup preserved. Preferred would be a 'native' like format, with xml encoding and bunching together text (a bit like Considering the simplicity of the pandoc native writer and reader, such a solution seems doable, dispensing with all the idiosyncrasies of specific formats (perhaps only waiting to learn of the specifics of translation services ...). Given your long-time experience: Is this a reasonable idea? Where would you expect problems? |
See #10556 |
Thank you for pointing me to this discussion. I can understand the reasons for @massifrg to not go the JSON route; debugging such code was in my experience, perhaps due to not fully understand I have written a sketch using |
As I note in the linked discussion, it should be possible to generate readers and writers for an XML-ish version of the AST, in a fairly regular way (perhaps using generics). |
Text with citations (unprocessed) are not properly translated to format DocBook. A minimal example
with
$ pandoc -f markdown -t docbook 04biblio2.md -o -s 04t
givesThe docbook documentation indicates that citations should be placed in
<citation>AhoSethiUllman96</citation>
.The resulting docbook output is not correctly read with Pandoc. With
pandoc -f docbook -t markdown 04t -s -o 04u
I obtainI assume that the docbook format may be increasingly used to convert documents in a format which can be automatically translated by services like, e.g. DeepL. The xml style markup is left untouched during translation; therefore using pandoc to convert to docbook, translate the text and convert back without losing the markup is an attractive proposition.
I use
on a linux debian (bookworm) system.
The text was updated successfully, but these errors were encountered: