RE: [NTG-context] DOC/RTF to ConTeXt via XML
![](https://secure.gravatar.com/avatar/4d93e6d89c1355aade84cc5c1d6a2065.jpg?s=120&d=mm&r=g)
Hi Duncan, I know little about xml and virtually nothing about Word (except that it's crap) so please forgive me if this is a stupid or clueless question-)
But you should also explore DocBook-in-ConTeXt, which uses ConTeXt's native XML processing capabilities.
Is it possible to create a Word template that is isomorphic with a DocBook format? Adam (privately) suggested hiring someone to write a structured format for authors. Is that where docbook comes in? Basically, authors in the humanities use Word and it's virtually a lost cause getting them to switch to anything else, even free tools like OO.o (let alone ConTeXt). It would have to be someting where I could do word=>docbook=>ConTeXt. <Sigh> Best Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
![](https://secure.gravatar.com/avatar/a5d42c1ccacf33c72fd502fe1bb5ffa9.jpg?s=120&d=mm&r=g)
Idris Samawi Hamid said this at Tue, 27 Sep 2005 09:10:27 -0600:
Adam (privately) suggested hiring someone to write a structured format for authors. Is that where docbook comes in?
Ah, sorry about that. I meant you *could* hire someone to design a format, but the bigger point was that it would be rather futile without a user-level authoring tool backing it up! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
![](https://secure.gravatar.com/avatar/3d86d93abcc56d7b5843cc1ce58bbfd6.jpg?s=120&d=mm&r=g)
Idris Samawi Hamid wrote:
But you should also explore DocBook-in-ConTeXt, which uses ConTeXt's native XML processing capabilities.
Is it possible to create a Word template that is isomorphic with a DocBook format?
You can write a Word template isomorphic to a (pretty large) subset of DocBook, although I believe Word does not allow you to introduce new types of crossreferences, so you can't reach everything DocBook has. Whether you can make your authors use it consistently is a different matter – DocBook uses, for example, different elements for different types of what ConTeXt calls typing: <code> for inline code fragments, <command> for something you invoke (use <option> for its options and <symbol> for the placeholders to be replaced by actual values), <computeroutput> should be obvious but there are also <screen> and <screenshot> – the difference is a bit subtle; programmers might also use <constant>, <errorcode>, <errorname>, <errortext>, <exceptionname>, <funcdef>, <funcprototype>, <funcsynopsis>, <cmdsynopsis>, <constructorsynopsis>, <arg>, <function>, <methodname>, <methodparam>, <methodsynopsis>, <ooclass>, <ooexception>, <oointerface>, <progamlisting> and its annotated cousin <programlistingco>, <sgmltag>, <structfield>, <structname>, <varargs>, <varname>; <envar> denotes environment variables, <filename> is almost superfluous since it is a special case of a <systemitem> (yes, many of these elements carry further meta-information in their attributes), then there are the unspecific <literal> and <literallayout> elements and also <markup>, <userinput>, and finally there is also <uri> to format URLs and other URIs. Somewhat related elements also abound: <keycap> is used to denote keys on the keyboard, <keycombo> for combinations of those keys. <guibutton> is used for the text on a button in a GUI, <guilabel>, <guimenu>, <guimenuitem> and <guisubmenu> and many others. Note that I do not question this abundance of possibilities. After all, it is logical markup taken to an extreme and probably noone really uses all of it, yet all the parts are already there if you want them. I do question the likelihood of the average Word user (who, let's face it, probably never used formats since the introductory course) making good use of this. Sure it is nice to have authors' first and last names explicitly marked in your text, but someone has to go there and do that, and if they don't see any difference on their screens after doing it, they will get lazy and not do it for the fifteenth person they name. Additionally, most of the DocBook elements may only appear nested in the correct places in other elements, which makes using an isomorphic Word template rather challenging even for the advanced user. If you would like to browse through the long list of markup items in DocBook, please see http://docbook.org/tdg/en/html/docbook.html – and do not be afraid; as I said above, very much of what is there is absolutely special-purpose stuff.
Adam (privately) suggested hiring someone to write a structured format for authors. Is that where docbook comes in?
Actually, I would not orient the thing to fit to DocBook. DocBook is an extremely flexible beast, so if, after designing the structured format best suited for your needs (this does not need to invlove any xml), you want to map it to DocBook, that should not be any problem.
Basically, authors in the humanities use Word and it's virtually a lost cause getting them to switch to anything else, even free tools like OO.o (let alone ConTeXt). It would have to be someting where I could do word=>docbook=>ConTeXt.
As I said: Offering Word is obviously a must, but if that were the only option you offered, you'd be actively adding your part to making sure the situation does not change. And getting Word to export DocBook will certainly be much harder than using OOo for that part. Christopher
participants (3)
-
Adam Lindsay
-
Christopher Creutzig
-
Idris Samawi Hamid