groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Re: grohtml patches


From: Gaius Mulley
Subject: Re: [Groff] Re: grohtml patches
Date: 08 Dec 2003 10:10:15 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Werner LEMBERG <address@hidden> writes:

> > currently the image_generator is used only by pre-html.cpp:1650 (in
> > my copy) just after font::load_desc().  The font::load_desc in
> > src/libs/libgroff/font.cpp parses the DESC file and simply sets
> > various fields.  In our case it tests for the image_generator string
> > and sets the font::image_generator string.  Ok, I concede :-) I
> > guess we could move this functionality into pre-html.cpp (in a
> > similar way to that already done for obtaining the postscript
> > resolution in src/preproc/html/pre-html.cpp:249).  The duplication
> > occurs (only in a small part admittedly) in that we have another
> > method which opens up devhtml/DESC and obtains values from it.  But
> > I do agree that using my approach introduces a library value in
> > libgroff which only grohtml uses.  So, ok, I'll move the code and
> > borrow heavily from the current get_resolution method..
> 
> What about using `handle_unknown_desc_command' instead?  This routine
> is called automatically during font::load_desc().  Have a look at
> src/preproc/grn/main.cpp.

good idea!

Gaius

reply via email to

[Prev in Thread] Current Thread [Next in Thread]