Re: [WebDNA] checking for mixed case text

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102721
interpreted = N
texte = The easiest way I've found for mixed-case testing test involves using seedless [encrypt] contexts, which are case sensitive. [text]theName=Bob McDonald[/text] [if ("[url][encrypt][theName][/encrypt][/url]"="[url][encrypt] [lowercase][theName][/lowercase][/encrypt][/url]") | ("[url][encrypt] [theName][/encrypt][/url]"="[url][encrypt][uppercase][theName][/ uppercase][/encrypt][/url]")][then] [text]theName=[capitalize][theName][/capitalize][/text] [/then][/if] [theName] is now mixed case Brian Fries BrainScan Software On Jun 16, 2009, at 11:08 AM, 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/ Brian Fries BrainScan Software 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)
The easiest way I've found for mixed-case testing test involves using seedless [encrypt] contexts, which are case sensitive. [text]theName=Bob McDonald[/text] [if ("[url][encrypt][theName][/encrypt][/url]"="[url][encrypt] [lowercase][theName][/lowercase][/encrypt][/url]") | ("[url][encrypt] [theName][/encrypt][/url]"="[url][encrypt][uppercase][theName][/ uppercase][/encrypt][/url]")][then] [text]theName=[capitalize][theName][/capitalize][/text] [/then][/if] [theName] is now mixed case Brian Fries BrainScan Software On Jun 16, 2009, at 11:08 AM, 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/ Brian Fries BrainScan Software Brian Fries

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:

search for all (1998) Creating main- and sub-category search (1997) I hate talking to myself on this list (2004) WebCat & Backoffice Solution? (2000) [DOS] (1999) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Possible Bug in 2.0b15.acgi (1997) Quickie question on the email templates (1997) Date Format not working (2004) [WebDNA] [OT] economical reliable SSL certs? (2009) List Address Changed! (1998) WebStar Secure on other machine (1997) can you take a look (2003) Replace Statement (1997) [isfile] ? (1997) Using Plug-In while running 1.6.1 (1997) Getting URL's entered manually (1997) Remote delivery (1998) Search Engines (2000) Re[4]: Problem with new formvariables (2000)