$
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 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
.
files
in your source language directory it will be included in any tarballs or SRPM packages that Publican creates.
Important
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.
java.lang.NullPointerException
and no PDF file is produced. What is wrong?
$
publican create
command. If the problem is not just with one particular document, you probably have a mismatch between the Java Runtime Environment (JRE) and the Java Development Kit (JDK) in use on your system. If you have a JDK installed, FOP requires that the JDK is of the same version as the JRE. Furthermore, FOP cannot use the GNU Compiler for Java (GCJ).
alternatives --config java
and alternatives --config javac
to determine which JRE and JDK are in use, then select versions that match and which do not have gcj
in their name. For example, the following Java configuration shows a matching JRE and JDK that allow PDFs to build:
$
alternatives --config java
There are 3 programs which provide 'java'. Selection Command ----------------------------------------------- 1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java * 2 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java + 3 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java Enter to keep the current selection[+], or type selection number:
$
alternatives --config javac
There are 3 programs which provide 'javac'. Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javac 2 /usr/lib/jvm/java-1.6.0-openjdk/bin/javac 3 /usr/lib/jvm/java-1.5.0-gcj/bin/javac Enter to keep the current selection[+], or type selection number:
alternatives
environment correctly. No fix has been determined for this situation.
java.lang.NullPointerException
errors and using the alternatives
command to ensure that the JRE and JDK match.
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
when trying to build PDF. What is wrong?
$
publican build
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 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.
#!/bin/sh # Jeff Fearn 2010 ASPELL_EXCLUDES=programlisting,userinput,screen,filename,command,computeroutput,abbrev,accel,orgname,surname,foreignphrase,acronym,hardware for file in `find en-US -wholename '*/extras/*' -prune -o -name \*.xml -print`; do echo "Processing $file"; aspell --list --lang=en-US --mode=sgml --add-sgml-skip={$ASPELL_EXCLUDES} < $file | sort -u; echo; done
<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.
sudo yum install bash-completion
.
~/.bashrc
file:
# Use bash-completion, if available if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi
source ~/.bashrc
.
ulimit -n 8192
to change the limit for the current shell.
/etc/security/limits.conf
and add these two lines:
* soft nofile 8192 * hard nofile 8192