guile-user
[Top][All Lists]
Advanced

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

Re: charset conversion


From: William Xu
Subject: Re: charset conversion
Date: Sat, 11 Feb 2006 10:31:48 +0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Christian Mauduit <address@hidden> writes:

> BTW (not extactly your question, but it's related) in my program (
> http://www.gnu.org/software/liquidwar6/ ) I use a wrapper over gettext (
> see src/funcs.c for code snippets). The idea is to handle charset
> conversions through gettext. I also use a quirk & dirty shell script:
>
> -----8<---------------------------
> #!/bin/sh
>
> SCRIPT_DIR=../src/script
> C_FILE=../src/scriptpo.c
>
> find $SCRIPT_DIR -type f -a -name "*.scm" \
>     | xargs sed "s/^.*( *_  *\\(\\\".*\\\"\\) *).*\$/_(\1)\; \\/\\/
> extracted by scriptpo-update.sh/g" \
>     | grep scriptpo-update.sh \
>     > $C_FILE
> -----8<---------------------------

For this, i think scsh is a good replace. :P 

[...]

> It's easy to use: whenever you want something to be translated, and not
> bother about charsets, simply replace:
>
> "your string"
>
> with the form:
>
> (_ "your string")

Thanks for the tip ! 

-- 
William




reply via email to

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