From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: flyspell-mode and two languages
Date: Fri, 17 Oct 2008 14:35:52 -0700 (PDT) [thread overview]
Message-ID: <6e14ca71-4096-4a74-82c3-40bbd8fb45b8@w39g2000prb.googlegroups.com> (raw)
In-Reply-To: 2e5d3831-2580-4369-be7a-7d1d375241e4@v56g2000hsf.googlegroups.com
On Oct 17, 1:02 pm, Memnon Anon <gegendosenflei...@googlemail.com>
wrote:
> Hi!
>
> I love flyspell-mode. But I often have to edit files containing 2
> languages, in most
> cases german and english. I was wondering how you solved this. Is
> there a way to
> define a main-language, and if the word seems to be misspelled, check
> a
> secondary-language?
>
> Any hint appreciated...
no answer to your specific question... but last time i tried flyspell
and was extremely dissatisfied with it. For primarily 2 reasons, in
order of importance:
(1) it doesn't let me right click to select from a list of correct
spellings. What i have to do is to go to each word and do ispell-word.
(2) its vocabulary is extremely small. Words in modern journalism will
typically light it up like neolight show. (e.g. try any article from
Time mag (e.g. time.com ))
I haven't really spend time to dig solutions on these, but basically
abandoned it. What i do is to have a keyboard shortcut that open the
current buffer in TextWrangle (aka BBEdit Light), press a button then
it highlight all unkown words, then right click on each to fix, then
save, close, then back to emacs refresh buffer.
However, last week i found
• Batch style spell checker http://www.emacswiki.org/cgi-bin/wiki/SpeckMode
by Martin Rudalics.
which is really wonderful. It does (1) like most word processors. I'm
not sure if it does contain good sized vocabulary yet.
With respect to your question, possibly you could give it a try and
maybe it allows multiple lang vocabs. (i'm guessing it does. For one
thing, you could add the unknown word. However, i'm not sure where is
the source file it adds to. Did spent few min on it but didn't find
it.)
Related, if you are a dictionary buff like me, you might also like:
★ http://www.myrkr.in-berlin.de/dictionary/index.html by Torsten
Hilbrich↗ . Lookup English word definitions in emacs thru online
English dictionary server.
There are several others but this is one i tried and sufficiently
happy with.
Also, most or all emacs dicts are interface to open sourced dicts
online. Open sourced dicts are low quality when compared to pro ones.
If you work with English in some semi-pro capacity, you'll need access
to commercial ones. This i do like this:
(defun lookup-word-definition-in-w3m ()
"Look up the word's definition in a emacs-w3m.\n
If a region is active (a phrase), lookup that phrase."
(interactive)
(let (myword myurl)
(setq myword
(if (and transient-mark-mode mark-active)
(buffer-substring-no-properties (region-beginning)
(region-end))
(thing-at-point 'symbol)))
(setq myword (replace-regexp-in-string " " "%20" myword))
(setq myurl (concat "http://www.answers.com/main/ntquery?s="
myword))
(w3m-browse-url myurl)
))
The url used above is American Heritage Dict, which i find the best
among some 4 or so prof dicts that are available free online.
See also:
A Review of 3 Dictionaries
http://xahlee.org/Periodic_dosage_dir/bangu/dict_review.html
in my setup, pressing 0 on the numerical keypad gets me to def of the
current word or text selection from open sourced dict using Torsten
Hilbrich's dict mode. Pressing Shift-0 gets me to American Heritage
thru w3m to a website. Pressing Ctrl+0 gets me to Wikipedia in a
browser.
Xah
∑ http://xahlee.org/
☄
next prev parent reply other threads:[~2008-10-17 21:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 20:02 flyspell-mode and two languages Memnon Anon
2008-10-17 20:11 ` harven
2008-10-17 21:35 ` Xah [this message]
2008-10-17 22:02 ` Eli Zaretskii
2008-10-18 0:15 ` Nikolaj Schumacher
2008-10-18 8:43 ` Eli Zaretskii
2008-10-18 8:55 ` Teemu Likonen
2008-10-18 9:24 ` Eli Zaretskii
[not found] ` <mailman.1409.1224288908.25473.help-gnu-emacs@gnu.org>
2008-10-18 22:59 ` Xah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6e14ca71-4096-4a74-82c3-40bbd8fb45b8@w39g2000prb.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).