[Dev-luatex] Wrong placement of image nodes in non left-right directions

Khaled Hosny khaledhosny at eglug.org
Tue Jan 20 14:27:34 CET 2009


On Fri, Jan 09, 2009 at 11:24:45PM +0200, Khaled Hosny wrote:
> > thanks again, i have applied it. But i'm now not sure anymore if it is
> > allowed to change font_direction to box_direction (as i proposed) in the
> > output part, since the TeX machinery may assign e. g., height/depth to
> > "running" \vrules and to the surrounding hboxes depending of orientation
> > of internal stuff. This needs to be in sync with the output part. I'll
> > try to check how things are packed. So maybe the font_dir --> box_dir
> > patch needs to be reverted...
> >
> Thanks!
> I'll try to look at it again next week (quite busy now), I'm trying to
> understand
> I'm trying to understand more how this stuff works.

This new patch fixes BL_ and BR_ directions in vlist, it wasn't working
properly with the former patch.

Regards,

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
-------------- next part --------------
Index: luatex.web
===================================================================
--- luatex.web	(revision 1786)
+++ luatex.web	(working copy)
@@ -30106,14 +30106,12 @@
     end;
   dir_BL_: begin
     cur_h:=left_edge;
-    cur_v:=cur_v+pdf_height(p);
     end;
   dir_TR_: begin
-    cur_h:=cur_h-pdf_width(p);
+    cur_h:=left_edge-pdf_width(p);
     end;
   dir_BR_: begin
-    cur_h:=cur_h-pdf_width(p);
-    cur_v:=cur_v+pdf_height(p);
+    cur_h:=left_edge-pdf_width(p);
     end;
   othercases cur_h:=left_edge;
   endcases;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://www.ntg.nl/mailman/private/dev-luatex/attachments/20090120/2dc9b761/attachment.bin>


More information about the dev-luatex mailing list