Re: DocBook - trouble with 'em' unit
Bertrand Delacretaz <[email protected]> Tue, 18 Feb 2003 11:21:55 +0100
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Stefan, > i have this message from the jfor processor "can't convert to the 'em' > unit" ... That's correct, jfor does not currently support "em" units. The current mechanism for units conversion is fairly simple (src/org/jfor/jfor/converter/FoUnitsConverter.java) and easy to extend to new units, but I'm not sure if the RTF format supports units like "em" which is a dimension that is relative to the current font size, I'd have to check. Currently, all units conversions output measurement in "twips" which is an absolute measurement in RTF. So, to support "em" units one should a) find out if and how RTF supports relative units b) modify the FoUnitsConverter class to convert "em" measurements to these units if they exist. c) if relative units are not natively supported in RTF, write a context-sensitive conversion that takes the current font into account when converting units. Hope this helps, but unfortunately there is no immediate solution. -- Bertrand Delacretaz (codeconsult.ch, jfor.org) XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf