Re: [docbook-apps] How do I highlight inline text ?

2010-04-10 Thread Dave Pawson
Just one comment. 


On Sat, 10 Apr 2010 19:29:20 -0400
"Robert Lucente"  wrote:


> a.. Create a cascading style sheet w/ a file name of key_words.css w/
> the following entry
> 
> .key_words { background: yellow; }

Nit picking, use semantic names for the attribute?
I may be wrong here. 



a.. Create a DOS batch file setting the following parameters
> 
>   1.. emphasis.propagates.style: 1
> 
>   2.. html.stylesheet: file://localhost/C:\ypl\doc_book\key_words.css
> 
> a.. The DOS batch file name was using_role_as_class_name.bat and it
> contained the following contents
> 
> REM
> REM Set the classpath
> REM
> set classpath=.;
> REM
> REM
> REM Output contents of environment variables
> REM
> set
> REM
> REM
> REM Generate HTML from DocBook XML
> REM
> "C:\Program Files\Java\jre1.5.0_22\bin\java" ^
>   -cp C:\ypl\java\xalan.jar;C:\ypl\java\serializer.jar
> org.apache.xalan.xslt.Process ^
>   -v ^
>   -xsl "C:\ypl\doc_book\xsl_1.75.2\html\chunk.xsl" ^
>   -in using_role_as_class_name.doc_book_xml ^


This is my disagreement with how you have done it.

>   -param "emphasis.propagates.style" "1" ^
>   -param "html.stylesheet"
> "file://localhost/C:\ypl\doc_book\key_words.css" ^ -param "base.dir"
> "html/" EXIT

I do it differently is the best way I can say this.
1. I didn't know I could set parameters on the command line :-)
2. I always use an 'import' method to set my parameters


Create a normal stylesheet
First statement inside xsl:stylesheet






Note the quoted css file
Note the forward / not \

HTH


-- 

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] Autodesk Web Help

2010-04-10 Thread Kasun Gajasinghe
Hello,

Thank you for the link, honyk. The UI is really cool. I submitted a proposal
to implement a Web Help system for DocBook as my Google Summer of Code
project and this helps me a lot when it comes to designing the Web
Interface. As well as this is useful in getting to know the absolute
features required. But, little sad as source seems to be not available! :)

Regards,
--
---
Kasun Gajasinghe,
Dept. of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.



On Sat, Apr 10, 2010 at 12:56 AM, honyk  wrote:

> Hello Everyone,
>
> after some time of work in Autodesk Inventor I am very impressed by its
> help
> system. The program itself is a Windows application and the help is
> provided
> in compiled HTML format. Now I've found this help is available also online.
> Here is a typical page: http://bit.ly/b443FK
>
> There is a navigation with well known buttons
> Contents/Index/Search/Favorities, but interesting is also the document
> window. There are small forward, back and top links with the appropriate
> tooltips as well as Show in content, Add to Favorities and Home links. In
> the header there is also clickable full logic path to the given page.
>
> Another feature I like is a tab approach. Division differs from page to
> page, here the content is divided into Concept/Procedure/Quick Reference
> sections.
>
> I think all this is generated using some sophisticated tool, but I can
> imagine to get the same output from my DocBook document.
>
> Isn't it a nice challenge?
>
> Regards,
> Jan
>
> PS: I have nothing to do with Autodesk...
>
>
>
> -
> 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] How do I highlight inline text ?

2010-04-10 Thread Robert Lucente
Hi guys,

Thanks for all your help. I got it to work.

Request a quick review to make sure that I did not do something silly.

In case the email below is hard to read, please go to

http://www.ypl.com//build_windows_machines/install_applications/doc_book_to_
html/html_deep/ch09s03.html

a.. Create a cascading style sheet w/ a file name of key_words.css w/ the
following entry

.key_words { background: yellow; }a.. Create a file containing DocBook xml
tags w/ a file name of using_role_as_class_name.doc_book_xml w/ the
following entries






Some Book Title





Some Chapter Title



First sentence with no highlighting.



Second sentence with highlighting which starts
here and goes until here but does not highlight entire sentence.




a.. Create a DOS batch file setting the following paramters

  1.. emphasis.propagates.style: 1

  2.. html.stylesheet: file://localhost/C:\ypl\doc_book\key_words.css

a.. The DOS batch file name was using_role_as_class_name.bat and it
contained the following contents

REM
REM Set the classpath
REM
set classpath=.;
REM
REM
REM Output contents of environment variables
REM
set
REM
REM
REM Generate HTML from DocBook XML
REM
"C:\Program Files\Java\jre1.5.0_22\bin\java" ^
-cp C:\ypl\java\xalan.jar;C:\ypl\java\serializer.jar
org.apache.xalan.xslt.Process ^
-v ^
-xsl "C:\ypl\doc_book\xsl_1.75.2\html\chunk.xsl" ^
-in using_role_as_class_name.doc_book_xml ^
-param "emphasis.propagates.style" "1" ^
-param "html.stylesheet" 
"file://localhost/C:\ypl\doc_book\key_words.css" ^
-param "base.dir" "html/"
EXIT

-Original Message-
From: Dave Pawson [mailto:da...@dpawson.co.uk]
Sent: Thursday, April 08, 2010 6:50 AM
To: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] How do I highlight inline text ?


On Thu, 8 Apr 2010 06:13:09 -0400
"Robert Lucente"  wrote:

> Thanks for reminding me about color blind people and the link to the
> colors.
>
> Since I am interested in "Highlight text" (text with a background
> color), I should really be using the CSS background-color property.
> My bad.

No, not bad. My favourite quote. Everyone needs the idiot sheet
at least once.

I certainly did. I'm now a confirmed  CSS convert. Just
irritated that it hasn't kept pace with other developments,
or at least not in the browsers.
  Its nearly brilliant. It's certainly good.

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] Ordered list and line alignment in pdf-files

2010-04-10 Thread Bob Stayton
Hi,
What you are seeing is that each of the list-item-label and list-item-body 
blocks are aligned to the top of the row (the "before" side). Normally that 
isn't a problem because both parts are text.  But when you added the inline 
graphic, that line became taller, so the text no longer aligns.

The solution is to add a relative-align="baseline" property to each 
fo:list-item.  The easiest way to do that is with this attribute-set, which is 
applied to each fo:list-item:


  baseline


I can't think of a reason why this should not be the default setting for these 
lists.  Unless someone objects, I'll add it for the next release.

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


  - Original Message - 
  From: Claes Sandberg 
  To: docbook-apps@lists.oasis-open.org 
  Sent: Saturday, April 10, 2010 10:00 AM
  Subject: [docbook-apps] Ordered list and line alignment in pdf-files


  Hi,

  I'm trying to include inline images (small icons) to a step-list using 
DocBook XML V4.5, docbook-xsl.1.75.1 and XEP (4.16) to produce pdf-files.
  The problem I experience is that the text row is aligned below the baseline 
of the digit in the ordered list.
  The image is aligned with the baseline of the text.

  Example screenshot: http://imgur.com/QVy5c.jpg

  Is there any way to come around this problem? 

  FO and xml-source attached below.

  Best regards,
  Claes
  --


  To select a new style, do the 
following:1.Click .2.Select  Style.3.Select a predefined style, or 
click Custom scheme to
  select a color of your 
choice.

  To select a new style, do the following:
  Click .
  Select  
Style.
  Select a predefined style, or click Custom 
scheme to
  select a color of your choice.

  ___
  Köp bläckpatron, toner eller fotopapper för 1 kr hos Inkclub. Beställ före 
kl. 19 för 
  leverans till din hemadress redan nästa vardag. Det är bekvämt, snabbt och 
enkelt. Beställ på 
  www.inkclub.com. 


[docbook-apps] Ordered list and line alignment in pdf-files

2010-04-10 Thread Claes Sandberg
Hi,
 
I'm trying to include inline images (small icons) to a step-list using
DocBook XML V4.5, docbook-xsl.1.75.1 and XEP (4.16) to produce
pdf-files.
The problem I experience is that the text row is aligned below the
baseline of the digit in the ordered list.
The image is aligned with the baseline of the text.
 
Example screenshot: http://imgur.com/QVy5c.jpg
 
Is there any way to come around this problem? 
 
FO and xml-source attached below.
 
Best regards,
Claes
--


To select a new style, do the
following:1.Click
.2.Select
 Style.3.Select a
predefined style, or click Custom
scheme to
select a color of your
choice.
 
To select a new style, do the following:
Click
.
Select 
Style.
Select a predefined style, or click Custom
scheme to
select a color of your choice.


___Köp bläckpatron, toner eller fotopapper för 1 kr hos 
Inkclub. Beställ före kl. 19 för leverans till din hemadress redan 
nästa vardag.  Det är bekvämt, snabbt och enkelt.  Beställ på 
http://secure-dk.imrworldwide.com/cgi-bin/b?ci=aller-kampanj-se&cg=spray&tu=http%3A%2F%2Fwww.inkclub.com%2Fspraylinkfeb10";
 target="_blank">www.inkclub.com.

[docbook-apps] roundtrip - normalise-common.xsl - customization and section numbering

2010-04-10 Thread Mathieu Malaterre
Hi there,

  I am trying to customize normalise-common.xsl to remap the custom
style to proper 'known names' for wordml rountrip. I am hitting a
small issue here. Here is my custom normalise-common.xsl:

  


  sect1-title
  sect2-title
  sect3-title
  sect4-title
  sect5-title
...

However I do not understand:
1. how I can handle Heading6, Heading7 and Heading8 (they are present
in my original Word document).
2. This might be related to (1). How do I handle mismatch in original
document such as:

ERROR "bad-title": title style "sect4-title" mismatches parent "sect2"
ERROR "bad-title": title style "sect5-title" mismatches parent "sect3"

Basically would it be possible to handle the generic 'section' docbook element ?

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