Nickolay Pakoulin wrote:
> I have a docbook file with some Cyrillics characters. When I convert
> it to PDF using XMLEditor all cyrillics is presented as '#' in
> generated pdf. The intermediate __doc.fo file preserves cyrillics, but
> it is lost during fo->pdf transformation.
>
> I know how to solve the problem in standalone FOP: by specifying custom
> fonts in configuration files. I failed to find any ways to configure
> FOP plugin for XML Editor, maybe I am missing something?
FOP can be configured by passing it parameters.
* Edit <XXE_install_dir>/addon/config/docbook/xslMenu.incl.
* Go to command docb.toPS.
* The invocation of FOP looks like this:
---
<processFO processor="FOP" file="__doc.fo" to="__doc.%0">
<parameter name="renderer">%0</parameter>
<parameterGroup name="docb.toPS.FOPParameters" />
</processFO>
---
* You can either:
** directly add one or more parameters after
---
<parameter name="renderer">%0</parameter>
---
** OR, more elegant, define a "docb.toPS.FOPParameters" parameterGroup
in your ~/.xxe/addon/customize.xxe
---
<parameterGroup name="docb.toPS.FOPParameters">
<parameter name="param1">val1</parameter>
<parameter name="param2">val2</parameter>
<parameter name="param3">val3</parameter>
...
</parameterGroup>
---
Which parameter to add? Well, you need to consult FOP documentation for
that.
A parameter corresponds to the key/value of an entry in the
configuration file.
But I don't know if this is sufficient to solve your problem.
If this is not sufficient, a possible (really dirty) workaround consists
in replacing conf/config.xml by your own, modified, conf/config.xml in
the fop.jar bundled with our plugin.
---
PS: I'm not really sure that what I'm saying can be used to solve your
problem. I've never tested this.