On Sat, Feb 05, 2011 at 09:18:34PM -0700, Kevin Atkinson wrote: > One question: > > >3) Discretionary hyphens and italic corrections are ignored. For > >example, "hy\-phen" and "shelf\/ful" are recognized as single words. > >(This is a hack, but it seems to work.) > > Can you explain how this hack works. I actually have a proper fix > for this in Aspell 0.61, so for Aspell 0.61 this hack should > probably be removed.
This is done in void TexFilter::process(FilterChar * & str, FilterChar * & stop) If the sequence "\-" or "\/" is detected (and is not at the beginning of str), then the two characters are deleted. To compensate for this, two zero characters (with width 0) are added at the end. Moreover, the width of the character immediately preceding the sequence is increased by the length of the sequence so that replacements work correctly. -- Matthias _______________________________________________ Aspell-devel mailing list Aspell-devel@gnu.org http://lists.gnu.org/mailman/listinfo/aspell-devel