[MonoDevelop] [PATCH] Include _ on double-click selectionof words
Jeffrey Stedfast
fejj at novell.com
Sun Apr 22 11:19:26 EDT 2007
On Sun, 2007-04-22 at 14:12 +0200, Ben Motmans wrote:
> Hey,
>
> On 4/22/07, Miguel de Icaza <miguel at ximian.com> wrote:
> > I remember that we could not figure out a way of providing the new
> > policy.
> >
>
> I googled around a bit this morning, and i stumbled onto some pango
> documentation:
>
> http://sector7.xor.aps.anl.gov/programming/gtk-2.6/pango/pango-Text-Processing.html#pango-break
> http://sector7.xor.aps.anl.gov/programming/gtk-2.6/pango/PangoEngineLang.html#PangoEngineLangClass
>
> essentially, what the docs tell us, is to create a new PangoEngineLang
> class and implement the script_break () method, though there is an
> issue with this solution:
> according to monodoc, Pango# does not allow us to implement
> script_break, maybe we could add a ScriptBreakFunc property? this way
> we still allow the use of pango_default_break () when the property is
> set to null and we can override it whenever we want
if we need pango-sharp to change, we can change it, although another
solution might be to implement the fix as part of GtkSourceView as I
know they want a fix for this as well.
>
> so, a possible solution?
[snip]
Miguel and I had looked into doing it in C - and as Miguel said, there
was no way to override the default script_break() (to my recollection)
because pango_break() needs an 'analysis' argument from pango_itemize()
which is what attaches a PangoEngineLang object, and there are no hooks
to allow you to specify which PangoEngineLang (class/subclass) gets
used, so there's no way to ever override the script_break() function -
it would appear all PangoEngineLangs are hard-coded.
However, it might be that we overlooked something.
Jeff
More information about the Monodevelop-list
mailing list