unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Arthur Miller <arthur.miller@live.com>
Cc: emacs-devel@gnu.org
Subject: Re: A proposal for a friendlier Emacs
Date: Tue, 27 Oct 2020 10:50:26 +0300	[thread overview]
Message-ID: <X5fRQqPsBg0gRcJ6@protected.rcdrun.com> (raw)
In-Reply-To: <VI1PR06MB4526762473A9089F96F20A5296160@VI1PR06MB4526.eurprd06.prod.outlook.com>

* Arthur Miller <arthur.miller@live.com> [2020-10-27 07:32]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > * Arthur Miller <arthur.miller@live.com> [2020-10-20 16:08]:
> >> I would like to have an easy to loookup dictionary from Lisp posibly for
> >> automatically translating of GUI ites. I have always thought of creating
> >> an sqlite database of "programming" dictionary where some common gui
> >> items are put together like (file, menu, cut, copy, paste, etc) and
> >> indexed for use in programms. In a Lisp program sqlite is not even
> >> needed.
> >
> > You mean very simple and common words? 
> Yes, like: File, Open, Close, Cut, Copy, Paste ...

There are those /usr/share/locale .po files  to be used with GNU
gettext.

NAME
	gettext - translate message

SYNOPSIS
	gettext [OPTION] [[TEXTDOMAIN] MSGID]
	gettext [OPTION] -s [MSGID]...

DESCRIPTION
	The gettext  program translates  a natural  language message
	into the user's language, by looking up the translation in a
	message catalog.

https://www.emacswiki.org/emacs/Gettext

See:
https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html

So gettext is for you. You may already get all that what you want, you
can translate user interfaces quickly and get translations from
existing other software by using it.

Are there any Emacs or completion packages for gettext? 

> > If there are not too many, Lisp structure is enough, that is how I am
> > using it in some CGI scripts for multi languages.
> I know; sqlite db is a bit more portable; think C++; but for Lisp
> programs a hash map or even list are fine.

If database is for single user then Lisp data in files is fine. If for
multiple users then what if they write to database in the same file.

Emacs should have database built-in such as gdbm the GNU database,
or other similar databases optionally with ./configure options.

I am using the PostgreSQL dynamic module for database management:
https://github.com/anse1/emacs-libpq and this works well and fine,
independent of Emacs package. I think original pg package broke with
the new release of PostgreSQL, so I had to look for
solution. Developers are looking how to include this dynamic module
into GNU ELPA, they are willing so far.

and there is SQLLite dynamic module:
https://github.com/pekingduck/emacs-sqlite3-api

There is GDBM tool named: gdbmtool for which one could write an Emacs
package and use it that way indirectly. I wonder why such packages do
not exist after so many years, in general, why some simple database is
not built in.

> > There is wordnut package for looking up into Wordnet dictionary, it is
> > free as in freedom dictionary, it is fast, and pressing enter on words
> > leads you to new words.
> Always wanted to look up wordnet, but never got to it; one day ....

In many GNU/Linux distributions there are packages with Wordnet. Emacs
package is wordnut, works fine also in connection with helm, and
Wordnet is freely licensed.

Wordnet projects are huge:
https://en.wikipedia.org/wiki/WordNet#Global_WordNet_Association

And include allegedly more than 200 languages, but licenses are often
non-free. Emacs packages work without any middle server.

> I mean one could write program to look up a list of words; maybe
> save it and then use the saved translation as a base for a human to
> finish the translation?

get the gettext

-- 
Jean Louis



  reply	other threads:[~2020-10-27  7:50 UTC|newest]

Thread overview: 129+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-17  8:50 A proposal for a friendlier Emacs Nicola Manca
2020-09-17  9:04 ` Alfred M. Szmidt
2020-09-17  9:27   ` Nicola Manca
2020-09-17 12:24     ` Alfred M. Szmidt
2020-09-17 12:35       ` Thibaut Verron
2020-09-17 13:22         ` Alfred M. Szmidt
2020-09-17 13:26           ` Thibaut Verron
2020-09-17 13:31             ` Alfred M. Szmidt
2020-09-17 13:34               ` Thibaut Verron
2020-09-17 14:27                 ` Alfred M. Szmidt
2020-09-18 16:49                   ` Stefan Kangas
2020-09-18 18:25                     ` Alfred M. Szmidt
2020-09-18 18:59                       ` Thibaut Verron
2020-09-18 19:23                         ` Alfred M. Szmidt
2020-09-19  8:37                           ` Andrea Corallo via Emacs development discussions.
2020-09-19  9:21                             ` Alfred M. Szmidt
2020-09-19 11:25                           ` Stefan Kangas
2020-09-19 15:09                             ` Alfred M. Szmidt
2020-09-19 19:31                               ` Andrea Corallo via Emacs development discussions.
2020-09-19 19:59                                 ` Eli Zaretskii
2020-09-19 21:37                                   ` Andrea Corallo via Emacs development discussions.
2020-09-20  6:22                                     ` Alfred M. Szmidt
2020-09-20  7:45                                   ` Ergus via Emacs development discussions.
2020-09-20  8:13                                     ` Eli Zaretskii
2020-09-20  8:25                                       ` Ergus
2020-09-21 17:19                                     ` Jean Louis
2020-09-22 12:59                                       ` Ergus
2020-09-22 14:11                                         ` Jean Louis
2020-09-22 17:50                                           ` Colin Baxter
2020-09-22 18:08                                             ` Mingde (Matthew) Zeng
2020-09-22 19:12                                               ` Colin Baxter
2020-09-19 21:04                                 ` Alfred M. Szmidt
2020-09-19 21:26                                   ` Andrea Corallo via Emacs development discussions.
2020-09-20  6:21                                     ` Alfred M. Szmidt
2020-09-19  8:30                         ` Andrea Corallo via Emacs development discussions.
2020-09-19 15:50                         ` Philip K.
2020-09-20  3:53                     ` 황병희
2020-09-17 13:38             ` Alfred M. Szmidt
2020-09-17 12:40       ` Nicholas Savage
2020-09-17 13:22         ` Alfred M. Szmidt
2020-09-17 13:28         ` Thibaut Verron
2020-09-17 19:40         ` Mingde (Matthew) Zeng
2020-09-17  9:07 ` Gregory Heytings via Emacs development discussions.
2020-09-17  9:32   ` Nicola Manca
2020-09-17  9:44     ` Gregory Heytings via Emacs development discussions.
2020-09-21 20:00       ` Alexander Adolf
2020-09-22  3:38         ` Richard Stallman
2020-09-22 20:50           ` Alexander Adolf
2020-09-22 21:54             ` Drew Adams
2020-09-23 14:20               ` Eli Zaretskii
2020-09-23 14:16             ` Eli Zaretskii
2020-09-25 13:22               ` Alexander Adolf
2020-09-25 13:39                 ` Eli Zaretskii
2020-09-25 14:43                   ` Alexander Adolf
2020-09-25 15:05                     ` Eli Zaretskii
2020-09-26  4:35                       ` Richard Stallman
2020-09-29 17:08                         ` Alexander Adolf
2020-09-29 17:38                           ` Eli Zaretskii
2020-09-30 20:40                             ` Alexander Adolf
2020-10-01 12:55                               ` Eli Zaretskii
2020-10-01 16:13                                 ` Alexander Adolf
2020-10-01 16:18                                   ` Eli Zaretskii
2020-10-01 16:49                                     ` Stefan Monnier
2020-10-01 17:23                                       ` Eli Zaretskii
2020-10-01 17:57                                         ` Stefan Monnier
2020-10-02 16:10                                     ` Alexander Adolf
2020-10-02  3:51                                   ` Classifying packages Richard Stallman
2020-09-22  3:38         ` A proposal for a friendlier Emacs Richard Stallman
2020-09-22 20:57           ` Alexander Adolf
2020-09-23  3:44             ` Richard Stallman
2020-09-25 12:40               ` Alexander Adolf
2020-09-25 15:22                 ` Drew Adams
2020-09-26  4:33                   ` Richard Stallman
2020-09-26 14:29                     ` Drew Adams
2020-09-27  2:43                       ` Richard Stallman
2020-09-27 19:49                         ` Drew Adams
2020-09-28  3:49                           ` Richard Stallman
2020-09-28  4:50                             ` Drew Adams
2020-09-28 22:03                             ` Jean Louis
2020-09-29  2:32                               ` Eli Zaretskii
2020-09-29  2:35                                 ` Stefan Monnier
2020-09-29  4:16                                 ` Jean Louis
2020-09-29  5:35                                   ` Eli Zaretskii
2020-09-29  5:45                                     ` Jean Louis
2020-09-29 14:24                                       ` Eli Zaretskii
2020-09-29 15:21                                         ` Jean Louis
2020-10-20 13:07                                           ` Arthur Miller
2020-10-20 15:32                                             ` Jean Louis
2020-10-27  4:32                                               ` Arthur Miller
2020-10-27  7:50                                                 ` Jean Louis [this message]
2020-09-29  7:19                                   ` Alfred M. Szmidt
2020-09-29  7:55                                     ` Jean Louis
2020-09-29  8:23                                       ` Alfred M. Szmidt
2020-09-29  8:27                                         ` Jean Louis
2020-09-29 15:07                                         ` Jean Louis
2020-09-29 14:20                                   ` Eli Zaretskii
2020-09-30 18:36                                     ` Juri Linkov
2020-09-30 19:25                                       ` Eli Zaretskii
2020-09-30 19:50                                         ` Gregory Heytings via Emacs development discussions.
2020-10-01  7:27                                           ` Robert Pluim
2020-10-01 13:10                                             ` Eli Zaretskii
2020-10-01 14:10                                               ` Robert Pluim
2020-10-01 12:44                                           ` Eli Zaretskii
2020-10-01 14:19                                           ` Jean Louis
2020-10-02  3:51                                           ` Richard Stallman
2020-10-02  6:59                                             ` Eli Zaretskii
2020-10-01 14:13                                       ` Jean Louis
2020-10-01 14:48                                         ` Eli Zaretskii
2020-10-01 16:05                                           ` dictionary.el could be included in main stream Emacs - " Jean Louis
2020-10-02 11:40                                             ` Eli Zaretskii
2020-10-04 17:36                                               ` Torsten Hilbrich
2020-10-01 18:47                                         ` Juri Linkov
2020-09-28 22:05                             ` Jean Louis
2020-09-21 17:07 ` Jean Louis
2020-09-22  3:40   ` Richard Stallman
2020-09-22  6:22     ` Alfred M. Szmidt
2020-09-23  3:43       ` Richard Stallman
2020-09-22  6:24     ` Jean Louis
2020-09-22 14:10       ` Eli Zaretskii
2020-09-22 14:22         ` Jean Louis
2020-09-22 14:31           ` Eli Zaretskii
2020-09-22 14:52             ` Jean Louis
2020-09-22 15:34               ` Eli Zaretskii
2020-09-22 16:03                 ` Jean Louis
2020-09-22 16:33                   ` Eli Zaretskii
2020-09-23  3:41           ` Richard Stallman
2020-09-22 15:44         ` Jean Louis
2020-09-23  3:41         ` Richard Stallman
2020-09-23 14:21           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X5fRQqPsBg0gRcJ6@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=arthur.miller@live.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).