[Top][All Lists]

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

Re: escaping characters

From: Thien-Thi Nguyen
Subject: Re: escaping characters
Date: Thu, 01 Nov 2012 19:14:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

() Kejia柯嘉 <address@hidden>
() Thu, 1 Nov 2012 10:24:52 -0400

   for an example, when a program reads in a latex source, is there an
   escape function that can rewrite all `\' to `\\', `"' to `\"', and so

This kind of escaping for backslash and double-quote (and other chars,
depending on Guile flavor) is built-in for ‘(object->string STRING)’,
but anything else (the "and so on" bit) you have to define for yourself,
or find something already defined.

For example, Guile-BAUX provides module ‘(guile-baux write-string)’
which exports proc ‘write-string’ that handles twelve additional

Another example is Guile-PG module ‘(database postgres-qcons)’, which
has all manner of procs to DTRT for various "and so on" cases:       

I think it would be nice for these procs (and perhaps your LaTeX
oriented one, once defined) to be rebased onto a general one, hosted
apart from any particular Guile version (perhaps Guile-Lib -- is that
project still viable?).

Or maybe i'm missing something already out there by now.  I remember
fruitlessly searching a number of years back, but things may have
changed since then.  Here's some related discussion:

[cc trimmed]

Thien-Thi Nguyen ..................................... GPG key: 4C807502
.                  NB: ttn at glug dot org is not me                   .
.                 (and has not been since 2007 or so)                  .
.                        ACCEPT NO SUBSTITUTES                         .
........... please send technical questions to mailing lists ...........

Attachment: pgpg3r4V0NMHd.pgp
Description: PGP signature

reply via email to

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