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

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

Re: google-translate


From: Emanuel Berg
Subject: Re: google-translate
Date: Fri, 18 Sep 2015 00:32:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Alex Kost <alezost@gmail.com> writes:

> Emanuel Berg (2015-09-16 06:01 +0300) wrote:
>
> (google-translate-translate "sv" "en" "bok")
> (google-translate-translate "sv" "da" "stuga")
> (google-translate-translate "sv" "de" "stuga")

OK, I looked this up! Let's see if I can it right
first try...

Now, if what is supposed to be used as inputs
(arguments) are the language codes that are among
other things in the Unix/C LC*/LANG* environmental
variables, then valid data with respect to language
input is defined in ISO-3166.

The Unix/C variables carry data with the following
syntax:

    xx_YY.CHARSET

where

    xx:       language code (e.g., "en") according to ISO-3166
    YY:       country  code (e.g., "FR") according to ISO-369
    CHARSET:  ASCII, UTF-8, or ISO-8859-1

[1, p. 317]

By the way, the domain of YY is the same as the list
of national, top-level domains ("se" -> ".se" etc.).

This can be included in the help and accompanied by
some examples. If the user sees the examples, even tho
he doesn't recognize their specific meaning
(i.e., what languages), probably he still knows *his*
locale and recognize that pattern and just add it.
Otherwise perhaps he would be benefited from an
ISO-3166 list to find out.

[2, pp. 25-26]

[1]

@book{practical-guide-to-linux,
    author    = {Mark Sobell},
    title     = {A Practical Guide to Linux},
    publisher = {Prentice Hall},
    edition   = {3rd edition},
    year      = 2013,
    ISBN      = {0-13-308504-X}
}

[2]

@book{internet-message,
  title      = {The Internet Message: Closing the Book with Electronic Mail},
  author     = {Marshall Rose},
  publisher  = {Prentice-Hall},
  year       = 1993,
  ISBN       = {0-13-092941-7}
}

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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