fop doesn't style list-item-label for RTF

2007-06-18 Thread Deryl Seale
I am trying to render a numbered (well, lettered really) list in RTF  
format, but FOP doesn't apply the styles I specify.  I have tried the  
following:


fo:list-item-label end-indent=label-end() font-weight=bold
fo:blockxsl:number count=qti:simpleChoice  
format=A//fo:block

/fo:list-item-label

fo:list-item-label end-indent=label-end()
fo:block font-weight=boldxsl:number  
count=qti:simpleChoice format=A//fo:block

/fo:list-item-label

Both of these correctly make the label for the list item bold, but in  
RTF, the label is just plain text.  Any idea if this is a known bug,  
and if so, where I might poke around to fix it?


thanks.

--
Deryl Seale -- Director of Engineering
c: 734.883.9636
[EMAIL PROTECTED]
www.intel-assess.com





Re: fop doesn't style list-item-label for RTF

2007-06-18 Thread Deryl Seale
Both of these correctly make the label for the list item bold, but  
in RTF, the label is just plain text.


Sorry, I meant to say that these declarations make the label bold for  
PDF output, but not in RTF for some reason.


-d.


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



Re: fop doesn't style list-item-label for RTF

2007-06-18 Thread Deryl Seale
Sorry, I am using FOP 0.93, and a sample of the FO file is below --  
note that it renders the list-item-label text in bold when outputting  
in PDF form, but only renders them in plain text when outputting to RTF.


thanks.
-d.

-=-=-=-=-=- SAMPLE -=-=-=-=-=-

fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format' xmlns:m='http:// 
www.w3.org/1998/Math/MathML' font-family='Helvetica'

  fo:layout-master-set
fo:simple-page-master margin-left='0.75in' master-name='normal- 
page' page-width='8.5in' page-height='11in' margin-bottom='.5in'  
margin-top='.5in' margin-right='0.75in'
  fo:region-body region-name='body' margin-bottom='0.7in'  
margin-top='1in'  /

/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference='normal-page'
fo:flow flow-name='body' font-size='11pt'

  fo:block
fo:table table-layout='fixed'
  fo:table-body border='1px solid white'
fo:table-row

  fo:table-cell border='1px solid white' width='0.5in'
fo:block font-weight='bold'1/fo:block
  /fo:table-cell
  fo:table-cell border='1px solid white' width='3.5in'
fo:block space-after='5pt' font-weight='bold'Which  
of the following resources would be most valuable for a student doing  
research about the life cycle of a frog?/fo:block

fo:block space-before='10pt'
  fo:list-block provisional-distance-between- 
starts='6.5mm'

fo:list-item

  fo:list-item-label font-weight='bold' end- 
indent='label-end()'

fo:blockA/fo:block
  /fo:list-item-label
  fo:list-item-body start-indent='body-start()'
fo:block space-after='2pt' space-before='2pt'
  fo:blockScience book about frogs/fo:block
/fo:block
  /fo:list-item-body

/fo:list-item
fo:list-item
  fo:list-item-label font-weight='bold' end- 
indent='label-end()'

fo:blockB/fo:block
  /fo:list-item-label
  fo:list-item-body start-indent='body-start()'
fo:block space-after='2pt' space-before='2pt'
  fo:blockA short story entitled Jumping  
Frogs/fo:block


/fo:block
  /fo:list-item-body
/fo:list-item
fo:list-item
  fo:list-item-label font-weight='bold' end- 
indent='label-end()'

fo:blockC/fo:block
  /fo:list-item-label
  fo:list-item-body start-indent='body-start()'

fo:block space-after='2pt' space-before='2pt'
  fo:blockMap of frog habitats/fo:block
/fo:block
  /fo:list-item-body
/fo:list-item
fo:list-item
  fo:list-item-label font-weight='bold' end- 
indent='label-end()'

fo:blockD/fo:block

  /fo:list-item-label
  fo:list-item-body start-indent='body-start()'
fo:block space-after='2pt' space-before='2pt'
  fo:blockDictionary entry for Frogs/ 
fo:block

/fo:block
  /fo:list-item-body
/fo:list-item
  /fo:list-block

  /fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root

On Jun 18, 2007, at 12:17 PM, Adrian Cumiskey wrote:


Hi Deryl,

Which version of FOP are you using?  It would be really helpful if  
you include the FO file in full.


Cheers,

Adrian.

Deryl Seale wrote:
I am trying to render a numbered (well, lettered really) list in  
RTF format, but FOP doesn't apply the styles I specify.  I have  
tried the following:

fo:list-item-label end-indent=label-end() font-weight=bold
fo:blockxsl:number count=qti:simpleChoice  
format=A//fo:block

/fo:list-item-label
fo:list-item-label end-indent=label-end()
fo:block font-weight=boldxsl:number  
count=qti:simpleChoice format=A//fo:block

/fo:list-item-label
Both of these correctly make the label for the list item bold, but  
in RTF, the label is just plain text.  Any idea if this is a known  
bug, and if so, where I might poke around to fix it?

thanks.
--
Deryl Seale -- Director of Engineering
c: 734.883.9636
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.intel-assess.com



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

Re: Help with MathML/JEuclid

2007-06-06 Thread Deryl Seale

Are you sure the font used for the text really is DejaVu (check the
properties of the PDF file in your viewer)?


Yes, I am fairly certain it's DejaVu -- it visibly changes to what  
I'd expect the font to look like, and upon inspection in the file  
properties, I see the DejaVu font listed along with the other Acrobat  
internal fonts.  Is there anything else I need to do to get JEuclid  
working besides installing the plugin, registering the proper font  
family with FOP, and making sure my FO input XML is properly set up?


Has anyone else successfully run the JEuclid plugin?


Have you tried the jeuclid-user mailing list?


I will try them now, though it looks like a low traffic list.

thanks.
--Deryl


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



Help with MathML/JEuclid

2007-06-05 Thread Deryl Seale
Hello, everyone.  Apologies in advance if this has been answered  
elsewhere, but I have not been able to find a solution to my issue.


I am trying to render PDF content that contains embedded MathML, a  
sample of which is contained in the message below.  I found the  
JEuclid plugin, and have successfully integrated it with Apache FOP  
such that my MathML contained in instream-foreign-object blocks gets  
passed to the plugin -- the MathML is being rendered by JEuclid,  
albeit improperly.  The issue I have seems to be with fonts; many of  
the valid escape sequences (e.g. #8722;) get rendered as #  
characters, as if the FOP renderer encountered a character that was  
not in the font family it was using.  If I pass the exact same  
sample.fo file to the JEuclid MathViewer application at the following  
link (requires JDK 1.5 Web Start to run):


http://jeuclid.sourceforge.net/jeuclid-webstart/mathviewer.jnlp

.. the math renders perfectly.  I have tried registering the JEuclid  
recommended fonts (e.g. DejaVu) with the FOP renderer, and while the  
fonts for the body text do change, the equation remains unchanged.  I  
am not sure if this is an issue with the configuration for FOP or  
JEuclid -- the latter is pretty sparse -- so I am hoping someone has  
encountered this issue and might be able to give me some pointers.



--
Deryl Seale -- Director of Engineering
c: 734.883.9636
[EMAIL PROTECTED]
www.intel-assess.com


-=-=-=-=-=-=-=-=- SAMPLE FO -=-=-=-=-=-=-=-=-

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:m=http:// 
www.w3.org/1998/Math/MathML

fo:layout-master-set
fo:simple-page-master master-name=only
fo:region-body region-name=xsl-region-body  
margin=0.7in/
fo:region-before region-name=xsl-region-before  
extent=0.7in display-align=before/
fo:region-after region-name=xsl-region-after display- 
align=after extent=0.7in/

/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=only
fo:flow flow-name=xsl-region-body
fo:block
A sample equation:
fo:instream-foreign-object
m:math
m:mrow
  m:mrow
m:mo(/m:mo
m:mrow
  m:mn6/m:mn
  m:msup

m:miy/m:mi
m:mn3/m:mn
  /m:msup
  m:mo+/m:mo
  m:mn2/m:mn
  m:msup
m:miy/m:mi

m:mn2/m:mn
  /m:msup
  m:mo#8722;/m:mo
  m:miy/m:mi
  m:mo#8722;/m:mo
  m:mn12/m:mn

/m:mrow
m:mo)/m:mo
  /m:mrow
/m:mrow
  /m:math
  /fo:instream-foreign-object
/fo:block
/fo:flow
/fo:page-sequence
/fo:root