[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/guess-language 3459b27 029/101: Updated doc strings.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/guess-language 3459b27 029/101: Updated doc strings. |
Date: |
Sat, 23 Feb 2019 10:34:36 -0500 (EST) |
branch: externals/guess-language
commit 3459b2747a5a98171407454682f487b64bd37ff2
Author: Titus von der Malsburg <address@hidden>
Commit: Titus von der Malsburg <address@hidden>
Updated doc strings.
---
guess-language.el | 33 ++++++++++++++++++++++-----------
1 file changed, 22 insertions(+), 11 deletions(-)
diff --git a/guess-language.el b/guess-language.el
index f4f364a..ea0f002 100644
--- a/guess-language.el
+++ b/guess-language.el
@@ -20,9 +20,20 @@
;;; Commentary:
-;; At this time, supported languages are English, French,
-;; German. Adding more languages is easy though. The detection
-;; algorithm is based on counts of character trigrams.
+;; Guess-language is a buffer-local minor mode. It guesses the
+;; language of the current paragraph when flyspell detects an
+;; incorrect word and changes ispell's dictionary and typo-mode
+;; accordingly. If the language settings change, flyspell is rerun
+;; but only on the current paragraph. Guess-language thus supports
+;; documents using multiple languages. If the paragraph is shorter
+;; than some user-defined value, none of the above happens because
+;; there is likely not enough text to guess the language correctly.
+;;
+;; The detection algorithm is based on counts of character
+;; trigrams. At this time, supported languages are English, French,
+;; German. Adding more languages is very easy, though, and this
+;; package already contains language statistics for 61 additional
+;; languages.
;; See here for more details:
;; https://github.com/tmalsburg/guess-language.el
@@ -104,8 +115,8 @@ little material to reliably guess the language."
(guess-language (region-beginning) (region-end)))
(defun guess-language-autoset ()
- "Detects language of the current paragraph and sets things like
-ispell dictionaries accordingly."
+ "Detects language of the current paragraph and changes updates
+ispell and typo mode accordingly."
(interactive)
(let* ((lang (guess-language-paragraph))
(codes (cdr (assoc lang guess-language-langcodes))))
@@ -135,12 +146,12 @@ A positive prefix argument enables the mode, any other
prefix
argument disables it. From Lisp, argument omitted or nil enables
the mode, `toggle' toggles the state.
-Guess-language mode is a buffer-local minor mode. When enabled,
-it guesses the language when flyspell detects words that are
-incorrectly and changes the ispell's dictionary and typo-mode
-accordingly. If the language settings change, flyspell is run on
-the current paragraph. If the paragraph is shorter than
-`guess-language-min-paragraph-length' none of the above happens
+Guess-language is a buffer-local minor mode. It guesses the
+language of the current paragraph when flyspell detects an
+incorrect word and changes ispell's dictionary and typo-mode
+accordingly. If the language settings change, flyspell is rerun
+on the current paragraph. If the paragraph is shorter than
+`guess-language-min-paragraph-length', none of the above happens
because there is likely not enough text to guess the language
correctly."
;; The initial value.
- [elpa] externals/guess-language 6dd0711 051/101: README simplify summary, (continued)
- [elpa] externals/guess-language 6dd0711 051/101: README simplify summary, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 431c3bd 053/101: Documentation: Arabic added, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language dfd62cc 047/101: Added support for Spanish., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language d5d966e 059/101: Show current language in the mode line., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 7c1fa87 060/101: Fix :lighter for minor mode., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 0f02b31 002/101: Added a README.org., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 26a4f31 008/101: Added support for French., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 9104d85 014/101: Get rid of dash.el dependency., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language a133106 015/101: README: Added prerequisites., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 19a7e46 034/101: README: Layout, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 3459b27 029/101: Updated doc strings.,
Stefan Monnier <=
- [elpa] externals/guess-language 549b0d3 018/101: Make sure trigram files are found., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 2c3590b 024/101: README: minor fix, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 0c256d4 031/101: Added support for a bunch of languages., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 6014777 021/101: Make sure we’re not messing with other buffers., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language b90858d 020/101: Updated commentary., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 8602d7a 040/101: Added autoload for minor mode., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 56603f8 035/101: README improvements, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 844467f 036/101: Hopefully more robust way to find data files., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language e28742b 025/101: Do not mess with flyspell defcustoms., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 45406db 030/101: README: minor fixes., Stefan Monnier, 2019/02/23