Re: [docbook-apps] syntax highlighting in webhelp format

2014-05-06 Thread Bob Stayton
Hi, Can you import the file from the xhtml directory. I don't know how the urn: syntax is interpreted, but could you use something like: Bob Stayton Sagehill Enterprises b...@sagehill.net On 5/4/2014 11:02 PM, Natalie Kershaw wrote: Is anyone syntax highlighting programlistings in webhelp

Re: [docbook-apps] Syntax highlighting

2013-12-09 Thread Shaun McCance
On Mon, 2013-12-09 at 10:38 -0600, David Cramer wrote: > On 12/09/2013 08:10 AM, Shaun McCance wrote: > > Yelp uses jQuery.Syntax for syntax highlighting, which we've been pretty > > happy with. I've had no problems with it clobbering markup inside code > > blocks, which is something I deal with pr

Re: [docbook-apps] Syntax highlighting

2013-12-09 Thread David Cramer
On 12/09/2013 08:10 AM, Shaun McCance wrote: > Yelp uses jQuery.Syntax for syntax highlighting, which we've been pretty > happy with. I've had no problems with it clobbering markup inside code > blocks, which is something I deal with pretty often. That looks interesting. I experimented by adding s

Re: [docbook-apps] Syntax highlighting

2013-12-09 Thread Shaun McCance
On Sat, 2013-12-07 at 15:26 -0600, David Cramer wrote: > On 12/07/2013 01:38 AM, davep wrote: > > On 06/12/13 21:53, Norman Walsh wrote: > >> Hello world, > >> > >> A fair bit of effort in the DocBook stylesheets goes into parsing, > >> decomposing, annotating, and recomposing program listings for

RE: [docbook-apps] Syntax highlighting

2013-12-08 Thread Jan Tosovsky
On 2013-12-06 Norman Walsh wrote: > > I'm also tempted to abandon the XSL stylesheets and > work instead on a purpose-built HTML+CSS rendering > for printing. > While I don't plan to upgrade my generating workflow to XSL 2.0 stylesheets in the near future, I am quite curious whether the proposed

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Mike Maxwell
On 12/7/2013 5:05 PM, Frank Arensmeier wrote: Actually, there is a renderer that is able to generate PDF from HTML with really good results. Wkhtmltopdf (https://code.google.com/p/wkhtmltopdf/). There's also htmltolatex (with LaTeX to create the PDF): http://htmltolatex.sourceforge.net/ I'm

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Jirka Kosek
On 7.12.2013 23:05, Frank Arensmeier wrote: > Actually, there is a renderer that is able to generate PDF from HTML with > really good results. Wkhtmltopdf (https://code.google.com/p/wkhtmltopdf/). > It's basically a wrapper for the WebKit engine used by safari, chrome etc. > Not sure if the WebK

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Frank Arensmeier
> 7 dec 2013 kl. 21:35 skrev Jirka Kosek : > >> On 6.12.2013 22:53, Norman Walsh wrote: >> It appears that modern systems do this in the JavaScript layer on the >> client. They also use tables to render line numbers. >> >> I'm tempted to move in this direction. Comments? > > I have used both ap

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread David Cramer
On 12/07/2013 01:38 AM, davep wrote: > On 06/12/13 21:53, Norman Walsh wrote: >> Hello world, >> >> A fair bit of effort in the DocBook stylesheets goes into parsing, >> decomposing, annotating, and recomposing program listings for the >> purpose of adding line numbers to them. There's also a bunch

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Jirka Kosek
On 6.12.2013 22:53, Norman Walsh wrote: > It appears that modern systems do this in the JavaScript layer on the > client. They also use tables to render line numbers. > > I'm tempted to move in this direction. Comments? I have used both approaches. Problem with Javascript one is that it doesn't w

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Bob Stayton
On 12/6/2013 1:53 PM, Norman Walsh wrote: ... As long as I'm airing dirty laundry, I'm also tempted to abandon the XSL stylesheets and work instead on a purpose-built HTML+CSS rendering for printing. Hi Norm, What composition engines do you have in mind for rendering HTML+CSS to print? Bo

Re: [docbook-apps] Syntax highlighting

2013-12-06 Thread davep
On 06/12/13 21:53, Norman Walsh wrote: Hello world, A fair bit of effort in the DocBook stylesheets goes into parsing, decomposing, annotating, and recomposing program listings for the purpose of adding line numbers to them. There's also a bunch of work that goes into syntax highlighting them.

Re: [docbook-apps] Syntax highlighting - setting colours

2013-04-17 Thread Jirka Kosek
On 16.4.2013 18:36, John Brown wrote: > You must have this templates in xslthl mode like Jirka -- -- Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz ---

Re: [docbook-apps] syntax highlighting with xslt2/pygments/jython/saxon

2011-11-04 Thread Andreas Reuleaux
OK, thanks a lot. While your explanations are certainly very precise and I understand a lot better now, what's going on and how it is supposed to work, it is still not working for me (for html). - Will try to reduce my example document to the absolute minimum / dig further. -Andreas "Mauritz Je

RE: [docbook-apps] syntax highlighting with xslt2/pygments/jython/saxon

2011-11-02 Thread Mauritz Jeanson
| -Original Message- | From: Andreas Reuleaux | java \ | -cp | "/opt/saxonhe/saxon9he.jar:/opt/dbk/xslt2/lib/docbook-xsl2-saxon.jar:/usr/sh are/java/jython.jar" net.sf.saxon.Transform \ | -init:docbook.Initializer \ | -s:myfile.dbk \ | -xsl:fo-xslt2.xsl \ | -o:myfile.fo \ | -xi

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Thanks very much man, I hope you're asleep now, but here's my response if you come back tomorrow. *chuckles* Nah... no such luck... ;-) First I got: $ ./build.sh Error at xsl:import on line 5 of file:/w

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: > Thanks very much man, I hope you're asleep now, but here's my > response if you come back tomorrow. *chuckles* Nah... no such luck... ;-) > First I got: > > $ ./build.sh Error at xsl:import on line 5 of > file:/www/notlive/Hig

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Alright... my last attempt for today since it's getting late over here. Attached you'll find a new version of my example project. It now has a build.sh file. I added all paths you mentioned in your previous mails and it sh

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Alright... my last attempt for today since it's getting late over here. Attached you'll find a new version of my example project. It now has a build.sh file. I added all paths you mentioned in your previous mails and it should produce an index.ht

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: >>> If you get yours to run from command line then I give up too! thanks Juri >> As for giving up... ANT is not the only way this could be done... >> writing a bash script would serve the same purpose. >> Would that be of more use to

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Alright... let's see... I'll try to summarize what I have in terms of settings... maybe you can spot what's missing: The Java call to transform from Docbook to HTML: java \ - -classpath [Path to saxon.jar]:[

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: But that's about the last idea... for when I use your command-line in the test directory (with adjusted paths), I do get the highlights. So, even if you think I am a moron for even suggesting it, could you che

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: >> But that's about the last idea... for when I use your command-line in >> the test directory (with adjusted paths), I do get the highlights. >> So, even if you think I am a moron for even suggesting it, could you >> check your style

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Sure, actually, now I've switched to this one, mfsite.xsl, here it is: This is most peculiar. I replaced the stylesheet styles/custimization.html.xsl with the one you provided and adjusted the paths so that

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Hi Mike, Could you send me the following file (if possible): /www/notlive/docbook/docbook-xsl-1.74.3-pre/chunkohp.xsl It is not part of the official Stylesheet release, it seems, so I am assuming that that'

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Hi Mike, Could you send me the following file (if possible): > /www/notlive/docbook/docbook-xsl-1.74.3-pre/chunkohp.xsl It is not part of the official Stylesheet release, it seems, so I am assuming that that's your custimization lay

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: > > Juri Memmert wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: RIPEMD160 >> >> Mike wrote: >> I could send you a version of my build scripts (using ANT) with an example, if that helps. >>> Yes please. At this po

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: I could send you a version of my build scripts (using ANT) with an example, if that helps. Yes please. At this point I need all the help I can get. I'm following all directions 100% and I still get "XSLT Hi

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: >> I could send you a version of my build scripts (using ANT) with an >> example, if that helps. >> > > Yes please. At this point I need all the help I can get. I'm following > all directions 100% and I still get "XSLT Highlighter:

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: (Bump.) Has *anyone* been able to successfully get syntax highlighting to work in linux with the latest DocBook, Saxon 6.5.5, and xslthl-2.0.1? I want to know if this is even possible or a fatal bug... Yes

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-23 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: > (Bump.) Has *anyone* been able to successfully get syntax highlighting > to work in linux with the latest DocBook, Saxon 6.5.5, and xslthl-2.0.1? > > I want to know if this is even possible or a fatal bug... Yes, I have gotten it

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-23 Thread Mike
Mike wrote: Mauritz Jeanson wrote: | -Original Message- | From: Mike | | I'm following the instructions here to make syntax | highlighting work, | are these the wrong instructions to follow? | | http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html That documentatio

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-22 Thread Mike
Mauritz Jeanson wrote: | -Original Message- | From: Mike | | I'm following the instructions here to make syntax | highlighting work, | are these the wrong instructions to follow? | | http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html That documentation is not co

RE: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-22 Thread Mauritz Jeanson
| -Original Message- | From: Mike | | I'm following the instructions here to make syntax | highlighting work, | are these the wrong instructions to follow? | | http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html That documentation is not completely up-to-date, unfortun

Re: [docbook-apps] Syntax Highlighting in synopsis elements

2008-11-25 Thread Jirka Kosek
Mathias Schindler wrote: > In Bob Stayton's "DocBook XSL: The Complete Guide" it says that > "Highlighting works with programlisting, screen, and synopsis elements > that have a language attribute.". But in your source there is no synopsis element, only classsynopsis etc. Generally syntax highli

Re: [docbook-apps] syntax highlighting with xslthl.jar

2007-05-13 Thread Thierry B.
Mauritz Jeanson a écrit : -Original Message- From: Thierry B. just to avoid that someone else search for a long time like me: - use java = 1.5, not 1.4 or 1.6. While all other docbook things I do works with my previous java 1.4.2, I got a java error with xslthl.jar with this java

RE: [docbook-apps] syntax highlighting with xslthl.jar

2007-05-11 Thread Mauritz Jeanson
> -Original Message- > From: Thierry B. > > just to avoid that someone else search for a long time like me: > > - use java = 1.5, not 1.4 or 1.6. While all other docbook things I do > works with my previous java 1.4.2, I got a java error with > xslthl.jar > with this java version an

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Keith Fahlgren
On 3/15/07, Keith Fahlgren <[EMAIL PROTECTED]> wrote: On 3/15/07, Keith Fahlgren <[EMAIL PROTECTED]> wrote: > On 3/15/07, Bob Stayton <[EMAIL PROTECTED]> wrote: > > Well, I tried your command and it did not work. When I replaced the -jar > > $SAXON with the classname com.icl.saxon.StyleSheet, it

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Keith Fahlgren
On 3/15/07, Keith Fahlgren <[EMAIL PROTECTED]> wrote: On 3/15/07, Bob Stayton <[EMAIL PROTECTED]> wrote: > Well, I tried your command and it did not work. When I replaced the -jar > $SAXON with the classname com.icl.saxon.StyleSheet, it worked. Anyone know > why that would happen? There were s

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Keith Fahlgren
On 3/15/07, Bob Stayton <[EMAIL PROTECTED]> wrote: Well, I tried your command and it did not work. When I replaced the -jar $SAXON with the classname com.icl.saxon.StyleSheet, it worked. Anyone know why that would happen? More like this? $ ./highlight-fo6.sh -o ch09.fo ch09.xml /work/tools/ke

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Bob Stayton
Keith Fahlgren" <[EMAIL PROTECTED]> To: "Bob Stayton" <[EMAIL PROTECTED]> Cc: "apps docbook" Sent: Thursday, March 15, 2007 7:47 AM Subject: Re: [docbook-apps] Syntax Highlighting On 3/15/07, Bob Stayton <[EMAIL PROTECTED]> wrote: I've used xslthl.jar

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Keith Fahlgren
On 3/15/07, Bob Stayton <[EMAIL PROTECTED]> wrote: I've used xslthl.jar with 1.72.0 and Saxon 6.5.5. I think it is the best approach. Ah, glad to see that someone got it going.[1] :-) Can you provide more details on how you are using it? Yeah, here is my Saxon6.5 attempt: $ ./highlight-fo

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Bob Stayton
I've used xslthl.jar with 1.72.0 and Saxon 6.5.5. I think it is the best approach. Can you provide more details on how you are using it? Bob Stayton Sagehill Enterprises DocBook Consulting [EMAIL PROTECTED] - Original Message - From: "Keith Fahlgren" <[EMAIL PROTECTED]> To: "apps do