On Thu, Dec 02, 2004 at 12:16:55PM +0100, Finn Bock wrote: > >and point #4 uses the user-definable threshold; where should this constant > >be stored? Inside the code of LineLM or in a configuration file? > > An extension attribute? > > <fo:block fox:knuth-threshold="5"> ... </fo:block> > > I suspect that the other knuth parameters should be specified the same > way. But it is not a high priority IMO.
It is not a layout specification in the fo file, it is a fine-tuning of the algorithm applied by a particular FO Processor. It should be in the user configuration. It may be specified in the configuration file, or it may be specified by the calling application in the configuration object FOUserAgent.userConfig. In the configuration file it should be something like: <line-layout> <hyphenation-threshold>5</hyphenation-threshold> other parameters </line-layout> FOUserAgent should get appropriate methods to extract the layout part of the configuration and pass it on to a client class, e.g. LineLM. Cf. FOUserAgent.getUserRendererConfig(). TeX's terms are pretolerance and tolerance for the two values of maxAdjustment. Regards, Simon -- Simon Pepping home page: http://www.leverkruid.nl