Metrics Files for OS X, and image errors

2004-06-28 Thread David Shevitz
Hi all,
Well, I admit that I feel silly asking this, but I'm not having any luck 
with the documentation on the FOP Web site. It's probably just me, but 
any help would really be appreciated.

I would like to use FOP on OS X (I'm primarily a Windows user, but I 
frequently have projects that require me to use a Macintosh). I can get 
everything working, except for two things:

1. I cannot figure out how to create the necessary metrics files for my 
fonts. The fonts on OS X are in a font suitcase, and I can't find out 
what extension they are, so I don't know what command to use from FOP to 
create the files.

2. When I generate the PDF, I get a number of errors stating that my 
images aren't in a directory. I don't have the exact error in front of 
me (I'm back on my PC laptop) but it's similar to: [ERROR] 
file:/imagename.jpg No such directory. (That's not exactly right. I'll 
look up the exact error as soon as I am able.)

Could anyone offer me some advice? Thank you!
Dave Shevitz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Metrics Files for OS X, and image errors

2004-06-29 Thread David Shevitz
Thanks,
I did end up figuring it out. I used the TTF files for the fonts I 
needed (just didn't know where to find them).

Now, everything seems to be working well.
Many thanks for all the help, everyone!
Dave
John Root wrote:
On 6/28/04 2:48 PM, David Shevitz [EMAIL PROTECTED] wrote:
 

1. I cannot figure out how to create the necessary metrics files for my
fonts. The fonts on OS X are in a font suitcase, and I can't find out
what extension they are, so I don't know what command to use from FOP to
create the files.
   

David,
You can't generate fonts for FOP from Mac encoded PostScript fonts. You must
use PC or Unix format PostScript font files or else TrueType format.
John
~~
   John Root
Publishing Systems
[EMAIL PROTECTED]
~~

-
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]


Trying to Troubleshoot an Issue

2004-07-08 Thread David Shevitz
Hello all,
I'm trying to determine the source of a problem I'm having. I have 
several documents that include images. Ideally, I would like to control 
the size of these images by percentage--for example, I would like all 
images for a document to be 60% of their original size.

I had thought I could set these parameters in my XML document, but they 
don't seem to take. When I use actual point sizes, the images are 
displayed as expected, but any values that I enter as percentages are 
ignored.

I think the problem lies in one of three places:
1. My XML editor is not assigning the values correctly (I use XMLMind).
2. FOP does not support percentage values yet.
3. My inexperience with XML and such is once again rearing its ugly head.
Has anyone else experienced this? If it is a FOP-related issue, could 
anyone recommend a reliable workaround?

Thanks!
Dave Shevitz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Adding Blind Tables for Figures

2004-07-21 Thread David Shevitz
Hello all,
I realize this must be a very popular question. However, the only 
information I can find is dated nearly 2 years ago, and those solutions 
do not seem to work.

Here is my question:
I understand that if I want to keep my captions with my figures in a 
given document, I should use a blind table. However, all the examples 
I see were posted around 2 years ago (granted I might be looking in the 
wrong place). I tried using them, but they don't seem to work.

I'm using Docbook 1.64.2. Does anyone have a suggestion or examples that 
I could use to implement this workaround?

Thanks in advance,
Dave Shevitz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Adding Blind Tables for Figures

2004-07-22 Thread David Shevitz
Thanks. I hadn't realized there have been so few updates to FOP.
I noticed on a post that to implement a blind table within a template, I 
should add the following to my customization layer:

xsl:template name=formal.object
 xsl:param name=placement select='before'/
 xsl:variable name=id
   xsl:call-template name=object.id/
 /xsl:variable
fo:table table-layout=fixed width=100%
  fo:table-column column-number=1/
  fo:table-body
   xsl:if test=$placement = 'before'
 fo:table-row keep-with-next=always
   xsl:call-template name=formal.object.heading/
/fo:table-row
   /xsl:if
   fo:table-row
fo:table-cell
  fo:block id={$id}
   xsl:use-attribute-sets=formal.object.properties
xsl:apply-templates/
  /fo:block
/fo:table-cell
   /fo:table-row

   xsl:if test=$placement != 'before'
  fo:table-row keep-with-previous=always
xsl:call-template name=formal.object.heading/
  /fo:table-row
 /xsl:if
   /fo:table-body
 /fo:table
/xsl:template
xsl:template name=formal.object.heading
 xsl:param name=title/xsl:param
 fo:table-cell
   fo:block xsl:use-attribute-sets=formal.title.properties
 xsl:apply-templates select=. mode=object.title.markup/
   /fo:block
 /fo:table-cell
/xsl:template
I did so, only to find that it had no effect. By no effect, I mean I 
looked into the FO file that was generated, and did not see any tables 
around my figure and captions.

I then thought that perhaps my customization layer was in error somehow, 
so I created a separate customization layer using only the above 
template. Still, no effect.

Finally, I modified the formal.xsl stylesheet with this template, and 
still did have any results.

Clearly, I'm applying something incorrectly. But I'm at a loss as to 
where to begin. I did notice that, in the formal.xsl template, the 
formal.object template is very different from the above XSL markup. That 
is why I wondered if I was working off old material.

I'm happy to provide further information, if that would be helpful. I 
also freely admit that I'm unsure if this is an XSL issue, appropriate 
for the DocBook lists, or a FOP issue. But I figured I should start 
somewhere.

Thanks very much for any assistance,
Dave Shevitz
Chris Bowditch wrote:
David Shevitz wrote:
snip/
I understand that if I want to keep my captions with my figures in a 
given document, I should use a blind table. However, all the 
examples I see were posted around 2 years ago (granted I might be 
looking in the wrong place). I tried using them, but they don't seem 
to work.

Doesnt matter that its 2 years old, there have been very few releases 
of FOP in that time. The blind table approach should work to keep a 
figure with FOP. Perhaps you should explain why it doesnt work for 
you, and we will try to help solve the problem.

snip/
Chris
-
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]