Re: list-item-label (bullets)

Bertrand Delacretaz <[email protected]> Fri, 17 Jan 2003 11:45:30 +0100
Newsgroups gmane.text.xml.jfor.devel
Message-ID <[email protected]>
Hi,

 >. . .
 > Currently the fo:list-item-label elements are rendered as
 > small bullets, ignoring the actual content of the list-item-label
 > in the source FO document.
 >. . .

I *think* these bullets are generated by the following code in 
org.jfor.jfor.rtflib.rtfdoc.RtfListItem:

   writeGroupMark(true);
   writeControlWord("pntext");
   writeControlWord("f" + 
RtfFontManager.getInstance().getFontNumber("Symbol"));
   writeControlWord("'b7");
   writeControlWord("tab");
   writeGroupMark(false);

And if I remember right 'b7 is the bullet character that is generated, 
you can easily check by trying to replace this constant with something else.

If that's the case, the fix would be to improve the handling of 
fo:list-item-label in the converter package, and add an option to 
RtfListItem to specify the bullet character to use, keeping the existing 
font and character as defaults.

It might also be that the "Symbol" font is defined incorrectly by jfor 
or not available on your target platform, and it would be a good idea to 
set the font specified in fo:list-item-label as well.

Hope this helps!


-- 
  Bertrand Delacretaz (codeconsult.ch, jfor.org)

  buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
  blogspace http://www.codeconsult.ch/bertrand





-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en