help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: google-translate


From: Ian Zimmerman
Subject: Re: google-translate
Date: Fri, 18 Sep 2015 21:17:51 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

On 2015-09-19 02:09 +0200, Emanuel Berg wrote:

>   (loop for trans-pair in '(("\345" "å")
>                             ("\344" "ä")
>                             ("\366" "ö") ) do

That looks like an encoding mismatch, not like a bug.  I bet these byte
values are the latin-1 codes for these letters.

> (defun translate (src-lang dst-lang text)
>   (interactive)
>   (let ((killed kill-ring))
>     (google-translate-translate src-lang dst-lang text 'kill-ring)
>     (let ((translation (string-make-unibyte (current-kill 0))))
                          ^^^^^^^^^^^^^^^^^^^
Why do you do that?  That may be your problem right there.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]