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

Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de> writes:

> 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". )
>
Thanks for pointing this out (I've misread the documentation). Maybe
the "superfluous argument" error should be disabled when you use @*?

Andi
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://yi.org/rotty      | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Make free software, not war!


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


  reply	other threads:[~2004-08-18 12:54 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
2004-08-18 12:54     ` Andreas Rottmann [this message]
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=87657g61z5.fsf@ivanova.rotty.yi.org \
    --to=a.rottmann@gmx.at \
    --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).