med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

414
active users

#docbook

1 post1 participant0 posts today

@david_megginson

This opposition of org-mode vs. (LaTeX, SGML) XML in publishing is something that resonates very strongly with me - though I'm afraid it's hard for many org users to understand.

I do almost all of my daily work in org-mode, but whenever I start a writing project that needs to be published, I use XML. There are all kinds of reasons for this, some very specific to my case of academic writing, where the handling of citations, footnotes and bibliography can get very complex and specific. But I feel that in the end it comes down to something much simpler.

For decades I have been using docbook-xml for all my writing projects, starting with drafting in asciidoc (and this co-existence of asciidoc and org-mode as two "markdown" dialects still leaves me unsatisfied). The deeper reasons however seem to be that in org-mode you start designing your text from an outline. For me, this is the wrong approach, as I need to write a text as a stream-of-consciousness, adding paragraph after paragraph, and only later get to an outline. The way I'm used to using org-mode seems to make this impossible for me.

I want to spin up replacement mailing lists for #DocBook users now that they won't be hosted by OASIS anymore. (Nevermind that IT chaos at OASIS means none of the lists are working very well.) Is there an ethical open source collective sort of place that will let me pay them to do this? The lists are free for users, of course, and I don't generate any revenue from them, so it would have to be a not too expensive place.

OK, so my fantasy #worldbuilding / #writing project notes live in a massive #Scrivener project. 164,686 words.

Now, *editing* the thing in Scrivenever is fine and good and I have no problems coming up with new stuff and just putting it there. However...!

The export process is kinda janky. At current state I can't export this to HTML, for starters. If I want a usable PDF document out of this (compiles into a 344 page document, half of which isn't even formatted right because I'm lazy and it looks OK in Scrivener side), I need to compile it into a LaTeX file via MultiMarkDown. Involves a little bit of hand-fiddling too.

It's *hhhella slow*. It's *janky*.

I really would like this to be a much more easily editable and compilable thing. With fully text-based markdown(esque) input, able to export to static HTML and PDF (via LaTeX, preferably).

Lots of options to choose from. I'm currently looking investigating #DocBook solutions. Am I mad? ...I am mad, aren't I?

@alex @Sandra

Although it's easy to sympathise with this criticism, since there's no doubt that #DocBook is a beast and can drive you mad, this rant is also caused by the author's perspective.

If you use #DocBook as a source for producing man pages, it reminds me to learning #org-mode for writing your shopping list. Man pages have a very rigid structure, but the main strength of docbook is its flexibility. And with this flexibility comes ambiguity and redundancy.

If you look at the discussions between the people involved, it's not that they didn't see the problems, but it's about how #DocBook evolved. It's true that it was originally designed for writing "technical documentation". But what is technical documentation? My main use of it is for writing projects that are not "technical" in nature - but where the structure is often unpredictable. And as much as I've wanted to get rid of DocBook, I keep coming back to it because it allows me to even misuse it for purposes it wasn't designed for.

I can see a parallel there for why I like #Perl (which most people seem to hate as much as XML in general). I'm not a programmer, and I don't care if you have trouble understanding my code. But it gives me the ability to do things my way without having to rebuild everything from scratch. For me, these tools have certain values that I miss in most of the others out there.

And to make things even more complicated: I love #OpenBSD and hate man pages ;-)

Replied in thread

@lobrien I have seen this technique used for tutorials of #Java frameworks. I have also seen build tools distributed as containers. Back in the day I would have loved a containerized #DocBook build environment for PDF and HTML because the default toolchain on Linux would invariably fail due to the many incompatible/brittle stages involved.

"#Antiword" is a command line program that can read the proprietary "doc" format (not docx) used by old MS Word versions. Pandoc and antiword can be combined via #DocBook XML; this offers a way to convert old doc files:

antiword -x db input.doc | pandoc -f docbook …