Re: [docbook-apps] include MathML files with the help of XSL

2012-07-22 Thread Tom Browder
On Sat, Jul 21, 2012 at 2:53 PM, Tom Browder tom.brow...@gmail.com wrote:
 On Sat, Jul 21, 2012 at 2:11 PM, Robert Lucente rluce...@pipeline.com wrote:
 What do you guys think of using MathType to generate MathML?
 ...
 I use Inkscape (http://inkscape.org/) to view and edit the svg file if
 necessary (I find that a few tweaks really help for beautiful output).
  I use the svg graphic for both html and fop output (note that I use
 the xsltproc xsl processor instead of a java tool).

Note that I originally had font problems with pdf output.  I queried
the fop mailing lists and got this response which solved my problems:

quote
from: Vincent Hennebert vhenneb...@gmail.com via xmlgraphics.apache.org
sender-time: Sent at 05:07 (GMT+01:00). Current time there: 2:23 PM.
reply-to: fop-us...@xmlgraphics.apache.org
to: fop-us...@xmlgraphics.apache.org
date: Tue, Apr 19, 2011 at 05:07
subject: Re: Missing Font for SVG to PDF Output
mailing list: fop-users.xmlgraphics.apache.org; mailed by
xmlgraphics.apache.org
...

Make sure that the family name you declare in fop.xconf matches the
name under which the font is known on the system.

Let's take the font Linux Libertine an example. Java would know this
font under that name. Since Batik uses the Java font system, it will
also use that name and pass it on to FOP. So you must have a
font-triplet in your fop.xconf that matches that name:

   font embed-url=libertine.ttf
 font-triplet name=Linux Libertine style=normal weight=normal/
   /font

If you use something else, FOP will find no match for LinuxLibertine
and will fall back to a default font.

You can use the
java.awt.GraphicsEnvironment.getAvailableFontFamilyNames method to
know under which names Java registers the fonts on your system. Of
course, be sure to also use those names in the SVG file.
/quote

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] include MathML files with the help of XSL

2012-07-21 Thread Tom Browder
On Sat, Jul 21, 2012 at 2:11 PM, Robert Lucente rluce...@pipeline.com wrote:
 What do you guys think of using MathType to generate MathML?
...
 Any other suggestions for GUI editors to generate equations would be
 appreciated.

I have good results with LibreOffice (http://www.libreoffice.org/).  I
export the equations as a MathXML file.

Then I use SVGMath (http://sourceforge.net/projects/svgmath/)  to
convert the mml file to svg (note that one has to edit the svg file to
remove the semantics element).

I use Inkscape (http://inkscape.org/) to view and edit the svg file if
necessary (I find that a few tweaks really help for beautiful output).
 I use the svg graphic for both html and fop output (note that I use
the xsltproc xsl processor instead of a java tool).

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: VirtualBox DocBook 5.0 VM

2012-03-09 Thread Tom Browder
On Fri, Mar 9, 2012 at 01:22, Jeff Powanda jpowa...@vocera.com wrote:

 I'm setting up a DB 5.0 system here also, but am having trouble getting
 Saxon-Xerces to work. The Xerces-J XML parser apparently doesn't support
 xml:id. What parser are you using to resolve XIncludes? Or are you
 avoiding using XIncludes with XPointers?

Jeff, my tool chain is: GNU Make driving xsltproc and Apache fop.

xsltproc does the xml source parsing during product generation.

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: VirtualBox DocBook 5.0 VM

2012-03-09 Thread Tom Browder
On Fri, Mar 9, 2012 at 11:25, Jeff Powanda jpowa...@vocera.com wrote:
 Ok, thanks. I switched from xsltproc a few years ago when it was unable to 
 process
 our largest manuals (it ran out  of memory).

Was that a Windows version, or *unix?

Size of manual?

I'm sure libxslt folks would love to hear about that whichever system it was on.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: VirtualBox DocBook 5.0 VM

2012-03-05 Thread Tom Browder
On Thu, Mar 1, 2012 at 10:18, Tom Browder tom.brow...@gmail.com wrote:
 I recently built an Oracle VirtualBox Virtual Machine (VM) with a
 working DB 5.0 (with name spaces) build system

I have released version 1.0.0 and it is uploading to Dropbox now (1.5+
Gb, Dropbox reports time to upload 4 hr from now).

DocBook-VM:  http://db.tt/jLvtIjiC

Best regards.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] DocBook.org Wiki

2012-03-03 Thread Tom Browder
Can anyone help me get back on the new DB Wiki site?  I used to make
edits there  until the old site was lost, and now I can't
RegisterFirst or get a password reminder for my old account (and of
course the old account doesn't work).

Thanks,

-Tom

Old WikiName TomBrowder

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] VirtualBox DocBook 5.0 VM

2012-03-01 Thread Tom Browder
I recently built an Oracle VirtualBox Virtual Machine (VM) with a
working DB 5.0 (with name spaces) build system for a presentation I
made at our local annual Computer Tech last week, and I put it in a
public place for my attendees to use if they were interested.

The VM is Ubuntu 10.04 LTS 32-bit and uses a GNU Makefile, Perl
programs and modules, xsltproc, and Apache fop 1.0 for the tool chain.
 It has a program to generate a new DB project directory in which it
copies a Makefile and an example set of files to generate html and
pdf.  The user can then edit the example files as he or she wishes and
add new features as they learn more about DB.  It is a turn-key DB
system.

I have since taken the VM down and am improving it a bit before I put
it back up.  I would like to offer it to the DB community and hope
that it can be a growing project that incorporates the wisdom, skills,
and experience of this group.

The location of the VM will be on my Dropbox site at:

  http://db.tt/jLvtIjiC

At the moment there I have some files, including the proposed license
and other information and some quick-start instructions which will
also be included in the home directory of the default  user.  Comments
and suggestions are welcome.

I won't put up the VM until I get an okay from someone here that the
docs look reasonable for a start.  I intend to name the VM:

  ubuntu-10.04-LTS-32-bit-DOCBOOK-tb-v1.0.0

unless I have better suggestions

The  site where I have the other information I released for my
CompuTech 2012 presentation is at:

  http://db.tt/XLF49vfs

If interested as a user or a contributor, please contact me at
tom.brow...@gmail.com (and CC this list).

Eventually I will probably move all the customized DB project support
files to SourceForge if there is enough interest, but for now I have
all but the VM itself under version control on my network.

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] VirtualBox DocBook 5.0 VM

2012-03-01 Thread Tom Browder
[NOTE: I don't normally top post, but I believe the original post
below should have been CC'd to the DB list.]

I took your advice, Stefan, and changed wording about security.  I
also mentioned the new editors, and I installed jedit and kate on the
VM (as a Linux distro, vim was already installed).

Questions:

1.  Which editor do you use the most for xml, xsl, and DocBook?

2.  If it uses plugins, can we get a list of the ones you have installed?

Best regards,

-Tom

On Thu, Mar 1, 2012 at 12:02, Stefan Hinz stefan.h...@oracle.com wrote:
 Hi Tom,

 Great idea, thanks!

 Some quick feedback to
 https://www.dropbox.com/sh/g73pduv0vjsmc3f/tW4oJYy3Uj/0-README.txt:

 The VM itself is not particularly secure as distributed because the
 password is very weak, but the VM will probably be running under
 Windows and it should be at least as secure as its host computer. This
 sounds sarcastic. What's the VM password, anyway? If you're referring to the
 Ubuntu/Gnome login password, the user can change it, right?

 Basic text editor:    gedit
 Advanced text editor: xemacs

 I haven't used any of these (I'm on KDE), but here's a choice of fairly
 basic editors which are still capable of doing XML highlighting:

 jEdit (simply the best basic XML editor I've ever used)
 kate (KDE's standard editor)
 VIm

 Cheers,

 Stefan


 On 01.03.2012 17:18, Tom Browder wrote:

 I recently built an Oracle VirtualBox Virtual Machine (VM) with a
 working DB 5.0 (with name spaces) build system for a presentation I
 made at our local annual Computer Tech last week, and I put it in a
 public place for my attendees to use if they were interested.

 The VM is Ubuntu 10.04 LTS 32-bit and uses a GNU Makefile, Perl
 programs and modules, xsltproc, and Apache fop 1.0 for the tool chain.
  It has a program to generate a new DB project directory in which it
 copies a Makefile and an example set of files to generate html and
 pdf.  The user can then edit the example files as he or she wishes and
 add new features as they learn more about DB.  It is a turn-key DB
 system.

 I have since taken the VM down and am improving it a bit before I put
 it back up.  I would like to offer it to the DB community and hope
 that it can be a growing project that incorporates the wisdom, skills,
 and experience of this group.

 The location of the VM will be on my Dropbox site at:

   http://db.tt/jLvtIjiC

 At the moment there I have some files, including the proposed license
 and other information and some quick-start instructions which will
 also be included in the home directory of the default  user.  Comments
 and suggestions are welcome.

 I won't put up the VM until I get an okay from someone here that the
 docs look reasonable for a start.  I intend to name the VM:

   ubuntu-10.04-LTS-32-bit-DOCBOOK-tb-v1.0.0

 unless I have better suggestions

 The  site where I have the other information I released for my
 CompuTech 2012 presentation is at:

   http://db.tt/XLF49vfs

 If interested as a user or a contributor, please contact me at
 tom.brow...@gmail.com  (and CC this list).

 Eventually I will probably move all the customized DB project support
 files to SourceForge if there is enough interest, but for now I have
 all but the VM itself under version control on my network.

 Best regards,

 -Tom

 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



 --
 Cheers,

 Stefan Hinz stefan.h...@oracle.com, MySQL Documentation Manager

 Phone: +49-30-82702940, Fax: +49-30-82702941, http://dev.mysql.com/doc

 ORACLE Deutschland B.V.  Co. KG
 Registered Office: Riesstr. 25, 80992 Muenchen, Germany
 Commercial Register: Local Court Of Munich, HRA 95603
 Managing Director: Jürgen Kunz

 General Partner: ORACLE Deutschland Verwaltung B.V.
 Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
 Register Of Chamber Of Commerce: Midden-Niederlande, No. 30143697
 Managing Directors: Alexander van der Ven, Astrid Kepper, Val Maher

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Problem with callouts with fo/pdf using xsltproc and fop 1.0 (DB 5.0 with name spaces)

2012-02-01 Thread Tom Browder
Has anyone had success with using callout icons and the calloutlist
using xsltproc and fop?

If so, did you have to do anything special not noted in DocBook XSL
(the book)?

I'm trying to use callouts with a programlisting of literal xml code
(and using lt; and gt; in the usual places).  I followed Bob's
example in the book and can get a callout with html (abeit a simple
number instead of an icon but I am not seeking help for that yet), but
I get nothing with the pdf version.

Thanks.

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Problem with callouts with fo/pdf using xsltproc and fop 1.0 (DB 5.0 with name spaces)

2012-02-01 Thread Tom Browder
On Wed, Feb 1, 2012 at 15:40, Bob Stayton b...@sagehill.net wrote:
 If you are getting callouts in the HTML, then you probably have it correct
 on the XML side.  You can check in on the PDF side by setting the stylesheet
 param 'callout.graphics' to zero, which will cause it to insert text numbers
...

Thanks for the help, Bob.  I'll check all that when I get a chance and
report back.

I don't remember seeing any warning or error messages, but I've ripped
out the code for now due to time constraints--I'll investigate deeper
later.

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Image location

2011-10-01 Thread Tom Browder
On Sat, Oct 1, 2011 at 05:33, Lars Vogel lars.vo...@googlemail.com wrote:
...
 If I put the graphics relativ to the build.xml (which I keep separated from
 the content) everything works.
 The Ant File I'm currently using is:
 ---
 target name=build-pdf depends=clean, copybookimage,  xinclude
 description=Generates pdf files from DocBook XML
 !-- Convert DocBook Files into FO --
 xslt style=${fo.stylesheet} extension=.fo basedir=${outputtmp.dir}
 destdir=${fobtmp.dir}
 include name=**/*/article.xml /
 param name=section.autolabel expression=1 /
 param name=page.margin.inner expression=1cm /
 param name=page.margin.outer expression=1cm /
 param name=body.start.indent expression=0mm /
 param name=double-sided expression=1 /
 param name=paper.type expression=A4 /
 /xslt
 !-- Convert FO Files into pdf --
 fop format=application/pdf outdir=${pdf.dir}
 fileset dir=${fobtmp.dir}
 include name=**/*.fo /
 /fileset
 /fop
 /target
 --

 Is there a way to tell the fop Ant Task to use a path relativ to the .fo
 file is processes?
 Best regards, Lars

Have you tried xml catalog with the prefix rewrite rule to generate
fo?  That has solved a lot of path problems for me.  Of course I'm
using xsltproc with which that is easy--don't know if an ant and
whatever tool chain will work.

Best,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] DB XSLT 2.0 Stylesheets

2011-09-30 Thread Tom Browder
I look forward to using the new stylesheets, but are there any
tutorials or how-tos around for those thinking of converting?

Thanks,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] problem with long orderedlist

2011-09-30 Thread Tom Browder
On Mon, Sep 26, 2011 at 05:53, Streit Eric e...@yojik.eu wrote:
 Hi,

 I change the keep-together property.
 It doesn't change anything in the result ...

This is a known problem with a work-around.  From the fop list:

On Mon, Jul 19, 2010 at 03:12, Pascal Sancho pascal.san...@takoma.fr wrote:
 Hi Tom,

 I dove into your XSLFO, and found that the issue is related to
 space-before.maximum within list-block.
 I rewrote (and shortened) your testcase (see your bug entry [1]).
 Removing space-before.maximum properties within block-list makes the
 issue desappear.

It's fop bug 46363.  My bug report:

 https://issues.apache.org/bugzilla/show_bug.cgi?id=49608

was a dup of it.

Best,

-Tom

Tom Browder
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Tips for DB Users for Tool Chain (Linux): xsltproc, fop 1.0 [html and pdf]

2011-04-14 Thread Tom Browder
On Thu, Apr 7, 2011 at 14:52, Tom Browder tom.brow...@gmail.com wrote:
 On Thu, Apr 7, 2011 at 14:01, Matt Dew mar...@osource.org wrote:
 On 04/07/2011 12:54 PM, Tom Browder wrote:

 I'm not sure it's been pointed out here recently, but two common
 requirements for good looking docs now have work-arounds for the
 subject tool chain:
...
 2.  good looking equations in svg for html and pdf (with free,
 easy-to-use tools for generating MathML and converting to svg)

 This is a delightful find:

 1. Create an equation using LibreOffice Math (from 
 http://www.libreoffice.org/).

Update from more experience:

1.  LibreOffice Math is more powerful than I first thought.  Be sure
and read ALL the documentation.

2.  SVGMath conversion of the  mml file from LibreOffice seems to
ignore much of any user-added horizontal white space.  I took care of
that by fine tuning the equation's appearance with the excellent
Inkscape vector editor (whose native file format is svg).

3.  Apache FO doesn't always respect font choices when importing the
equation svg (I'm still investigating and have a so-far-unanswered
query on the FOP users' mailing list).  My first equation rendered in
pdf used my body serif italic font just fine, but when I made the more
complex equation it fell back to using a non-serif font for the
italicized characters!  Note that the html rendering is still fine
even for the more complex equation.

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Tips for DB Users for Tool Chain (Linux): xsltproc, fop 1.0 [html and pdf]

2011-04-07 Thread Tom Browder
I'm not sure it's been pointed out here recently, but two common
requirements for good looking docs now have work-arounds for the
subject tool chain:

1.  centering tables (using Bob Stayton's suggestion for PI dbfo and
css for html)

2.  good looking equations in svg for html and pdf (with free,
easy-to-use tools for generating MathML and converting to svg)

I'll be glad to expound if anyone is interested.

Best,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-09 Thread Tom Browder
On Wed, Feb 9, 2011 at 01:38,  robert.buer...@bmw.de wrote:
 Hi Tom,

 I can't access the link from my office pc:

  http://dropbox.com/u/18447611/make_index_markup.pl

 Maybe any restriction in our network policy is the cause for this.

It's possible, Robert.  I don't have any problems from my home computer.

Can someone else please see if the file is accessible?

BTW, I just had a eureka moment early this morning and believe I know
how to advance work on the index maker.

Best regards,

-Tom

Tom Browder
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-05 Thread Tom Browder
On Fri, Feb 4, 2011 at 10:43, Tom Browder tom.brow...@gmail.com wrote:
 On Fri, Feb 4, 2011 at 09:12, Ron Catterall r...@catterall.net wrote:
 Tom
 I generally have a whole lot of files in a hierarchy under a root directory
 (Xinclude) and do a global edit on the root directory (I use BBedit, but
 other editors can do this).  Of course Perl can do the same, I'd be
 interested in your Perl script as and when.

 Thanks for your interest, Ron and Paul.  I'll post it when I have a
 rudimentary system working.

I now have a rudimentary system working (partially).  It can be used
to strip text from para elements to help build a phrases input file.
 The program is called make_index_markup.pl.  See news of the
current version and info for obtaining it at:

  
http://programmer-to-programmer.blogspot.com/2011/02/aid-for-docbook-authors.html

The file can also be downloaded at:

  http://dropbox.com/u/18447611/make_index_markup.pl

Comments welcome.

Best regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-04 Thread Tom Browder
On Fri, Feb 4, 2011 at 02:17, Dave Pawson da...@dpawson.co.uk wrote:
 On Thu, 3 Feb 2011 15:07:51 -0600
 Tom Browder tom.brow...@gmail.com wrote:
...
 wheel: does anyone have any pointers to any auto-indexing tools for
...
 Sorry Tom, IMHO it is a long and boring job best suited for a human.
 Think of a couple of the terms you might want to index, then search for
 them. In a fair sized document it is amazing how often they crop up in
 'the wrong' place.
  I guess it depends on the quality of the index you want to create.

Bummer.

But I have extracted a text list line by line from the file, Then I'm
going to pare the list down to reasonable words and phrases, then use
a Perl script to go line by lines through all docs and surround each
found word or phrase by a suitable index tag set.

 I found the best support is from a good macro. Highlight the word/phrase
 then use one of a couple of macros to insert primary/secondary term
 markup. Emacs is great for this kind of job

Yep, a winner: I use xemacs and already have the primary macro.

Thanks, Dave.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-04 Thread Tom Browder
On Fri, Feb 4, 2011 at 04:11, Thomas Schraitle tom_s...@web.de wrote:
 Dave, although I agree that an index is best suited to a human, I think
 it is not that black and white. :)
...
 However, you need to be very consistent with your markup. For example,
 I had a lot of tags that I would like to see in the index. Not all, but some
 of them. Same for some functions.

Thanks, Tom (nice name), but I'm afraid my markup is not too helpful.

Best,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-04 Thread Tom Browder
On Fri, Feb 4, 2011 at 06:20, Ron Catterall r...@catterall.net wrote:
 Tom

 This is probably too late if the text already exists, but I find using
 entities is a useful first approximation to generating an index during the
 writing phase.
 For example, when writing use ana; and expand the entitiy:

 !ENTITY  ana        'indextermprimaryAna Canas de
 Urofol/primary/indextermAna Canas de Urofol'

 If the text  already exists you could of course do a global search and
 replace on your text:

Thanks, Ron.  That's the point: the text already exists, and the
original bulk of it (not my responsibility then) I converted from html
to DB, so no index markup.  I have to go through it and add DB index
markup.  I'm doing what you suggest but more auto via a Perl script--a
rough cut to be sure but it should save some effort.

Best,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-04 Thread Tom Browder
On Fri, Feb 4, 2011 at 07:01, Thomas Schraitle tom_s...@web.de wrote:
 Hi,
...
 Why not using a XSLT stylesheet? In that case you can just add your
 indexterms to whatever elements you need.
 As you have to go through it anyway, you can just add some
 condition=noidx as I've suggested in one of my last mails.

I probably don't understand what you are doing, Tom (and xslt is
daunting to me), it looks to me like you are transforming a word or
short phrase that is already marked up (I assume by elements you mean
xml tags).  I'm trying to add DB markup to small chunks of long runs
of text such as inside para/para elements.

Best,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-04 Thread Tom Browder
On Fri, Feb 4, 2011 at 07:50, Thomas Schraitle tom_s...@web.de wrote:
 Hi Tom,

On Fri, Feb 4, 2011 at 07:01, Thomas Schraitle tom_s...@web.de wrote:
 Hi,
...
 Why not using a XSLT stylesheet? In that case you can just add your
 indexterms to whatever elements you need.
 As you have to go through it anyway, you can just add some
 condition=noidx as I've suggested in one of my last mails.

I probably don't understand what you are doing, Tom (and xslt is
daunting to me), it looks to me like you are transforming a word or
short phrase that is already marked up (I assume by elements you mean
xml tags).

 Ahh, that explains a lot. :) Yes, I've assumed you have already text
 which is proberly marked up. Sorry for that.

 I'm trying to add DB markup to small chunks of long runs
of text such as inside /para elements.

 Ok, I see. This makes it obviously more difficult. In that case, you are
 hanging on step 1 whereas my method is located on step 2. ;)

 Do you have text which is repeated a lot? In that case, maybe you
 could split the para and search for your expected strings. If that's
 successful you can add the needed indexterms.

Yes, that's what I'm doing with my Perl script:  Offered to this list
if anyone in interested after I get it working.

Best,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Auto-generating an index

2011-02-04 Thread Tom Browder
On Fri, Feb 4, 2011 at 09:12, Ron Catterall r...@catterall.net wrote:
 Tom
 I generally have a whole lot of files in a hierarchy under a root directory
 (Xinclude) and do a global edit on the root directory (I use BBedit, but
 other editors can do this).  Of course Perl can do the same, I'd be
 interested in your Perl script as and when.

Thanks for your interest, Ron and Paul.  I'll post it when I have a
rudimentary system working.

First of all, I have all my db xml files in one directory, but your
arrangement should work, too.  The actual db source files for my doc
have a .db.xml' extension so I can have miscellaneous xml files
around and ease my Makefile editing.

Here's what I've done so far:

I made a file containing lines from all my db files:

$ for f in `ls *.db.xml` ; do cat $f   t.txt done

Then I sorted the list and removed dup lines:

$ sort t.txt | uniq  index-words.txt

I edit index-words.txt to select words and phrases to list per line.
 I put two special lines in the file for parsing:

1.  a header line just to check for the proper file beginning:

# index-words-and-phrases

2.  a line to indicate end of parsing so the file can be used as a
work in progress:

# end-index-parse

I hard-wired file index-words.txt as my initial input file and treat
each line as a separate word or phrase to put in my dictionary (a Perl
hash),

Each line in the file gets white space normalization in the program
before it is put in the hash.  I'm still working on this part but I
think I'm going to change my current simple hash on phrases to key on
the number of words per line and so have a hash of numbers of words
and then each owns a hash of phrases with that number of words.

Then I loop over each member (f) of @ARGV and on it use this pseudo code:

  if f is --debug or --force, set that flag and continue
  if f is not a readable file continue
  if f is not a file with the correct extension continue
  die if there are problems opening the  file for reading

  make a new file name for output (ofil) by appending a hard-wired
suffix to f (.index_markup)
  if ofil exists continue unless force flag is true

  open ofil and loop over every line and do:
 from most words to least in the phrase hash look for matches (not
case-significant)
bound those found with index tags and eliminate that text from
further searching
 output the [possibly modifed] line to the output file
  close the output file
  if no lines have been modified
unlink the output file
  else
push file name onto an array

at end of program output names of files modified

Then, for each file modified, use a visual diff prog to see results
and modify original file as needed.

I see this as an iterative process that I can work on when I'm looking
for some boring work for relaxation.

My current script execution without args looks like this:

programlisting
Usage: ./make_index_markup.pl [--debug] [--force] DocBook xml file(s)

Example:

  $ ./make_index_markup.pl *.db.xml

Uses file 'index-words.txt' as input to generate index markup.
Output files are named same as input with '.index_markup' suffix.
Existing file are not over written unless the '--force'
  option is used.
Options must be first in the arg list before files to take
  effect for the duration of the run.
/programlisting

Obviously there is room for prepping the index input file to eliminate
tags, etc. An xsl file could help, but my system relies on source line
orientation.  Also, much room for using tmp files or an array for
output and only write the array or tmp file if any line was modified.

I have thought about using xmllint to canonicalize the xml source
first to help the situation.

The actual algorithm used for the line matches is certainly not
settled yet, but regexes will be used heavily (referring to my trusty
copy of Perl Cookbook).  I also need to check that a phrase found is
not already indexed (since the process is iterative, the source file
may already have the index tags).

Comments and criticisms welcome.

Best regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Auto-generating an index

2011-02-03 Thread Tom Browder
I have a medium sized document in docbook xml format.  I want to make
an index but am too lazy to go through it manually for a first order
cut.  I would rather auto-generate one and then fine tune it as I have
time.

Before I lay out my proposed method, I don't want to reinvent the
wheel: does anyone have any pointers to any auto-indexing tools for
DB?

Thanks.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work

2011-02-03 Thread Tom Browder
Bob Stayton, on p. 172 of his book, says one can use either of two
characters to produce a soft-hyphen (invisible unless the hyphen is
used to break a line):

  Unicode character '#xAD;'
  DB entity 'shy;'

With xsltproc, docbook-xsl-ns-1.76.1, and fop 1.0 the Unicode
character works but the entity doesn't.

I've tried 'db:shy' but no go.  What am I something wrong?

Thanks.

Best,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work

2011-02-03 Thread Tom Browder
On Thu, Feb 3, 2011 at 16:51, Bob Stayton b...@sagehill.net wrote:
 Hi Tom,
 The shy; entity is declared to be the same character reference #xAD;, so
 if the character reference works then the problem is in resolving the entity
 reference. I infer from your use of the -ns- stylesheets that you are using
...
 DocBook 5. The DocBook 5 RNG schema does not support entity declarations, so
 shy; is not declared in your documents.  You should be getting a parsing

I now remember I read that somewhere, in your book, I believe--sorry.

In fact, as I try again, the exact error message is

parser error : Entity 'shy' not defined

Thanks, Bob.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Seeking Recommendation for Good CSS Reference

2010-12-15 Thread Tom Browder
I am now fine tuning my DB source to produce both pdf and html.

pdf is looking pretty good but I need some CSS help and wonder if
there is one book or reference folks use, especially for the
Firefox/IE browsers.

I have Beginning CSS Web Development by Simon Collison but it
doesn't quite have what I need (at least it doesn't quite fit the way
my brain works).

Thanks,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Seeking Recommendation for Good CSS Reference

2010-12-15 Thread Tom Browder
On Wed, Dec 15, 2010 at 06:25, Lwam Berhane berh...@punkt.de wrote:
 Hi Tom!
 If you are good at css, I would be very glad if you could help me
 integrating css into docbook!I already set the parameters in my stylesheet
 but I still dont know how it should works.

I'm not--that's why I'm looking for a good reference.

However, the list members here I'm sure can help with fine tuning.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Seeking Recommendation for Good CSS Reference

2010-12-15 Thread Tom Browder
On Wed, Dec 15, 2010 at 06:33, redlettucemail
redlettucem...@mailscan.acenet.net.au wrote:
 I have found the Visual Quickstart Guide HTML, XHTML and CSS to be very
 informative (http://www.elizabethcastro.com/html6ed/), and it is an
 easy-to-read reference. As its name implies, this has good graphical
 explanations of the effects of CSS styles.

That looks like just what I had in mind!  The book I have is good but
the author wants the reader to do the visuals on his own system.
Castro's book seems the ticket for visualizing the results for those
of us who are too lazy to do the exercises.

Thanks, Dave.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Seeking Recommendation for Good CSS Reference

2010-12-15 Thread Tom Browder
On Wed, Dec 15, 2010 at 07:46, Dave Pawson da...@dpawson.co.uk wrote:
 I've been using CSS, the definitive guide, from O'Reilly. Nov 06 but
 well written IMHO.

Thanks, Dave, I have lots of O'Reilly books, but I appreciate getting
opinions of them before I buy.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Seeking Recommendation for Good CSS Reference

2010-12-15 Thread Tom Browder
On Wed, Dec 15, 2010 at 07:07, Kirill Churin reflex...@reflexing.ru wrote:
 On Wed, Dec 15, 2010 at 5:14 PM, Tom Browder tom.brow...@gmail.com wrote:

 I am now fine tuning my DB source to produce both pdf and html.

 pdf is looking pretty good but I need some CSS help and wonder if
 there is one book or reference folks use, especially for the
 Firefox/IE browsers.
...
 I wish my PDF looking better than HTML :)

Maybe we can help--I've learned a lot from the helpful list members
here.  IMHO, SVG graphics are the way to go with my DocBook tool
chain, and I've found several ways to get from my PostScript source to
SVG.

My tools (on Linux Ubuntu 10.10, 64-bit):

  DB docbook-xsl-ns-1.76.1
  xsltproc
  Apache fop 1.0

 As web developer I prefer using CSS specification
 itself: http://www.w3.org/TR/CSS2/
 And this useful page for quick searching: http://www.w3.org/2009/cheatsheet/

Thanks for the cheat sheet link.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Fop and SVG (Again): Good News for EPS = PDF Users

2010-12-04 Thread Tom Browder
On Sat, Dec 4, 2010 at 01:58,  justus-b...@piater.name wrote:
 Tom Browder tom.brow...@gmail.com wrote on Fri, 3 Dec 2010 17:30:12
...
 Apparently something is wrong with Inkscape's import and bounding box
 interpretation

 I suppose you know about Inkscape's Fit page to selection option in
 the Document Properties box?  I've been using Inkscape for PDF-SVG
 conversion for a long time, consistently with near-perfect results.

No, Justus, I didn't.  I looked around the Document Properties menu
looking for something like that but I overlooked it.  I'll try it out
now...it works--and the Inkscape version (plain svg) is smaller to
boot.

Thanks!

Then the primary difference between the two programs is that Scribus
automatically clips the object to the eps boundig box and Inkscape
doesn't.  When I get a chance I think I will suggest that Inkscape
make it automatic too since the bbox is one of the fundamental
attributes of the eps file.

BTW, one other graphics trick I learned today (but most here probably
know it) from a couple of web sources was how to use gimp to produce a
vector drawing from a bitmap.  It works excellently, especially for
all those simple (and free) line-drawing bitmaps scattered over the
internet.  The only problem is that the vector (at least in the one I
tried) was one path.  I used Inkscape to break up the single path and,
through a little PostScript programming, was able to identify all the
path components and modify the overall graphic as desired.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Fop and SVG (Again): Good News for EPS = PDF Users

2010-12-03 Thread Tom Browder
I'm using DocBook 5 (with namespaces), xsltproc, and fop 1.0, on
Ubuntu 10.04 LTS, to generate html and pdf.

My five problematic svg graphics files were produced originally as
PostScript eps files which were converted to svg by importing them
into Inkscape and saving them as svg.  Try as I might I couldn't get
the spacing to look good on the pdf page.

I was about to try more desperate measures until I tried converting
from eps to svg with Scribus--excellent!  Apparently something is
wrong with Inkscape's import and bounding box interpretation but
Scribus (www.scribus.net) is the ticket for someone who creates
original vector illustrations in PostScript.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Fo and SVG

2010-12-02 Thread Tom Browder
I am using fop for pdf output.  I have successfully used svg images in my fo
covers using docbook customizations with specific fo output.

Now I want to use svg images in figures.  Has anyone done a docbook
customization to do the right thing for using svg image files as formal
figures?

Thanks.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA


Re: [docbook-apps] Fo and SVG

2010-12-02 Thread Tom Browder
On Thu, Dec 2, 2010 at 12:34, Steve Johnson ste...@caringo.com wrote:

 right thing and formal figures are ambiguous.

I agree, but I thought that should cue someone who has solved the
problem.  My immediate problem was trying to determine whether I
should ping the fop list or not.  Since fop handles my svg through the
direct input I  thought I would see if the docbook crowd had a
solution.

Looks like an fop question now,

Thank.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Fo and SVG

2010-12-02 Thread Tom Browder
On Thu, Dec 2, 2010 at 13:21, deannelson deannel...@aol.com wrote:
 Whoops - airball!

 The SVG should be handled natively in FOP right now! My last reply was for

Thanks, Dean, looks like I have an fop problem.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Fo and SVG

2010-12-02 Thread Tom Browder
Dean, and Steve, sorry for the trouble.  I had a bad svg file.  When I
replaced it with a known good one all worked as advertised.

Thanks for your help.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Centering Tables in Print with Fop 1.0

2010-11-11 Thread Tom Browder
I have no problems now for tables spanning the print width, nor with
tables of any width in html.  But I need to center
less-than-page-width tables in print.

I have used Bob Stayton's xsl fo chunk on p. 474 as a start to try to
get my narrow tables centered in print.  Here is my current version:

!-- center tables in print, from p. 474 in Stayton: --
xsl:template name=table.layout
  xsl:param name=table.content/
  fo:table width=100% table-layout=fixed!-- I dded table-layout
attribute --

fo:table-column column-width=proportional-column-width(1)/
!-  [1] hack next line: added actual table width here --
fo:table-column column-width=3in/
fo:table-column column-width=proportional-column-width(1)/
fo:table-body start-indent=0pt
  fo:table-row

!-- fo:table-cell/ --
!-- [2] fo complains about missing table-cell children, I
added Bob's zero space char from p. 261 --
fo:table-cellfo:block#xFEFF;/fo:block/fo:table-cell

fo:table-cell

  fo:table
fo:table-body start-indent=0pt
  fo:table-rowfo:table-cellfo:block
xsl:copy-of select=$table.content/
   /fo:block/fo:table-cell/fo:table-row
/fo:table-body
  /fo:table

/fo:table-cell

!-- ditto from [2] --
fo:table-cellfo:block#xFEFF;/fo:block/fo:table-cell

  /fo:table-row
/fo:table-body
  /fo:table
/xsl:template

That works for the one specific table when I hardwire the actual table
width.  Is there any xsl:fo magic that can get the total original
table width at [1]?  If not I suppose I can post process the fo to fix
it, but there  must be a more elegant way.

Thanks,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Tables in Print with Fop 1.0

2010-11-11 Thread Tom Browder
On Thu, Nov 11, 2010 at 16:53, deannelson deannel...@aol.com wrote:
 Tom
 Here is an adjusted version that triggers only when align is used on the
 table. This has some peculiarities when processed with FOP 1.0.

 I would suggest that you use fixed column widths and not proportional in the
 XML tables because proportional is not quite right in FOP when used in a
 table in a table. But if you use fixed widths it should be fine (or at least
 in my setup it was).
...

I'll try it, Dean, Thanks!

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Table Titles in Print

2010-11-09 Thread Tom Browder
On Mon, Nov 8, 2010 at 23:41, DeanNelson deannel...@aol.com wrote:
 Oh, right you are Tom! It didn't work for me as well - to top it off, I sent
 you the wrong section of my xsl.

 This section will do what you want - but you will need to use
 table align=center
...

Thanks, dean, I'll give that a shot.

Cheers!

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Table Titles in Print

2010-11-09 Thread Tom Browder
On Tue, Nov 9, 2010 at 05:24, Tom Browder tom.brow...@gmail.com wrote:
 On Mon, Nov 8, 2010 at 23:41, DeanNelson deannel...@aol.com wrote:
 Oh, right you are Tom! It didn't work for me as well - to top it off, I sent
 you the wrong section of my xsl.

 This section will do what you want - but you will need to use
 table align=center
 ...

It works great!  Thanks, Dean, Bob needs to correct that section of his book.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Changing font size for a chunk of text inline

2010-11-09 Thread Tom Browder
On Tue, Nov 9, 2010 at 09:11, DeanNelson deannel...@aol.com wrote:
 Tom,
 Here is what I use:

 !-- Change the font size of the block or para --
 xsl:template match=pa...@font-size]
    fo:block font-size={...@font-size}
    xsl:apply-templates/
   /fo:block
 /xsl:template
 and you need to use para font-size=yada-yada where yada-yada is any
 font-size or percentage.

Aha, I'm trying to modify the wrong thing!  I'm trying to do the mod
to an entry in a table without a para--I'll add the para and apply
your solution and report back.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Changing font size for a chunk of text inline

2010-11-09 Thread Tom Browder
Is there any way to change the font size for a short piece of text?

I have tried using the phrase and emphasis tags with various
attempts at customization.  The most likely thing I thought would work
was, taking a cue from Dean Nelson's font xsl file:

!-- a desperate hack--
!-- Change the font size of the emphasis (and force non-italic) --
xsl:template match=emphas...@font-size]
fo:inline font-size={...@font-size} font-weight=normal
font-style=normal
xsl:apply-templates/
/fo:inline
/xsl:template

But nothing changes.

My next step is to start modding the fo file, but that won't help the
html output any.

Ideas, anyone?

Thanks,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Changing font size for a chunk of text inline

2010-11-09 Thread Tom Browder
On Tue, Nov 9, 2010 at 10:25, Tom Browder tom.brow...@gmail.com wrote:
 On Tue, Nov 9, 2010 at 09:16, Tom Browder tom.brow...@gmail.com wrote:
 On Tue, Nov 9, 2010 at 09:11, DeanNelson deannel...@aol.com wrote:
 Tom,
 Here is what I use:
 ...
 !-- Change the font size of the block or para --
 xsl:template match=pa...@font-size]
 ...

 Well, none of this is working for me and I now know why (but I'm not
 sure of the best solution yet):

Solution is on p. 117 of Bob Stayton's book (he said as he realized he
read it before and thought he was in good shape because he didn't see
any errors and output looked good--UNTIL NOW).

I'll slink away until the next time--thanks Dean.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Changing font size for a chunk of text inline

2010-11-09 Thread Tom Browder
On Tue, Nov 9, 2010 at 09:16, Tom Browder tom.brow...@gmail.com wrote:
 On Tue, Nov 9, 2010 at 09:11, DeanNelson deannel...@aol.com wrote:
 Tom,
 Here is what I use:
...
 !-- Change the font size of the block or para --
 xsl:template match=pa...@font-size]
...

Well, none of this is working for me and I now know why (but I'm not
sure of the best solution yet):

I made a change to use version 1.76.1 of the style sheets and have not
changed my customization layer.  All I changed was my catalog to refer
to the latest style sheets.  Some customization works but not others.
Dean's solution works when I fall back to version 1.75.2
(non-namespace),

Bummer...

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Centering Table Titles in Print

2010-11-08 Thread Tom Browder
I tried the solution on p. 494 of Bob Stayton's book (DocBook XSL:
The Complete Guide, 4th Ed.) in an attempt to center my tables'
titles.

However, I can't get it to work with fop--the title is still left aligned.

Has anyone had success centering table titles with fop?  Any other ideas?

Thanks.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Table Titles in Print

2010-11-08 Thread Tom Browder
On Mon, Nov 8, 2010 at 17:57, deannelson deannel...@aol.com wrote:
 Tom,
 I have had this issue as well. Here is how I solved it.


 !-- center table titles --
 xsl:attribute-set name=formal.title.properties
 xsl:attribute name=text-align
 xsl:choose
 xsl:when test=self::tablecenter/xsl:when
 xsl:otherwiseleft/xsl:otherwise
 /xsl:choose
 /xsl:attribute
 /xsl:attribute-set

But Dean, that's right out of the book as near as I can see.  Unless
I'm missing something, that doesn't work for me.  What tools are you
using?  I'm using xsltproc and Apache fop.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Want Table of Contents in HTML Chunked Headers

2010-11-04 Thread Tom Browder
I want my headers on every html page (except the first) to show this:

row 1: page title
row 2:prevTable of Contents
   next

I have successfully gotten the footer showing Table of Contents
instead of 'Home by following Bob Stayton's instructions in his book.

I copied the header.navigation template from html/chunker-common.xsl
style sheet from 1.76.1 into my  customization layer and have modified
the second row middle cell so the parent title is not shown.  Then I
copied what I believe is the pertinent part of the
footer.navigation.template into the header, second row, center cell.

I haven't yet figured out how to tell reliably when I'm not on the first page.

I think the pertinent chunk is the code for the row 2 center cell
which is duplicated here:

  td width=20% align=center
xsl:choose
  xsl:when test=$home != . or $nav.context =
'toc'!-- I believe $home need to be something else --
a accesskey=h
  xsl:attribute name=href
xsl:call-template name=href.target
  xsl:with-param name=object select=$home/
/xsl:call-template
  /xsl:attribute
  xsl:call-template name=navig.content
xsl:with-param name=direction select='home'/
  /xsl:call-template
/a
xsl:if test=$chunk.tocs.and.lots != 0 and
$nav.context != 'toc'
  xsl:text#160;|#160;/xsl:text
/xsl:if
  /xsl:when
  xsl:otherwise#160;/xsl:otherwise
/xsl:choose

xsl:if test=$chunk.tocs.and.lots != 0 and
$nav.context != 'toc'
  a accesskey=t
xsl:attribute name=href
  xsl:apply-templates select=/*[1]
   mode=recursive-chunk-filename
xsl:with-param name=recursive select=true()/
  /xsl:apply-templates
  xsl:text-toc/xsl:text
  xsl:value-of select=$html.ext/
/xsl:attribute
xsl:call-template name=gentext
  xsl:with-param name=key select='nav-toc'/
/xsl:call-template
  /a
/xsl:if
  /td

A gross solution I think is change $home to something else that
identifies the html from file index.html but haven't figured out
what yet.  I know I can put an id on the book element but don't know
how to reliably to tell whether that id is in scope or not.

By the way, I am using xhtml if that helps.  My document is a book.

When I use the chunk as is I get the TOC link on top sometimes (when
the file is a child of a chapter) and sometimes not (when the file is
the top of a chapter).

Ideas appreciated.

Regards,

-Tom
Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: Want Table of Contents in HTML Chunked Headers [SOLVED]

2010-11-04 Thread Tom Browder
On Thu, Nov 4, 2010 at 09:29, Tom Browder tom.brow...@gmail.com wrote:
 I want my headers on every html page (except the first) to show this:

 row 1:                                             page title
 row 2:            prev                            Table of Contents
                       next

 I have successfully gotten the footer showing Table of Contents
 instead of 'Home by following Bob Stayton's instructions in his book.
...

It's probably not the best solution, but it seems to work.  I
discovered an unused param at the top of the header.navigation
template which I hardwired:

  xsl:param name=nav.contexttoc/xsl:param

That made all pages but the first show my TOC link in the center cell
of the second row from the top.  I'm sure Bob can make it cleaner and
prettier, but I'm happy for now.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] ANNOUNCE: DocBook XSL-NS Stylesheets 1.76.1 released

2010-11-03 Thread Tom Browder
On Mon, Nov 1, 2010 at 15:45, DocBook Project docbook-...@xml-doc.org wrote:
 Version 1.76.1 of the DocBook XSL-NS Stylesheets, for processing
 namespaced (DocBook 5) documents, is now available:

I changed from 1.75.2 to 1.76.1 and, as a result, many cross-reference
problems were reported that had not showed up previously--a nice
result--glad I switched.

Good job--thanks!

Regards,

-Tom

Tom Browder
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: qanda listings in html output

2010-10-28 Thread Tom Browder
On Wed, Oct 27, 2010 at 14:13, Tom Browder tom.brow...@gmail.com wrote:
 On Wed, Oct 27, 2010 at 10:42, Tom Browder tom.brow...@gmail.com wrote:
 I found why the weird spacing and have kludged a fix:

 In db style sheets 1.75.2/html/qandasets.xsl the label is put in a
 paragraph (p/p) which causes the funny offset since each entry
 is a table row with two columns.  I removed paragraph blocks from both
 cells for question and answer.  That seemed to take care of the
 offset.

Yesterday I changed to use the xhtml style sheets and it looks fine
without my hack for the html sheets.

My only complaint now is the spacing between entries is way too  much
and I can't figure out how to reduce it.  I've tried inputs in the css
and negative cellpadding through the dbhtml PIs to no avail.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA


 Even after David's pointer to Bob's book I still think the paragraph
 label elements in html/qandssets is a bug.  Bob does say you can
 customize the qandaset but one shouldn't have to do that for that
 label problem IMHO.

 Regards,

 -Tom


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: qanda listings in html output

2010-10-28 Thread Tom Browder
On Thu, Oct 28, 2010 at 13:07, Bob Stayton b...@sagehill.net wrote:
 Hi,
 I think this is more of a browser problem than an HTML coding problem.
  Using p inside a table cell is commonly done, and should not create extra
 space at the top of the table cell.  Only Firefox pushes the qanda number
 down to the second line. Neither Internet Explorer or Chrome do that.  Does
 anyone know of any other browsers that have this problem?

Bob, I don't have any complaint now that I went to the xhtml--the
label problem doesn't exist.  However, as I said in my last nessage,
my only complaint now is the spacing between entries is way too much
and I can't figure out how to reduce it.  I've tried inputs in the css
and negative cellpadding through the dbhtml PIs to no avail.

This occurs with firefox, google, and IE 8.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: qanda listings in html output

2010-10-28 Thread Tom Browder
On Thu, Oct 28, 2010 at 16:02, Bob Stayton b...@sagehill.net wrote:
 Hi Tom,
 This CSS seems to work for me to reduce that extra space from the p tags:

 div.qandaset td p {
  margin-top: 0em;
  margin-bottom: 0em;
 }

Argh!  I was trying to use tr.qandaset!

Works great, Bob--thanks a heap!

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: qanda listings in html output

2010-10-27 Thread Tom Browder
On Wed, Oct 27, 2010 at 10:58, Cramer, David W (David)
dcra...@motive.com wrote:
 Hi Tom,
 There's some information about formatting qandasets in Bob Stayton's book (an 
 essential reference if you haven't checked it out yet): 
 http://www.sagehill.net/docbookxsl/QandAformat.html

Thanks, David, I do have Bob's book and I thought I had looked up
qanda in the index but my old brain fooled me once again.

Warmest regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: qanda listings in html output

2010-10-27 Thread Tom Browder
On Wed, Oct 27, 2010 at 10:42, Tom Browder tom.brow...@gmail.com wrote:
 I found why the weird spacing and have kludged a fix:

 In db style sheets 1.75.2/html/qandasets.xsl the label is put in a
 paragraph (p/p) which causes the funny offset since each entry
 is a table row with two columns.  I removed paragraph blocks from both
 cells for question and answer.  That seemed to take care of the
 offset.

Even after David's pointer to Bob's book I still think the paragraph
label elements in html/qandssets is a bug.  Bob does say you can
customize the qandaset but one shouldn't have to do that for that
label problem IMHO.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] qanda listings in html output

2010-10-26 Thread Tom Browder
I am using a qandaset (defaultlabel='number') and get good pdf output.
 When I output html though the spacing between the numbers and the
entries is apparently too small so the output looks something like
this:

question 1
1.
answer 1
question 2
2.
answer 2

I get the same results with single file and chunk output.  I am using
DocBook xsl style sheets version 1.75.2 and DocBook 5.

Ideas and suggestions are much appreciated.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Formatting all instances of profiling text in red

2010-07-21 Thread Tom Browder
On Tue, Jul 20, 2010 at 12:57, Steve Johnson ste...@caringo.com wrote:
 I want all instances of particular profiling elements to display in red in
 the PDF. From Stayton's book, I see an example of how to bold text:
...
 What I think I would do is change it to something like:

 xsl:template match=phra...@profile.condition='draft']
 xsl:call-template name=/
 /xsl:template

Steve, try this:

  xsl:template match=phra...@profile.condition='draft']
fo:inline color='red''xsl:apply-templates//fo:inline
  /xsl:template

HTH,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] DocBook/XSL/FO-HTML and Table Column Widths

2010-07-18 Thread Tom Browder
I have pretty much converted an old, large html-based set of docs into
DocBook 5.  The only chunk I'm not happy with are the tables which
need customizing to adjust column widths.

Adjusting the column widths seems problematic at the moment for one
using xsltproc.  I see that Norm Walsh has a Python wrapper to take
care of that (and I'll explore that soon), but that seems to add
another layer to the tool chain that is already daunting for a newbie.

My questions are:

1.  Where should the necessary missing functions and algorithms be
inserted, into xsltproc, or?

2.  Are the table column formatting functions really extensions, or
should they be considered part of a core standard that is missing in
xsltproc and other xsl programs?

I would like to offer my help for the situation but am not sure where to start.

Thanks,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] DocBook/XSL/FO-HTML and Table Column Widths

2010-07-18 Thread Tom Browder
On Sun, Jul 18, 2010 at 11:03, Bob Stayton b...@sagehill.net wrote:
 Hi Tom,
 First question: was there any column width information in the HTML tables
 from which you converted that content?  If so, ensuring that the conversion
 included the column widths would likely help.

Yes, there was: column widths as integers, no units--pixels I assume.

 But I believe you said you were using FOP, and FOP does not currently
 support the table-layout=auto property.  You would need to use another FO
 processor.

So then fop is what needs to be updated--thanks.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] How to Adjust Table Column Widths with xsltproc

2010-07-17 Thread Tom Browder
How can I affect table column widths with the current db 5, xsltproc,
and fop tool chain without hand modifying the fo file?

Thanks.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Nested, Itemized List Flows Into PDF Page Footer

2010-07-16 Thread Tom Browder
On Thu, Jul 15, 2010 at 21:05, Tom Browder tom.brow...@gmail.com wrote:
 On Thu, Jul 15, 2010 at 18:07, Bob Stayton b...@sagehill.net wrote:
 ...
 keep-together mechanism is not the problem here, and it may be a bug in how
 FOP handles list elements.

 I've posted the problem to the fop user list.

They now have an fo file exhibiting the problem.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Nested, Itemized List Flows Into PDF Page Footer

2010-07-15 Thread Tom Browder
I have a DocBook source with a long, nested, itemized list which
covers eight pages after converting to XSL-FO and running through fop
to pdf.  I am using the default page settings for USletter.

The list runs into the page footers on some pages.  The page the list
begins on is the first page of an appendix.

A keep-together dbfo processing instruction looks like it might help
but apparently itemized lists aren't set up that way.

Any suggestions?

Thanks.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Nested, Itemized List Flows Into PDF Page Footer

2010-07-15 Thread Tom Browder
On Thu, Jul 15, 2010 at 18:07, Bob Stayton b...@sagehill.net wrote:
...
 FO stylesheet, and itemizedlist and listitem are are not included.  So I'm
 not clear why your lists are running off the page, as there should be no
 keep-together properties present.

 Can you peek inside the FO at the fo:list-block and fo:list-item elements
 and see if there are keep-together attributes on them?  If so, are they
 coming from a customization layer, by any chance?  If not, then the

No, no keep-together attributes.

 keep-together mechanism is not the problem here, and it may be a bug in how
 FOP handles list elements.

I've posted the problem to the fop user list.

Thanks, Bob.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Figures in Html With CSS: No Luck!

2010-07-08 Thread Tom Browder
On Thu, Jul 8, 2010 at 14:20, Mauritz Jeanson m...@johanneberg.com wrote:
 |  -Original Message-
...
 |  In my css file I have tried these:
 |  div.mediaobject {
 |    text-align: center;
 |  }
 |
 |  Neither work.
...
 CSS has no align property.
 text-align: center; works in Internet Explorer, but not in Firefox. The
 following non-standard setting works in Firefox: text-align: -moz-center;.

Aha, that works!

Do you have a pointer to any other css tricks for firefox?

 Many FO properties are modeled on similar CSS properties, but the DocBook
 stylesheets do not perform any kind of CSS-FO translation. There is some

Duh, I should have realized that.

Good debugging with limited info, Mauritz, thanks a heap!

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Figures in Html With CSS: No Luck! [SOLVED]

2010-07-08 Thread Tom Browder
On Thu, Jul 8, 2010 at 15:01, Tom Browder tom.brow...@gmail.com wrote:
 On Thu, Jul 8, 2010 at 14:20, Mauritz Jeanson m...@johanneberg.com wrote:
 |  -Original Message-
 ...
 |  In my css file I have tried these:
 |  div.mediaobject {
 |    text-align: center;
 |  }
 |
 |  Neither work.

 CSS has no align property.
 text-align: center; works in Internet Explorer, but not in Firefox. The
 following non-standard setting works in Firefox: text-align: -moz-center;.

SOLVED!

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Figures in Html With CSS: No Luck!

2010-07-08 Thread Tom Browder
On Thu, Jul 8, 2010 at 15:29, Mauritz Jeanson m...@johanneberg.com wrote:
...
 |  Do you have a pointer to any other css tricks for firefox?
...
 https://developer.mozilla.org/en/CSS

Thanks, Mauritz.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Centering Figures in Html With CSS: No Luck!

2010-07-07 Thread Tom Browder
On Wed, Jul 7, 2010 at 18:00, Bob Stayton b...@sagehill.net wrote:
 Hi Tom,
 If I add your style to my docbook css file, it does center the graphic.
...
 Is the css stylesheet specified in the 'html.stylesheet' parameter so the
 reference to it is inserted in the HTML files?

Yes.

 Is the reference getting into the HTML files?

Yes.

 Is the css stylesheet getting to the HTML output directory (that step is not
 done by the XSL process)?

I have a symbolic link in my htmlout/ directory.

 Do other styles in the CSS files work?

Yes.  I have a shaded area behind programlistings that works.

 Are there div elements with class=mediaobject in the HTML output?

Yes.

Thanks, Bob.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Need Blank Page Before Back Cover

2010-07-06 Thread Tom Browder
I want my back cover to fall on an even page (I may put some info on
the page before later).  In this message:

  http://markmail.org/message/yaps47itqwc6d4r7

Bob  Stayton said:

quote
Then define a template named backpage that generates a new
page-sequence for your back cover content. That fo:page-sequence
element should include:

initial-page-number=auto-even

to ensure that the content starts on an even-numbered (back) page. It
should only contain one page of content.
/quote

I tried that but it doesn't work for me at the moment.  I'm using DB 5
style sheets.

Any suggestions?

Thanks.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] fop: WARNING: Cannot Find a Base-14 Font (docbook bug?)

2010-06-28 Thread Tom Browder
I am getting this warning when running fop for pdf from my fo file
(generated from docbook source):

I thought that shouldn't happen since the ZapfDingbats is hard-coded
in fop.  Isn't it a vector font so that any size can be produced?

However, I found reference to fop bug 47279 which says:

quote
When the font-family property hasn't been specified in the FO file, it defaults
to sans-serif,Symbol,ZapfDingbats. But the latter two aren't available in a
bold variant. When a block of text can be rendered using the sans-serif family
only, warnings are still issued about unavailable Symbol bold and ZapfDingbats
bold. This is likely to puzzle users.
/quote

So, isn't the missing default fo entry due to a docbook bug? I
couldn't find reference to anything similar in the docbook tracker.

Thanks.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: fop: WARNING: Cannot Find a Base-14 Font (docbook bug?)

2010-06-28 Thread Tom Browder
On Mon, Jun 28, 2010 at 09:05, Tom Browder tom.brow...@gmail.com wrote:
 I am getting this warning when running fop for pdf from my fo file
 (generated from docbook source):

Oops, here it is:

WARNING: Font ZapfDingbats,normal,700 not found. Substituting with
ZapfDingbats,normal,400

Sorry.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: fop: WARNING: Cannot Find a Base-14 Font (docbook bug?)

2010-06-28 Thread Tom Browder
On Mon, Jun 28, 2010 at 09:08, Tom Browder tom.brow...@gmail.com wrote:
 On Mon, Jun 28, 2010 at 09:05, Tom Browder tom.brow...@gmail.com wrote:
 I am getting this warning when running fop for pdf from my fo file
 (generated from docbook source):

I also get the same type of warning about another base-14 font:

WARNING: Font Symbol,normal,700 not found. Substituting with
Symbol,normal,400.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: fop: WARNING: Cannot Find a Base-14 Font (docbook bug?)

2010-06-28 Thread Tom Browder
On Mon, Jun 28, 2010 at 09:29, Bela Hausmann p...@belahausmann.name wrote:
...
 Isn't it a vector font so that any size can be produced?
...
 No. Bold versions of a font aren’t automatically produced out of the normal

Maybe my bug reference was misleading.  The need for bold may be
happening  behind the scenes in fop, but the warning doesn't say
anything about needing a bold font, so maybe this is an fop bug after
all?

Thanks, Bela.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: fop: WARNING: Cannot Find a Base-14 Font (docbook bug?)

2010-06-28 Thread Tom Browder
On Mon, Jun 28, 2010 at 10:38, DeanNelson deannel...@aol.com wrote:
 Tom
 Have you configured FOP to handle the fonts that you want?

Dean, I'm just getting started customizing a large set of docbook xml
that was converted from our html docs.

I haven't tried to use any specific fonts at all.  I am happy with the
base-14 until I get formatting, etc, more into desired shape.

I appreciate the font config inf and I'm sure I will be using it as I
improve my set up.

So, if I don't specify fonts in my xml source, will your setup help
with the warnings?

Thanks.

Regards,

-Tom

P.S.  I am always looking for good customizations.

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Re: fop: WARNING: Cannot Find a Base-14 Font (docbook bug?)

2010-06-28 Thread Tom Browder
On Mon, Jun 28, 2010 at 13:28, deannelson deannel...@aol.com wrote:
 Most likely it has to do with the fonts that reside on your system. You will
 need to have a good symbol font that covers the symbols you need. We use the
 DejaVu fonts (http://dejavu-fonts.org) and I have not had any problems with
...
 I have attached my font setup customization for your perusal. Also, like
 some of the previous posts said, check out the FO file and see what problem
 it is having. FOP usually will tell you a line to go to in the error. When I

Thanks, a heap, Dean!

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] DocBook Spelling Aid

2010-06-27 Thread Tom Browder
On Sun, Jun 27, 2010 at 04:43, Stefan Kost enso...@hora-obscura.de wrote:
 Am 26.06.2010 15:24, schrieb Tom Browder:
...
 You mean like :)
 aspell check --mode=sgml doc.xml

Something like that, but that line doesn't work for me.

The reason for the wrapper is I couldn't find any way to handle
multiple files non-interactively.  Of course a better solution is
always sought--suggestions welcome.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] DocBook Spelling Aid

2010-06-27 Thread Tom Browder
On Sun, Jun 27, 2010 at 05:32, Tom Browder tom.brow...@gmail.com wrote:
 On Sun, Jun 27, 2010 at 04:43, Stefan Kost enso...@hora-obscura.de wrote:
 Am 26.06.2010 15:24, schrieb Tom Browder:
 ...
 You mean like :)
 aspell check --mode=sgml doc.xml

I get it, I could have used aspell instead of hunspell and specifying
the English system dictionary,

Hunspell was the first thing I saw when running apropos on my machine
to look for a spelling program--didn't think to look further.  I
forgot about aspell--been a lng time since I used an external
spell checker

At any rate, aspell should work with my wrapper with suitable command
line changes.  It will still help eliminate the cruft and simplify
spell checking  a large set of files.

Thanks.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] DocBook Spelling Aid

2010-06-27 Thread Tom Browder
On Sun, Jun 27, 2010 at 10:16, Mathieu Malaterre
mathieu.malate...@gmail.com wrote:
 On Sun, Jun 27, 2010 at 12:47 PM, Tom Browder tom.brow...@gmail.com wrote:
 On Sun, Jun 27, 2010 at 05:32, Tom Browder tom.brow...@gmail.com wrote:
 On Sun, Jun 27, 2010 at 04:43, Stefan Kost enso...@hora-obscura.de wrote:
 Am 26.06.2010 15:24, schrieb Tom Browder:
...
 Here is my two cents:

      xmllint --postvalid --xinclude --nonet ${input_file} | aspell
...

I don't do that because I want to treat the spelling check as a separate task.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Nested Itemized Lists

2010-06-26 Thread Tom Browder
On Sat, Jun 26, 2010 at 00:55, Shlomi Fish shlo...@iglu.org.il wrote:
 On Saturday 26 Jun 2010 00:07:11 Tom Browder wrote:
 On Fri, Jun 25, 2010 at 13:11, Dick Hamilton rlhamil...@frii.com wrote:
...
 Some of my latest essays are in DocBook 5 format:

 http://www.shlomifish.org/philosophy/

 Though they use the article tag instead of book.

 And many of the manuals of the Mandriva distribution are in DocBook 5 format.

Thanks, Shlomi, and I enjoyed visiting your site,

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] DocBook Spelling Aid

2010-06-26 Thread Tom Browder
While working on my large set of docbook source files, which I've
converted from the original html source, I discovered the need for a
tool to check the spelling.  I bashed together a Perl wrapper around
the program 'hunspell' so the program can be run against a set of
files, read the output, eliminate unnecessary lines, and use a hash to
eliminate duplicates.

I'm sure it can be improved, but I leave that as an exercise for the
user.  I uploaded it to the DocBook wiki at the bottom of this page:

  http://wiki.docbook.org/topic/ConvenienceTools#preview

The Perl program is called check_spelling.pl and a limited help
message is shown if you execute it without any arguments.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Nested Itemized Lists

2010-06-25 Thread Tom Browder
On Fri, Jun 25, 2010 at 07:00, Bela Hausmann p...@belahausmann.name wrote:
 A nested itemizedlist/listitem should be within the main listitem, like so:

 itemizedlist
  listitem
    item 1
    itemizedlist
...

Thanks, Bela.

Can anyone point to a source of a good explanation of such details?

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Nested Itemized Lists

2010-06-25 Thread Tom Browder
On Fri, Jun 25, 2010 at 13:11, Dick Hamilton rlhamil...@frii.com wrote:
 Tom,

 The DocBook Definitive Guide is where I'd go. The syntax descriptions
 will give you that information.

I have that book (DB v5), and the syntax was detailed, but not easy to
use in a casual reading.  I did try to figure it out by looking at the
content models. but I got lost in the maze.

What I should have done was taken the content models and broken them
down in some kind of vertical fashion to make it easier to check by
eye,  Another problem was that Relax NG validation by both nvdl and
xmllint didn't catch the errors in my two attempted nested forms

 There are also examples, though as
 editor I'm embarrassed to say that the list examples, though they
 mention nesting, don't include a nested example.

Yes, that would have helped, but you guys pack a LOT of info in that
book!  You can't cover examples of everything.

A book (or web site) with detailed examples of output vs. input would
be very useful.  The tools are described in great detail lots of
places, but hard-core complete book examples, including the
customization style sheets are hard to find (I'm still looking).  Any
chance of getting such for Docbook 5?  I scrounged all around
O'Reilly's site and couldn't find anything except final examples
generated by customized styles sheets which were not there.

Thanks, Dick.

Regards,

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Trouble with David Cramer's Full page cover with background image on Dave Pawson's Docbookj FAQ Site

2010-06-24 Thread Tom Browder
I've tried using David Cramer's title page customizations inside my
own fo customization xls for Docbook 5 (the non-namespace version) but
am getting errors like the following:

Element para in namespace 'http://docbook.org/ns/docbook' encountered
in chapter, but no template matches.
Element xref in namespace 'http://docbook.org/ns/docbook' encountered
in para, but no template matches.

I've tried adding the following lines in the root node:

  xmlns:db=http://docbook.org/ns/docbook;
  exclude-result-prefixes=db

The only major changes I made to his xsl was to eliminate the rx:
pieces (including the  xsl:if ../xsl:if chunk) and point to
my local master docbook style sheets.

I have run the files through my oxygenxml debugger and got no obvous
errors (that assumes I know what I'm looking for, though, and I've
never used it before).

My xsl worked before I added his lines.  Any help would be appreciated

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] fo/titlepage.templates.xml Customization Question

2010-06-24 Thread Tom Browder
I've modified Docbook 5 file fo/titlepage.templates.xml following
instructions in Bob Stayton's book (v. 4, p. 175) while trying to
modify how chapter and appendix titles are handled.

I think I now need to process that file to regenerate file
fo/titlepage.templates.xsl.  Is this the correct step (using
xsltproc):

xsltproc template/titlepage.xsl   fo/titlepage.templates.xsl   -o
fo/titlepage.templates.xsl

Thanks,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Re: fo/titlepage.templates.xml Customization Question [ANSWERED]

2010-06-24 Thread Tom Browder
The correct answer is almost as I queried (file names ARE correct,
xsltproc syntax a little off).  This works:

  xsltproc template/titlepage.xsl   fo/titlepage.templates.xsl   
fo/titlepage.templates.xsl

I shouldn't have bother this list, sorry.

-Tom

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] xmllint and relax ng validation

2010-06-22 Thread Tom Browder
On Mon, Jun 21, 2010 at 11:49 PM, Dave Pawson da...@dpawson.co.uk wrote:
 On Mon, 21 Jun 2010 23:13:57 +1000
 Sashan Govender sash...@gmail.com wrote:

 Hi

 I'm trying to validate my document using xmllint but get this error:


  xmllint --noout --valid --relaxng
 /usr/share/xml/docbook5/schema/rng/5.0/docbook.rng main.xml
 main.xml:2: validity error : Validation failed: no DTD found !
 /docbook xmlns:xi=http://www.w3.org/2001/XInclude;; version=5.0
 xml:lang=en

 I thought that docbook 5 didn't require a dtd?

The problem is the xmllint option --valid asks for validation by an
internal DTD (see the xmllint man page).  Eliminate that option and it
should work.

HTH.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org