Re: Fwd: Smart quotes patch

From: Bobby Weinmann <bobby.weinmann_at_gmail.com>
Date: Thu Mar 13 2008 - 11:59:10 CET

Thanks for the catch. I forgot to turn off smart quote replacement in
cmdRedo() as well as cmdUndo. Your test case works now. Please let
me know if you find any other similar problems.

I zipped the patch this time to make it a little smaller.

Bobby

On Wed, Mar 12, 2008 at 6:02 PM, Tomas Frydrych <tf@o-hand.com> wrote:
>
> Bobby Weinmann wrote:
> > Here is my second attempt at a patch. I have done some preliminary
> > tests and it seems to work for English. The new thing is that UNDO
> > WORKS! (at least for me)
>
> Thanks for working on this; unfortunately the undo/redo seems to be
> still broken -- try the following:
>
> 1. Type: This' a test.
> 2. Undo 3 times,
> 3. Redo 1 time: assert at px_ChangeHistory.cpp:138 (2x)
>
> After that, it is not possible to do Redo again, and I am left with
>
> This'
>
>
> > 1) A GUI to set quote characters (I believe the rules will work for
> > most languages, only the characters would need to change)
>
> As I said before, this really should JustWork without any GUI -- we have
> all the input that is need to decide what quotes to use, just need a
> mechanism to translate sqQUOTEls, sqQUOTErs, sqQUOTEld, and sqQUOTErd to
> the appropriate character based on the current language setting
> (obtainable with fl_BlockLayout::getProperty()) before calling
> cmdCharInsert().
>
>
> > 2) An easy way to add an apostrophe at the beginning of a word ('Tis
> > or 'em) - perhaps you could use the backtick?
>
> Probably not the backtick unmodified, but perhaps something like
> Ctrl+backtick, although that might become problematic with different kbd
> layouts.
>
> Tomas
>
>

Received on Thu Mar 13 11:59:27 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 13 2008 - 11:59:27 CET