Thank you for your reply. I have tried using some of the trunk
versions of FOP, but in all cases I get an exception:
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)
Ljava/util/Iterator;
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(Elemen
tMappingRegistry.java:74)
at
org.apache.fop.fo.ElementMappingRegistry.<init>(ElementMappingRegist
ry.java:66)
at
org.apache.fop.apps.FopFactory.<init>(FopFactory.java:166)
at
org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190)
at
org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java
:124)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:208)
Currently I think I'm going to give up. I have no problems with the
arabic text in all the other formats and I'm possibly just going to
convert the HTML into PDF and then settle for that.
On Thu, 19 Apr 2012 06:41:24 +0200 Glenn Adams <[email protected]>
wrote:
>firstly, FOP 1.0 does not support Arabic or bidirectional
>languages;
>however, the current development trunk, which will lead to a new
>version
>FOP 1.1, does support Arabic; to download a nightly build snapshot
>of the
>current trunk, see [1]; for preliminary documentation on complex
>scripts
>support, see [2]; pay close attention to supported fonts;
>
>secondly, the $HOME/.foprc file is for configuring the fop shell
>script,
>e.g., setting shell or environment variables; this is different
>from using
>an fop.xconf file with the Fop java application; you need to
>specify a
>command line option to use an xconf configuration file, e.g., fop -
>c
>fop.xconf ..., more about which see [3]
>
>
>[1] http://ci.apache.org/projects/xmlgraphics/fop/snapshots/
>[2] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html
>[3] http://xmlgraphics.apache.org/fop/trunk/configuration.html
>
>On Wed, Apr 18, 2012 at 10:14 PM, <[email protected]>
>wrote:
>
>> Hi.
>>
>> I'm on Debian Linux trying to change the default font for FOP so
>> that the font contains Arabic glyphs.
>>
>> When I run FOP I get the error:
>>
>> .foprc: 1: Syntax error: newline unexpected
>>
>> My .foprc looks like this:
>>
>> <fop version="1.0">
>> <renderers>
>> <renderer mime="application/pdf">
>> <fonts>
>> <auto-detect/>
>> </fonts>
>> </renderer>
>> </renderers>
>> </fop>
>>
>> If I squash that hole section together into a single line, I
>> instead get this error:
>>
>> .foprc: 1: Syntax error: redirection unexpected
>>
>> I'm using FOP Version 1.0.
>>
>> Is this a bug in FOP or is there a way around it?
>>
>> Best regards
>>
>> Martin
>>
>>
>> -----------------------------------------------------------------
>----
>> To unsubscribe, e-mail: fop-users-
>[email protected]
>> For additional commands, e-mail: fop-users-
>[email protected]
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]