[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/guess-language 881e261 068/101: Improve docstrings.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/guess-language 881e261 068/101: Improve docstrings. |
Date: |
Sat, 23 Feb 2019 10:34:44 -0500 (EST) |
branch: externals/guess-language
commit 881e2611b56dec720365fe1ce622746834578b23
Author: Titus von der Malsburg <address@hidden>
Commit: Titus von der Malsburg <address@hidden>
Improve docstrings.
---
guess-language.el | 44 ++++++++++++++++++--------------------------
1 file changed, 18 insertions(+), 26 deletions(-)
diff --git a/guess-language.el b/guess-language.el
index 48140ee..12780f4 100644
--- a/guess-language.el
+++ b/guess-language.el
@@ -53,30 +53,18 @@ dictionary, input methods, etc."
(defcustom guess-language-languages '(en de fr)
"List of languages that should be considered.
-Uses ISO 639-1 identifiers. Currently supported languages are:
- ar: Arabic
- cs: Czech
- da: Danish
- nl: Dutch
- en: English
- fi: Finnish
- fr: French
- de: German
- it: Italian
- nb: Norwegian
- pl: Polish
- pt: Portuguese
- ru: Russian
- sk: Slovak
- sl: Slovenian
- es: Spanish
- sv: Swedish"
+Uses ISO 639-1 identifiers. Currently supported languages are:
+Arabic (ar), Czech (cs), Danish (da), Dutch (nl), English (en),
+Finnish (fi), French (fr), German (de), Italian (it),
+Norwegian (nb), Polish (pl), Portuguese (pt), Russian (ru),
+Slovak (sk), Slovenian (sl), Spanish (es), Swedish (sv)"
:type '(repeat symbol)
:group 'guess-language)
(defcustom guess-language-min-paragraph-length 40
"Minimum number of characters in paragraph.
+
When a paragraph is shorter than this value (in characters),
guess-language doesn't do anything because there is likely too
little material to reliably guess the language."
@@ -104,14 +92,16 @@ little material to reliably guess the language."
(sk . ("slovak" nil))
(sl . ("slovenian" nil))
(sv . ("svenska" nil)))
- "Language codes for Ispell and typo-mode. The key is a symbol
-giving the ISO 639-1 code of the language. The values is a list
-with two elements. The first is the name of the Ispell
-dictionary that should be used (i.e., what you would enter when
-setting the language with `ispell-change-dictionary'). The second
-element is the name of the language setting that should be used
-with typo-mode. If a language is not supported by typo-mode,
-enter `nil'."
+ "Language codes for spell-checker and typo-mode.
+
+The key is a symbol specifying the ISO 639-1 code of the
+language. The values is a list with two elements. The first is
+the name of the dictionary that should be used by the
+spell-checker (e.g., what you would enter when setting the
+language with `ispell-change-dictionary'). The second element is
+the name of the language setting that should be used with
+typo-mode. If a language is not supported by typo-mode, that
+value is nil."
:type '(alist :key-type symbol :value-type list)
:group 'guess-language)
@@ -139,6 +129,7 @@ enter `nil'."
(defun guess-language (beginning end)
"Guess language in the specified region.
+
Region starts at BEGINNING and ends at END."
(unless guess-language-regexps
(guess-language-compile-regexps))
@@ -193,6 +184,7 @@ BEGINNING, END, and DOUBLON are ignored."
;;;###autoload
(define-minor-mode guess-language-mode
"Toggle guess-language mode.
+
Interactively with no argument, this command toggles the mode.
A positive prefix argument enables the mode, any other prefix
argument disables it. From Lisp, argument omitted or nil enables
- [elpa] externals/guess-language d1a43df 087/101: README: some details about minimal paragraph length, (continued)
- [elpa] externals/guess-language d1a43df 087/101: README: some details about minimal paragraph length, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 1516fbe 091/101: README: how to switch voice in festival, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 1afd382 097/101: defcustom to set the trigrams path, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 03e69d0 100/101: Removed some cruft., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language bc6fe11 099/101: Fix bug in `guess-language-forward- paragraph`., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 8450268 058/101: README: Configuration, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language b84e19d 064/101: README fix typo, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language d9933d3 075/101: Keep switching typo-mode., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language c369ef5 063/101: Type-mode is not a dependency anymore., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language f610859 057/101: Find data files more robustly., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 881e261 068/101: Improve docstrings.,
Stefan Monnier <=
- [elpa] externals/guess-language 4177b92 080/101: Typo-mode is not anymore a dependency., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language c0a9cd3 079/101: Mention custom functions in commentary., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 1f0d9d9 083/101: Fix docstring., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 1ab9637 085/101: Added guess-language-mark-lines for debugging., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 8c8a161 094/101: Treat org lists as one paragraph., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 2fd5023 093/101: In org buffers use org-backward/forward-paragraph., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language f54ca4f 086/101: Added test data from LIGA., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language bad0375 062/101: Always spell check with fast strategy., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 044f6d1 074/101: README: Updated documentation regarding new hook, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language d6c2fac 081/101: README re typo, Stefan Monnier, 2019/02/23