[Top][All Lists]

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

[Texmacs-dev] Once again: automatic quoting

From: Norbert Nemec
Subject: [Texmacs-dev] Once again: automatic quoting
Date: Tue, 11 Oct 2005 10:33:41 +0200
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)

Hi there,

sorry to bring this up once again. I think, it exists as a bug-report
somewhere, but I'm not sure about it:

In, 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.


reply via email to

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