Re: [docbook-apps] Using React to present DocBook XML?

2021-10-01 Thread Giuseppe Bonelli
We have a few hundreds books we have converted from latex/indesign to docbook and then to semantic xhtml via https://transpect.github.io/ We then have a custom svelte.js html reader that digest the html file ro render the books in the browser. Svelte is not react, but the principle is the same:

Re: [docbook-apps] best way to convert docx to DocBook

2021-04-14 Thread Giuseppe Bonelli
If you are comfortable using xproc, a *very* robust solution is this: https://transpect.github.io/ We use this for roundtripping among docx/indesign/html/xml since years (we have converted 10^5+ pages from docx/idml/xml) and we are *very* happy. The idea is to use a central format (hubxml, wich

Re: [docbook-apps] DB2PDF et al. alternative (long). Was: Show off what you've done with Docbook

2015-09-15 Thread Giuseppe Bonelli
Hi all, here is my experience (and a few strong opinions) about single sourcing from docbook to pdf/html/epub/docx toolchains. In the past I setup, used and maintained various docbook/FO toolchain variations to localize for the italian market and to publish for print several books from the

Re: [docbook-apps] Converting MS Word documents to DocBook 5 XML

2012-05-24 Thread Giuseppe Bonelli
Hi Jeff, any conversion from word to xml (docbook or other schema) depends heavily on how (well) your word files are structured by means of styles, so you will probably need to massage and fix the files in Word by hand before the actual conversion can be done effectively. Unfortunately the styles

Re: [docbook-apps] TOC contains selected section titles. How?

2012-02-21 Thread Giuseppe Bonelli
see: http://www.sagehill.net/docbookxsl/TOCcontrol.html Cheers, __peppo On Tue, Feb 21, 2012 at 4:46 PM, Roland Burda burda.rol...@gmail.com wrote: Hello! First, I'm new in Docbook. I have been trying to generate the TOC only containing selected section titles. I did some research and

Re: [docbook-apps] epub3 missing Navigation Document?

2012-02-09 Thread Giuseppe Bonelli
simple. __peppo On Wed, Feb 8, 2012 at 8:13 PM, Bob Stayton b...@sagehill.net wrote: Hmm, I think articles should be supported.  I'll take a look.  Thanks for the report. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Giuseppe Bonelli peppo.bone

Re: [docbook-apps] accessibility and xhtml/html5 xsl

2012-02-09 Thread Giuseppe Bonelli
Message - From: Giuseppe Bonelli peppo.bone...@gmail.com To: apps docbook docbook-apps@lists.oasis-open.org Sent: Wednesday, February 08, 2012 9:58 AM Subject: [docbook-apps] accessibility and xhtml/html5 xsl Hi, I am working on an epub(3) accessibility project and therefore I have had

[docbook-apps] epub3 missing Navigation Document?

2012-02-08 Thread Giuseppe Bonelli
Hi, I am experimenting with the epub3/html5 latest xsl (build 9230) on DB5.0 files and I get invalid epubs (validated against the latest epubcheck-3.0b3). Apparently the epubs are missing the navigation document along with the relevant reference to it in the opt manifest. Do I have to file a bug

[docbook-apps] accessibility and xhtml/html5 xsl

2012-02-08 Thread Giuseppe Bonelli
Hi, I am working on an epub(3) accessibility project and therefore I have had a look at the html5 generated by the latest docbook xslt. Looking at the html5 generated by the epub3 xsl, I see some tagging patterns that are not quite accessible, like the use of span class=italic or of structure in

Re: [docbook-apps] epub3 missing Navigation Document?

2012-02-08 Thread Giuseppe Bonelli
version of the files in a usable form suitable for DB5. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Giuseppe Bonelli peppo.bone...@gmail.com To: apps docbook docbook-apps@lists.oasis-open.org Sent: Wednesday, February 08, 2012 9:13 AM Subject

Re: [docbook-apps] epub3 missing Navigation Document?

2012-02-08 Thread Giuseppe Bonelli
the stylesheet param 'generate.toc' turned off, by any chance?  That seems to be the only condition for not including it.  See the template named 'manifest.toc' in epub3/epub3-element-mods.xsl. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Giuseppe Bonelli

Re: [docbook-apps] Word to DocBook conversion and applying XSLT

2012-01-30 Thread Giuseppe Bonelli
Bob's book is the book on the subject, so, yes it explains everything, but if you have never wrote an xslt before i would suggest an xml/xslt manual as your starting point. If you just need to use xslt someone else wrote, you can do what Peter suggested, but you can also use oxygen directly.

Re: [docbook-apps] Docbook IEEE transformation?

2011-05-09 Thread Giuseppe Bonelli
Hi David, I don't know what is your notion of easily IEEE-compliant, but while XSL-FO is certainly capable of producing such layouts I do expect you will need a substantial customization effort of the DB stock XSL-FO templates. The customization will definitely not be a one evening pastime.

Re: [docbook-apps] Linking on figures

2011-02-15 Thread Giuseppe Bonelli
Does the file in fileref exist on the filesystem in the same dir of the doc? __peppo On Tue, Feb 15, 2011 at 3:27 PM, Lwam Berhane berh...@punkt.de wrote: Yes thats right, but the jpeg was just an example. in my document / is not missing! It works but my Editor (I am using serna 4.3) says

Re: [docbook-apps] bibliomisc/link, db5, pdf output

2011-02-08 Thread Giuseppe Bonelli
In db4.5 and using antennahouse FO formatter/xsl 1.75.2, to break urls I use xsl:param name=ulink.hyphenate#x2060;/xsl:param #x2060; is word-joiner I don't know if this works also in db5 and/or with other formatters/db xsl versions. You can get finer control on where to hypenate using

Re: [docbook-apps] several title-elements on the titlepage

2011-01-19 Thread Giuseppe Bonelli
Yes, it is possible, but you have to write an XSL customization layer, typically overriding the titlepage.xsl. See: http://www.sagehill.net/docbookxsl/ModifyElemTemplates.html and/or http://www.sagehill.net/docbookxsl/HTMLTitlePage.html for details. __peppo On Wed, Jan 19, 2011 at 11:19 AM,

Re: [docbook-apps] images scaling problem for print output

2011-01-13 Thread Giuseppe Bonelli
On Thu, Jan 13, 2011 at 3:31 PM, Sebastian Kaiser sebastian.kai...@askozia.com wrote: - My problem, on the other hand, is that all  images are stretched to page width, no matter if they have the size of a stamp or a telephone. That does not seem to be a dots per inch problem because all images

Re: [docbook-apps] using db2epub.py with 1.76x?

2010-09-26 Thread Giuseppe Bonelli
Hi Robert, dbtoepub uses xsltproc (http://www.zlatkovic.com/libxml.en.html) to perform the transformation, not the java processors used by Oxygen. You need to install xsltproc and have it in your path. Use dbtoebub -s to specify your customized docbook.xsl. I still use 1.75.2, but the python

Re: [docbook-apps] epub, db2epub.py system cannot find the path specified

2010-09-26 Thread Giuseppe Bonelli
Hi Robert, try using local paths in your xsl:imports. In Oxygen confirm the main xsl is found by hitting enter key while the cursor is on the xsl URI. Oxygen should open the xsl file in a new tab. You have a local copy of the docbook stock stylesheets under [oxygen install dir]\Oxygen XML Editor

Re: [docbook-apps] Docbook for industrial usage

2010-09-07 Thread Giuseppe Bonelli
I Sabrine, I routinely localize/translate O'Reilly manuals for the italian market and to other xml consultancy work for publishers. In the last couple of year O'Really has changed his workflow from FrameMaker to Docbook 4.5 to go multi-output (print/pdfs/epub+mobi/html) in a standard compliant

Re: [docbook-apps] chunking with xhtml-1_1 produce invalid xhtml11?

2010-07-22 Thread Giuseppe Bonelli
Jirka, thanks for your reply. You are right, but: On Wed, Jul 21, 2010 at 11:24 PM, Jirka Kosek ji...@kosek.cz wrote: DocBook has much more complex structures which can be nested and can't be directly mapped to valid XHTML. Handling this on stylesheet level would be to complex, so running HTML

[docbook-apps] footnotes in tables (docbook 4.5 and 1.75.2 stylesheets)

2010-07-22 Thread Giuseppe Bonelli
Hi again, in the stock docbook xslt (1.75.2) I see under xhtml/footnote.xsl (and in xhtml-1_1/footnote.xsl as well) that the test to discriminate body text footnotes and table footnotes is done on ancestor::tgroup nodes, which imply support only for CALS tables. Does exists a patch or does this

[docbook-apps] chunking with xhtml-1_1 produce invalid xhtml11?

2010-07-21 Thread Giuseppe Bonelli
Hi list, I am using /xhtml-1_1/docbook.xsl (1.75.2) to chunck a valid docbook 4.5 file and I get invalid xhtml11. In the docbook source I have valid structures like: tablecaptionparamixed content/para/caption ... td para figure float=0title/

Re: [docbook-apps] DocBook and InDesign

2010-06-16 Thread Giuseppe Bonelli
Hi Bob, in the user cases some of us need to address, the tweaks applied in InDesign get lost when/if you go back to docbook. The idea is to use InDesign just as the composition engine to leverage its strengths (interactivity, very precise typography and widespread adoption in some

Re: [docbook-apps] DocBook and InDesign

2010-06-15 Thread Giuseppe Bonelli
2010/6/15 Jirka Kosek ji...@kosek.cz: Camille Bégnis wrote: I have a client that wishes to be able to fine tune the PDF rendering with InDesign, of content written in DocBook. Have someone already done that? Is it realistic? Costly? It's doable. InDesign is able to map XML elements to

Re: [docbook-apps] DocBook and InDesign

2010-06-15 Thread Giuseppe Bonelli
Hi Keith, thanks for the pointer to the ickmull projects. It is definitely worth looking at it. Based on your experience , can you please briefly elaborate on the main problems you may anticipate in developing a DB-ICML roundtrip scenario? A roundtrip solution would be very attractive indeed, as

[docbook-apps] Re: InDesign typography advantage [Was: Re: [docbook-apps] DocBook and InDesign]

2010-06-15 Thread Giuseppe Bonelli
indexes (avoid page number repetitions, page ranges and so on) I may be wrong, but this is my experience in real life scenarios. Regards, __peppo On Tue, Jun 15, 2010 at 3:25 PM, Ivan Ristic ivan.ris...@gmail.com wrote: On Tue, Jun 15, 2010 at 10:52 AM, Giuseppe Bonelli peppo.bone...@gmail.com

Re: [docbook-apps] InDesign typography advantage [Was: Re: [docbook-apps] DocBook and InDesign]

2010-06-15 Thread Giuseppe Bonelli
: Tuesday, June 15, 2010 9:26 AM To: Giuseppe Bonelli Cc: docbook-apps@lists.oasis-open.org Subject: [docbook-apps] InDesign typography advantage [Was: Re: [docbook- apps] DocBook and InDesign] On Tue, Jun 15, 2010 at 10:52 AM, Giuseppe Bonelli peppo.bone...@gmail.com wrote: ... Hi

[docbook-apps] indexterm inside part/title and fo output

2010-06-01 Thread Giuseppe Bonelli
Hi, I have a document where an indexterm appears inside a book/part/title. Apparently, the part/title element does not get its id during the index generation and in the fo generated index the relevant fo:page-number-citation ref-id=d0e10266/ points to an undefined id. If I move the indexterm

Re: [docbook-apps] Word 2007+ to DocBook

2010-05-10 Thread Giuseppe Bonelli
Hi Greg, as an alternative to the rountrip/.docx route, I have found a __very__ satisfactory MSword to docbook solution by using the fantastic macro, written by Michal Kebrt , you can find at http://wordtolatex.sourceforge.net. The idea is to transform a plain old word doc file to a custom

Re: [docbook-apps] General question about creating docbook documents (maybe OT)

2010-04-14 Thread Giuseppe Bonelli
Hi Frank, here the tools we use, assuming the creation of new content (for converting existing content, we basically add a preprocess phase where we 1. extraxt rtf from Xpress/InDesign; 2 normalize the extracted files in word using an appropriate .dot template; 3. batch convert to xml). It works

[docbook-apps] RFE: roundtripping to/from adobe IDML

2010-03-19 Thread Giuseppe Bonelli
Hi, I would like to ask the docbook community if there is any interest in a new set of XSLT for rountripping between docbook and Adobe Indesign CS4+. Altough InDesign is non an open solution, Adobe ha opened up its InDesign file format by introducing IDML, IMHO an extremely well thought xml