Re: [NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-05 Thread Hans Hagen

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?

2011-06-04 Thread R. Ermers

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?

2011-06-04 Thread Hans Hagen

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?

2011-06-04 Thread R. Ermers

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?

2011-06-04 Thread Aditya Mahajan

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?

2011-06-04 Thread R. Ermers

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?

2011-06-03 Thread R. Ermers
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?

2011-06-03 Thread Hans Hagen

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
___


[NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Piotr Kopszak
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
___
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?

2011-06-02 Thread Thomas Schmitz

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?

2011-06-02 Thread Piotr Kopszak
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?

2011-06-02 Thread Hans Hagen

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?

2011-06-02 Thread Hans Hagen

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?

2011-06-02 Thread Bruce
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?

2011-06-02 Thread Hans Hagen

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
___


[NTG-context] docbook in context

2007-06-07 Thread R. Ermers
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.)

I am really puzzled by it, and it prevents me from using Context now.

Regards,

Robert





___
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

2007-06-07 Thread luigi scarso
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

2007-06-07 Thread R. Ermers
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

2007-06-07 Thread luigi scarso
  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
___


[NTG-context] docbook in context

2007-06-04 Thread R. Ermers
Dear All,

After having had a great deal of problems when submitting my context 
files to my publisher, I decided to write future projects in docbook 
(V4.4), rather than switching to Word or Open Office. From the docbook 
files I then can generate an rtf or wml file which is much more of use 
for the publisher, alas.

For me this has the extra advantage of viewing the text in an xml 
editor, such as Xmlmind.

My new docbook document processes well in Context and no errors are 
reported, thanks again Simon and others for this valuable application.

However two major problems have come up.

The first is a problem with Cals tables and figures:
1. After the section containing a table, all section headings in the 
following chapters, sections, subsections, even bridgeheads, until the 
end of the document are omitted, without due error message.

2. Figure titles create an extra section or subsection title. I solved 
this by using informalfigure instead and inserting a caption. For 
tables using caption is not an option.

A second problem is the language label. In the top level of the tree, I 
add the language label, e.g. book lang=nl. In general, and for fo 
processors this is, I believe the right place. Context gives the 
following error message:
\dodosetupsometextprefix ...malist [#3]\docommand
  \else \def \docommand 
##1{...
l.53 \XMLDBheadtext[nl]{figuren}{Figuren}
   
This disappears when the label (lang=nl) is removed. Perhaps I am not 
right in putting the language label in this way, if so, please advise.

I am grateful for any help,

Robert





___
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

2007-06-04 Thread luigi scarso
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
___


[NTG-context] Docbook and Context

2004-11-15 Thread 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 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

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Docbook and Context

2004-11-15 Thread Siep Kroonenberg
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

2004-11-15 Thread Henning Hraban Ramm
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