用'我'替换'我'使用Emacs ispell [英] Replacing 'i' with 'I' using Emacs ispell

查看:270
本文介绍了用'我'替换'我'使用Emacs ispell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 ispell 进行拼写检查,但是它不会用'I'替换'i'。

I use ispell to do spell-checking, but it does not replace the word 'i' with 'I'.

推荐答案

使用以下代码flyspell至少显示拼写错误。列表将被扩展。

With the following code flyspell at least shows such misspellings. The list is to be extended.

(defvar flyspell-wrong-one-letters '("i"))

(defadvice flyspell-word (before one-letter activate)
  "Check one-letter words"
  (when (and
     (if following (looking-at "\\<[[:alpha:]]\\>")
       (looking-back "\\<[[:alpha:]]\\>"))
     (member (match-string 0) flyspell-wrong-one-letters))
    (setq known-misspelling t)))

我刚刚看到flyspell还没有进入ispell。我知道这不是真正的解决方案...对不起,

I just looked into flyspell not into ispell yet. I know that this is not really a solution for you... Sorry.

这篇关于用'我'替换'我'使用Emacs ispell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆