Re: [docbook-apps] Re: Including a variable in an xlink:href value

2018-01-10 Thread Mark Craig
Hello Janice, Since you're using Maven, as a workaround you could use bare Maven expressions and perform Maven filtering on the source before using the docbkx plugin. Maven filtering replaces expressions like ${project.version} with the values of their Maven properties. For example, in a

Re: [docbook-apps] Switching manpage generation from docbook-SGML to docbook-xml

2017-10-06 Thread Mark Craig
Hello, If you get the DocBook XSL stylesheets, you can probably do the conversion with the xsltproc tool as shown in http://www.sagehill.net/docbookxsl/RefentryToMan.html Hope it helps, Mark PS The XSL conversion works fine in the toolchain I'm using (in a Maven project, so with a plugin based

Re: [docbook-apps] Re: [docbook] future of DocBook XML Schema (XSD)?

2016-10-18 Thread Mark Craig
Hi, At present we are using declarations that reference the XSD, such as: http://docbook.org/ns/docbook; version="5.0" xml:lang="en" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://docbook.org/ns/docbook

[docbook-apps] Re: Profiling/conditional text based on document context?

2016-06-22 Thread Mark Craig
Thanks, Simon. I'll look how we could integrate use of PACBook into the build. Regards, Mark

[docbook-apps] mark.optional.procedure.steps for HTML in 1.79.0?

2015-10-24 Thread Mark Craig
Hello, In testing 1.79.0, I was pleased to find this turned on by default: http://snapshots.docbook.org/xsl/doc/fo/mark.optional.procedure.steps.html What is the equivalent parameter for HTML output? Regards, Mark

Re: [docbook-apps] Restrictive Docbook XML editor which enforces Docbook schema?

2015-01-15 Thread Mark Craig
Hello, IDEs like Eclipse and IntelliJ IDEA don’t quite prevent you from inserting the wrong element or attribute, but once you’ve fetched the XSD they help with tag completion and also immediately flag invalid markup (in red text for example). Both those IDEs let you run validation, making it

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-04 Thread Mark Craig
such as generating the target data files. I have a sample (on an internal network) if you need it. Regards Nick *From:* Mark Craig [mailto:mark.cr...@gmail.com] *Sent:* Wednesday, June 04, 2014 10:16 AM *To:* Wood Nick *Cc:* Bob Stayton; DocBook Apps *Subject:* Re: [docbook-apps] Coloring

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-04 Thread Mark Craig
; attribute? (I was thinking of elements having the xlink:role= http://docbook.org/xlink/role/olink; attribute as being olinks, too.) Regards, Mark On Wed, Jun 4, 2014 at 11:36 AM, Mark Craig mark.cr...@gmail.com wrote: Thanks Nick! olink vs. link xlink:role=http://docbook.org/xlink/role/olink

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-04 Thread Mark Craig
someone please file a bug report on the DocBook SourceForge site to capture this problem so it can be fixed? Bob Stayton Sagehill Enterprises b...@sagehill.net On 6/4/2014 2:52 AM, Mark Craig wrote: Just a quick follow up question... Is this the intended (permanent) behavior of http

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-03 Thread Mark Craig
activate.external.olinks does deactivate the coloring? Regards, Mark On Fri, May 2, 2014 at 11:34 PM, Mark Craig mark.cr...@gmail.com wrote: Thanks Bob, Chris, At least I see what the expected behavior is. No doubt a problem somewhere in my own code. Mark On Fri, May 2, 2014 at 7:53

[docbook-apps] Coloring only internal links in FO?

2014-05-02 Thread Mark Craig
Hello, What is the right way with the 1.78.1 stylesheets to color only internal links in FO? I'd like to deactivate external olinks in PDF output with activate.external.olinks, and then leave external links the same color as surrounding text, but keep color on internal links (and URLs) because

Re: [docbook-apps] Coloring only internal links in FO?

2014-05-02 Thread Mark Craig
/xsl:attribute-set In my PDF, the internal olinks are colored, but my external olinks are not (and are not active). Bob Stayton Sagehill Enterprises b...@sagehill.net On 5/2/2014 12:07 AM, Mark Craig wrote: Hello, What is the right way with the 1.78.1 stylesheets to color only internal links

[docbook-apps] NPE when building RTF from .fo

2014-02-25 Thread Mark Craig
Hello, With DocBook XSL 1.78.1 and Apache FOP 1.1, I'm running into an NPE when building RTF. Has anyone else run into this? I first encountered this issue with docbkx-tools, https://code.google.com/p/docbkx-tools/issues/detail?id=112 Here's how I reproduce it driving the stylesheets with

Re: [docbook-apps] Fitting tall images in PDF

2014-01-06 Thread Mark Craig
in the fo. In particular the templates xsl:template name=image.content.width and xsl:template name=image.content.height are important. Really this should be a feature of the stock xslts though. Regards, David On 01/05/2014 03:58 AM, Mark Craig wrote: Thanks Bob and David, What's

[docbook-apps] Fitting tall images in PDF

2014-01-02 Thread Mark Craig
Hello, As suggested in http://www.sagehill.net/docbookxsl/ImageSizing.html, I have been using imagedata ... scalefit=1 width=100% contentdepth=100%/ to keep images at their natural size unless too wide to fit. What are the settings to do the same with regard to image depth (i.e. height)? In

Re: [docbook-apps] Olinks in PDF missing valid destination?

2013-10-24 Thread Mark Craig
? That parameter's default value should probably be 1, now that all XSL-FO processors support the fragment identifiers. Bob Stayton Sagehill Enterprises b...@sagehill.net *From:* Mark Craig mark.cr...@gmail.com *Sent:* Thursday, October 24, 2013 6:00 AM *To:* Wood Nick nick.w...@ncia.nato.int

[docbook-apps] Olinks in PDF missing valid destination?

2013-10-23 Thread Mark Craig
Hello, In the past I have successfully set up Olink resolution for HTML. I have read and tried to implement http://www.sagehill.net/docbookxsl/OlinkPrintOutput.html#PdfLinkingSetup But I'm not managing to do the same for PDF. A clickable link of the Olink is there in the PDF, but with no valid

Re: [docbook-apps] Listitem overwrites text in orderedlist

2013-10-01 Thread Mark Craig
Hi Matteo, Setting orderedlist.label.width, http://docbook.sourceforge.net/release/xsl/current/doc/fo/orderedlist.label.width.html, seemed to help. Setting that to 1.8em instead of the default 1.2em seemed to fix the problem for lists having a double-digit number of items,

Re: [docbook-apps] Wide verbatim shading overflowing into right margin in PDF

2013-07-12 Thread Mark Craig
where $monospace.verbatim.font.width is one of the DocBook parameters, whose default value is 0.60em. You can adjust either the width or the param to get a narrower box. Bob Stayton Sagehill Enterprises b...@sagehill.net From: Mark Craig Sent: Thursday, July 11, 2013 8:59 AM

Re: [docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-19 Thread Mark Craig
for each processor may trip up the process. I've found that FOP is the most picky about failing on unrecognized code, so going from FOP to something else usually works. Bob Stayton Sagehill Enterprises b...@sagehill.net *From:* Mark Craig mark.cr...@gmail.com *Sent:* Thursday, April 18, 2013 9:25

Re: [docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-19 Thread Mark Craig
I have put together a small .fo and seen the issue with the FOP nightly build, so have mailed their user list. Thanks again. Mark On Fri, Apr 19, 2013 at 9:56 AM, Mark Craig mark.cr...@gmail.com wrote: With docbkx-tools if I set the FO processor extensions correctly and comment out

[docbook-apps] Eliminating soft hyphens shown in mid line?

2013-04-18 Thread Mark Craig
Hello, Apologies if this is really a FOP question. I'm a bit out of my depth. I've added some FO customization based on Bob Stayton's helpful suggestion on putting hyphenation within table cellshttp://www.mail-archive.com/docbook@lists.oasis-open.org/msg05030.html, adding soft hyphens after . in

[docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-18 Thread Mark Craig
: • .-­. • . . • . • .­-] • .\ • .-­ • .a • .Z Mark On Thu, Apr 18, 2013 at 3:23 PM, Mark Craig mark.cr...@gmail.com wrote: Hello, Apologies if this is really a FOP question. I'm a bit out of my depth. I've added some FO customization based on Bob Stayton's helpful suggestion on putting hyphenation within table

Re: [docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-18 Thread Mark Craig
? That would settle whether it is a FOP problem. Bob Stayton Sagehill Enterprises b...@sagehill.net From: Mark Craig Sent: Thursday, April 18, 2013 6:48 AM To: docbook-apps@lists.oasis-open.org Subject: [docbook-apps] Re: Eliminating soft hyphens shown in mid line? In fact it looks

Re: [docbook-apps] how email works

2012-04-18 Thread Mark Craig
Hello, The documentation at http://www.docbook.org/tdg51/en/html/email.html doesn't seem to give a definitive answer, In some processing environments, email may automatically generate a hypertext link (a mailto: URL). The 1.76.1 stylesheets definitely generate an active

Re: [docbook-apps] make.clean.html pre

2012-03-29 Thread Mark Craig
- Original Message - From: Mark Craig mark.cr...@gmail.com To: Jirka Kosek ji...@kosek.cz Cc: docbook-apps@lists.oasis-open.org Sent: Wednesday, March 28, 2012 6:49 AM Subject: Re: [docbook-apps] make.clean.html pre Thank you, Jirka, for your reply. I have filed 3512384: Wrap verbatim w

[docbook-apps] make.clean.html pre

2012-03-28 Thread Mark Craig
Hello, Since switching to make.clean.html=1 (with 1.76.1), I've been happy feeling like I can just change the CSS if need at some point to restyle HTML output in place. But I'm starting to think the XSL ought to wrap a pre element around pre-formatted content, not just because of

Re: [docbook-apps] inlinemedia figure

2012-03-27 Thread Mark Craig
Hello Jeff, You might try normalizing the DPI settings in the .png files, as described in http://stackoverflow.com/questions/4261838/xsl-fo-image-size-issue-with-pdfs Most of the .png files seem to start out at 72 or 96 DPI, whereas they may need to be 160 DPI or more to look right in the PDF.

Re: [docbook-apps] Customizing title page for PDF

2012-03-26 Thread Mark Craig
Yes, I see the same result when using fo/titlepage.xsl from the stylesheet distribution for example. However, if I use template/titlepage.xsl as described in http://www.sagehill.net/docbookxsl/TitlePageNewElems.html then I get an XSL stylesheet full of content. Hope it helps, Mark On Sun, Mar

Re: [docbook-apps] Generate relative longdesc on img?

2012-03-23 Thread Mark Craig
Sagehill Enterprises b...@sagehill.net - Original Message - From: Mark Craig mark.cr...@gmail.com To: docbook-apps@lists.oasis-open.org Sent: Sunday, March 18, 2012 1:04 AM Subject: Re: [docbook-apps] Generate relative longdesc on img? Thanks, Bob, for the explanation. Seems

Re: [docbook-apps] Generate relative longdesc on img?

2012-03-23 Thread Mark Craig
Nevermind, thanks, Bob, http://docbook.svn.sourceforge.net/viewvc/docbook?view=revisionrevision=9246 Regards, Mark On Mar 23, 2012, at 1:55 PM, Mark Craig wrote: Just checking… no objections apparently since last week. Should I have opened an issue somewhere to track removal of longdesc

[docbook-apps] Olink sitemap for chunked HTML?

2012-03-22 Thread Mark Craig
Hello, I'm stumped getting the sitemap right to resolve Olinks in chunked HTML. The Olinks between different files of the same document seem to come out fine. But Olinks between documents are broken. Bob Stayton's book, DocBook XSL: The Complete Guide, has solved lots of the DocBook XSL

Re: [docbook-apps] Olink sitemap for chunked HTML?

2012-03-22 Thread Mark Craig
=../../../otherproduct/bardocument/html/bardocumentTargetswebhelp;/document      /dir   /sitemap /targetset Peter On Thu, Mar 22, 2012 at 2:07 PM, Mark Craig mark.cr...@gmail.com wrote: Hello, I'm stumped getting the sitemap right to resolve Olinks in chunked HTML. The Olinks between different

Re: [docbook-apps] Generate relative longdesc on img?

2012-03-18 Thread Mark Craig
to be useless.  Any objections? Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Mark Craig To: docbook-apps@lists.oasis-open.org Sent: Friday, March 16, 2012 2:59 AM Subject: [docbook-apps] Generate relative longdesc on img? Hello, What HTML customization

[docbook-apps] Generate relative longdesc on img?

2012-03-16 Thread Mark Craig
Hello, What HTML customization serves to get relative paths in the longdesc attribute on img elements? The longdesc links and pages are fine, so it's not something noticeable when browsing. But img elements in HTML are coming out with absolute paths in longdesc attributes. For example: img

[docbook-apps] make.clean.html and Firefox handling of white-space: pre ?

2012-02-10 Thread Mark Craig
Hello, I liked setting xsl:param name=make.clean.html select=1 / and using white-space: pre; in the CSS. Of course, I did this expecting readers to be able to copy/paste the pre formatted content in a sort of WYSIWYG way. But I didn't test in Firefox until a reviewer mentioned that all the

Re: [docbook-apps] make.clean.html and Firefox handling of white-space: pre ?

2012-02-10 Thread Mark Craig
make.clean.html for other things but override this output to pre? Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Mark Craig mark.cr...@gmail.com To: docbook-apps@lists.oasis-open.org Sent: Friday, February 10, 2012 5:17 AM Subject: [docbook-apps

Re: [docbook-apps] Chunking and custom.css.source ?

2012-02-09 Thread Mark Craig
added so it takes precedence. Yet another reason to get the next release out soon. 8^) Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Mark Craig To: DocBook Apps Sent: Tuesday, February 07, 2012 11:07 PM Subject: [docbook-apps] Chunking

[docbook-apps] Chunking and custom.css.source ?

2012-02-07 Thread Mark Craig
Hello, What should I be doing to get the CSS from a custom.css.source file to be picked up in chunked HTML? Works fine for plain (non-chunked) HTML output with 1.76.1. Mail from last April makes it sound like there might have been a bug,

Re: [docbook-apps] Setting up a DocBook system

2011-11-19 Thread Mark Craig
Hello Richard, David Cramer is write in mentioning user-friendly editors. Templates/examples for typical documents might help, too. Few complaints from part-time or novice authors concern the build system. Instead, they get lost in markup choices or putting a document together from scratch.

Re: [docbook-apps] cacute missing in PDF only

2011-10-07 Thread Mark Craig
Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Mark Craig To: Bob Stayton Cc: docbook-apps@lists.oasis-open.org Sent: Thursday, October 06, 2011 2:17 AM Subject: Re: [docbook-apps] cacute missing in PDF only Thanks, Bob, for your help. I've set my

[docbook-apps] cacute missing in PDF only

2011-10-05 Thread Mark Craig
Hello, I have a ć (cacute, #263;) missing in PDF (not HTML or RTF). This seems to be the error: Oct 5, 2011 7:07:42 PM org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph ? (0x107, cacute) not available in font Helvetica-Bold. If I go into LibreOffice, I can enter *ć* in

[docbook-apps] XSL-FO size of embedded fonts?

2011-08-01 Thread Mark Craig
Hello, I'm weighing the value of embedding a font vs. sticking with the defaults in PDF, and am not sure whether to be surprised at how much embedding a font increases the size of small files. The font families are DejaVu TrueType. I am not using encoding-mode=single-byte in the font metrics.

Re: [docbook-apps] Draftmode image location

2011-05-25 Thread Mark Craig
Hello, Another alternative that seems to work across versions of the stylesheets as long as you have web access is to point to http://docbook.sourceforge.net/release/images/draft.png. Regards, Mark On Wed, May 25, 2011 at 9:40 PM, Barton Wright bwri...@streambase.comwrote: You could set up a

[docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
Hello, How does one insert script content, such as for Google Analytics, near the end of generated HTML? Chunking is turned off by popular reader demand. Setting user.footer.content does not appear to generate anything in the HTML. HTML generation is managed through docbkx-tools, which

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
, 2011 at 2:28 AM, Mark Craig mark.cr...@gmail.com wrote: How does one insert script content, such as for Google Analytics, near the end of generated HTML? Chunking is turned off by popular reader demand. Can you use a technique like this one? http://www.sagehill.net/docbookxsl

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
without chunking. Regards, Mark On Thu, May 19, 2011 at 3:45 PM, Mark Craig mark.cr...@gmail.com wrote: Hello, thanks for your suggestion. This is what I tried after I found user.footer.content only gets used when chunking. Trouble is, I can insert the file in the HTML following

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
surprised that a customization for HTML has any effect on your FO. Peter On Thu, May 19, 2011 at 9:45 AM, Mark Craig mark.cr...@gmail.com wrote: Hello, thanks for your suggestion. This is what I tried after I found user.footer.content only gets used when chunking. Trouble is, I can