Re: [docbook-apps] Apostrophe in docbook document

2010-01-27 Thread Dave Pawson

Hi Ron


On 26/01/10 20:42, Ron Catterall wrote:


Hi Dave

Not sure why I got into this, but I'll push it along a bit.

XML was designed to allow the storage of formatted text in a human and
machine readable state.

When a human does the reading (of the XML text) he can see the apos or
rsquo character in context and guess pretty accurately whether it is an
indication of a missing character, a genitive marker or a closing quote.
So far I am with you all the way - it doesn't matter in English.


And when the formatted output is presented to the human
which Unicode code point is used is rarely material.




Now look at machine reading:
Imagine a linguist wanting to search some text to count
1. The use of contractions (e.g. isn't versus is not ). He wants to find
list and count all contractions. His text editor or little Perl script
(he doesn't know regex) looks for rsquo and finds what he wants
corrupted by lots of extraneous closing strings and genitive markers.
The three logically different functions are represented by the same code.
2. ditto except that this time he wants to find quoted strings
3. ditto but this time his interest is in the grammar and he is
searching for genitives
4. why he might want to distinguish between singular and plural
genitives is beyond me. But he might.


My initial reaction is who the heck is going to mark this up - 
accurately and with the knowledge of English and Unicode to do

a good job of it. Someone in Edinburgh perhaps? http://www.ling.ed.ac.uk/




I guess I just don't like one symbol with three meanings. Imagine this
in your code, you don't need = == and EQ, one symbol will handle all.


Yep. I'm doing that to please the compiler writer I guess.



The problem of course is not a Docbook problem, it is in the UTF tables
(and the linguist would probably be using TEI anyway, but it's not a TEI
problem either)


Your proposal is a solution, not a problem Ron :-)




In my case all my quotes in XML tags are done on the keyboard #x27, all
my text quotes are quote, all my apostrophe marks and genitives are
apos so a simple global edit puts all to rights for me - now that I
know to use rsquo



Suggestion. If you're using Linux. Look into keyboard mappings
and use... perhaps your numeric keypad to generate this 'suite' for you
using a single keypress? Just a thought.

regards




regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

-
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] html2docbook: issue with h2/

2010-01-27 Thread Michael Fuchs
Hello,

perhaps it's an option for you to try the HTML to DocBook converter
herold (http://www.dbdoclet.org/archives/herold_5.2.2.jar). I ran
java -jar herold_5.2.2.jar -i input.xhtml -o output.xml 
and the result looks like:

?xml version=1.0 encoding=UTF-8?
article version=1.0 xmlns=http://docbook.org/ns/docbook;
xmlns:xl=http://www.w3.org/1999/xlink;
  info/
  section remap=h1
titleTitle1/title
parabla 1/para
section remap=h2
  titleTitle2/title
  parabla 2/para
/section
  /section
/article

Regards


 Hi there,
 
   I'd like to know if anyone is using the script from the page:
 http://wiki.docbook.org/topic/Html2DocBook
 
   I tried on a very tidy example:
 
 $ cat input.xhtml
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 body
 h1Title1/h1
 pbla 1/p
 h2Title2/h2
 pbla 2/p
 /body
 /html
 
 
 Here is what I get as output:
 
 $ cat output.xml
 ?xml version=1.0?
 section
   titleTitle1/title
   parabla 1/para
   parabla 2/para
 /section
 
 The title in h2 element is lost during the conversion.
 
 Any idea on how to fix that ?
 
 Thanks,




RE: [docbook-apps] Re: [docbook] DocBook and Google Summer of Code ?

2010-01-27 Thread Tim Arnold
Just throwing one idea out there for this project:
Upgrade the refdb-lite code to take it from DocBook 4.6 using DTDs to DocBook 5 
using RelaxNG. 

The code started as part of RefDB proper and lightened by Doug du Boulay.
The sourceforge site is here:
http://sourceforge.net/projects/refdb-lite/

Pure XSLT 1 based formatting of bibliographies and citations in DocBook 
XMLdocuments. Bibliographic data can be accessed either from a real RefDB 
database, or from an XML data file.

The refdb-lite XSLT code base is in good shape and it provides a simple method 
of using straight XSLT1.0 to create bibliographies and can create different 
citation methods for html (author-year for one example). Additionally, it can 
use a raw DocBook bibliography and does not require a RefDB database setup 
(although it can use one if needed).

It's a solid place to start with some obvious modifications that are needed and 
the scope can be kept to fit in with the Summer of Code time frame.

I'm biased since I have a docbook system that requires author-year citations. 
However, it does seem to me that DocBook would benefit from a simple and 
straightforward way to create bibliographies that could be folded back into the 
DocBook stylesheets; a method that requires no extra setup, just using DocBook 
bibliography collection and XSLT (1.0).

Any comments? Would such a project benefit enough users?

thanks,
--Tim Arnold



 -Original Message-
 From: Stefan Seefeld [mailto:seef...@sympatico.ca]
 Sent: Tuesday, January 26, 2010 7:48 PM
 To: docb...@lists.oasis-open.org; DocBook Apps Mailing List
 Subject: [docbook-apps] Re: [docbook] DocBook and Google Summer of Code ?
 
 Mid-december I sent a mail to this list, suggesting that DocBook applies
 to participate in Google's Summer of Code program.
 A couple of people followed up with interest and ideas, so I'd like to
 send out a little note with some details.
 Google just sent out this:
 http://groups.google.com/group/google-summer-of-code-
 discuss/browse_thread/thread/d839c0b02ac15b3f?pli=1
 
 The most important bit is this:
 
 We will begin accepting application from
 would-be mentoring organizations beginning March 8th at approximately
 19:00 UTC, with applications closing on March 12th at 23:00 UTC. 
 
 I would like to suggest that, as a start, we collect project ideas on
 the wiki. (I was going to do that, then realized that the pages I looked
 at where marked immutable. May be I'm just lacking enough karma to edit
 them. Can someone help ? A new GSoCIdeas page would be a good start !)
 
 Thanks,
  Stefan
 
 
 --
 
...ich hab' noch einen Koffer in Berlin...
 
 
 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
 


-
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] Problems producing striped tables

2010-01-27 Thread Pedro Pastor
 
Hi,

Following the example:

http://www.sagehill.net/docbookxsl/PrintTableStyles.html#TabstyleTemplate

I tried to produce striped tables. It works for HTML but it doesn't for PDF.

Is there any problem with PDF? I'm missing something?

Regards.
Pedro


-
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: [docbook] DocBook and Google Summer of Code ?

2010-01-27 Thread Camille Bégnis
Hello,

I have always dreamed of a graphical application that would allow
someone without a CS degree to customize the XSL-FO stylesheets.
A first version would concentrate on customizing specific parts of the
stylesheet, like:
- standard customization parameters, clearly organized, with choice or
value validation
- personalization of attribute sets, proposing a reduced set of
parameters available in XSL-FO
- customization of specific zones like title pages, headers, footers

All this should be very flexible: aka it must be easy for a programmer
to propose new parameters (for example the logo filename to appear on
the title page) to be added  to the interface. So I thought maybe the
extra information needed to build the interface could be coded in the
XSL itself... To be discussed.

Anyone interested in that?

Camille.

master pages,
David Cramer wrote:
 I believe the DocBook wiki is broken at the moment, but yes, having a
 list somewhere to start from would be useful.

 My vote would be for a WebHelp output with toc, search, and index tabs
 in the nav pane. It would be like
 http://www.thingbag.net/docbook/docbook-webhelp/index.html but better:
 the toc pane would synchronize with the content (or perhaps it wouldn't
 be use frames at all, but be more like website's nav mechansim), the
 search would ideally be more i18nized, etc., and it would be part of the
 DocBook XSL distribution. 

 David 

   
 -Original Message-
 From: Stefan Seefeld [mailto:seef...@sympatico.ca] 
 Sent: Tuesday, January 26, 2010 6:48 PM
 To: docb...@lists.oasis-open.org; DocBook Apps Mailing List
 Subject: [docbook-apps] Re: [docbook] DocBook and Google 
 Summer of Code ?

 Mid-december I sent a mail to this list, suggesting that 
 DocBook applies to participate in Google's Summer of Code program.
 A couple of people followed up with interest and ideas, so 
 I'd like to send out a little note with some details.
 Google just sent out this: 
 http://groups.google.com/group/google-summer-of-code-discuss/b
 
 rowse_thread/thread/d839c0b02ac15b3f?pli=1
   
 The most important bit is this:

 We will begin accepting application from would-be mentoring 
 organizations beginning March 8th at approximately 19:00 UTC, 
 with applications closing on March 12th at 23:00 UTC. 

 I would like to suggest that, as a start, we collect project 
 ideas on the wiki. (I was going to do that, then realized 
 that the pages I looked at where marked immutable. May be I'm 
 just lacking enough karma to edit them. Can someone help ? A 
 new GSoCIdeas page would be a good start !)

 Thanks,
  Stefan


 -- 

...ich hab' noch einen Koffer in Berlin...


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


 

 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
   
attachment: camille.vcf-
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] Problems producing striped tables

2010-01-27 Thread Bob Stayton
Yes, I just tested it and it works.  However, the example is for CALS tables that use 
row elements.  Are you using HTML table markup that uses tr instead?  That would 
require modifying the xsl:number statement in the example.


Bob Stayton
Sagehill Enterprises
b...@sagehill.net


- Original Message - 
From: Pedro Pastor p...@dlsi.ua.es

To: docbook-apps@lists.oasis-open.org
Cc: 'Pedro Pastor' p...@dlsi.ua.es
Sent: Wednesday, January 27, 2010 8:30 AM
Subject: [docbook-apps] Problems producing striped tables




Hi,

Following the example:

http://www.sagehill.net/docbookxsl/PrintTableStyles.html#TabstyleTemplate

I tried to produce striped tables. It works for HTML but it doesn't for PDF.

Is there any problem with PDF? I'm missing something?

Regards.
Pedro


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






-
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] html2docbook: issue with h2/

2010-01-27 Thread Bob Stayton

Looking the stylesheet, it appears to not be able to generate nested sections 
from
h1, h2, etc. headings.  It only generates a single section element for the
entire HTML file.

The basic challenge is that plain HTML has a linear structure, in which h2 is 
just
another block element like para, while DocBook has a nested structure where
section contains title and para and other section elements.  Converting 
a
linear structure to a nested structure requires a more complex stylesheet than 
this
one.

I would suggest you try the standalone HTML-to-DocBook conversion tool 
herold, which
used to be part of the dbdoclet Java app but is now a stand alone app.  It can 
be
downloaded from:

http://www.dbdoclet.org/

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


- Original Message - 
From: Mathieu Malaterre mathieu.malate...@gmail.com

To: docbook-apps@lists.oasis-open.org
Sent: Tuesday, January 26, 2010 8:03 AM
Subject: [docbook-apps] html2docbook: issue with h2/



Hi there,

 I'd like to know if anyone is using the script from the page:
http://wiki.docbook.org/topic/Html2DocBook

 I tried on a very tidy example:

$ cat input.xhtml
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
body
h1Title1/h1
pbla 1/p
h2Title2/h2
pbla 2/p
/body
/html


Here is what I get as output:

$ cat output.xml
?xml version=1.0?
section
 titleTitle1/title
 parabla 1/para
 parabla 2/para
/section

The title in h2 element is lost during the conversion.

Any idea on how to fix that ?

Thanks,
--
Mathieu

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






-
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: [docbook] DocBook and Google Summer of Code ?

2010-01-27 Thread Keith Fahlgren
On Wed, Jan 27, 2010 at 9:05 AM, Camille Bégnis cami...@neodoc.biz wrote:
 I have always dreamed of a graphical application that would allow
 someone without a CS degree to customize the XSL-FO stylesheets.

I'm sure this was just a figure of speech, but of the four people that
developed (and maintain) O'Reilly's *gigantic*, successful
customization of the XSL-FO stylesheets, only one has a CS degree. I
have a history degree, for example.



Keith

-
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] inlinemediaobject + caption for epubs?

2010-01-27 Thread Bob Stayton

Hi,
I would suggest that an informalfigure element with a floatstyle=right attribute 
would be more appropriate for wrapping the text flow around the figure.  You could add 
a caption element to the mediaobject element inside the informalfigure.  I haven't 
tried it with epub, but it works in XHTML.


Bob Stayton
Sagehill Enterprises
b...@sagehill.net


- Original Message - 
From: Robert Nagle idiotprogram...@gmail.com

To: docbook-apps@lists.oasis-open.org
Sent: Tuesday, January 26, 2010 3:59 AM
Subject: [docbook-apps] inlinemediaobject + caption for epubs?



Hi, I'm trying to create xhtml/epub content and trying to use images
which are right-aligned and floating but have captions.

I don't want images to interrupt the flow of the page when it's in
epub.  Instead I want text to wrap around a right-aligned image.

It looks like inlinemedia is the best element for that; however, by
default inlinemedia doesn't allow captions -- only textobjects which
don't render in chunked html output (only as alt text).  I need the
equivalent of captions for inlinemedia elements.

Is there a way to override that so that textobjects are visible?

The problem here is that mediaobjects are block elements (which make
sense for  html and fo output, but not for epub). When dealing with
smaller sized screens, using the extra space to separate an image
block element is wasteful and inefficient.

Any ideas for how to solve this problem?





Robert Nagle
Houston, Texas
http://www.imaginaryplanet.net/weblogs/idiotprogrammer/

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






-
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: [docbook] DocBook and Google Summer of Code ?

2010-01-27 Thread Skopik Pavel
Hello,

the application you mention already exists - see 
http://sourceforge.net/projects/db-xsl-cfg/. But it does not cover all aspects 
described bellow.

Pavel


-Původní zpráva-
Od: Camille Bégnis [mailto:cami...@neodoc.biz]
Odesláno: st 27.1.2010 18:05
Komu: apps docbook
Předmět: Re: [docbook-apps] Re: [docbook] DocBook and Google Summer of Code ?
 
Hello,

I have always dreamed of a graphical application that would allow
someone without a CS degree to customize the XSL-FO stylesheets.
A first version would concentrate on customizing specific parts of the
stylesheet, like:
- standard customization parameters, clearly organized, with choice or
value validation
- personalization of attribute sets, proposing a reduced set of
parameters available in XSL-FO
- customization of specific zones like title pages, headers, footers

All this should be very flexible: aka it must be easy for a programmer
to propose new parameters (for example the logo filename to appear on
the title page) to be added  to the interface. So I thought maybe the
extra information needed to build the interface could be coded in the
XSL itself... To be discussed.

Anyone interested in that?

Camille.

master pages,
David Cramer wrote:
 I believe the DocBook wiki is broken at the moment, but yes, having a
 list somewhere to start from would be useful.

 My vote would be for a WebHelp output with toc, search, and index tabs
 in the nav pane. It would be like
 http://www.thingbag.net/docbook/docbook-webhelp/index.html but better:
 the toc pane would synchronize with the content (or perhaps it wouldn't
 be use frames at all, but be more like website's nav mechansim), the
 search would ideally be more i18nized, etc., and it would be part of the
 DocBook XSL distribution. 

 David 

   
 -Original Message-
 From: Stefan Seefeld [mailto:seef...@sympatico.ca] 
 Sent: Tuesday, January 26, 2010 6:48 PM
 To: docb...@lists.oasis-open.org; DocBook Apps Mailing List
 Subject: [docbook-apps] Re: [docbook] DocBook and Google 
 Summer of Code ?

 Mid-december I sent a mail to this list, suggesting that 
 DocBook applies to participate in Google's Summer of Code program.
 A couple of people followed up with interest and ideas, so 
 I'd like to send out a little note with some details.
 Google just sent out this: 
 http://groups.google.com/group/google-summer-of-code-discuss/b
 
 rowse_thread/thread/d839c0b02ac15b3f?pli=1
   
 The most important bit is this:

 We will begin accepting application from would-be mentoring 
 organizations beginning March 8th at approximately 19:00 UTC, 
 with applications closing on March 12th at 23:00 UTC. 

 I would like to suggest that, as a start, we collect project 
 ideas on the wiki. (I was going to do that, then realized 
 that the pages I looked at where marked immutable. May be I'm 
 just lacking enough karma to edit them. Can someone help ? A 
 new GSoCIdeas page would be a good start !)

 Thanks,
  Stefan


 -- 

...ich hab' noch einen Koffer in Berlin...


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


 

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