xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Bernardo <lmpmberna...@gmail.com>
Subject Re: foprc: 1: Syntax error: newline unexpected
Date Thu, 19 Apr 2012 22:54:07 GMT
I think that's the problem too. I think that exception happens when you 
run FOP trunk with the xmlgraphics-common jar file from FOP 1.0 (note 
that the jar version went from 1.4 to 1.5).

On 4/19/12 11:37 PM, Glenn Adams wrote:
> don't give up so easily... i took the effort to help you, let's see if 
> we can get you working; i'm using the arabic formatting regularly, so 
> i know it is working
>
> i think your problem is that you need to set the FOP_HOME environment 
> variable to the directory where you installed the nightly build; that 
> way, it will properly initialize the LOCALCLASSPATH variable in the 
> fop script
>
>
>
> On Thu, Apr 19, 2012 at 3:42 PM, <greencoppermine@hushmail.com 
> <mailto:greencoppermine@hushmail.com>> wrote:
>
>     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 <glenn@skynav.com
>     <mailto:glenn@skynav.com>>
>     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, <greencoppermine@hushmail.com
>     <mailto:greencoppermine@hushmail.com>>
>     >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-
>     >unsubscribe@xmlgraphics.apache.org
>     <mailto:unsubscribe@xmlgraphics.apache.org>
>     >> For additional commands, e-mail: fop-users-
>     >help@xmlgraphics.apache.org <mailto:help@xmlgraphics.apache.org>
>     >>
>     >>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail:
>     fop-users-unsubscribe@xmlgraphics.apache.org
>     <mailto:fop-users-unsubscribe@xmlgraphics.apache.org>
>     For additional commands, e-mail:
>     fop-users-help@xmlgraphics.apache.org
>     <mailto:fop-users-help@xmlgraphics.apache.org>
>
>


Mime
View raw message