I've moved this over to the fop-user list, as I think it's more appropriate here...

Togan responded to my question about how to add hyphenation patterns to FOP. I then asked:

Aside from HYPHENATION, FONTs & BASEDIR, how else can userconfig.xml be used? Could it be used to specify/set the logger for command line interface folks like myself?

Well, to answer my own question (how else can userconfig.xml be modified...), it appears that SVG can be modified (from the FOP/Graphics page):
http://xml.apache.org/fop/graphics.html


It is possible to make sure that all text is drawn into PDF using the
PDF text commands (instead of the graphical shapes), by adding the
following to the user config:

<entry>
  <key>strokeSVGText</key>
  <value>false</value>
</entry>

BTW, I don't know what other options there are for modifying userconfig.xml for improved/customized FOP output, but it looks like this SVG entry might be better suited for display on the FOP/Configuration page (http://xml.apache.org/fop/configuration.html) (with a link from the FOP/Graphics.html#svg section:


http://xml.apache.org/fop/configuration.html

I guess the age old, should SVG-specific configuration information be placed on the Configuration.html page (with a link to configuration.html#svg), or on the Graphics page? The same would hold true for FONTs...

I did a search of "entry key value" (without the quotes) site:xml.apache.org, and only came up with SVG. I was shocked at not finding a link to the configuration page, but alas that combination of words are not on that page.

NOTE to Victor/DEV: although the information is in conf/userconfig.xml, we might want to add an example XML entry showing how to add a hyphenation pattern directory. Here's example copy:

To add the hyphenation directory (filled with all sorts of hyphenation patterns such as the Klingon Hyphenation pattern) located at /java/fop-0.20.4/hyph/, enter the following in the HYPHENATION section of userconfig.xml:

  <entry>
    <key>hyphenation-dir</key>
    <value>/java/fop-0.20.4/hyph</value>
  </entry>

Have a nice day!

On 5/13/2003 8:48 AM, Clay Leeds wrote:
Togan Muftuoglu wrote:

As far as I know this is still possible with the userconfig.xml no need
to compile the hyphenation pattern just add the necessary configuration
to the userconfig.xml and incorporate userconfig.xml into the config.xml

<!--
hyphenation directory if you want to specify your own directory with hyphenation pattern
then uncomment the next entry and add the directory name
-->


<!--
 <entry>
   <key>hyphenation-dir</key>
   <value>/java/xml-fop/hyph</value>
 </entry>
-->

-- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to