[bug?] Mangled text with cross references

2006-05-24 Thread Matthew East
I think I've hit another bug with overlapping text and strange whitespace in
cross reference text.

Again the xsl customisations, fo and pdf are at:

http://mdke.org/tmp/fop/

There are plenty of examples, but picking one at random, see the bottom of page
26 of that pdf file.

Is this a well known bug (if it is a bug)? Can I work around it?


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



Re: some footnotes not being displayed

2006-05-22 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 Confirmed. Seems to be a bug. Unfortunately, I won't have time
 immediately to have a closer look.

Ok, thanks for letting me know. Is there a bug tracking system of some kind?

 If your document could be cut down to the minimum so the disappearing
 footnote can still be reproduced, that'd be great.

That should be quite easy - do you know what the time frame might be for fixing
this? If it is potentially quite quick, then I'll make providing a cut down
document a priority. Otherwise, I'll concentrate on working round by including
the links in the main text rather than in the footnotes, because we need the
PDFs to be released in about a week. After that I will have more time to sit
down and provide as much debugging help as I can.

Matt



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



some footnotes not being displayed

2006-05-20 Thread Matthew East
Dear all,

Here I am again with another question. I'm using fop 1.93beta, with a snapshot
of the docbook-xsl stylesheets.

Everything is working quite well, except that I am including xrefs as footnotes,
and some footnotes do not appear at all. I can't really see why, because most of
them work well.

Can anyone give me any help? 

The pdf, fo file and xsl customisations are all to be found here:
http://mdke.org/tmp/fop

An example of a footnote which does not appear is at page 9 of the file. If you
go forward to page 11 of the file, you'll see some which work.

I get some warnings when building, but I don't know if they are related or not:
http://fop.pastebin.com/728145

Thanks for any help you can give me! 

Matt


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



crash

2006-05-13 Thread Matthew East
Hi all, and sorry to bother yet again.

Fop is now working nicely on my home computer. Then I tried to run it on another
pc, with basically the same setup on the same files, with the same version of
java installed, and I get this error:

http://fop.pastebin.com/715978

Any ideas? Please let me know if you require any more information!

Thanks,

Matt


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



Re: Error when customizing title fonts etc.

2006-05-13 Thread Matthew East
Glen Mazza gmazza at apache.org writes:
 Main problem:  If any of the fo:flows have a flow-name that map to 
 something other than xsl-region-body, or if any of the 
 fo:static-contents have a flow-name that map to xsl-region-body, then 
 this error message will occur.  If this is occurring for you, fix your 
 XSLT customization layer so this doesn't happen.

It might not be precisely on-topic for this list, but I didn't get a response to
it on docbook.apps, so maybe you can help.

When I set double.sided to 1 with docbook-xsl-1.69.1, I get this region-body
error. Otherwise, I don't get it, and I didn't get it with version 1.68 either.

Matt




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



Re: crash

2006-05-13 Thread Matthew East
Glen Mazza gmazza at apache.org writes:
 It could be that the other pc does not have the proper graphics 
 libraries to handle what you are doing.  (I think they call those 
 headless PCs[1], but am unsure.)

Ah, that could be right. It is indeed a headless PC, but 
fop 0.20.5 ran on it without any problems. I'll see what I
can do to work around it, but it looks hard!

Matt



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



Re: Asian fonts in pdfs

2006-05-09 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 Your mail address screams that you're on Unix. So are you sure you want
 to change fop.bat (Windows batch) and not fop (unix shell script)?

Yes, that was it: I've now got Korean and Chinese PDFs! You guys rock!!

Thanks for all your help.

Matt


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



Re: Asian fonts in pdfs

2006-05-08 Thread Matthew East
Hi Lev,

On Sun, 7 May 2006 14:07:28 +0300
Lev T [EMAIL PROTECTED] wrote:

 If those documents use Unicode charsets, a possible solution is to
 embed ttf font contains needed charsets into PDF. I am using
 DFSG-free version of kochi font family for asian languages.

[...]

Thanks for this tip: I tried the kochi font family as you suggested,
and although everything seemed to go well, all I got were hashes again.
I've tried the following:

arphic-uming for zh_CN (fop crashed with an error about java memory)
kochi for zh_CN, ko, id

Any more hints you can give would be much appreciated, I'm starting to
give up on getting asian languages working!

Matt 


signature.asc
Description: PGP signature


Re: Asian fonts in pdfs

2006-05-07 Thread Matthew East
On Sun, 07 May 2006 12:02:37 +0200
Jeremias Maerki [EMAIL PROTECTED] wrote:

 If you look at [1] you'll see that Hangul syllables are not covered by
 the DejaVu font. That's why they don't appear. You'll need to find
 another font.

Ah, thanks very much for this! I'll keep trying with some other fonts.
I tried arphic-uming for Chinese, after being told that this supported
Chinese characters. However fop crashed with a message like this:

Exception in thread main java.lang.OutOfMemoryError: Java heap space

I'm pretty unlucky with fop!

 Concerning the noisy output I'd recommend you take a closer look at
 the warning messages. You'll find they are quite informative. There
 are a lot of table-rows with height=14pt in your FO file. 14pt is
 too little for a 12pt font with line-height=1.2 (the default).
 Either remove the height property or adjust it to at least 14.4pt
 (=12 * 1.2).

Yeah I read the messages and saw an explanation of it on the fop wiki.
But at the moment I don't know how to modify the xsl I'm using to get
rid of this, I'll look into it, and possibly ask another mailing list
how to do this.

Matt


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



Asian fonts in pdfs

2006-05-06 Thread Matthew East
Hi all,

I'm trying to build (using fop 0.20-5) some pdfs of some guides which are in
Asian languages (Taiwanese, Chinese, Korean etc) and the resulting pdfs don't
show any of the characters, just hash symbols. Does anyone know how I can
improve this situation?

I've put an example .fo file and the resulting .pdf file at this address:

http://mdke.org/ubuntu/fop/

Hope you can help!

Thanks, Matt


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



Re: Asian fonts in pdfs

2006-05-06 Thread Matthew East
Hi Thomas, thanks for your reply.

Thomas Schraitle tom_schr at web.de writes:
 On Saturday 06 May 2006 17:48, Matthew East wrote:
 
  I'm trying to build (using fop 0.20-5) some pdfs of some guides which
  are in Asian languages (Taiwanese, Chinese, Korean etc) and the
  resulting pdfs don't show any of the characters, just hash symbols.

{snip}

  http://mdke.org/ubuntu/fop/

{snip}

 1. Check the font if it contains Korean characters

I don't really understand much about fonts, but on my system, if I view the fo
file in an editor and set my editor to display serif fonts, all the korean
characters appear fine.

 2. Check your FOP configuration file.

I'm not using one.

 Probably you should also give FOP 0.92.x a try.

Probably, but so far I haven't managed to get it to work with my stylesheets,
and I haven't got much time to rewrite them at the moment. Hopefully there is an
easy way to make fop 0.20-5 work.

Matt


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



Re: embedding fonts

2006-04-24 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 Embedding means that the font is included in the PDF file. Otherwise,
 the font is only referenced and is required to be present on the viewer
 or printer. If it's not present on the receiving side, the document
 can't print correctly. If you want to embed all fonts, you have to
 create font metric files using PFMReader or TTFReader for each one and
 create the correct font triples in the configuration file. As soon as
 you specify a embed-file attribute (embed-url in 0.91 and later), the
 font will be embedded in the generated file. ATM, there is no easy way.
 I may get easier later this year when we have an improved font subsystem
 but ATM, it's a lot of manual work.

Thanks for this explanation! I will try and do this, although the creating font
metric files bit sounds rather difficult. I'll give it my best shot!

 If that doesn't help you on your way, please tell us exactly what on the
 fonts.html page is unclear to you.

That's fine: it makes sense now. I just wondered whether it was possible to do
it automatically for all fonts used by fop when creating the pdf. No problem!

Matt


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



Re: embedding fonts

2006-04-24 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 If you want to embed all fonts, you have to
 create font metric files using PFMReader or TTFReader for each one and
 create the correct font triples in the configuration file.

Right, i'm trying to use TTFReader now, as specified on the fonts documentation
page. However, it shows an error. I'm using Ubuntu, java jdk 1.5 and fop 0.20-5

ERROR: http://fop.pastebin.com/678687

It's possible that I've misunderstood the command I should be running. Hope you
can help!

Matt


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



Re: embedding fonts

2006-04-24 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes: 
 Looks like you have a good share of bad luck with FOP.

No problem, fortunately you're all really helpful on this list!

  You've
 stumbled upon a bug in TTFReader we recently fixed. Please use the
 TTFReader coming with FOP 0.92beta to create the font metric files. The
 generated files should also work with FOP 0.20.5.

[EMAIL PROTECTED]:/opt/fop-0.92beta# java -cp
build/fop.jar:lib/avalon-framework-4.2.0.jar:lib/commons-logging-1.0.4.jar
:lib/commons-io-1.1.jar
org.apache.fop.fonts.apps.TTFReader
/usr/share/fonts/truetype/freefont/FreeSerif.ttf FreeSerif_ttf.xml
TTF Reader for Apache FOP 0.92beta

Parsing font...
Reading /usr/share/fonts/truetype/freefont/FreeSerif.ttf...
Number of glyphs in font: 5295
3 cmap tables
CMAP format: 4
Creating xml font file...
Creating CID encoded metrics...
Writing xml font file FreeSerif_ttf.xml...
This font contains no embedding license restrictions.

XML font metrics file successfullly created.

:)

(by the way, there's a typo there in successfullly)

Now to see if I can get that xml file working with fop 0.20-5!!

Thanks again,

Matt


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



Re: embedding fonts

2006-04-24 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 I just tried the same and had no such problem with either 0.20.5 or
 0.92beta. Please observe FOP's log output closely. Maybe there's another
 problem. What I can see here seems fine.

Nothing I haven't seen before in the output: http://fop.pastebin.com/679803

Was everything ok in my config file? No typos? I couldn't see any, but a second
pair of eyes won't hurt.

 Just curious: Why are you substituting the base 14 fonts with FreeFonts
 in the first place? Do you expect some additional characters not
 supported by the base14 fonts?

They were just the first fonts I selected.

Matt



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



Re: embedding fonts

2006-04-24 Thread Matthew East
Matthew East mdke at ubuntu.com writes:

 
 Jeremias Maerki dev at jeremias-maerki.ch writes:
 
  
  I just tried the same and had no such problem with either 0.20.5 or
  0.92beta. Please observe FOP's log output closely. Maybe there's another
  problem. What I can see here seems fine.
 
 Nothing I haven't seen before in the output: http://fop.pastebin.com/679803
 
 Was everything ok in my config file? No typos? I couldn't see any, but a 
 second
 pair of eyes won't hurt.

It occurred to me it might help for you to see the actual pdf. Here it is:
http://mdke.org/ubuntu/desktopguide-bw.pdf.

If I can provide any more information, for example the font files and so on,
please say so!

Thanks,

Matt


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



[solved?] Re: embedding fonts

2006-04-24 Thread Matthew East
Matthew East mdke at ubuntu.com writes:
 It occurred to me it might help for you to see the actual pdf. Here it is:
 http://mdke.org/ubuntu/desktopguide-bw.pdf.

Sorry for spam, but I think it's resolved: I substituted oblique for italic
in the configuration file, and it appears to have worked. Does that sound right?
The new one is at the same link.

Matt


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



Re: Footnotes overlapping with main text body

2006-04-23 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 You might want to take a look at the latest release: Apache FOP 0.92beta.

Is there any way to do it with FOP 0.20?

I tried 0.92beta but can't figure out how to run it, I installed it to
/opt/fop-0.92/ and made a symlink in /bin/fop.sh to /opt/fop-0.92/fop so that it
fits my build script, but I always receive this error:

[EMAIL PROTECTED]:~/Desktop/jai-1_1_2_01$ fop
Exception in thread main 
java.lang.NoClassDefFoundError: org/apache/fop/cli/Main

I looked up this error and saw that someone said that I needed to make sure that
I had all the jar files mentioned in fop.bat, so I downloaded as many of them
as I could (jimi, jai) and added them, but I still get that error. I even tried
removing some of the references to jar files in fop.bat, but no good.

I couldn't find any simple installation documentation: can someone tell me what
I'm doing wrong?

Matt


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



Installing fop 0.92 (was Re: Footnotes overlapping with main text body)

2006-04-23 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 I've just done (more or less) the same. Extracted FOP 0.92 into a new
 folder and created a symlink to fop from my ~/bin directory. Worked
 like a charm.

Ok, I'll try again from scratch. Can you help me with what I need to install?
There are two archives at the download address, one called jdk1.3 and another
called jdk1.4, which do I need? And do I need to be using Java jdk rather than
jre (which I used with fop 0.20)? If so, is version 1.5 from sun going to be ok?

http://apache.rmplc.co.uk/xmlgraphics/fop/

Matt (total noob)


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



Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)

2006-04-23 Thread Matthew East
Jeremias Maerki dev at jeremias-maerki.ch writes:

 
 You said earlier you're on JDK 1.5, so take the jdk1.4 binary. The JRE
 should be enough. It doesn't matter. Just extract the .tar.gz and run
 the fop script. That's it if you don't need any fancy stuff to begin
 with.

Ok, I tried installing it from scratch into ~/tmp/fop-0.92 and did a symlink in
~/bin. It seems to work better, but I get a host of errors when trying to build
the document, using the same stylesheets as I used with fop 0.20

ERRORS: http://fop.pastebin.com/677001

Any ideas? Sorry for the continuous questions!

Matt



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



Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)

2006-04-23 Thread Matthew East
Hi Patrick,

Patrick Paul ppaul_apache at yahoo.ca writes:

 So basically you need to changefox:outline and use fo:bookmark-tree, 
 fo:bookmark and fo:bookmark-title.

Thanks for this. I'm afraid I'm still not completely understanding how to do
this. I'm using the nwalsh fo stylesheets, which seem to have this fox:outline
thing (http://fop.pastebin.com/677084 is the section I've identified which seems
to be relevant). But I don't know how to overrule this in my custom xsl, or what
to replace it with. I'm not really fussy about bookmarks but it might be nice to
have them, I suppose.

Thanks for being so help so far (and for very fast responses!), and hopefully
you can keep helping me until this is working :-( Apologies for my slowness!

Matt


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



Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)

2006-04-23 Thread Matthew East
Patrick Paul ppaul_apache at yahoo.ca writes:
 You're welcome. This is what this mailing-list is for, helping people.

Well, it's a very friendly mailing list :)

 What I suggest is that you try not to use the FOP-specific extension.

{snip}

 Remove the --stringparam fop.extensions 1 line.

Ok, I set that to 0 in my custom xsl. But I now get some more errors:

ERRORS: http://fop.pastebin.com/677156
MYXSL: http://fop.pastebin.com/677158

Thanks again for your help, hope this one is an easy one to solve!

Matt


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



Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)

2006-04-23 Thread Matthew East
Patrick Paul ppaul_apache at yahoo.ca writes: 
 Make sure you get the latest stable docbook-xsl stylesheets and set the 
 following params :
 
 --stringparam fop.extensions 0
 --stringparam fop1.extensions 1

I have docbook-xsl 1.68, which comes with my distribution. I added that
parameter to my custom stylesheet and receive this error:

http://fop.pastebin.com/677207

M


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



Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)

2006-04-23 Thread Matthew East
Patrick Paul ppaul_apache at yahoo.ca writes:

 
 Get the latest release (1.69.1) at 
 http://sourceforge.net/project/showfiles.php?group_id=21935#files

Ok, I installed and used these, by amending my custom xsl to use them. I get the
same error. Just for clarity:

ERROR: http://fop.pastebin.com/677244
XSL: http://fop.pastebin.com/677245

Matt


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



Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)

2006-04-23 Thread Matthew East
Patrick Paul ppaul_apache at yahoo.ca writes:
 Matthew East wrote:
 ERROR: http://fop.pastebin.com/677244
 XSL: http://fop.pastebin.com/677245

 I apologize but I do not have the time to assist you further at this time.

No problem, thanks for the help you've given me so far.

 This may be a bug with FOP 0.92 ?

I'll wait and see if anyone else knows.

So, it's not possible to ensure that footnotes don't overlap with the main text
using fop 0.20?

Matt


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



embedding fonts

2006-04-23 Thread Matthew East
Hi again list,

Thanks for your very kind replies on the other thread. I will pursue the
suggestions Glenn makes and approach other lists with xsl related questions.

For the moment, I hope you won't mind if I bother you again with another fop
question: using 0.20-5, is it possible to configure fop easily to embed all the
fonts which it is using? I tried reading the documentation for fonts[1], but
couldn't make head or tail of it. Basically, all I want to do if for fop to use
the same fonts it is using now, but embed them. I don't even know precisely what
embedding means, but it appears to be required by the printer so...

[1] http://xmlgraphics.apache.org/fop/0.20.5/fonts.html

Again, the document is http://mdke.org/ubuntu/desktopguide.pdf

Let me know if you need any more information, and sorry again for bothering you
with my rather ill-informed questions.

Matt


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