The "FOP" preferences sheet is available only when add-on "Apache FOP 1.x XSL-FO processor plug-in" has been installed.
By default, only the 14 built-in fonts: Times, Helvetica, Courier, Symbol and ZapfDingbats are used in the generated PDF. The above preferences sheet allows to specify which custom TrueType (.ttf
) fonts are to be embedded in the generated PDF.
This facility is useful in the following two cases:
The 14 PDF standard fonts (Helvetica, Times, Courier, etc), which are used by default by FOP, have glyphs only for the Western languages. If, for example, you convert a DocBook document written in Russian to PDF, the generated PDF will mainly contain the '#' placeholder character. Fortunately, widely available TTF fonts such as Microsoft® Arial, Times New Roman and Courier New or the DejaVu fonts have glyphs for almost all the languages of the world.
Use fonts nicer than the 14 PDF standard fonts.
Click
.Note that the
button is grayed if the Arial font is not found in the standard fonts folder of your system.Click
.Restart XMLmind XML Editor.
Click
.This displays the following dialog box:
Choose the .ttf
file containing font "Georgia".
On Windows, for permissions reasons, there is no way to pick a font file from the " However, after you do this, do not forget to select each entry added by the drop action and then click to possible change or complement what's have been automatically specified there. |
Specify the following alias: serif.
Click
.Click
.Choose the .ttf
file containing font "Georgia Bold".
Specify the following alias: serif, Bold.
Click
.Click
.Choose the .ttf
file containing font "Georgia Italic".
Specify the following alias: serif, Italic.
Click
.Click
.Choose the .ttf
file containing font "Georgia Bold Italic".
Specify the following alias: serif, Bold, Italic.
Click
.Click
.Doing this automatically creates a standard FOP configuration file in
. User preferences directory XXE_user_preferences_dir
/fop/fop.confXXE_user_preferences_dir
is documented in Section 6, “The "Preferences" dialog box”.
It is recommended to repeat the above steps in order to specify fonts replacing Helvetica, that is, fonts having a sans-serif alias and fonts replacing Courier, that is fonts having a monospace alias.
Restart XMLmind XML Editor.
The "XEP" preferences sheet is available only when add-on "RenderX XEP XSL-FO processor plug-in" has been installed.
XEP preferences are almost identical to FOP preferences. The 3 differences are:
It is possible to install both the "RenderX XEP XSL-FO processor plug-in" add-on and the "Apache FOP 1.x XSL-FO processor plug-in" add-on. When this is the case, by default, XEP supersedes FOP. The " " check-box, found only in the XEP preferences sheet, lets you change this.
Some fonts have licensing restrictions that forbid embedding them in a PDF file. RenderX XEP enforces these licensing restrictions, not Apache FOP. XMLmind XML Editor has currently no way to detect these licensing restrictions, therefore you may follow the above procedure and end up with glyphs still missing in the generated PDF.
The standard XEP configuration file is created in
.XXE_user_preferences_dir
/xep/xep.conf
Specifies the suffixes of the files that should be opened by XXE as plain text files (that is, not XML files). A file suffix is case insensitive. If a suffix does not start with a dot (e.g. "makefile
") then this “suffix” is considered to a file base name and not a file suffix.
Specifies the text encoding (e.g. Windows-1252 on Windows for a Western PC) to use when saving a plain text file to disk.
Notes:
Choosing "
" implies also saving the original Byte Order Mark (BOM) if a one was there when opening the text file in XXE.Special values UTF-16BE
, UTF-16LE
and UTF-8
encodings and also add the corresponding BOM when doing so.
This preference is ignored when an encoding directive is found at the beginning of the text file to be saved. For example, this CSS stylesheet will always be saved using encoding " @charset "iso-8859-1";
body {
font-family: sans-serif;
} Other example, this Markdown file will always be saved using encoding " <!-- -*- coding: iso-8859-1 -*- -->
Heading
=======
## Sub-heading
Paragraphs are separated
by a blank line. (The above example works because XXE understands the GNU Emacs file variable called " |
Specifies the line separator (e.g. CR+LF, that is, "\r\n
" , on Windows) to use when saving a plain text file to disk.
If Text is selected, the JSON format add-on is made inactive and JSON files are treated by XXE as plain text files.
If XML is selected, the JSON format add-on is actived and JSON files are treated by XXE as if they were XML files.
The XML representation of JSON used by the JSON format add-on is documented in "JSONx, an XML Encoding for JSON". |
Specifies the line indentation used when saving JSON files. The recommended indentation for JSON files is 4 space characters. Value 0 means no indentation at all, resulting in a compact JSON file containing a single line of text.
|