From: Thien-Thi Nguyen <ttn@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: OpenClipart.org for ELPA?
Date: Tue, 20 May 2014 20:52:31 +0200 [thread overview]
Message-ID: <87lhtwqo40.fsf@zigzag.favinet> (raw)
In-Reply-To: <87ppj81odp.fsf@fx.delysid.org> (Mario Lang's message of "Tue, 20 May 2014 17:05:54 +0200")
[-- Attachment #1.1: Type: text/plain, Size: 440 bytes --]
() Mario Lang <mlang@delysid.org>
() Tue, 20 May 2014 17:05:54 +0200
We currently need XPM format, as %c-%p.xpm, where %c is either
black or white, and %p is one of pawn, knight, bishop, rook,
queen and king.
I just added package ‘xpm’ to ELPA. Maybe you could use it to
"compose" (algorithmically create) these pieces? Here's a snapshot
of wip gnugo-d0.el, which does just that, for (ELPA package)
‘gnugo’:
[-- Attachment #1.2: gnugo-d0.el --]
[-- Type: application/emacs-lisp, Size: 10545 bytes --]
[-- Attachment #1.3: Type: text/plain, Size: 1071 bytes --]
The component forms are much simpler (lines and circles only) than
for chess, so artistry is not the draw (yuk yuk), here. Instead,
the Cool Hack IMHO is that the primary dimension (pixel length of a
square side) is computed based on window height, and moreover that
computation is user customizable (see ‘gnugo-d0-sizing-function’).
The end result is that the user can turn on the menu-bar (for
example) or resize the frame, and it's enough to type ‘i’ (to
toggle image-display mode) twice to have updated XPMs appear.
It's not real-time ("SIGWINCH" handler) resizing, but close enough
for me (and my slow computer :-D).
Also, it *almost* goes w/o mentioning: Generating XPM images on
the fly means less disk footprint, easier package management, no
search-path groveling, etc. That's regardless of resize support.
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2014-05-20 18:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 15:05 OpenClipart.org for ELPA? Mario Lang
2014-05-20 15:31 ` Paul Eggert
2014-05-20 18:52 ` Thien-Thi Nguyen [this message]
2014-05-21 5:41 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lhtwqo40.fsf@zigzag.favinet \
--to=ttn@gnu.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.