Re: Where to download high-quality fonts

2004-05-28 Thread Paul Tremblay
On Wed, May 26, 2004 at 04:46:20AM +0200, Andreas L. Delmelle wrote:
 
 Sure! Happens all the time... Concerning Chris' question about the legal
 issues, that's a whole different story (--the details of which I'm not too
 familiar with)
 
I been doing a lot of googling. It turns out that you can't copyright a
font. The US gov't is too afraid that such a copyright would lead to someone
copyrighting the alphabet itself. What you can copyright is anything that
creates a font, which in this case is a Bookman.pfm or Bookman.pfb file.

However, I could open up some high quality software, scan in the shape of
all the Bookman fonts, twiddle with the shapes until they are exactly right,
and realease my fonts with no copyright restrictions. It turns out that
doing this is pretty difficult. Still, it is a worthwhile endeavor for
someone who is skilled at creating fonts to create knockoffs of the
high-quality fonts and realese them under GNU. After all, many of the
really nice fonts, such as Garamond, were invented by people 500 years
ago, so why should Adobe get copyright fees?

(See
http://slashdot.org/articles/02/08/18/1519217.shtml?tid=109

for a fruther discussion.)

MS itself has realeased the standard web fonts under a pretty
non-restrictive (though by no means open source) liscence. You can
download these fonts from

http://corefonts.sourceforge.net/

I don't know if the same non-restrictive MS lisence also applies to
fonts beyond these web fonts.  

I also discovered a webpage that has all the truetype versions of
virtually every professional font out there (I'm talking about fonts for
laying out a publication, not decorative fonts):

http://www.clipserver.de/Fonts/C.htm

However, though you can download the fonts without paying, copyright
restrictions probably apply. So I can use these fonts with FOP for
publishing a thesis, but not for any real commercial work. And of
course, these fonts are true-type rather than PS. None-the-less, FOP
seems to produce nice output with true-type fonts.

It is unfortunate that Knuth's fonts aren't usable for FOP.

Paul


-- 


*Paul Tremblay *
[EMAIL PROTECTED]


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



RE: Table Header problem

2004-05-28 Thread Kaustuva Narayan Sharma
I got it thanksa sily mistake on may part :-)
This is my whole xsl file. And tables with headers r generating fine :

=

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.1
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
exclude-result-prefixes=fo
  xsl:output method=xml version=1.0 omit-xml-declaration=no
indent=yes/
   xsl:template match=Report
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=simpleA4
page-height=29.7cm page-width=21cm margin-top=2cm
margin-bottom=2cm margin-left=2cm margin-right=2cm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=simpleA4
fo:flow flow-name=xsl-region-body
   fo:block font-size=10pt
fo:table table-layout=fixed
  fo:table-column column-width=4cm/
  fo:table-column column-width=4cm/
  fo:table-column column-width=5cm/
  fo:table-header
 fo:table-row
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader1/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader2/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader3/fo:block
 /fo:table-cell
 /fo:table-row
 /fo:table-header
  fo:table-body
xsl:apply-templates/
  /fo:table-body
/fo:table
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root
  /xsl:template
  xsl:template match=R
fo:table-row
  fo:table-cell
fo:block
  xsl:value-of select=Data1/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data2/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data3/
/fo:block
  /fo:table-cell
/fo:table-row
  /xsl:template
/xsl:stylesheet

===

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 27, 2004 7:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Table Header problem


On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote:
 Hi,

 I am a beginner to FOP. I am trying to convert an XML to PDF from a
 Java app. The data is to be displayed in a table. But when I try to 
 put headers into the table i am getting the following error:

 org.apache.fop.apps.FOPException: Currently only Table Rows are
 supported in table body, header and footer

 My xsl looks like this: 
 ==
  fo:table
  
    fo:table-header
    fo:table-row
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader1/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader2/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader3/fo:block
  /fo:table-cell
     /fo:table-row
    /fo:table-header
   fo:table-body

     fo:table-row
   fo:table-cell
     fo:block
   xsl:value-of select=Data1/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data2/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data3/
     /fo:block
   /fo:table-cell
     /fo:table-row
     /fo:table-body
  /fo:table =

 I am using fop-0.20.5. Can you pls suggest as to what could be the
 cause?

 Thanks.

 Regards,

 Kaustuv Sharma

One problem I notice is that you do not have fo:table-column 
column-width=XXcm /. You can see an example of a complete table 
here:

http://xml.apache.org/fop/faq.html#keep-with

I don't know if it's a problem but there was a lot of extra white space 
in the table-body. Whitespace is OK, but perhaps there's a bad 
character in there?

Hope this helps!

Web Maestro Clay

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


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



RE: Table Header problem

2004-05-28 Thread Pascal Sancho
Hi,
The xsl:apply-templates/ in the xsl:template match=Report should be 
replaced with xsl:apply-templates select=R/.
If not, extra text can be added to fo:table-body (due to default xslt rules)

Tcho


-Message d'origine-
De : Kaustuva Narayan Sharma [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 28 mai 2004 06:15
À : [EMAIL PROTECTED]
Objet : RE: Table Header problem

I got it thanksa sily mistake on may part :-) This is my whole xsl file. 
And tables with headers r generating fine :

=

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.1
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
exclude-result-prefixes=fo
  xsl:output method=xml version=1.0 omit-xml-declaration=no
indent=yes/
   xsl:template match=Report
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=simpleA4
page-height=29.7cm page-width=21cm margin-top=2cm
margin-bottom=2cm margin-left=2cm margin-right=2cm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=simpleA4
fo:flow flow-name=xsl-region-body
   fo:block font-size=10pt
fo:table table-layout=fixed
  fo:table-column column-width=4cm/
  fo:table-column column-width=4cm/
  fo:table-column column-width=5cm/
  fo:table-header
 fo:table-row
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader1/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader2/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader3/fo:block
 /fo:table-cell
 /fo:table-row
 /fo:table-header
  fo:table-body
xsl:apply-templates/
  /fo:table-body
/fo:table
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root
  /xsl:template
  xsl:template match=R
fo:table-row
  fo:table-cell
fo:block
  xsl:value-of select=Data1/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data2/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data3/
/fo:block
  /fo:table-cell
/fo:table-row
  /xsl:template
/xsl:stylesheet

===

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 7:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Table Header problem


On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote:
 Hi,

 I am a beginner to FOP. I am trying to convert an XML to PDF from a
 Java app. The data is to be displayed in a table. But when I try to 
 put headers into the table i am getting the following error:

 org.apache.fop.apps.FOPException: Currently only Table Rows are
 supported in table body, header and footer

 My xsl looks like this: 
 ==
  fo:table
  
    fo:table-header
    fo:table-row
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader1/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader2/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader3/fo:block
  /fo:table-cell
     /fo:table-row
    /fo:table-header
   fo:table-body

     fo:table-row
   fo:table-cell
     fo:block
   xsl:value-of select=Data1/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data2/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data3/
     /fo:block
   /fo:table-cell
     /fo:table-row
     /fo:table-body
  /fo:table =

 I am using fop-0.20.5. Can you pls suggest as to what could be the
 cause?

 Thanks.

 Regards,

 Kaustuv Sharma

One problem I notice is that you do not have fo:table-column 
column-width=XXcm /. You can see an example of a complete table 
here:

http://xml.apache.org/fop/faq.html#keep-with

I don't know if it's a problem but there was a lot of extra white space 
in the table-body. Whitespace is OK, but perhaps there's a bad 
character in there?

Hope this helps!

Web Maestro Clay

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


-
To unsubscribe, e-mail: [EMAIL 

Re: Can I put formatting tags in the XML file?

2004-05-28 Thread Chris Bowditch
Mike Kellstrand wrote:
This must be a common issue, but I haven't found a good solution after a 
lot of searching.
 
The problem:
I have an XML file containing a lot of text.  (I'm working on book layouts)
Sometimes a word here and there in the text needs to be bolded or 
underlined in the final PDF.  Of course adding any kind of inline FO 
tags in the source XML gets real nasty.
 
How is this best dealt with?
Whats wrong with just placing B/B tags around text you want to make bold 
in the output. In your XSLT that processes your XML just have a template that 
matches for these tags and output the appropriate FO. E.g.

xsl:template match=B
fo:inline font-weight=bold
xsl:apply-templates/
/fo:inline
/xsl:template
Chris

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


Re: Can I put formatting tags in the XML file?

2004-05-28 Thread Mike Kellstrand
Sweet!
I knew it would be something simple.

Thanks Chris,

Mike
Chris Bowditch [EMAIL PROTECTED] wrote:
Mike Kellstrand wrote: This must be a common issue, but I haven't found a good solution after a  lot of searching.  The problem: I have an XML file containing a lot of text. (I'm working on book layouts) Sometimes a word here and there in the text needs to be bolded or  underlined in the final PDF. Of course adding any kind of inline FO  tags in the source XML gets real nasty.  How is this best dealt with?Whats wrong with just placing tags around text you want to make bold in the output. In your XSLT that processes your XML just have a template that matches for these tags and output the appropriate FO. E.g.Chris
		Do you Yahoo!?Friends.  Fun. Try the all-new Yahoo! Messenger

FOP Hyphenation question

2004-05-28 Thread Wessel van Norel
Hi all,
I've a FOP hyphenation question. I need to stop the hyphenation of email 
addresses in a text provided by an user. I could put a fo:inline 
hyphenate=false around the email address. But I am hoping there is a 
way to do this with the hyphenation patterns, since that would prevent a 
search and replace for the email addresses.
My question is, does anyone know what I should add in my hyphenation XML 
file to stop the hyphenation of email addresses.

Regards
Wessel van Norel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP Hyphenation question

2004-05-28 Thread Clay Leeds
On May 28, 2004, at 7:14 AM, Wessel van Norel wrote:
Hi all,
I've a FOP hyphenation question. I need to stop the hyphenation of 
email addresses in a text provided by an user. I could put a 
fo:inline hyphenate=false around the email address. But I am 
hoping there is a way to do this with the hyphenation patterns, since 
that would prevent a search and replace for the email addresses.
My question is, does anyone know what I should add in my hyphenation 
XML file to stop the hyphenation of email addresses.

Regards
Wessel van Norel
How would adding fo:inline 
hyphenate=false[EMAIL PROTECTED]/fo:inline around the email 
address affect search  replace? It wouldn't be affecting the 
text-string '[EMAIL PROTECTED]'...

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


Re: FOP Hyphenation question

2004-05-28 Thread Wessel van Norel
Clay Leeds wrote:
On May 28, 2004, at 7:14 AM, Wessel van Norel wrote:
Hi all,
I've a FOP hyphenation question. I need to stop the hyphenation of 
email addresses in a text provided by an user. I could put a 
fo:inline hyphenate=false around the email address. But I am 
hoping there is a way to do this with the hyphenation patterns, since 
that would prevent a search and replace for the email addresses.
My question is, does anyone know what I should add in my hyphenation 
XML file to stop the hyphenation of email addresses.

Regards
Wessel van Norel

How would adding fo:inline 
hyphenate=false[EMAIL PROTECTED]/fo:inline around the email 
address affect search  replace? It wouldn't be affecting the 
text-string '[EMAIL PROTECTED]'...

Web Maestro Clay
I guess my former mail was not clear enough. As I said the email address 
is inserted in a text provided by an user. I may not expect of them that 
they put the fo:inline around the email address themselves. So to add 
the fo:inline around the email address I'll have to do a search and 
replace afterwards, if it's not possible to prevent the hyphenation of 
email addresses in the hyphenation patterns.

Regards,
Wessel van Norel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP Hyphenation question

2004-05-28 Thread J.Pietschmann
Clay Leeds wrote:
How would adding fo:inline 
hyphenate=false[EMAIL PROTECTED]/fo:inline around the email 
address affect search  replace?
It wouldn't disable hyphenation for the string though. Hyphenation
properties are block properties and implemented as such.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FOP Hyphenation question

2004-05-28 Thread Andreas L. Delmelle
 -Original Message-
 From: Wessel van Norel [mailto:[EMAIL PROTECTED]



Hi,

 I guess my former mail was not clear enough. As I said the email address
 is inserted in a text provided by an user. I may not expect of them that
 they put the fo:inline around the email address themselves. So to add
 the fo:inline around the email address I'll have to do a search and
 replace afterwards, if it's not possible to prevent the hyphenation of
 email addresses in the hyphenation patterns.


Can you be more specific on the way you're constructing the FO? If it is an
option to use XML+XSLT, you wouldn't need sr. Provided that the email
addresses are separate elements in the source XML, you could just write a
template rule to transform those elements into fo:inline's... However, as
Joerg already indicated, hyphenation props are block props, so they wouldn't
do you much good here :(

Over to the bright(er) side then... Take a look at
http://xml.apache.org/fop/hyphenation.html#patterns

to get an idea of how to use hyphenation patterns for this. Taking into
account a limitation mentioned over there, a pattern like:

'[EMAIL PROTECTED]'

would indicate that hyphenating before or after the @ character is highly
undesirable.

As for preventing hyphenation on the name and domain, this seems a little
more complicated, but then again, I'm no expert in this matter. Hope someone
with more experience in hyphenation patterns can comment in on this. (A
combination of the classes and exceptions might just provide you with a way
to achieve what you're after...)

As the warning on the page indicates, any feedback regarding errors/problems
that could help to make it function better is most welcome.

Hope this helps!

Greetz,

Andreas


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