publican update_po --langs=language
, where language
is the code for the new language that you want to add. You can add more than one language at a time, with the language codes separated by commas. For example, publican update_po --langs=ja-JP
creates the Japanese language directory and Japanese PO files, and publican update_po --langs=ja-JP,ko-KR
creates directories and PO files for both Japanese and Korean.
publican update_po --langs=es,de,fr
?
zh-CN
(Simplified Chinese as used in the People's Republic of China) and zh-TW
(Traditional Chinese as used in the Republic of China, on Taiwan). Even when only one variety is currently defined, it is always safest to include the country code so that, for example, a future update of Publican does not suddenly cause your German (de-DE
) documents to switch to Schweizerdeutsch (Swiss German, de-CH
) Common Content and headings.
publican update_po --langs=all
command.
publican build --help
command.
publican.cfg
?
publican help_config
command in a directory that holds any Publican document.
/usr/share/publican/
on Linux operating systems and in %SystemDrive%/%ProgramFiles%/publican/Common_Content
on Windows operating systems — typically, C:/Program Files/publican/Common_Content
.
extras
in your source language directory and use an xi:include
to pull in the code file.
mkdir en-US/extras
cp ~/samples/foo.c en-US/extras/.
xi:include
the sample file in your xml file
<programlisting> <xi:include parse="text" href="extras/foo.c" xmlns:xi="http://www.w3.org/2001/XInclude" /> </programlisting>
en-US/extras/foo.c
in your favorite editor without having to be concerned about how it will affect the XML.
files
in your source language directory it will be included in any tarballs or SRPM packages that Publican creates.
files
directory will not be available during the validation process so you can not xi:include
or otherwise embed any files in this directory in your XML.
alternatives --config java
and alternatives --config javac
, if the versions are different then selecting the same version in both can fix this problem.
alternatives
environment correctly, no fix has been determined for this situation.
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
when trying to build PDF. What is wrong?
make
run echo "FOP_OPTS='-Xms50m -Xmx700m'" > ~/.foprc
. This sets the initial heap space to 50 MB and allows it to grow to a maximum of 700 MB.
<para>
tags. Does Publican still do this?
<para>
tags while it transformed XML because empty <para>
tags broke earlier translation toolchains used within Red Hat and the Fedora Project. Empty <para>
tags are valid DocBook XML, and Publican no longer removes them.
<segmentedlist>
s work when I build PDFs?
<segmentedlist>
s. When <segmentedlist>
s are formatted as tables, the DocBook XSL limits the number of columns to two, and Publican formats <segmentedlist>
s as tables.
<programlisting>
tag that Syntax::Highlight::Engine::Kate does not recognize, you receive an error when you build your book. The first lines of the error message are similar to:
undefined language: JAVA at /usr/lib/perl5/vendor_perl/5.10.0/Syntax/Highlight/Engine/Kate.pm line 615.
cannot create plugin for language 'JAVA'
<programlisting language="Java">
works, but <programlisting language="java">
and <programlisting language="JAVA">
do not. The error message that you receive identifies the problematic language attribute.