[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#909133: ITP: auto-dictionary-el -- automatic dictionary switcher for Emacs spell checking



Hi Antoine!

On Fri, Sep 21, 2018 at 09:06:54AM -0400, Antoine Beaupré wrote:
> On 2018-09-18 15:39:47, Nicholas D Steeves wrote:
> [...]
> > URL             : https://wiki.debian.org/EmacsenTeam/Team
> [...]
> 
> You probably meant this here:
> 
> URL: https://nschum.de/src/emacs/auto-dictionary/

:-$  yes, that's what I meant :-)

> > Antoine, does it detect language with per-buffer granularity, or
> > support mixing languages in the same buffer?
> 
> I don't know! It *apparently* does that if I read the above homepage
> correctly:

In my testing it seems to count words-matched-per-dictionary.  eg:  50
matches for fr and 50 matches for en won't change the default
dictionary.  51 matches for fr will switch it to fr.  If another two
en words are added it will switch to en.  Whichever language is not
selected appears underlined and misspelled.

The following newer/less mature package supports different languages
per paragraph:

  https://github.com/tmalsburg/guess-language.el

Would you prefer to switch this RFP guess-language?  If it works well
then I feel like that might be a better one to package.

> > Thanks for mentioning
> > that you use this software on #debian-emacs :-)
> 
> Well, I *just* started using it - I don't actually know if it really
> works or anything. :p But I fixed up a function (mode-to-be) that I was
> using for that instead:
> 
>  (defun anarcat/author-mode ()
>    "toggle a bunch of minor modes for authorship
>  
>  this should be converted to a minor mode in itself, or maybe as
>  hooks fro writeroom?
>  
>  see Elisp manual, 22.3 Minor Modes"
>    (interactive)
>    (writegood-mode)
>    (wc-mode)
>    (writeroom-mode)
> -  (anarcat/change-dict "en")
> +  (adict-guess-dictionary)

I have a similar function ;-)

> So basically, instead of forcing the "english" dictionary in my author
> "mode", I let adict guess it. It seems to work for english at least...
> 
> > P.S. please ping me if I take more than two weeks to package this
> 
> Wow, thanks!

NP!

> > I do not yet use this package and have been manually switching between
> > languages, which is why I'm motivated to package it.  I plan to
> > maintain it as part of the Debian Emacsen Team, and the team policy is
> > here: https://wiki.debian.org/EmacsenTeam/Team
> >
> > I will require a sponsor for the initial upload.
> 
> I'd be happy to help.

Thanks!


Cheers,
Nicholas

Attachment: signature.asc
Description: PGP signature


Reply to: