emt icon indicating copy to clipboard operation
emt copied to clipboard

How to customize the tokenizer default behavior?

Open sincebyte opened this issue 1 year ago • 1 comments

Excellent work! It seems that NLTokenizer split text but ignored the sign char . example:emt-lib-path,the out put is emt, -lib ,-path but expect is emt ,-,lib,-,path Did there have any method to change the default behavior?

sincebyte avatar Jun 07 '24 12:06 sincebyte

It seems that NLTokenizer does not provide the related functionality (See https://developer.apple.com/documentation/naturallanguage/nltokenizer), so we need to handle it manually.

Actually, for English characters (or more precisely, ASCII characters), emt will call Emacs' own forward-word/backward-word.

roife avatar Jun 07 '24 12:06 roife