unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
Cc: guile-devel@gnu.org
Subject: Re: i18n, gettext support?
Date: Tue, 17 Aug 2004 17:24:30 +0200	[thread overview]
Message-ID: <uw5brh9n5xt.fsf@merkur.math.uni-magdeburg.de> (raw)
In-Reply-To: <87vffh7su9.fsf@ivanova.rotty.yi.org> (Andreas Rottmann's message of "Tue, 17 Aug 2004 16:16:30 +0200")

Andreas Rottmann <a.rottmann@gmx.at> writes:

> A related (to i18n) issue: it would be nice to have positional
> argument support in (ice-9 format); e.g.:
>
> (format #t "~@2A ~@1A" "World!" "Hello")
>
> would print "Hello World!". I just took @ as a position 'prefix',
> since according to the docs, it is not taken yet. Alternative syntax
> suggestions welcome. 

This is already possible with the ~@* format directive, see
http://www.lispworks.com/reference/HyperSpec/Body/22_cga.htm 

     (format #t "~1@*~A ~0@*~A ~2@*" "World!" "Hello")

(The final ~2@* is necessary because Guile otherwise complains about
"1 superfluous argument". )

-- 
Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2004-08-17 15:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16  8:21 i18n, gettext support? Jan Nieuwenhuizen
2004-08-16 18:47 ` Rob Browning
2004-08-17  1:49   ` Kevin Ryde
2004-08-18 14:40     ` Jan Nieuwenhuizen
2004-08-17 14:16 ` Andreas Rottmann
2004-08-17 15:24   ` Matthias Koeppe [this message]
2004-08-18 12:54     ` Andreas Rottmann
2004-08-19  1:10       ` Kevin Ryde
2004-08-19  8:07         ` Matthias Koeppe
2004-08-20  1:17           ` Kevin Ryde
2004-08-24 17:12             ` Marius Vollmer
2004-09-01 23:31               ` Kevin Ryde
2004-08-17 22:46   ` Kevin Ryde

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/guile/

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

  git send-email \
    --in-reply-to=uw5brh9n5xt.fsf@merkur.math.uni-magdeburg.de \
    --to=mkoeppe@mail.math.uni-magdeburg.de \
    --cc=guile-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.
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).