标签: aspell

Emacs,如何为LaTeX文件自动打开flyspell

我只将Emacs用于\ LaTeX和python编程.有没有办法flyspell-mode在我处理.tex文件时自动打开,并flyspell-prog-mode在我处理.py文件时打开?我怎么能在我的.emacs文件中这样做?

emacs aspell flyspell emacs24

3
推荐指数
1
解决办法
2710
查看次数

Pspell仅使用自定义词典

像这篇文章的问题: 如何禁用Pspell中的默认英语词典并仅使用自定义词典?

我创建自定义词典.并在控制台测试 - 一切正常.控制台查询如下:

echo Engenier | aspell -a -d /var/www/Lib/profiles.rws
Run Code Online (Sandbox Code Playgroud)

结果 - 只有1个建议.这是正确的结果

但我不能用pspell重复这个结果

我尝试了这个变种(http://board.phpbuilder.com/showthread.php?10298706-Resolved-pspell-hell),但这对我没有帮助

许多变体中的所有时间都加载我的自定义基础"EN"字典.但我只需要定制

我怎么只用我的字?

PS:pspell - aspell for php http://www.php.net/manual/en/ref.pspell.php

php aspell

3
推荐指数
1
解决办法
949
查看次数

Aspell无法在OS X 10.9(Mavericks)上构建

因此失败了:

./common/errors.hpp:17:36: error: redefinition of 'aerror_other' with a different type: 'const acommon::ErrorInfo *const' vs 'const struct AspellErrorInfo *const'
Run Code Online (Sandbox Code Playgroud)

我已经多次看到该错误,但是没有任何修复。

我想我可以安装Fink或MacPorts,但是我对这两种程序的经验是混杂的(令人沮丧的),对于一个程序来说似乎有点过头了。有没有办法构建aspell,还是Fink或MacPorts是唯一可行的选择?Fink或MacPorts会减少问题的发生?

aspell macports fink

3
推荐指数
1
解决办法
561
查看次数

计算R中拼写错误的单词

Row<-c(1,2,3,4,5)
Content<-c("I love cheese", "whre is the fish", "Final Countdow", "show me your s", "where is what")
Data<-cbind(Row, Content)
View(Data)
Run Code Online (Sandbox Code Playgroud)

我想创建一个函数,告诉我每行有多少单词错误.

一个中间步骤是让它看起来像这样:

Row<-c(1,2,3,4,5)
Content<-c("I love cheese", "whre is the fs", "Final Countdow", "show me your s", "where is     what")
MisspelledWords<-c(NA, "whre, fs", "Countdow","s",NA)
Data<-cbind(Row, Content,MisspelledWords)
Run Code Online (Sandbox Code Playgroud)

我知道我必须使用aspell,但我有问题只在行上执行aspell而不是总是直接在整个文件上,最后我想计算每行有多少单词错误为此我将采取以下代码:计算R中字符串中的单词数?

spell-checking r aspell count

2
推荐指数
2
解决办法
1419
查看次数

Git Hook Spellchecker忽略缩进线

我正在编写一个git钩子,拼写检查我的提交消息.这是我到目前为止:

#!/bin/sh

ASPELL=$(which aspell)

WORDS=$($ASPELL list < "$1")

if [ -n "$WORDS" ]; then
    echo -e "Possible spelling errors found in commit message. Consider using git commit --amend to change the message.\n\tPossible mispelled words: " $WORDS
fi
Run Code Online (Sandbox Code Playgroud)

我不知道如何告诉aspell我想忽略缩进的行(两个或多个空格).这将避免有关文件名,注释等的恼人消息.

谢谢!

git hook ignore aspell

2
推荐指数
1
解决办法
424
查看次数

标签 统计

aspell ×5

count ×1

emacs ×1

emacs24 ×1

fink ×1

flyspell ×1

git ×1

hook ×1

ignore ×1

macports ×1

php ×1

r ×1

spell-checking ×1