Can anyone help me...

Here should go questions about transforming XML with XSLT and FOP.
kwangminlee
Posts: 1
Joined: Thu Jan 27, 2011 5:43 am

Can anyone help me...

Post by kwangminlee »

I'm newbie on DocBook.

I need some help on how to work in order to:

1. Is it possible to support Korean characters? Sometimes the characters do not display correctly when changing to PDF.

2. How can make the cover page?
I want to have a logo with 2 lines of text next to it, the title, then the subtitle, and at the end a few lines of info.
Also one word of header and one at the footer.

3. Have the same header on every page (including TOC, except the cover) with 2 columns if possible and a black line separating it from the rest of the body.
Same thing with the footer (but with 3 columns).
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Can anyone help me...

Post by sorin_ristache »

Hello,
kwangminlee wrote:I'm newbie on DocBook.
I hope you are not a newbie in XSLT too because you will need some basic XSLT and XSL-FO skills for points 2 and 3 :)
kwangminlee wrote:1. Is it possible to support Korean characters? Sometimes the characters do not display correctly when changing to PDF.
All Unicode code points are supported both in the Oxygen editor and in the PDF output of a DocBook transformation as long as you have a font which covers your needed code points (for Korean characters in your case) installed on your computer and which can be read from a Java application. Usually a TrueType font (a font file with the .ttf extension) is recommended but some Type 1 fonts may also be appropriate.

You can test the font in the Oxygen editor to see if it can display Korean characters correctly by setting it as the Editor font from menu Options -> Preferences -> Font -- Editor.

For setting the font to be included in the PDF output of the DocBook transformation please follow the procedure from the Oxygen user manual and let us know if you run into difficulties with that.
kwangminlee wrote:2. How can make the cover page?
I want to have a logo with 2 lines of text next to it, the title, then the subtitle, and at the end a few lines of info.
Also one word of header and one at the footer.
You should start with the process of customizing the title page of the PDF output generated by the DocBook XSL stylesheets. Oxygen uses the DocBook XSL stylesheets for generating the output of DocBook transformations. They are located in the folder [Oxygen-install-folder]/frameworks/docbook/xsl. The stylesheets for PDF output are located in [Oxygen-install-folder]/frameworks/docbook/xsl/fo.
kwangminlee wrote:3. Have the same header on every page (including TOC, except the cover) with 2 columns if possible and a black line separating it from the rest of the body.
Same thing with the footer (but with 3 columns).
Your customization is possible with the DocBook XSL stylesheets. Please start with the process of customizing the headers and footers of the pages of PDF output.


Regards,
Sorin
Post Reply