[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gds.el --- Emacs interface to Google Desktop Search
From: |
Francesco Potorti` |
Subject: |
Re: gds.el --- Emacs interface to Google Desktop Search |
Date: |
Sun, 12 Feb 2006 09:06:23 +0100 |
>The article seemed quite clear on how Google Desktop Search threatens
>the user's privacy.
Well, I think that this is not the point, but only now do I realize
that we are completely off topic!
So here is my snippet of code, usful mostly for Italians, but adaptable
for other people needing to convert to and from accented letters.
(defun do-accent (subst-list)
(dolist (pair subst-list)
(save-excursion
(while (re-search-forward (car pair) nil t)
(replace-match (cdr pair) t)))))
(defun accent-en-ascii ()
(interactive)
(do-accent '(("a`" . "\340") ("e`" . "\350") ("e'" . "\351")
("E`" . "\310") ("i`" . "\354")
("o`" . "\362") ("u`" . "\371")
("ch\350\\>" . "ch\351") ("\\<n\350\\>" . "n\351"))))
(defun accent-en-ascii-reverse ()
(interactive)
(do-accent '(("a'" . "\340") ("e'" . "\350")
("E'" . "\310") ("i'" . "\354")
("o'" . "\362") ("u'" . "\371")
("\\<ch\350\\>" . "ch\351") ("\\<n\350\\>" . "n\351"))))
(defun accent-de-ascii ()
(interactive)
(do-accent '(("\340" . "a`") ("\350" . "e`")
("\310" . "E`") ("\351" . "e`")
("\354" . "i`") ("\362" . "o`")
("\371" . "u`"))))
(defun accent-en-utf8 ()
(interactive)
(do-accent '(("\303\240" . "\340") ("\303\250" . "\350")
("\303\210" . "\310") ("\303\254" . "\354")
("\303\262" . "\362") ("\303\271" . "\371"))))
(defun accent-en-windows ()
(interactive)
(do-accent '(("\205" . "..") ("\226" . "--") ("\200" . "\244")
("\221" . "`") ("\222" . "'")
("\223" . "\"") ("\224" . "\""))))
(defun accent-en-mistery ()
(interactive)
(do-accent '(("àÜܨÜî¿ÜÜ©" . "\340") ("èÜܨÜî¿ÜÜ©" .
"\350")
("ìÜܨÜî¿ÜÜ©" . "\354") ("òÜܨÜî¿ÜÜ©" .
"\362")
("éÜܨÜî¿ÜÜ©" . "\351") ("»ÜܨÜî¿ÜÜ©" . "»")
("ÜÜ«ÜܨÜî¿ÜÜ©" . "«") ("ùÜܨÜî¿ÜÜ©" .
"\371"))))
- Re: gds.el --- Emacs interface to Google Desktop Search, (continued)
- Message not available
- Message not available
- Re: gds.el --- Emacs interface to Google Desktop Search, Joe Bush, 2006/02/09
- Google privacy [Was: gds.el --- Emacs interface to Google Desktop Search], Ian Zimmerman, 2006/02/10
- Message not available
- Re: Google privacy [Was: gds.el --- Emacs interface to Google Desktop Search], Joe Bush, 2006/02/10
- Re: Google privacy [Was: gds.el --- Emacs interface to Google Desktop Search], Peter S Galbraith, 2006/02/10
- Re: Google privacy [Was: gds.el --- Emacs interface to Google Desktop Search], Ian Zimmerman, 2006/02/10
- Re: gds.el --- Emacs interface to Google Desktop Search, Thien-Thi Nguyen, 2006/02/10
- Re: gds.el --- Emacs interface to Google Desktop Search, Dan Elliott, 2006/02/10
- Re: gds.el --- Emacs interface to Google Desktop Search, Francesco Potorti`, 2006/02/10
- Re: gds.el --- Emacs interface to Google Desktop Search, Richard M. Stallman, 2006/02/11
- Re: gds.el --- Emacs interface to Google Desktop Search,
Francesco Potorti` <=
- Re: gds.el --- Emacs interface to Google Desktop Search, Richard M. Stallman, 2006/02/11
- Message not available
- Re: gds.el --- Emacs interface to Google Desktop Search, Tim X, 2006/02/11
- Re: gds.el --- Emacs interface to Google Desktop Search, Thien-Thi Nguyen, 2006/02/11
- Re: gds.el --- Emacs interface to Google Desktop Search, Richard M. Stallman, 2006/02/12
- Re: gds.el --- Emacs interface to Google Desktop Search, Peter S Galbraith, 2006/02/11
- Message not available
- Re: gds.el --- Emacs interface to Google Desktop Search, Tim X, 2006/02/11
- Re: gds.el --- Emacs interface to Google Desktop Search, Richard M. Stallman, 2006/02/12
- Re: gds.el --- Emacs interface to Google Desktop Search, Francesco Potorti`, 2006/02/13
- Message not available
- Re: gds.el --- Emacs interface to Google Desktop Search, Jason Earl, 2006/02/12
Message not available