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:
------------------
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant 
V1.1//EN" "dtd/kdex.dtd" [
  <!ENTITY kappname "&krita;">
  <!ENTITY package "koffice">
  <!ENTITY % addindex "IGNORE">
  <!ENTITY % English "INCLUDE">
  <!ENTITY introduction SYSTEM "introduction.docbook">
  <!ENTITY tutorial SYSTEM "tutorial.docbook">
  <!ENTITY tutorial-starting SYSTEM "tutorial-starting.docbook">
  <!ENTITY tutorial-select-layer 
SYSTEM "tutorial-select-layer.docbook">
  <!ENTITY tutorial-quick-starts 
SYSTEM "tutorial-quick-starts.docbook">
  <!ENTITY tutorial-tablet SYSTEM "tutorial-tablet.docbook">
  <!ENTITY images SYSTEM "using-images.docbook">
  <!ENTITY views SYSTEM "using-views.docbook">
  <!ENTITY layers SYSTEM "using-layers.docbook">
  <!ENTITY selections SYSTEM "using-selections.docbook">
  <!ENTITY filters SYSTEM "using-filters.docbook">
  <!ENTITY colorspaces SYSTEM "using-colorspaces.docbook">
  <!ENTITY commands SYSTEM "commands.docbook">
  <!ENTITY commands-toolbars SYSTEM "commands-toolbars.docbook">
  <!ENTITY commands-palettes SYSTEM "commands-palettes.docbook">
  <!ENTITY commands-menus SYSTEM "commands-menus.docbook">
  <!ENTITY commands-dialogs SYSTEM "commands-dialogs.docbook">
  <!ENTITY settings SYSTEM "settings.docbook">
  <!ENTITY developers SYSTEM "developers.docbook">
  <!ENTITY developers-scripting SYSTEM "developers-scripting.docbook">
  <!ENTITY developers-plugins SYSTEM "developers-plugins.docbook">
  <!ENTITY faq SYSTEM "faq.docbook">
  <!ENTITY credits SYSTEM "credits.docbook">
  <!ENTITY installation SYSTEM "installation.docbook">
]>

<book lang="&language;">

<bookinfo>
<title>The &krita; Handbook</title>
----------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
___________________________________________________________________________________

Reply via email to