Re: [WebDNA] checking for mixed case text

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102723
interpreted = N
texte = Dana, Without testing or asking here, I am assuming that [convertchars] is case-sensitive. So capitalizing on that, one idea I have is to use a custom convertchars db which would change any lowercase letter to that same lower case letter concatenated with some unique but consistent flag that is not likely to appear anywhere else in code. Then do the same for uppercase letters but using a second/different unique flag. Then check if the resultant complete string has one of those flags. If it does then check to see if it has the other one. If it does, then you know the string is mixed case. If my initial assumption is wrong, then we have to rethink. And there may be other ways to do this.. this just popped in my head. Say if you end up wanting to try this and need more help. -Govinda On Jun 16, 2009, at 12:08 PM, Dana E Keil wrote: > I'm trying to deal with people who enter their names IN ALL CAPS!!! > when registering (or those who enter all lowercase). The capitalize > tag does this, but it messes with names of people like O'Rourke, de > la Torre, and so on. > > So I figure that a good compromise would be to accept anyone's input > if they typed it in mixed case -- those who know that their names > have non-regular capitalization might be more likely not to write > their names in all caps (I think I'm not being delusional here). > > But I cannot figure out how to get WebDNA to check a text string to > report whether it is mixed case or not. The showif comparisons are > case insensitive by default and it looks like there's no option to > make them case sensitive. > > Does anyone have an idea how to do what I want? > > -- > Dana > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ ------------ Govinda govinda.webdnatalk@gmail.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] checking for mixed case text (Dana E Keil 2009)
  2. RE: [WebDNA] checking for mixed case text ("Olin Lagon" 2009)
  3. Re: [WebDNA] checking for mixed case text (Marc Thompson 2009)
  4. Re: [WebDNA] checking for mixed case text (christophe.billiottet@webdna.us 2009)
  5. Re: [WebDNA] checking for mixed case text (Matthew Bohne 2009)
  6. Re: [WebDNA] checking for mixed case text (Kenneth Grome 2009)
  7. Re: [WebDNA] checking for mixed case text (Govinda 2009)
  8. Re: [WebDNA] checking for mixed case text (Terry Wilson 2009)
  9. Re: [WebDNA] checking for mixed case text (Brian Fries 2009)
  10. [WebDNA] checking for mixed case text (Dana E Keil 2009)
Dana, Without testing or asking here, I am assuming that [convertchars] is case-sensitive. So capitalizing on that, one idea I have is to use a custom convertchars db which would change any lowercase letter to that same lower case letter concatenated with some unique but consistent flag that is not likely to appear anywhere else in code. Then do the same for uppercase letters but using a second/different unique flag. Then check if the resultant complete string has one of those flags. If it does then check to see if it has the other one. If it does, then you know the string is mixed case. If my initial assumption is wrong, then we have to rethink. And there may be other ways to do this.. this just popped in my head. Say if you end up wanting to try this and need more help. -Govinda On Jun 16, 2009, at 12:08 PM, Dana E Keil wrote: > I'm trying to deal with people who enter their names IN ALL CAPS!!! > when registering (or those who enter all lowercase). The capitalize > tag does this, but it messes with names of people like O'Rourke, de > la Torre, and so on. > > So I figure that a good compromise would be to accept anyone's input > if they typed it in mixed case -- those who know that their names > have non-regular capitalization might be more likely not to write > their names in all caps (I think I'm not being delusional here). > > But I cannot figure out how to get WebDNA to check a text string to > report whether it is mixed case or not. The showif comparisons are > case insensitive by default and it looks like there's no option to > make them case sensitive. > > Does anyone have an idea how to do what I want? > > -- > Dana > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ ------------ Govinda govinda.webdnatalk@gmail.com Govinda

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Re:Email Problem (1997) Stopping a [Loop] in mid-stream ... (1997) How does WebCatalog search the database? (1997) Image Upload and Auto Resize? (2003) WebDNA Solutions ... sorry! (1997) credit card (1997) Possible Bug in 2.0b15.acgi (1997) WCS Newbie question (1997) customer.db and forms (1999) NT Version on IIS 4.0 (1997) Help with Grep exchange (2005) '0' vs. blank (2005) Dates - Search and Sorting (1999) Clear command and ShoppingCart.tmpl (1997) WebCatalog/Mac 2.1b2 New Features (1997) WebDNA on Linux (2005) Initiating NewCart (1997) Re:no [search] with NT (1997) [OT] Ave. Hits Per Day (2006) TCPConnect Timeout (2003)