[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] Once again: automatic quoting
From: |
Norbert Nemec |
Subject: |
Re: [Texmacs-dev] Once again: automatic quoting |
Date: |
Wed, 12 Oct 2005 08:54:30 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050912) |
Joris van der Hoeven wrote:
>On Tue, Oct 11, 2005 at 10:33:41AM +0200, Norbert Nemec wrote:
>
>
>>sorry to bring this up once again. I think, it exists as a bug-report
>>somewhere, but I'm not sure about it:
>>
>>In 1.0.5.10, the automatic quotes still use a bad algorithm that gets in
>>the way quite often: It works fine when typing down a whole paragraph,
>>but when you edit inside a paragraph later to add quotes, the algorithm
>>does bogus: it seems to check for the character at the end of the
>>paragraph instead of the actual cursor position.
>>
>>A better algorithm (I believe, this is, what is used in most
>>text-processors as well) would be to just check the one character
>>preceding the inserted quote. Is it one of (<whitespace>,
>><paragraph-beginning>, "(", "[", "{"), you should get opening quotes,
>>otherwise closing quotes.
>>
>>Furthermore, automatic quotes should be deactivated inside verbatim
>>environments and there should be a \" key-sequence to produce a regular
>>(ascii) quote.
>>
>>Sorry, I would have liked to send a patch for this, but when I tried, I
>>found that it would have needed more knowledge about the internals of
>>TeXmacs than I have at the moment.
>>
>>
>
>If you are willing to hack a bit, then look at the routine close-quotes?
>
>
True - the documentation has improved quite a bit since I tried last
time. Maybe I find my way through it now. I'll give it a shot and speak
up again when I get stuck.