Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Portably transforming a string to a valid filename (mnemonic)

by tye (Cardinal)
on Aug 06, 2003 at 22:20 UTC ( #281622=note: print w/ replies, xml ) Need Help??


in reply to (tye)Re: Portably transforming a string to a valid filename
in thread Portably transforming a string to a valid filename

One thing bothers me about this: The codes for punctuation are not pneumatic. This is easily fixed. The association between punctuation and letters/numbers should be changed to be:

tr[@{}$='`^"+/<>#()?\[]_|~!&%*,:;] [abcdefghijklmnopqrstuvwxyz0123];
based on the following phlegmatic code: At Brace CloseCurly Dollar Equals Feet Grave-accent Hat Inches Join whacK/stroKe Less-than More-than Number Open Paren Question Reverse-whack Square brackeT Underline Verticalbar Wiggle eXclaim y(Spanish for "and"). % and z are shaped the same as are * and 0. Comma has 1 "dot" while colon has 2 dots and semicolon is a bit more than colon.

I could see swapping /=k and &=y to get /=y and &=k based on similarity of shape (the whacK/stroKe connection is rather weak). *shrug*

                - tye


Comment on Re^2: Portably transforming a string to a valid filename (mnemonic)
Download Code
Re^3: Portably transforming a string to a valid filename (mnemonic)
by Nkuvu (Priest) on Dec 04, 2003 at 20:57 UTC
    The codes for punctuation are not pneumatic.

    Pneumatic? As in, "Of or relating to air or other gases" ?

    I'm thinking you meant mnemonic, like the title suggests. But I am certainly amused by the idea of pneumatic filenames.

      It's a joke, Son.

                      - tye ("They can't all be winners.")

        doh!

        And here I thought I was bein' all helpful and stuff...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://281622]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-08-23 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls