It is currently March 29th, 2024, 5:32 am

Substitution Term for "

Get help with creating, editing & fixing problems with skins
MatteoFlash
Posts: 23
Joined: June 26th, 2010, 8:11 am

Substitution Term for "

Post by MatteoFlash »

Hi guys,

I searched about this information in the "Search" function and in the web, but I was no lucky, so I just want to ask you for this simple thing.
Which is the code which represent the " symbol? Today I found &amp, &quot, &lt, &br, &gt in the Forum, i already knew some of them but I think they are for space, <, > and similar.. Could you remember me which one is correct? :)
I thought it was &quote, because " is the quotation mark, but it didn't work for me.

Ty all!

EDIT: Uh, I found this: http://rainmeter.net/forum/viewtopic.php?f=5&t=3751&p=26072&hilit=quotation#p26072
Is it the actual situation? :(
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Substitution Term for "

Post by Chewtoy »

Here's a list with all the special characters in HTML: http://www.utexas.edu/learn/html/spchar.html
As you can see, &quot is the one for ", so you already had it. :)
You can however NOT substitute it for a ". As rainmeter will see "&quot":""" as "Oh. You want me to substitute &quot to nothing. And you got a leftover quotation mark there. Then I'm going to fail every substitution after that in the string. Sorry."
I don't think, therefore I'm not.
MatteoFlash
Posts: 23
Joined: June 26th, 2010, 8:11 am

Re: Substitution Term for "

Post by MatteoFlash »

Uhm, I see... Thanks for your explanation :)
The problem is that I find this in the web page:
I am a "student"
In the HTML, there is not the &quot, but directly the ". I just like to transform the result into:
I am a student

So my issue is to transform " into blankspace (that is nothing to write, equals to ""). Do you think this is possible?

Ty
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Substitution Term for "

Post by Chewtoy »

Ah. I see. At the moment, I have no idea how that should be done.
Unless Substitute="&quot":"" works. Don't know if rainmeter will handle that as you like or not. Don't think it will.
I don't think, therefore I'm not.
MatteoFlash
Posts: 23
Joined: June 26th, 2010, 8:11 am

Re: Substitution Term for "

Post by MatteoFlash »

It doesn't work, "&quot":"" was the first thing i tried.. I'll try to change some variables, but I think that my problem will stay this way for a long time :/

Thanks for the suggestions :)
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: Substitution Term for "

Post by kenz0 »

Unfortunately, there is no solution which substitutes " because it is a character with a special meaning for "Substitute" function.
.
Image
MatteoFlash
Posts: 23
Joined: June 26th, 2010, 8:11 am

Re: Substitution Term for "

Post by MatteoFlash »

What a sad thing for my plans :(
Okey, thanks for the help.. I hope, in a future, we'll be able to substitute this character :D
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Substitution Term for "

Post by Chewtoy »

Perhaps something like how #CRLF# solved the problems with linebreaks?
I don't think, therefore I'm not.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Substitution Term for "

Post by Alex2539 »

It won't be nearly that simple. When we added #CRLF# we also tried a #QUOTE# variable. It didn't work out. Because of the way variables work, it was turned into a " before the substitute took place, so you essentially still wound up with Substitute=""":""".
ImageImageImageImage
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Substitution Term for "

Post by Chewtoy »

Ack. What a shame.
I don't think, therefore I'm not.