aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] patch: new tex mode


From: Matthias Franz
Subject: Re: [aspell-devel] patch: new tex mode
Date: Mon, 7 Feb 2011 01:09:39 +0900
User-agent: Mutt/1.5.20 (2009-08-17)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]