Re: Extended [Convertchars] needed
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15355
interpreted = N
texte = >Grant was talking not long ago about an old idea I had - extending>[convertchars] so one could choose different conversions, probably from a>conversion.db.>>Our need for this has been great for this feature since our native language>(swedish) contains lots of non US-ASCII chars.>>Now we are developing a multi lingual shopping site with eight languages>from start - and our need for different conversion sets is definately *BIG*>:-) since those eight languages include all the scandinavian languages,>spanish, polish and so on.A [replaceChars] context seems to be something I could use VERY oftentoo -- even more often than an extended [convertChars] ... and it'scertainly far more valuable to most of us than [capitalize] ... :) In the past month, I've had at least three separate occasions to*stop* thinking about creating another new WebDNA Solutions modulebecause WebCat cannot deal with a seemingly simple dynamic characterreplacement. All I really want to do is to find a character (or astring of characters) on the fly and replace it (or them) with asomething else.I was half-way finished with a WebCat/Typhoon directory indexersolution last month when I discovered that the [filePath] tag createspath names with colons as separators -- instead of slashes. Ofcourse, this makes it *impossible* for the [filePath] values to beused directly in URLs.Well, if the separators were turned into slashes 'on the fly' with a[replaceChars] context, I could use the [filePath] tag to create ahyperlink, like this:
[filePath]But, since that's not possible, you should see the complicated andridiculous-looking work-around I've had to create in order to grabthe name of every nested folder separately -- for each level of thehierarchy -- and then re-assemble all those folder names into a filepath, just so that I can create a hyperlink that works!In fact, here's the code that demonstrates how much effort isrequired to create this kind of work-around in my directory indexersolution. But that's not all, because this 'work-around' can onlydeal with seven hierarchy levels, so additional code is required forsites with more than seven levels of nesting!None of this stuff would be needed if I could simply change thecolons to slashes on-the-fly' instead:[writefile ../databases/editpage.db]name type level[listfiles ../][showif [isfolder]=F]../[filename] f1 1[/showif][showif [isfolder]=T]../[filename] d1 1[/showif][/listfiles][/writefile][search db=../databases/editpage.db&eqtypedata=d1][founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f2 2[/showif][showif [isfolder]=T][name]/[filename] d2 2[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d2][founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f3 3[/showif][showif [isfolder]=T][name]/[filename] d3 3[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d3][founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f4 4[/showif][showif [isfolder]=T][name]/[filename] d4 4[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d4][founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f5 5[/showif][showif [isfolder]=T][name]/[filename] d5 5[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d5][founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f6 6[/showif][showif [isfolder]=T][name]/[filename] d6 6[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d6][founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f7 7[/showif][showif [isfolder]=T][name]/[filename] d7 7[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][delete db=../databases/editpage.db&bwtypedata=d][searchdb=../databases/editpage.db&nenamedata=[blank]&aslevelsort=1&asnamesort=2]The [include ../Prefs/-storeName] folder hierarchy includes these[numfound] files. However, only
these files are editable ...
[founditems][name]
[/founditems][/search][closedatabase ../databases/editpage.db][searchdb=../databases/editpage.db&group1field=name&group2field=name&wogroup1data=-&wogroup2data=.dna&aslevelsort=1&asnamesort=2][writefile -editpage][founditems][hideif [name]^/Photos][name]
[/hideif][/founditems][/writefile][/search][closedatabase ../databases/editpage.db]Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/...
Associated Messages, from the most recent to the oldest:
|
- Re: Extended [Convertchars] needed (Kenneth Grome 1997)
|
>Grant was talking not long ago about an old idea I had - extending>
[convertchars] so one could choose different conversions, probably from a>conversion.db.>>Our need for this has been great for this feature since our native language>(swedish) contains lots of non US-ASCII chars.>>Now we are developing a multi lingual shopping site with eight languages>from start - and our need for different conversion sets is definately *BIG*>:-) since those eight languages include all the scandinavian languages,>spanish, polish and so on.A [replaceChars] context seems to be something I could use VERY oftentoo -- even more often than an extended
[convertchars] ... and it'scertainly far more valuable to most of us than
[capitalize] ... :) In the past month, I've had at least three separate occasions to*stop* thinking about creating another new WebDNA Solutions modulebecause WebCat cannot deal with a seemingly simple dynamic characterreplacement. All I really want to do is to find a character (or astring of characters) on the fly and replace it (or them) with asomething else.I was half-way finished with a WebCat/Typhoon directory indexersolution last month when I discovered that the [filePath] tag createspath names with colons as separators -- instead of slashes. Ofcourse, this makes it *impossible* for the [filePath] values to beused directly in URLs.Well, if the separators were turned into slashes 'on the fly' with a[replaceChars] context, I could use the [filePath] tag to create ahyperlink, like this:
[filePath]But, since that's not possible, you should see the complicated andridiculous-looking work-around I've had to create in order to grabthe name of every nested folder separately -- for each level of thehierarchy -- and then re-assemble all those folder names into a filepath, just so that I can create a hyperlink that works!In fact, here's the code that demonstrates how much effort isrequired to create this kind of work-around in my directory indexersolution. But that's not all, because this 'work-around' can onlydeal with seven hierarchy levels, so additional code is required forsites with more than seven levels of nesting!None of this stuff would be needed if I could simply change thecolons to slashes on-the-fly' instead:[writefile ../databases/editpage.db]name type level[listfiles ../][showif [isfolder]=F]../[filename] f1 1[/showif][showif [isfolder]=T]../[filename] d1 1[/showif][/listfiles][/writefile][search db=../databases/editpage.db&eqtypedata=d1]
[founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f2 2[/showif][showif [isfolder]=T][name]/[filename] d2 2[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d2]
[founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f3 3[/showif][showif [isfolder]=T][name]/[filename] d3 3[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d3]
[founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f4 4[/showif][showif [isfolder]=T][name]/[filename] d4 4[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d4]
[founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f5 5[/showif][showif [isfolder]=T][name]/[filename] d5 5[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d5]
[founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f6 6[/showif][showif [isfolder]=T][name]/[filename] d6 6[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][search db=../databases/editpage.db&eqtypedata=d6]
[founditems][appendfile ../databases/editpage.db][listfiles [name]][showif[isfolder]=F][name]/[filename] f7 7[/showif][showif [isfolder]=T][name]/[filename] d7 7[/showif][/listfiles][/appendfile][/founditems][/search][closedatabase ../databases/editpage.db][delete db=../databases/editpage.db&bwtypedata=d][searchdb=../databases/editpage.db&nenamedata=[blank]&aslevelsort=1&asnamesort=2]The [include ../Prefs/-storeName] folder hierarchy includes these[numfound] files. However, only
these files are editable ...
[founditems][name]
[/founditems][/search][closedatabase ../databases/editpage.db][searchdb=../databases/editpage.db&group1field=name&group2field=name&wogroup1data=-&wogroup2data=.dna&aslevelsort=1&asnamesort=2][writefile -editpage][founditems][hideif [name]^/Photos][raw][url][/raw][name][raw][/url][/raw]>[name]
[/hideif][/founditems][/writefile][/search][closedatabase ../databases/editpage.db]Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/...
Kenneth Grome
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:
[WebDNA] Decode Base64 Image (2019)
show all problem (1997)
Anyone get webdna to run on apache 2.x on osx? (2006)
[if] (2003)
Clickable Maps (1996)
variables in [addlineitem] (1998)
practicing safe queries.. (2000)
emailer (1997)
A dynamic database. (1997)
expired beta (1997)
Associative lookup style? (1997)
RE: Nt's Latest? (1997)
Can I determine where they are coming from? (2000)
[WebDNA] paypal (2009)
VeriSign News (2002)
Web Catalog vs. ICAT (1997)
IIS Brain Dead (1998)
Where's Cart Created ? (1997)
Robert Minor duplicate mail (1997)
Banners (1997)