Re: [NTG-context] docbook(5) to context conversion
Am 2016-04-13 um 02:12 schrieb Jan Tosovsky: > As promised, I've published a set of XSLT stylesheets for DocBook to ConTeXt > conversion. > Details can be found at http://doctribute.com/blog/ Thank you very much. I wikified it: http://wiki.contextgarden.net/DocBook I found also your other blog postings very interesting, since I work with InDesign a lot and used or at least tried to work with other typesetting/layout systems (LinoSetting, 3B2, QuarkXPress, Ventura P., Scribus et al.). (ConTeXt works mostly in the background, as long as updates don’t break compatibility…) Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) GPG Key ID 1C9B22FD ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook(5) to context conversion
On 2016-02-25 Jan Tosovsky wrote: > On 2016-02-23 David Nebauer wrote: > > On 23/02/16 06:33, Jan Tosovsky wrote: > > > On 2016-02-22 David Nebauer wrote: > > > > > > > > Are there any publicly available solutions for > > > > converting docbook/docbook5 to context? ... > > > > > > > > * dbcontext - part of dblatex, abandoned ~10 years ago > > > > > > I used this way some time ago, but it required tweaks in > > > approx 10 xslt files to make it compatible with Context MkIV > > > > Cool. Any chance you could post your amended xslt files to give a > > newbie a head start? > > Ok, I will publish it on my GitHub account later next week (after > necessary cleanup). As promised, I've published a set of XSLT stylesheets for DocBook to ConTeXt conversion. Details can be found at http://doctribute.com/blog/ There is also a step by step description how to test stylesheets on a sample DocBook v4 book. As you can see, I've changed my mind and instead of patching dbcontext project I created a new one. It finally took more time than originally estimated. If you encounter any misleading info or inclarity, let me know. Thanks, Jan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook(5) to context conversion
On 25/02/16 08:45, Jan Tosovsky wrote: On 2016-02-23 David Nebauer wrote: Any chance you could post your amended xslt files? Ok, I will publish it on my GitHub account later next week (after necessary cleanup). Thanks, I'll watch for it. In the meantime I'll brush up on docbook xsl customisation. David. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook(5) to context conversion
On 2/23/2016 9:16 AM, David Nebauer wrote: On 23/02/16 06:33, Jan Tosovsky wrote: On 2016-02-22 David Nebauer wrote: Are there any publicly available solutions for converting docbook/docbook5 to context? ... * dbcontext - part of dblatex, abandoned ~10 years ago I used this way some time ago, but it required tweaks in approx 10 xslt files to make it compatible with Context MkIV Cool. Any chance you could post your amended xslt files to give a newbie a head start? it's probably not too complicated to implement a reasonable subset of docbook using the built in parser (i just never needed to do docbook) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook(5) to context conversion
On 23/02/16 06:33, Jan Tosovsky wrote: On 2016-02-22 David Nebauer wrote: Are there any publicly available solutions for converting docbook/docbook5 to context? ... * dbcontext - part of dblatex, abandoned ~10 years ago I used this way some time ago, but it required tweaks in approx 10 xslt files to make it compatible with Context MkIV Cool. Any chance you could post your amended xslt files to give a newbie a head start? Some general tweaks were sent to the original author who promised merging them. He also mentioned planned update in the near future... Since then dbcontext has been removed from the dblatex distribution. The current dblatex is 0.3.7 but it looks like the most recent dbcontext is from 0.2pre. I think the chances of dbcontext getting further love from its author are not good... David. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook(5) to context conversion
On 2016-02-22 David Nebauer wrote: > > Are there any publicly available solutions for converting > docbook/docbook5 to context? ... > > * dbcontext > - part of dblatex, abandoned ~10 years ago I used this way some time ago, but it required tweaks in approx 10 xslt files to make it compatible with Context MkIV (depends how many elements you use in your source, my is not so complex). For me, XSLT programmer, this is the most natural approach. You can directly customize your outputs this way. I call the transformation directly via command line without that default python stuff. Some general tweaks were sent to the original author who promised merging them. He also mentioned planned update in the near future... Jan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook(5) to context conversion
On 22/02/16 19:40, Jan U. Hasecke wrote: Am 22.02.2016 um 11:08 schrieb David Nebauer: Are there any publicly available solutions for converting docbook/docbook5 to context? You may find a way with Pandoc. http://pandoc.org/ juh Thanks. I'll check it out. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook(5) to context conversion
Am 22.02.2016 um 11:08 schrieb David Nebauer: > Hi, > > Are there any publicly available solutions for converting > docbook/docbook5 to context? You may find a way with Pandoc. http://pandoc.org/ juh ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook
Am 18.12.2012 um 12:31 schrieb Roger Mason rma...@mun.ca: Hello all, I have a manuscript to review that I have managed to coerce into DocBook xml. I'd like to turn it into context so that I can mark it up in a comfortable environment. I just tried Simon Pepping's DocBookInContext package from 2003, but it fails on the provided test document: ! Undefined control sequence. l.968 \stelsectiein pandoc is not an option for me at the moment: I am currently using Arch Linux and have not been able to get their Haskell installation to finish successfully. 1. The module uses a mix of english and dutch commands which doesn’t work (maybe it worked when module was written). 2. The code is outdated, written for MkII and rewrites commands which are already part of the core. When you really want to use DocBook xml with context you have to write your own module, for tables you can use the context module for calls tables. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook
Hi Roger, pandoc is not an option for me at the moment: I am currently using Arch Linux and have not been able to get their Haskell installation to finish successfully. Have you tried to use the third party haskell repo? They provide a precompiled package haskell-pandoc. [haskell] # Arch-Haskell repository # Discussion: http://www.haskell.org/mailman/listinfo/arch-haskell Server = http://xsounds.org/~haskell/$arch Regards, Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook
On 12/18/2012 12:47 PM, Wolfgang Schuster wrote: Am 18.12.2012 um 12:31 schrieb Roger Mason rma...@mun.ca: Hello all, I have a manuscript to review that I have managed to coerce into DocBook xml. I'd like to turn it into context so that I can mark it up in a comfortable environment. I just tried Simon Pepping's DocBookInContext package from 2003, but it fails on the provided test document: ! Undefined control sequence. l.968 \stelsectiein pandoc is not an option for me at the moment: I am currently using Arch Linux and have not been able to get their Haskell installation to finish successfully. 1. The module uses a mix of english and dutch commands which doesn’t work (maybe it worked when module was written). That was an experiment by Simon and (in latex style) it overloaded quite some low level stuff so it never really worked out well I think. 2. The code is outdated, written for MkII and rewrites commands which are already part of the core. Indeed. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook
Wolfgang, Thomas, Hans, On 12/18/2012 09:51 AM, Hans Hagen wrote: On 12/18/2012 12:47 PM, Wolfgang Schuster wrote: Am 18.12.2012 um 12:31 schrieb Roger Mason rma...@mun.ca: Hello all, I have a manuscript to review that I have managed to coerce into DocBook xml. I'd like to turn it into context so that I can mark it up in a comfortable environment. I just tried Simon Pepping's DocBookInContext package from 2003, but it fails on the provided test document: ! Undefined control sequence. l.968 \stelsectiein pandoc is not an option for me at the moment: I am currently using Arch Linux and have not been able to get their Haskell installation to finish successfully. 1. The module uses a mix of english and dutch commands which doesn’t work (maybe it worked when module was written). That was an experiment by Simon and (in latex style) it overloaded quite some low level stuff so it never really worked out well I think. 2. The code is outdated, written for MkII and rewrites commands which are already part of the core. Indeed. Hans Thank you for your replies. The hint given by Thomas was enough to allow me to get pandoc installed and I now have a workflow that provides ConTeXt output. Many thanks. Roger This electronic communication is governed by the terms and conditions at http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On 4-6-2011 2:24, Aditya Mahajan wrote: On Jun 4, 2011, at 5:06 AM, Hans Hagenpra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup IIRC, the namespace was hardcoded in the parser (or the call to the parser). Robert's trouble with the cals table could have been resolved if there were a user option to set (or disable) the cals namespace. No, the namespace is just used to isolate code so 'cals' is an abstraction. However, the assumption is indeed is that when used in an xml file there is a namespace (afaiks in docbook they embed the cals model, so it's not used as an independent definition). When in x-cals.lua the following is used in line 128 local prefix = namespace and namespace ~= and (namespace .. :) or one can do this then: \startxmlsetups xml:cals:nonamespace \xmlsetfunction {main} {table} {moduledata.cals.table} \stopxmlsetups \xmlregistersetup{xml:cals:nonamespace} (I need to check such a change for side effects.) (BTW, x-cals-test.xml in the testsuite shows all kind of namespace remapping / usage) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
Op 3 jun 2011, om 18:28 heeft Hans Hagen het volgende geschreven: On 3-6-2011 5:43, R. Ermers wrote: I tried typesetting docbook with Context, it can be done, I but got stuck on the cals tables and some other things. Cals tables can be processed, albeit as separate documents only - not as part of the docbook file - and then imported as pdf files. This was too cumbersome for me, and does not agree with the tex philosophy. I therefore gave up. we process docs with cals tables here Yes, you surely do. Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. With help from Aditya I managed to typeset a document which contains merely a cals table. I then thought this was going to be the first step to processing my xml file which contains a number of tables. But alas ... The tables in my document were skipped like any other unknown xml tag. I must have done something wrong. But what? There were no replies to my postings. In the end I felt silly for daring to posing a problem other people apparently had no problems with whatsoever. So, if you should embark on this track, be aware that typesetting xml is more complicated than a ConTeXt document, that the knowledge about it is not widespread yet, that you rely on the happy few who do know, and it may take a lot of time to find out things yourself. Robert For some reason finetuning of, for example, the positioning of graphics, and headers as widows is more difficult than in a context document, at least I got this impression. the same renderer is used so it should be the same Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup With help from Aditya I managed to typeset a document which contains merely a cals table. I then thought this was going to be the first step to processing my xml file which contains a number of tables. But alas The tables in my document were skipped like any other unknown xml tag. I must have done something wrong. But what? There were no replies to my postings. In the end I felt silly for daring to posing a problem other people apparently had no problems with whatsoever. well, providing solutions for specific user cases depends on available time etc ... even making a simple example ... So, if you should embark on this track, be aware that typesetting xml is more complicated than a ConTeXt document, that the knowledge about it is not widespread yet, that you rely on the happy few who do know, and it may take a lot of time to find out things yourself. sure, and eventually it will be covered by manuals (or test files in the test suite -- actually there are some xml ones in there) ... there's only so much you can expect for a free system so some patience is needed ps. although a lot of help can be gotten from this list, the wiki etc, users who want to do complex things (or workflows) cannot expect all their problems to be solved here as we all have jobs to fulfill ... it might help to make wiki pages and let others fill in the gaps Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
Op 4 jun 2011, om 11:06 heeft Hans Hagen het volgende geschreven: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup With help from Aditya I managed to typeset a document which contains merely a cals table. I then thought this was going to be the first step to processing my xml file which contains a number of tables. But alas The tables in my document were skipped like any other unknown xml tag. I must have done something wrong. But what? There were no replies to my postings. In the end I felt silly for daring to posing a problem other people apparently had no problems with whatsoever. well, providing solutions for specific user cases depends on available time etc ... even making a simple example ... So, if you should embark on this track, be aware that typesetting xml is more complicated than a ConTeXt document, that the knowledge about it is not widespread yet, that you rely on the happy few who do know, and it may take a lot of time to find out things yourself. sure, and eventually it will be covered by manuals (or test files in the test suite -- actually there are some xml ones in there) ... there's only so much you can expect for a free system so some patience is needed ps. although a lot of help can be gotten from this list, the wiki etc, users who want to do complex things (or workflows) cannot expect all their problems to be solved here as we all have jobs to fulfill ... it might help to make wiki pages and let others fill in the gaps Of course, I agree that typesetting a xml docbook in itself is a complex matter. And yes, I read every single letter of the complex xml manuals. I also agree that people no doubt have many other things to do, including myself. Anybody working with Context and TeX must bear in mind that his problems will not be solved immediately, that knowledgeable people will voluntarily look into questions and problems, depending on their time and their interest in specific problems. However, on the other hand since docbook is a very well known and therefore attractive standard, and most problems in xml can be described quite straightforward. As a result the problem of typesetting cals tables cannot be depicted as a 'specific user case'. After all, there is a module cals tables, and it is expected to work. The problem was: how can I typeset a cals table with a minimal installation? Comparable to: how do I typeset a header? What settings are needed apart from the module? This should not be a 'complex' problem. My conclusion remains that the knowledge on xml is not widespread, that those who possess the knowledge do not always have time to help, and as a result my problem was not solved. For the record: note that my problem was not of the type: how to discard the nth line of a cals table? How to color the header of a cals table? Or how to only typeset cals tables with id=abc. Robert - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On Jun 4, 2011, at 5:06 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup IIRC, the namespace was hardcoded in the parser (or the call to the parser). Robert's trouble with the cals table could have been resolved if there were a user option to set (or disable) the cals namespace. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
Op 4 jun 2011, om 14:24 heeft Aditya Mahajan het volgende geschreven: On Jun 4, 2011, at 5:06 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup IIRC, the namespace was hardcoded in the parser (or the call to the parser). Robert's trouble with the cals table could have been resolved if there were a user option to set (or disable) the cals namespace. Well, I added cals: to all tags for ConteXt purposes (tbody, entry become cals:tbody, cals:entry, etc.). I examined what Hans' example tables look like. After the changes, the structure was still that of a cals table, the word cals had been added to each tag, but after this adapation to some particular ConTeXt requirements, the tables in fact could not be called cals tables anymore. The file did no longer comply with the docbook dtd. I didn't mind that much. Predictably, though, my docbook editing software started complaining. The tables were not rendered in the preview anymore. This was a relatively minor problem. I don't know whether Aditya's suggestion would have helped. Robert Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
I tried typesetting docbook with Context, it can be done, I but got stuck on the cals tables and some other things. Cals tables can be processed, albeit as separate documents only - not as part of the docbook file - and then imported as pdf files. This was too cumbersome for me, and does not agree with the tex philosophy. I therefore gave up. For some reason finetuning of, for example, the positioning of graphics, and headers as widows is more difficult than in a context document, at least I got this impression. Robert Op 2 jun 2011, om 22:20 heeft Hans Hagen het volgende geschreven: On 2-6-2011 7:17, Bruce wrote: Hans Hagenpragmaat wxs.nl writes: On 2-6-2011 12:53, Piotr Kopszak wrote: Many thanks for your reply! I would certainly go this way having a couple of months or a year perspective. Besides I'm eager to try finally the new way mkIV deals with xml. But realistically, preparing and testing a mapping of even a subset of DocBook is a question of at least a couple of personmonths if not worse. Sadly, I'm not in a position to that now. Months? I never had a reason for doing a docbook mapping but a couple of hours should get you a start. Th eonly reason why I'd look into docbook is if I'd need in in a project. (I'd happily spent a few well paid months on it then.) You probably don't need all of docbook, so you could start with some simple tests. The mkii docbook stuff you mentioned definitely is doing a small subset. I never understand why you would try to typeset XML directly in ConTeXt? Why not just convert the DocBook to ConTeXt source using XSLT (or if the docs are simpler, use markdown with pandoc and you can easily get ConTeXt and HTML from the same source)? (1) because xslt mappings can become pretty unreadable (2) because you still need to make a file (and define environments) (3) because it then create another depencency and intermediate processing stage (4) because sometimes it makes sense to let the typesetting engine make decisions (5) because in mkiv one can apply lua functions to xml content (6) ... anyhow, the whole idea of xml is that it can be processed by whatever machinery (and using xslt and/or xsl-fo for everything kin dof contradicts that) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On 3-6-2011 5:43, R. Ermers wrote: I tried typesetting docbook with Context, it can be done, I but got stuck on the cals tables and some other things. Cals tables can be processed, albeit as separate documents only - not as part of the docbook file - and then imported as pdf files. This was too cumbersome for me, and does not agree with the tex philosophy. I therefore gave up. we process docs with cals tables here For some reason finetuning of, for example, the positioning of graphics, and headers as widows is more difficult than in a context document, at least I got this impression. the same renderer is used so it should be the same Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On Thu, 2 Jun 2011 11:39:46 +0200 Piotr Kopszak kops...@gmail.com wrote: Dear list, I am beginning a rather tedious documentation project and will most probably end up with DocBook. The fact is I haven't used it for any serious work for about 10 years. Docbook In ConText haven't been updated since 2003. Does it mean it's so perfect or instead rather obsolete? Could you recommend other approaches which work out-of-the-box (or almost). Obviously I would prefer ConTeXt based solutions. DocBook is not mandatory in fact, I would happily learn other documentation system. Main prerequisite is utf-8 output at least in pdf and html and sensible defaults (this time I don't want to be a typographer, nor I want to fiddle with structure). Best Piotr -- http://okle.pl Difficult to say of course without knowing the complexity of your documents, but just a few thoughts: if you're referring to Simon Pepping's Docbook in ConTeXt, this was targeted at mkii, so it will probably still work, but could be considered obsolete. xml support in mkiv has changed a lot, but is much more powerful and flexible. It's fairly easy to write a stylesheet to translate your xml for typesetting, so I would look at the relevant xml documentation (like xml-mkiv.pdf) and make a fresh start. You can always refine and elaborate things as you go, and if you really hit a wall, there's the list. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
Many thanks for your reply! I would certainly go this way having a couple of months or a year perspective. Besides I'm eager to try finally the new way mkIV deals with xml. But realistically, preparing and testing a mapping of even a subset of DocBook is a question of at least a couple of personmonths if not worse. Sadly, I'm not in a position to that now. Best Piotr 2011/6/2 Thomas Schmitz tschm...@uni-bonn.de: On Thu, 2 Jun 2011 11:39:46 +0200 Piotr Kopszak kops...@gmail.com wrote: Dear list, I am beginning a rather tedious documentation project and will most probably end up with DocBook. The fact is I haven't used it for any serious work for about 10 years. Docbook In ConText haven't been updated since 2003. Does it mean it's so perfect or instead rather obsolete? Could you recommend other approaches which work out-of-the-box (or almost). Obviously I would prefer ConTeXt based solutions. DocBook is not mandatory in fact, I would happily learn other documentation system. Main prerequisite is utf-8 output at least in pdf and html and sensible defaults (this time I don't want to be a typographer, nor I want to fiddle with structure). Best Piotr -- http://okle.pl Difficult to say of course without knowing the complexity of your documents, but just a few thoughts: if you're referring to Simon Pepping's Docbook in ConTeXt, this was targeted at mkii, so it will probably still work, but could be considered obsolete. xml support in mkiv has changed a lot, but is much more powerful and flexible. It's fairly easy to write a stylesheet to translate your xml for typesetting, so I would look at the relevant xml documentation (like xml-mkiv.pdf) and make a fresh start. You can always refine and elaborate things as you go, and if you really hit a wall, there's the list. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- http://okle.pl ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On 2-6-2011 11:39, Piotr Kopszak wrote: Dear list, I am beginning a rather tedious documentation project and will most probably end up with DocBook. The fact is I haven't used it for any serious work for about 10 years. Docbook In ConText haven't been updated since 2003. Does it mean it's so perfect or instead rather obsolete? Could you recommend other approaches which work it was never something official (afaik it even hacked core macros) but an experiment by a user Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On 2-6-2011 12:53, Piotr Kopszak wrote: Many thanks for your reply! I would certainly go this way having a couple of months or a year perspective. Besides I'm eager to try finally the new way mkIV deals with xml. But realistically, preparing and testing a mapping of even a subset of DocBook is a question of at least a couple of personmonths if not worse. Sadly, I'm not in a position to that now. Months? I never had a reason for doing a docbook mapping but a couple of hours should get you a start. Th eonly reason why I'd look into docbook is if I'd need in in a project. (I'd happily spent a few well paid months on it then.) You probably don't need all of docbook, so you could start with some simple tests. The mkii docbook stuff you mentioned definitely is doing a small subset. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
Hans Hagen pragma at wxs.nl writes: On 2-6-2011 12:53, Piotr Kopszak wrote: Many thanks for your reply! I would certainly go this way having a couple of months or a year perspective. Besides I'm eager to try finally the new way mkIV deals with xml. But realistically, preparing and testing a mapping of even a subset of DocBook is a question of at least a couple of personmonths if not worse. Sadly, I'm not in a position to that now. Months? I never had a reason for doing a docbook mapping but a couple of hours should get you a start. Th eonly reason why I'd look into docbook is if I'd need in in a project. (I'd happily spent a few well paid months on it then.) You probably don't need all of docbook, so you could start with some simple tests. The mkii docbook stuff you mentioned definitely is doing a small subset. I never understand why you would try to typeset XML directly in ConTeXt? Why not just convert the DocBook to ConTeXt source using XSLT (or if the docs are simpler, use markdown with pandoc and you can easily get ConTeXt and HTML from the same source)? Bruce ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] DocBook in ConTeXt - any new ideas?
On 2-6-2011 7:17, Bruce wrote: Hans Hagenpragmaat wxs.nl writes: On 2-6-2011 12:53, Piotr Kopszak wrote: Many thanks for your reply! I would certainly go this way having a couple of months or a year perspective. Besides I'm eager to try finally the new way mkIV deals with xml. But realistically, preparing and testing a mapping of even a subset of DocBook is a question of at least a couple of personmonths if not worse. Sadly, I'm not in a position to that now. Months? I never had a reason for doing a docbook mapping but a couple of hours should get you a start. Th eonly reason why I'd look into docbook is if I'd need in in a project. (I'd happily spent a few well paid months on it then.) You probably don't need all of docbook, so you could start with some simple tests. The mkii docbook stuff you mentioned definitely is doing a small subset. I never understand why you would try to typeset XML directly in ConTeXt? Why not just convert the DocBook to ConTeXt source using XSLT (or if the docs are simpler, use markdown with pandoc and you can easily get ConTeXt and HTML from the same source)? (1) because xslt mappings can become pretty unreadable (2) because you still need to make a file (and define environments) (3) because it then create another depencency and intermediate processing stage (4) because sometimes it makes sense to let the typesetting engine make decisions (5) because in mkiv one can apply lua functions to xml content (6) ... anyhow, the whole idea of xml is that it can be processed by whatever machinery (and using xslt and/or xsl-fo for everything kin dof contradicts that) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook in context
On 6/7/07, R. Ermers [EMAIL PROTECTED] wrote: Dear All, Has anybody found time to dive into the docbook-Context problem? The problem is that all section headings dissappear when in a given docbook section a table is placed. (Of course the document is validated against the dtd.) it's in my todo list.e that But I can't see it until Saturday I am really puzzled by it, and it prevents me from using Context now. Please,note that you can always use the standard chain xml:xslt -[xsltproc] -tex:tex-[context]-pdf and with texexec one can hide xsltproc For sure there is a pdf about that at pragma. -- luigi If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook in context
Thank you very much indeed, Luigi. I have been looking at the xml manuals of Pragma. I don't quite understand what you mean with the standard chain. I have been experimenting before with docbook - fo, and fop, and I came across valuable programs like Docman and Gemdoc. But I still prefer the Context output. I understand the mappings, but the Cals table mappings are more complicated. (This is also explained by Simon Pepping http://www.ntg.nl/maps/pdf/29_7.pdf) Perhaps this bug arose in a recent version of Context? Robert luigi scarso schreef: On 6/7/07, R. Ermers [EMAIL PROTECTED] wrote: Dear All, Has anybody found time to dive into the docbook-Context problem? The problem is that all section headings dissappear when in a given docbook section a table is placed. (Of course the document is validated against the dtd.) it's in my todo list.e that But I can't see it until Saturday I am really puzzled by it, and it prevents me from using Context now. Please,note that you can always use the standard chain xml:xslt -[xsltproc] -tex:tex-[context]-pdf and with texexec one can hide xsltproc For sure there is a pdf about that at pragma. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook in context
I have been looking at the xml manuals of Pragma. I don't quite understand what you mean with the standard chain. Hans has a This Way on using xsltproc to generate ConTeXt code, which you can then process using context. http://www.pragma-ade.com/general/magazines/mag-0008.pdf http://www.pragma-ade.com/general/manuals/example.pdf I do not know if there is a docbook xsl file with all the translations, or will you have to do that by hand. http://wiki.docbook.org/topic/DocBookXslStylesheets -- luigi If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] docbook in context
On 6/4/07, R. Ermers [EMAIL PROTECTED] wrote: Dear All, After having had a great deal of problems when submitting my context files to my publisher, What kind of problems ? -- luigi If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Docbook and Context
On Mon, Nov 15, 2004 at 09:14:49AM -0500, John Culleton wrote: There appear to be two programs dealing with conversion of XML Docbook documents to Context, Docbook in Context and XSLT. the former has not been updated recently and the latter has documentation dating to 2001. I have a potential customer who is XML conversant and wants me to set up his document. He will provide it in Docbook format apparently. He has not written it yet. My question: Are either of the existing tools stable, reliable and complete enough for me to take on this task? Which is recommended for a one-time project? What do I need from my customer in addition to the base file of the document? I have no interest in becoming an XML guru---I just want to bid on this job if that makes sense or give the customer a no-bid if I am about to step in a swamp. -- John Culleton If you are willing to consider LaTeX, have a look at db2latex (http://db2latex.sourceforge.net/), which uses xslt stylesheets for conversion. This project appears to be very much alive. See also http://www.dpawson.co.uk/docbook/tools.html I don't have personal experience with this. -- Siep Kroonenberg ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Docbook and Context
Am 15.11.2004 um 15:14 schrieb John Culleton: There appear to be two programs dealing with conversion of XML Docbook documents to Context, Docbook in Context and XSLT. the former has not been updated recently and the latter has documentation dating to 2001. I have a potential customer who is XML conversant and wants me to set up his document. He will provide it in Docbook format apparently. He has not written it yet. My question: Are either of the existing tools stable, reliable and complete enough for me to take on this task? Which is recommended for a one-time project? What do I need from my customer in addition to the base file of the document? I don't know if it helps, but Hans just today pointed to his new ThisWay magazine about XML, XSLT etc: http://www.pragma-ade.com/show-mag-9.htm In this issue I will drop an idea that has been buzzing in my mind for a long time: how to comfortably deal with typesetting documents coded in \XML, while using the manipulative power of \XSLT\ on the one hand and the typesetting capabilities of \CONTEXT\ at the other hand, without seeing \TEX\ code. Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context