Just a quick update on this. I've begun work on it, about 1/3 through
I'd say. I'm working on a branch which I will push when it's ready
(hopefully next week).

I realized that it's not a good idea to eliminate WPXString altogether
as the functionality for explicitly inserting spaces is really useful
for ODT and HTML filters. Basically, these documents ignore all but
one consecutive unicode space: if you want this, you are expected to
define them explicitly (using a text:s or   element). So what I'm
doing instead is making WPXString an internal-only API and moving the
handling of spaces to libwpd proper.

Now, if there is more than one consecutive space in a given piece of
text, libwpd will tell you about the remaining ones with an
insertSpace() callback. This centralizes a somewhat-complicated piece
of logic in one place, which seems like a win to me.

Will

2010/10/23 Fridrich Strba <fridrich.st...@bluewin.ch>:
> Will,
>
> On Sat, 2010-10-23 at 15:41 -0400, William Lachance wrote:
>> I imagine I could convert everything libwpd-related (libwpd,
>> writerperfect, bindings, libwpg, the abiword plugin) to this approach
>> (with the insertSpace function I mentioned above) in the space of an
>> afternoon next week.
>
> Ok, so if you manage to do it and if valgrind is happy (./regression.pl
> --odt --vg ), I will not stop anybody from doing anything :)
>
> Cheers
>
> Fridrich
>
>



-- 
William Lachance
wrl...@gmail.com

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Libwpd-devel mailing list
Libwpd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libwpd-devel

Reply via email to