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

Supporting emacsen from ispell dictionary packages.



OK, I hope I got everyone who's relevant.  On suggestions from several
people, including Rafael and Marcelo, I'd like to better integrate the
various ispell dictionaries with the various emacsen.

If I understand this right, basically two things have to happen.  The
emacsen have to clear the ispell-dictionary-alist variable on startup
(unless there's an objection, I'll just do this in emacsen-common for
now), and then each of the ispell dictionary packages needs to include
a file /etc/emacs/site-start.d/<packagename>.el which contains a
statement like this (example is for iamerican):

(debian-add-ispell-dictionary-entry
  '("american" "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B" "-d" "american")
  nil))

You can see what the value for your package should be by looking at
the current contents of ispell-dictionary-alist in emacs20.  I just
stole the entry for american for the above snippet:

  ((nil "[A-Za-z]" "[^A-Za-z]" "[']" nil
        ("-B")
        nil)
   ("english" "[A-Za-z]" "[^A-Za-z]" "[']" nil
    ("-B")
    nil)
   ("british" "[A-Za-z]" "[^A-Za-z]" "[']" nil
    ("-B" "-d" "british")
    nil)
   ("american" "[A-Za-z]" "[^A-Za-z]" "[']" nil
    ("-B" "-d" "american")
    nil)
   ("deutsch" "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t
    ("-C")
    "~tex")
   ("deutsch8" "[a-zA-ZÄÖÜäößü]" "[^a-zA-ZÄÖÜäößü]" "[']" t
    ("-C" "-d" "deutsch")
    "~latin1" iso-latin-1)
   ("nederlands" "[A-Za-zÀ-ÅÇÈ-ÏÒ-ÖÙ-Üà-åçè-ïñò-öù-ü]" "[^A-Za-zÀ-ÅÇÈ-ÏÒ-ÖÙ-Üà-åçè-ïñò-öù-ü]" "[']" t
    ("-C")
    nil iso-latin-1)
   ("nederlands8" "[A-Za-zÀ-ÅÇÈ-ÏÒ-ÖÙ-Üà-åçè-ïñò-öù-ü]" "[^A-Za-zÀ-ÅÇÈ-ÏÒ-ÖÙ-Üà-åçè-ïñò-öù-ü]" "[']" t
    ("-C")
    nil iso-latin-1)
   ("svenska" "[A-Za-z}{|\\133\\135\\\\]" "[^A-Za-z}{|\\133\\135\\\\]" "[']" nil
    ("-C")
    nil)
   ("svenska8" "[A-Za-zåäöÅÄö]" "[^A-Za-zåäöÅÄö]" "[']" nil
    ("-C" "-d" "svenska")
    "~list" iso-latin-1)
   ("francais7" "[A-Za-z]" "[^A-Za-z]" "[`'^---]" t nil nil)
   ("francais" "[A-Za-zÀÂÆÇÈÉÊËÎÏÔÙÛÜàâçèéêëîïôùûü]" "[^A-Za-zÀÂÆÇÈÉÊËÎÏÔÙÛÜàâçèéêëîïôùûü]" "[---']" t nil "~list" iso-latin-1)
   ("francais-tex" "[A-Za-zÀÂÆÇÈÉÊËÎÏÔÙÛÜàâçèéêëîïôùûü\\]" "[^A-Za-zÀÂÆÇÈÉÊËÎÏÔÙÛÜàâçèéêëîïôùûü\\]" "[---'^`\"]" t nil "~tex" iso-latin-1)
   ("dansk" "[A-ZÆØÅa-zæøå]" "[^A-ZÆØÅa-zæøå]" "[']" nil
    ("-C")
    nil iso-latin-1))

I'll make sure the right thing happens in
debian-add-ispell-dictionary-entry.  For now, I'm going to assume that
all the emacsen handle the ispell-dictionary-alist identically.  If
this isn't true, we'll have to either have special casing in
debian-add-ispell-dictionary-entry and/or we'll have to use
/etc/<flavor>/site-start.d/<packagename>.el for the config code.

How does this sound?

-- 
Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: