Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by tye (Sage)
on Aug 06, 2003 at 22:20 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://281622]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-12-08 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (52 votes). Check out past polls.