Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-28 Thread Christopher Creutzig
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

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-28 Thread Christopher Creutzig
Idris Samawi Hamid wrote: Ok, you guys have lost me now-) Maybe the best thing to do is try something Just ignore the detail of what xslt can and can't do for the moment. That just influences the choice of tools for one particular step and we all agree that there are tools for this step. it

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-28 Thread Duncan Hothersall
No need for rtf. That would loose lots of information anyway, wouldn't it? RTF can capture everything that .doc can (MS update it every time they rev the .doc format), and it has the advantage that it is defined in a spec with a grammar, which means that importing routines (like the one in

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-28 Thread Christopher Creutzig
Duncan Hothersall wrote: RTF can capture everything that .doc can (MS update it every time they rev the .doc format), and it has the advantage that it is defined in a spec with a grammar, which means that importing routines (like the one Oh, yes, the RTF spec. It really makes you wonder

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-27 Thread Christopher Creutzig
Duncan Hothersall wrote: Question: Is it possible to design a doc or rtf template that Open Office can convert to a sane, consistent xml format? OpenOffice.org does allow you to attach an XSLT stylesheet to an export process which therefore allows you to do a (limited) transformation from

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-27 Thread Duncan Hothersall
Slightly OT, sorry: OpenOffice.org does allow you to attach an XSLT stylesheet to an export process which therefore allows you to do a (limited) transformation from the visual markup which is its native format to a more structured one Why „limited“? Well, XSLT seems to have been designed,

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-27 Thread Christopher Creutzig
Duncan Hothersall wrote: Well, XSLT seems to have been designed, and certainly tends to be implemented, as a tool for simple transformations of small XML chunks. No, xslt is a tool for arbitrary xml - xml conversions (and a little more than that). With a good implementation (say, saxon),

RE: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-27 Thread Idris Samawi Hamid
Hi Christopher, Duncan, Hans, and Adam, Thank you so much for your detailed comments and suggestions. Again, I'm completely new to xml and feel like a fish out of water. OTOH I use sooo much time just manually extracting text (with innumerable transliteration diacritics) and then

RE: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-27 Thread Idris Samawi Hamid
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

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-27 Thread Adam Lindsay
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