[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/guess-language 26a4f31 008/101: Added support for Frenc
From: |
Stefan Monnier |
Subject: |
[elpa] externals/guess-language 26a4f31 008/101: Added support for French. |
Date: |
Sat, 23 Feb 2019 10:34:32 -0500 (EST) |
branch: externals/guess-language
commit 26a4f31628fcdfcc4b1264c54f6af14cda086728
Author: Titus von der Malsburg <address@hidden>
Commit: Titus von der Malsburg <address@hidden>
Added support for French.
---
guess-language.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/guess-language.el b/guess-language.el
index 28fe06e..c8284a6 100644
--- a/guess-language.el
+++ b/guess-language.el
@@ -27,7 +27,7 @@
;; trigrams. The trigrams are copied from guess_language.py
;; (https://github.com/kent37/guess-language).
-(defvar guess-language-languages '(en de))
+(defvar guess-language-languages '(en de fr))
(defvar guess-language-min-paragraph-length 40)
@@ -35,7 +35,7 @@
(cl-loop
for lang in guess-language-languages
for trigrams = (with-temp-buffer
- (insert-file-contents (symbol-name lang))
+ (insert-file-contents (concat "trigrams/" (symbol-name
lang)))
(split-string (buffer-string) "\n" t))
collect (cons lang trigrams)))
@@ -73,12 +73,15 @@
ispell dictionaries accordingly."
(interactive)
(pcase (guess-language-paragraph)
+ ('de (progn
+ (ispell-change-dictionary "de")
+ (typo-change-language "German")))
('en (progn
(ispell-change-dictionary "en")
(typo-change-language "English")))
- ('de (progn
- (ispell-change-dictionary "de")
- (typo-change-language "German")))))
+ ('fr (progn
+ (ispell-change-dictionary "francais")
+ (typo-change-language "French")))))
(defun guess-language-autoset-and-spellcheck-maybe (beginning end doublon)
"Runs `guess-language-autoset' and then the flyspell on the
- [elpa] externals/guess-language a7c9c9a 050/101: README: markup, (continued)
- [elpa] externals/guess-language a7c9c9a 050/101: README: markup, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language da675df 048/101: Fix locating of data files., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 2fc2e07 046/101: Merge pull request #2 from xiongtx/url, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 36ddc6f 049/101: README: Added list of key features., Stefan Monnier, 2019/02/23
- [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 <=
- [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, 2019/02/23
- [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