The author of this book is available for helping with DocBook or other XML publishing projects. Installing FOP · Using FOP · Using other XSL-FO processors. Docbook is easy to learn, easy to write, and does things other text To output to PDF, tell FOP to register your fonts with your file. And since my entire DocBook chain was built from open source, I had to use Apache FOP. Apache FOP has a long history. For some reason, it.

Author: Yorr Kigazshura
Country: Central African Republic
Language: English (Spanish)
Genre: Marketing
Published (Last): 10 November 2012
Pages: 198
PDF File Size: 9.54 Mb
ePub File Size: 9.69 Mb
ISBN: 677-5-67222-240-9
Downloads: 91858
Price: Free* [*Free Regsitration Required]
Uploader: Kanos

The distribution comes as a compressed zip file with everything you need.

Printed output options Page layout Paper size Finished page size Left and right margins Top and bottom margins Indenting body text Landscape documents Double sided Multi-column Double spacing Typography Body and title font families Font sizes Using renderas to style section titles Chapter and section numbering Depth of section numbering Numbering book parts Page breaking Keep-together processing instruction Soft page breaks Hard page breaks PDF bookmarks Extra blank lines Cross reference page numbers Docbook icon graphics Admonition graphics Callout icons Printing one dlcbook Crop marks Part III.

In Antenna House, the extension is an attribute named axf: Another thing I needed to add was language information for my so for Croatian language docboom now looks like this:. Unpack the archive FOP is distributed as a zip file, which can be opened on almost all systems. Although doxbook people will run FOP using its included convenience scripts, it is useful to know where the files are.

FOP is more feature complete for example, callouts are processed inside literal layouts and arguably produces nicer looking output. Program listings Formatting listings Tab expansion Fitting text Full-width examples Reducing font size Breaking long lines External code files Missing text Using XInclude for text inclusions Annotating program listings Line annotations Line numbering Callouts Callouts on imported text Callouts on graphics Syntax highlighting Chapter FOP will convert a.


The value you use should be less than the installed memory on the system, and should leave enough memory for other processes that may be running. Accented characters are replaced with hashes if you do not use a font that supports multi-byte characters. You can use the fonts name in all places where the stylesheets are referring to a font name.

It is highly recommended that you not use version 0.

Apache FOP is providing some utilities for generating font metrics, however none of that is based on Maven. You probably want the binary version rather than the source version. Some products provide a command line interface or convenience script.

Part 2. FO Parameter Reference

Sometimes it is a project requirement but more often than that it is just more efficient having a docvook to which you can refer users to and stop waisting you precious time explaining the fundamentals of content management systems to novice users instead of actually doing what you are payed for.

DocBook files are validated, parsed and translated vocbook presentation file formats using a combination of applications collectively called a DocBook tool chain. Take a look ad DocBook samples he provides.

However, just generating the files is not going to make a huge difference. These are examples of optional dblatex output customization and are used by a2x 1. For some reason, it seems impossible to ever arrive at a version 1. DocBook toolchains can also optionally generate separate chunked linked HTML pages for each document section. All of the arguments to the command are in the form of options, and they can be presented in any order. In Arbortext, the element is fo: The following example assumes the FOP.

So the below will change the body font to Calibri.

Depending on the memory configuration of your machine, your FOP process may fail on large documents with a java. This example is run on MS Windows from a Cygwin shell prompt: I will not contemplate on the DocBook syntax as there are various sources on the internet that will teach you how to use the DocBook syntax for writing.

The versions I used at Sun unfortunately never supported the keep-with-next poperty, which resulted in weird page-endings, that I then had to manually fix. This file is not used directly but is included in all the following drivers. The problems is that these fonts do not have support for all the characters you are probably using if your are converting a document that is not written in English. This produces a more usable index. Note For a long time, version 0. The stylesheets are used in conjunction with an XML parser such as xsltproc 1.


It may be that your system is not allocating enough memory to the Java Virtual Machine. Setting up the tools Chapter 1. A software framework that allows software components to work together. Feel free to plough through the FOP documentation to understand what it is about.

You can increase the memory allocation by adding a -Xmx option to any Java command.

DocBook, FOP and Fonts

I am using the directory structure he created as well as sample files, with little modifications. You can change what the message says in a customization layeror you could define it as an empty template there to turn off the message entirely.

If the DocBook lang attribute is set then things like table of contents, figure and table captions and admonition captions will be output in the specified language setting the AsciiDoc lang attribute sets the DocBook lang attribute.

The version numbers shown here may differ from the ones in your distribution. If you are using the Arbortext processor, then set the arbortext. If you are using XEP, then set the xep.

However, that has been solved with the latest versions, and I think the output generated by the DocBook stylesheets can be quite ok. You also need to make sure the font metrics can be found. For a docobok time, version 0. See the a2x 1 man page for more details.