After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 317192 - Update mini-fribidi
Update mini-fribidi
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.10.x
Other All
: Normal enhancement
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks: 315365
 
 
Reported: 2005-09-25 23:48 UTC by Behdad Esfahbod
Modified: 2005-11-03 21:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch against HEAD, without the mini-fribidi directory. (5.79 KB, patch)
2005-09-25 23:49 UTC, Behdad Esfahbod
none Details | Review
pango/mini-fribidi tarball (48.64 KB, application/x-gzip)
2005-09-25 23:50 UTC, Behdad Esfahbod
  Details
new patch with utf8 support. (132.71 KB, patch)
2005-11-03 17:22 UTC, Behdad Esfahbod
committed Details | Review

Description Behdad Esfahbod 2005-09-25 23:48:13 UTC
I'm attaching patches to update pango/mini-fribidi to latest version of GNU
FriBidi (0.10.7).  There's not much difference code-wise, except for the memory
chunk stuff that Noah had ripped off previously, but this cleans up a lot of
other mess too.

I moved pango_unichar_direction and pango_log2vis_get_embedding_levels back to
pango-utils.c, and simplified the fribidi patch a lot, by using fribidi_config.h
to instruct it how to behave.  The fribidi.patch is mostly all lines being
removed from fribidi sources, not adding new lines.  This makes maintenance of
that directory far easier.

As a bonus, Pango can be compiled using system FriBidi again.  Just pass
--with-fribidi to configure.  It doesn't try to pick it up by default though.

Owen, Noah, review please.
Comment 1 Behdad Esfahbod 2005-09-25 23:49:05 UTC
Created attachment 52645 [details] [review]
patch against HEAD, without the mini-fribidi directory.

This patches the rest of Pango for this change, and is enough to get Pango
going with --with-fribidi.
Comment 2 Behdad Esfahbod 2005-09-25 23:50:08 UTC
Created attachment 52646 [details]
pango/mini-fribidi tarball

And this is the new pango/mini-fribidi tarball.  I made a tarball instead of
patch, to make review easier.
Comment 3 Behdad Esfahbod 2005-10-01 08:54:27 UTC
Depending on bug 118439 for the new glib chunk allocator, to use for allocating
FriBidi TypeLink's.
Comment 4 Behdad Esfahbod 2005-10-05 00:09:30 UTC
Humm, in a second thought, we are maintaining our own trash stack on top of
GMemChunk.  So it's not absolutely necessary to use new glib allocator.  We may
want to use GTrashStack though.
Comment 5 Behdad Esfahbod 2005-11-03 17:22:06 UTC
Created attachment 54287 [details] [review]
new patch with utf8 support.

This patch includes all the bits, no tarball needed.  This also has UTF8
support added to fribidi, so no utf8->ucs4 conversion anymore!
Comment 6 Behdad Esfahbod 2005-11-03 21:14:10 UTC
Committed after removing the --with-fribidi stuff.

2005-11-03  Behdad Esfahbod  <behdad@gnome.org>

        * docs/tmpl/main.sgml, pango/Makefile.am, pango/pango-context.c
        (itemize_state_init), pango/pango-utils.c, pango/pango-utils.h,
        pango/pangox.c (itemize_string_foreach), pango/mini-fribidi/*:
        Updated to FriBidi version 0.10.7 patched to handle UTF-8 directly.
        Moved pango_log2vis_get_embedding_levels to pango-utils.c instead
        of mini-fribidi.  (#317192, review by Matthias Clasen)