Re: Smiling Faces
- Posted by Juergen Luethje <j.lue at gmx.de> Dec 23, 2005
- 577 views
Me wrote: > Robert Craig wrote: [smiley pictures on EUforum web page and RSS] >> I'm just converting colon dash right-paren >> to a smiley picture on the RDS EUforum Web pages. >> This also causes the RSS feed to have a picture >> instead of 3 characters, but Thunderbird RSS handles >> this OK, displaying the picture. I'm not sure about >> other RSS readers - I might have to change something. [smiley handling by Thunderbird] [my Euphoria RSS-to-mail-converter in the works] > The program also has the option to convert HTML to plain text, since > this is what many people prefer in e-mail. In this case, any HTML img > tag is converted to the text "[img]". This was too simplistic and not correct. I think now I have "the answer" (tm). >> Maybe you can convert the smiley URL back to colon dash right-paren. > > Interesting idea, thanks! > I could change the HTML-to-text converter, so that instead of "[img]", > the output would be e.g. "[happy.gif]". This is more meaningful anyway. > Additionally, in the section of the INI file that is related to the > concerning RSS feed, there could be a line such as > happy.gif = [img] <big snip> This is what I read in the meantime in a well trusted German HTML reference (ad hoc translation by me): | The 'img' tag must always at least contain the attributes 'src' and | 'alt'. | [...] | 'alt' specifies the text that is displayed, in case it's not possible | to show the picture. There are many reasons why displaying the picture | is not possible ... According to the standard, I've now changed my HTML-to-text converter, so that it replaces each img tag with the content of its 'alt' attribute (if there is no 'alt' attribute, the name of the image file will be used instead). Rob, so how about changing the EUforum smiley image tag to