Re: reading and converting web page HTML text

2010-03-08 Thread Peter Brigham MD
On Mar 7, 2010, at 10:51 PM, Ken Ray wrote: Apparently numbers less than 8 are interpreted as HTML relative size and larger numbers specify point size. Could this have something to do with the recently mentioned problems with font sizes on Unix platforms? If somehow the rev unix engine is

Re: reading and converting web page HTML text

2010-03-08 Thread Richard Gaskin
Peter Brigham MD wrote: On Mar 7, 2010, at 10:51 PM, Ken Ray wrote: Apparently numbers less than 8 are interpreted as HTML relative size and larger numbers specify point size. Could this have something to do with the recently mentioned problems with font sizes on Unix platforms? If somehow

Re: reading and converting web page HTML text

2010-03-07 Thread Peter Brigham MD
On Mar 6, 2010, at 7:13 PM, Jim Ault wrote: On Mar 6, 2010, at 2:35 PM, Mark Stuart wrote: Hi François, Thanx for your quick reply. I added Sarah's script into my application and ran it. The function halted with an error on (quot;), because it is not a number. I think Sarah's function is

Re: reading and converting web page HTML text

2010-03-07 Thread Ken Ray
Apparently numbers less than 8 are interpreted as HTML relative size and larger numbers specify point size. Could this have something to do with the recently mentioned problems with font sizes on Unix platforms? If somehow the rev unix engine is mixing these up, then something intended to

reading and converting web page HTML text

2010-03-06 Thread Mark Stuart
Hi all, I'm reading the HTML text of a web page and parsing it. Some of the text that I'm parsing contains (quot;) - braces not included. What runrev function do I use to convert that HTML text to the double quote () character? There will be other characters that I also need to convert, such as

Re: reading and converting web page HTML text

2010-03-06 Thread François Chaplais
Le 6 mars 2010 à 23:01, Mark Stuart a écrit : Hi all, I'm reading the HTML text of a web page and parsing it. Some of the text that I'm parsing contains (quot;) - braces not included. What runrev function do I use to convert that HTML text to the double quote () character? There will be

Re: reading and converting web page HTML text

2010-03-06 Thread Mark Stuart
in context: http://n4.nabble.com/reading-and-converting-web-page-HTML-text-tp1583130p1583155.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url

Re: reading and converting web page HTML text

2010-03-06 Thread Jim Ault
On Mar 6, 2010, at 2:35 PM, Mark Stuart wrote: Hi François, Thanx for your quick reply. I added Sarah's script into my application and ran it. The function halted with an error on (quot;), because it is not a number. I think Sarah's function is looking for a number after the ampersand,

Re: reading and converting web page HTML text

2010-03-06 Thread Mark Stuart
the entities it currently supports. I'd say that using the HTMLtext function would handle all these html entities. But it appears to not do that. Therefore, should I submit a bug report on this? Regards, Mark Stuart -- View this message in context: http://n4.nabble.com/reading-and-converting-web

Re: reading and converting web page HTML text

2010-03-06 Thread J. Landman Gay
Mark Stuart wrote: Hi all, Looking up runrev Dictionary for HTML, does result in a find (HTMLtext), which mentions the following near the very end. Special characters (whose ASCII value is greater than 127) are encoded as HTML entities. Revolution recognizes the following named entities: and

Re: reading and converting web page HTML text

2010-03-06 Thread Richard Gaskin
Mark Stuart wrote: Looking up runrev Dictionary for HTML, does result in a find (HTMLtext), which mentions the following near the very end. Special characters (whose ASCII value is greater than 127) are encoded as HTML entities. Revolution recognizes the following named entities: and then it

Re: reading and converting web page HTML text

2010-03-06 Thread Jim Ault
On Mar 6, 2010, at 7:07 PM, J. Landman Gay wrote: Mark Stuart wrote: Hi all, Looking up runrev Dictionary for HTML, does result in a find (HTMLtext), which mentions the following near the very end. Special characters (whose ASCII value is greater than 127) are encoded as HTML entities.

Re: reading and converting web page HTML text

2010-03-06 Thread Mark Stuart
: function convertHTMLEntities theText replace quot; with quote in theText replace whatever with Ç in theText ... ... return theText end convertHTMLEntities Regards, Mark Stuart -- View this message in context: http://n4.nabble.com/reading-and-converting-web-page-HTML-text-tp1583130p1583305.html

Re: reading and converting web page HTML text

2010-03-06 Thread Richard Gaskin
Mark Stuart wrote: Richard - the html entity that didn't convert was the quot, starting with and ending with semi-colon ; (if I typed that into the email, you would only see , as you may see in the following). Jim - so you are suggesting a function to convert all possible entities for a text

Re: reading and converting web page HTML text

2010-03-06 Thread J. Landman Gay
Mark Stuart wrote: Hi all, Richard - the html entity that didn't convert was the quot, starting with and ending with semi-colon ; The htmltext can only be applied to fields; it won't work in variables. So you need to do what Richard suggested -- he's using the templateField (which is a