[Evolution-hackers] Re: [Gtkhtml] [patch] Printing with Pango



On Mon, 2004-06-07 at 11:58, Radek Doulík wrote:
> On Sat, 2004-06-05 at 15:58 -0400, Owen Taylor wrote: 
> > Here's a first draft of my patch to make gtkhtml print with Pango.
> > There's almost no new code here, it's just moving stuff around,
> > removing code that is no longer needed, and fixing up units.
> > 
> > Open questions:
> > 
> >  - Assuming that we can come up with a final patch, how do we get it
> >    into CVS? 
> I would like to keep it on separate branch, say gnome-2-8, so that
> HEAD gtkhtml is the one required for HEAD evolution.

OK, we can manage that. I'm really not fond of

 HEAD ----------------------------------- 
   \     merge   merge   merge        /merge
    \      |       |       |         /
     \ ----\/------\/------\/-------/

but it can be done.

You really don't want to use gnome-2-8 as the branch name, how because
that name is the standard name for the real post-2-8 stable branch
name. maybe gnome-2-8-devel?

Note that it would likely be necessary to actually make releases
off the branch for gnome-2.8.
> 
> >    Would it be possible to branch early for a pre-GNOME-2.8 release
> >    and land these changes on HEAD? I think I and/or Dave Malcom
> >    could help port changes from stable => HEAD if necessary.
> > 
> >    In general, I think people would be really excited if they could
> >    print Indic languages for GNOME-2.8. (Unfortunately, bidi 
> >    languages still will be broken.)
> Yes, your gnome-print work is really great news. The gtkhtml still
> needs some work to display RTL languages right, but it's pretty close
> (we need reorder pango items IIRC).

Bidi certainly goes well beyond this patch. I don't think you can
actually do the reordering completely at the PangoItem level ...
if I understand the gtkhtml structure 
  
  <text> <image> <text>

Gives you two HTMLText objects not one? But the reordering needs to
be across the whole line of inline objects. (The HTML specs give quite a
bit of detail about how bidi is supposed to work.)

I don't think getting *display* right for RTL is a huge project if there
was was someone interested in doing the work. Editing and selection
is a bit more of a project. (Much of pango-layout.c is helper functions
for bidi editing.)

Regards,
						Owen


Attachment: signature.asc
Description: This is a digitally signed message part



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