aspell

Run aspell on manpage

这一生的挚爱 提交于 2021-02-11 04:54:36
问题 I want use Aspell on man page but i have problem with word splitting. I use man man | col -bx | aspell (...) but "man man | col -bx " return text with spitted words i.e: "man formats and displays the on-line man- ual pages. If you specify section, man on- ly looks in that section of the manual." So Aspell return this words as wrong. Any ideas how switch it off? 回答1: You want to format the man pages without hyphenation. This should do it: groff -mtty-char -Tutf8 -man -rHY=0 /usr/share/man/man1

Run aspell on manpage

五迷三道 提交于 2021-02-11 04:53:05
问题 I want use Aspell on man page but i have problem with word splitting. I use man man | col -bx | aspell (...) but "man man | col -bx " return text with spitted words i.e: "man formats and displays the on-line man- ual pages. If you specify section, man on- ly looks in that section of the manual." So Aspell return this words as wrong. Any ideas how switch it off? 回答1: You want to format the man pages without hyphenation. This should do it: groff -mtty-char -Tutf8 -man -rHY=0 /usr/share/man/man1

Run aspell on manpage

南楼画角 提交于 2021-02-11 04:52:33
问题 I want use Aspell on man page but i have problem with word splitting. I use man man | col -bx | aspell (...) but "man man | col -bx " return text with spitted words i.e: "man formats and displays the on-line man- ual pages. If you specify section, man on- ly looks in that section of the manual." So Aspell return this words as wrong. Any ideas how switch it off? 回答1: You want to format the man pages without hyphenation. This should do it: groff -mtty-char -Tutf8 -man -rHY=0 /usr/share/man/man1

Add dictionary to pyenchant

你说的曾经没有我的故事 提交于 2021-02-08 07:42:34
问题 Using Mac OSX 10.12.3 with Python 3. I have installed pyenchant but it only works with the preinstalled dictionaries. import enchant print(enchant.list_languages()) ['de_DE', 'en_AU', 'en_GB', 'en_US', 'fr_FR'] I have installed Homebrew and tried to install the Swedish language dictionary from ftp://ftp.gnu.org/gnu/aspell/dict/0index.html following this answer: https://stackoverflow.com/a/35757817/4802426 brew install aspell-sv Error: No available formula with the name "aspell-sv" ==>

How to use Unicode in aspell dictionary?

陌路散爱 提交于 2020-01-02 18:20:32
问题 I'm trying to use aspell to check spelling in my text. I have a custom dictionary with exceptions. They are all in ASCII, but one word is in Unicode ( foo.en.pws ): personal_ws-1.1 en 554 Foo bar Bárbara Then, I run: cat x.txt | aspell -a --encoding=utf-8 -p ./foo.en.pws And I'm getting: Error: ./foo.en.pws: The word "Bárbara" is invalid. The character '�' (U+A1) may not appear in the middle of a word. What should I do? 回答1: I found a way, thanks to this documentation page. The first line of

How to use Unicode in aspell dictionary?

一笑奈何 提交于 2020-01-02 18:18:19
问题 I'm trying to use aspell to check spelling in my text. I have a custom dictionary with exceptions. They are all in ASCII, but one word is in Unicode ( foo.en.pws ): personal_ws-1.1 en 554 Foo bar Bárbara Then, I run: cat x.txt | aspell -a --encoding=utf-8 -p ./foo.en.pws And I'm getting: Error: ./foo.en.pws: The word "Bárbara" is invalid. The character '�' (U+A1) may not appear in the middle of a word. What should I do? 回答1: I found a way, thanks to this documentation page. The first line of

Emacs, how to auto turn on flyspell for LaTeX file

感情迁移 提交于 2020-01-02 08:34:29
问题 I use Emacs only for \LaTeX and python programming. Is there a way to automatically turn on flyspell-mode when I work on a .tex file, and turn on flyspell-prog-mode when I work on a .py file? How can I do this in my .emacs file? 回答1: Add those functions to hooks of python-mode and latex-mode (require 'python) ;; If you use tex-mode (require 'tex-mode)` (add-hook 'latex-mode-hook 'flyspell-mode) ;; If you use AUCTeX (load "auctex.el" nil t t)` (add-hook 'LaTeX-mode-hook 'flyspell-mode) (add

Aspell Spell Checker on iPhone?

一笑奈何 提交于 2019-12-22 16:46:32
问题 I've managed to compile the aspell as a static library for iPhone. I've the libaspell.a file and included it in my xcode project as a framework. Does anybody know how to use their c/c++ api for iphone? Is there any sample or example somewhere on the net? Thank you for any feedback in advance, John 回答1: Looks to me like you just need to look closer at the documentation. Here is the C API documentation: http://aspell.net/man-html/Through-the-C-API.html#Through-the-C-API In that doc it says: 6.1

Aspell Spell Checker on iPhone?

China☆狼群 提交于 2019-12-22 16:46:07
问题 I've managed to compile the aspell as a static library for iPhone. I've the libaspell.a file and included it in my xcode project as a framework. Does anybody know how to use their c/c++ api for iphone? Is there any sample or example somewhere on the net? Thank you for any feedback in advance, John 回答1: Looks to me like you just need to look closer at the documentation. Here is the C API documentation: http://aspell.net/man-html/Through-the-C-API.html#Through-the-C-API In that doc it says: 6.1

Pspell use only custom dictionary

六眼飞鱼酱① 提交于 2019-12-22 09:55:10
问题 question like this post: How to disable default English dictionary in Pspell and use only Custom dictionary? I create my custom dictionary. And test in console - all work fine. Console query like this: echo Engenier | aspell -a -d /var/www/Lib/profiles.rws result - only 1 suggestion. It`s correct result But i cant repeat this result with pspell I try this variant (http://board.phpbuilder.com/showthread.php?10298706-Resolved-pspell-hell), but this doesn`t help me All time in many variants load