[TxMt] Duplicating "kill-sentence" in TM

Hans-Joerg Bibiko bibiko at eva.mpg.de
Mon Nov 6 13:27:25 UTC 2006


> On 11/6/06, Allan Odgaard <throw-away-1 at macromates.com> wrote:
>> On 6. Nov 2006, at 12:53, Hannu Rajaniemi wrote:
>>
>> > [...] Getting this to work in e.g. Markdown mode (where I do most
>> > of my writing) would be enough. Any ideas?
>>
>> The only non-trivial part here is to define "sentence", does a
>> sentence start at the beginning of a line or after punctuation, and
>> end at end of line or after punctuation? How about abbreviations like
>> e.g. that one, should it have a list of such exceptions or spot them
>> based on simple patterns, etc.
>
> IIRC Emacs considers that a sentence ends with a period followed with
> either 2 spaces, a linefeed or a formfeed character.

The tricky thing is e.g. that if you write German usually you don't  
type two spaces after a period to indicate that is the end of a  
sentence. So, by my opinion, it is very difficult to define what is a  
'sentence'.

Cheers,

Hans




More information about the textmate mailing list