Re: Smart quotes patch

From: Tomas Frydrych <tf_at_o-hand.com>
Date: Tue Feb 05 2008 - 09:07:20 CET

Martin Sevior wrote:
> Hi Bobby,
> Thank you very much for your patch. It's great to get
> contributions like this out of the blue. My recollection was that the
> previous implementation of Smart Quotes had serious trouble when
> interacting with undo/redo. (I believe that there were oscillations
> between to smart and back again.)

There are other issues with the current code, notably typographic quotes
need to be localized (e.g., in many languages the opening quote is
expected to be below the base line).

Tomas

>
> Have you tested your patch with undo/redo? Did you see this sort of
> effect?
>
> Cheers
>
> Martin
>
> On Mon, 2008-02-04 at 20:43 -0500, Bobby Weinmann wrote:
>> I have attached a diff to fix/implement smart quotes. I used svn
>> diff, so if I did it wrong, please let me know.
>>
>> All I did was change rule #7 (see fl_DocLayout.cpp) so that quotes in
>> isolation are changed to opening quotes.
>>
>> I added GUI support for GTK+. I could do Windows myself, but I would
>> need help for Cocoa and anything else that is currently supported.
>>
>> I am willing to do more, but I wanted to see if smart quotes would be
>> rejected outright. I think it works well, but I don't know how the
>> regular developers feel.
>>
>> In particular, I was thinking of:
>> * An option to always convert backtick to left-single-quote and
>> apostrophe to right-single-quote. This would allow easy manual entry
>> of smart quotes which are tricky because a word can sometimes start
>> with an apostrophe (like, "go get 'em")
>> * Allow smart quotes to be turned off just for single-quotes (like OOo
>> and Word).
>> * Add a toolbar button to toggle between smart quotes and ASCII quotes.
>>
>> Bobby
>
Received on Tue Feb 5 09:11:02 2008

This archive was generated by hypermail 2.1.8 : Tue Feb 05 2008 - 09:11:02 CET