Insane proof of concept patch


Subject: Insane proof of concept patch
From: Dom Lachowicz (cinamod@hotmail.com)
Date: Fri Mar 16 2001 - 00:13:51 CST


I say insane because I don't want anyone committing this work _ever_. But
perhaps someone wants to embellish this *most heinous and slow-ass hack* and
make it work.

What I submit to you is the following: 1 document, 1 patch that should not
be committed, and one unaltered screenshot. You can grab these from
http://198.139.111.101/abiword/spelling.zip

The screenshot is rather plain but strikes the point home - I've enabled
multi-language spell-checking in a document.

To do so, I've added a method (and committed the following things) to the
fv_View class to allow you to select between 2 DocPositions as well as
changing all variables in PP_Property and ut_Language of the form 'en-US'
into 'en_US'. These are standard forms for locales, and can be passed
directly into pspell's checking routines.

This only works with Pspell enabled builds for semi-obvious reasons, plus a
bit of laziness on my part. There are bugs in this and this most certainly
isn't done in the best way possible, but here it is.

Maybe someone will want to build upon this work of mine or use it as a
proof-of-concept that it can be done. Do with it what you may.

Dom
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com



This archive was generated by hypermail 2b25 : Fri Mar 16 2001 - 00:13:57 CST