Great Circle Associates Majordomo-Workers
(April 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: The search list does the job
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: 01 Apr 1998 13:55:33 -0600
To: majordomo-workers @ GreatCircle . COM
In-reply-to: Dave Wolfe's message of Wed, 1 Apr 1998 10:14:36 -0600 (CST)
References: <199804011614.KAA16856@miaow.risc.sps.mot.com>

>>>>> "DW" == Dave Wolfe <dwolfe@risc.sps.mot.com> writes:

DW> This seems to imply that messages are separated by blank lines, which
DW> would preclude multi-paragraph messages and highlighting parts of
DW> messages by whitespace, e.g.:

These are translations for short strings, not for paragraphs.  Look at the
various things in the code that need to be translated; they aren't very
long.  We're talking about things like "Invalid address: $A".  The strings
should not assume any kind of word wrapping anyway, because the interface
knows the screen width (and whether or not it wants blank lines and such in
there) much better than the core does.  In other words, what you wrote is
going to look pretty bad in HTML since the whitespace is ignored.

DW> Then can we assume that escaped dollar signs (\$) are used for literal
DW> dollar signs?

No need; only the exact patterns are replaced.  $a doesn't get replaced,
nor does $Abc.

DW> Might it not also be clearer to use numeric substitution variables?

That has greater chance of interfering with something.  $1 actually appears
in English text, $A doesn't.

DW> Or are you going to use keyword variables for substitution?

Actually I was going to use $A, $B, etc.

This is just the same code that substitutes in the message files.  I have
seen no need to have any complicated escapes there.  Let's keep it simple,
please.  If someone actually finds a reason to need escapes, we can add
them later.

DW> I also wonder if the startup time of parsing (possibly multiple) flat
DW> files of messages, most of which won't be used, couldn't be eliminated
DW> by "compiling" the message files into DBM files and accessing them
DW> through tied hashes.

People don't like DBM, it seems; I was going to cache them in raw perl data
structures and keep them in memory.  The cost is certainly less than
loading the DBM library.  Simplicity, please.

 - J<


Follow-Ups:
References:
Indexed By Date Previous: Re: The search list does the job
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: The search list does the job
From: Brock Rozen <brozen@torah.org>
Indexed By Thread Previous: Re: The search list does the job
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: The search list does the job
From: Dave Wolfe <dwolfe@risc.sps.mot.com>

Google
 
Search Internet Search www.greatcircle.com