Hi. I am contemplating using the TagCloud to display some information that I am generating (actually in code behind from a database). I am therefore not using the TagCloud to scan external text, files, url.... I am setting the .text property from the code behind and creating a comma seperated string. I can control the string and control that the only punctuation character is ','.
My problem is that some of the tags are two words ("Sales Manager", "Retail Shop"....). If I create the aggregate string it would look like:
"Word1, Word2, Sales Manager, Another, Word, Retail Shop, ....."
This is all fine. However, even if I set PunctuationCharacters = "," the tagCloud still parses the .text using space as a valid separator. I thought that I could be clever and perform a newSubString.replace(' ', '\u00A0') to replace spaces with . However, the tagCloud still parses this so that I end up with two items in the cloud for "Sales" and "Manager". At the moment I am therefore performing a .replace(' ', '_') now and accepting the display consequences for this.
I am assuming that I haven't made any mistakes and this is correct behaviour. Could I suggest an enhancement such that is you include \u00A0 in the punctuationValidCharacters then the tagCloud will treat it as a 'no break space'.
My problem is that some of the tags are two words ("Sales Manager", "Retail Shop"....). If I create the aggregate string it would look like:
"Word1, Word2, Sales Manager, Another, Word, Retail Shop, ....."
This is all fine. However, even if I set PunctuationCharacters = "," the tagCloud still parses the .text using space as a valid separator. I thought that I could be clever and perform a newSubString.replace(' ', '\u00A0') to replace spaces with . However, the tagCloud still parses this so that I end up with two items in the cloud for "Sales" and "Manager". At the moment I am therefore performing a .replace(' ', '_') now and accepting the display consequences for this.
I am assuming that I haven't made any mistakes and this is correct behaviour. Could I suggest an enhancement such that is you include \u00A0 in the punctuationValidCharacters then the tagCloud will treat it as a 'no break space'.