Re: [NTG-context] Handling Docbook files

2007-08-15 Thread Aditya Mahajan
On Tue, 14 Aug 2007, John R. Culleton wrote:

> On Monday 13 August 2007, Aditya Mahajan wrote:
>> On Mon, 13 Aug 2007, John R. Culleton wrote:
>>> I am trying to run a bunch of docbook files related to Krita.
>>> The convention in these files seems to be to prefix subordinate
>>> file names with an & character.
>>
>> I do not understand what you mean by this. Can you post a sample
>> text?
>>
>>> If I run e.g,
>>> texexec index.docbook
>>> it blows up on the first such ampersand. I can of course edit all
>>> the files to replace & with \& but I wonder if there is a better
>>> strategy?
>>
>> AFAIU XML, having a lone & in the file is not valid. You need to
>> have & if you want ampersand. Any other entity (&something;)
>> should be appropriately defined by some style file.
>>
>>> I also tried the various "docbook2xxx" style utilities but they
>>> all failed to produce meaningful results.
>>
>> Is it a valid xml file? Is it a valid docbook file? Do the
>> utilities work with simple sample files.
>>
>>> All I want to do is read the #$% files!
>>
>> Did you try db2latex? It comes with db2context which handles a
>> large subset of docbook specifications.
>>
> I will look up db2latex, download it, and try it. But of course I
> would prefer a Context solution if possible.

Sorry. I was wrong about the name. I meant dblatex 
(http://dblatex.sourceforge.net/) which has dbcontext, so you can get 
a context solution.

> Here is some code from the file titled "index.docbook" in the above
> mentioned set of files:
> --
> 
>  V1.1//EN" "dtd/kdex.dtd" [

To me this means that this is not DocBook but a variant of docbook. 
Which explains why most docbook2xx utilities were failing on it.

>  
>  
>  
>  
>  
>  
>  
>   SYSTEM "tutorial-select-layer.docbook">
>   SYSTEM "tutorial-quick-starts.docbook">
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> ]>
>
> 
>
> 
> The &krita; Handbook
> --snip
> --
>
> I don't know enough about docbook to determine the validity of any of
> the above.  There is a subdirectory called "common" that contains
> style files with css suffix  but I don't have the foggiest notion of
> which to use or how to include them into a translation of the
> document.

Regarding &krita; you can make context recognize them by using 
\definexmlentity. See xtag-ent for entities that are already defined. 
Also see the Hans's XML manual 
. However 
writing the code to do everything from scratch will be a lot of work. 
Best is to figure out what is the difference between this variant and 
docbook, and add those definitions to dbcontext.

Or perhaps, if the document is simple, remove all the xml tags and add 
tex/context tags manually.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Handling Docbook files

2007-08-14 Thread John R. Culleton
On Monday 13 August 2007, Aditya Mahajan wrote:
> On Mon, 13 Aug 2007, John R. Culleton wrote:
> > I am trying to run a bunch of docbook files related to Krita. 
> > The convention in these files seems to be to prefix subordinate
> > file names with an & character.
>
> I do not understand what you mean by this. Can you post a sample
> text?
>
> > If I run e.g,
> > texexec index.docbook
> > it blows up on the first such ampersand. I can of course edit all
> > the files to replace & with \& but I wonder if there is a better
> > strategy?
>
> AFAIU XML, having a lone & in the file is not valid. You need to
> have & if you want ampersand. Any other entity (&something;)
> should be appropriately defined by some style file.
>
> > I also tried the various "docbook2xxx" style utilities but they
> > all failed to produce meaningful results.
>
> Is it a valid xml file? Is it a valid docbook file? Do the
> utilities work with simple sample files.
>
> > All I want to do is read the #$% files!
>
> Did you try db2latex? It comes with db2context which handles a
> large subset of docbook specifications.
>
> Aditya


I will look up db2latex, download it, and try it. But of course I 
would prefer a Context solution if possible.  

Here is some code from the file titled "index.docbook" in the above 
mentioned set of files:
--


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
]>




The &krita; Handbook
--snip
--

I don't know enough about docbook to determine the validity of any of 
the above.  There is a subdirectory called "common" that contains 
style files with css suffix  but I don't have the foggiest notion of 
which to use or how to include them into a translation of the 
document. 

-- 
John Culleton
ATTN Publishers/authors:
If you don't read you don't succeed.
Free short list of publishing/marketing books. 
http://wexfordpress.com/tex/shortlist.pdf


___
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] Handling Docbook files

2007-08-13 Thread Aditya Mahajan
On Mon, 13 Aug 2007, John R. Culleton wrote:

> I am trying to run a bunch of docbook files related to Krita.  The
> convention in these files seems to be to prefix subordinate file
> names with an & character.

I do not understand what you mean by this. Can you post a sample text?

> If I run e.g,
> texexec index.docbook
> it blows up on the first such ampersand. I can of course edit all the
> files to replace & with \& but I wonder if there is a better
> strategy?

AFAIU XML, having a lone & in the file is not valid. You need to 
have & if you want ampersand. Any other entity (&something;) 
should be appropriately defined by some style file.

> I also tried the various "docbook2xxx" style utilities but they all
> failed to produce meaningful results.

Is it a valid xml file? Is it a valid docbook file? Do the utilities 
work with simple sample files.

> All I want to do is read the #$% files!

Did you try db2latex? It comes with db2context which handles a large 
subset of docbook specifications.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Handling Docbook files

2007-08-13 Thread John R. Culleton
I am trying to run a bunch of docbook files related to Krita.  The 
convention in these files seems to be to prefix subordinate file 
names with an & character. If I run e.g,
texexec index.docbook
it blows up on the first such ampersand. I can of course edit all the 
files to replace & with \& but I wonder if there is a better 
strategy?

I also tried the various "docbook2xxx" style utilities but they all 
failed to produce meaningful results.  

All I want to do is read the #$% files!

Slackware linux,   Texexec 6.2.0,  pdfTeX 3.141592-1.40.3-2.2 

-- 
John Culleton



___
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
___