Re: [Paps-discuss] Question about scaling in paps
Brought to you by:
dov-g
|
From: Akira T. <at...@gc...> - 2006-11-03 15:14:18
|
>>>>> On Fri, 3 Nov 2006 12:11:47 +0200, >>>>> "DG" == "Dov Grobgeld" <dov...@gm...> wrote: DG> On 11/3/06, Akira TAGOH <at...@gc...> wrote: DG> Regarding CUPS, I'm not very familiar with how it works, but I am sure DG> that you can create a script that works as the which then calls an DG> unmodified version of paps. That might even be better as that may DG> provide a standard way of changing defaults (by modifying the scripts DG> default parameter's file. Maybe. but I'd prefer to patch it out so that a filter programs may needs to call CUPS APIs for various reasons, which means it might not be dealt on a shell script. >> However specifying a font and a font size may be still good >> feature for paps since paps doesn't support the direct >> printing or just works as a frontend filter program, because >> it won't causes wasting their papers directly. they can just >> try out before getting the real printing. but CUPS filters >> aren't supposed to do so since it has to be a backend filter >> program. DG> Sorry. I didn't follow this. You can of course change the font size in DG> the font_desc option. Is this what you meant? Well, no. erm, of course I could hardcode a font name and a font size for default though, but noone can do it as an option -- I meant it would be helpful as long as users uses paps as paps, but not be helpful for paps as CUPS filter because of the reason I wrote in previous mail. For more details, you just use lpr command for printing and CUPS invokes the proper filter according to their MIME types. which means all CUPS filters isn't basically desired to be invoked directly and they has the same command line interface for CUPS without any exceptions, including paps as CUPS filter, which is included in Fedora Core. To not get confused, FC's paps behaves CUPS filter only when it's invoked from CUPS or as "texttopaps". otherwise it just works as an unmodified version of paps, but anyway. So, what options are given to CUPS filters depends on CUPS. there are no such options to change the font nor the font size directly right now IIRC. then I don't think CPI/LPI isn't really used. otherwise they didn't have such features. >> Sounds nice. so does people need to give paps a Pango marked >> up text, right? it would be nice if paps can highlight the >> text automatically according to its format. DG> There are a few ways that can be done: DG> 1. Modify highlight to output pango markup and then invoke highlight DG> as a subprocess under paps. DG> 2. Like 1 but let some new additional external program first call DG> highlight and then paps. DG> 3. Let paps call highlight and have it generate XML output which is DG> then parsed and turned into pango markup. DG> 4. Like 3 but let an external program tie it together. DG> In any case, there is no reason to reinvent the wheel of GNU DG> highlight. I would probably start with option 4 and a perl program to DG> tie things together. Ok, I see. I'd love it. it would be also nice to be controllable a feature at configure as optional for those who don't want or don't have GNU highlight. Cheers, -- Akira TAGOH |