Re: HTML Tag Cleaner Fails

2006-08-17 Thread Ben Rubinstein

Ah, this takes me back.

On 07 Jun 2002, I wrote on this list (at the conclusion of a long rant):


[htmlText is an excellent method of representing the content and style of
a field] in so far as it fully represents every aspect that can currently be
set for text in a field. It's a great shortcut; without it one would have to
(as we used to do in HC) write functions that check the attributes of text

 character by character. But ... I regret somewhat that it is formatted as a

kind of 'cod' HTML  ...
At the end of this I think I have a new request: introduce a new term as a
synonym for htmlText, and make it the preferred name.  If formattedText
hadn't already been taken, that would be good.  The richText might make
people think it was going to be RTF; how about the styledtext?


(and Dar was kind enough to reply - to the concept, not any of the specific
terminology suggestions -

I like this.

)

Tragically - I word I use in purely ironic mood, given the shape of the world
- this exchange came just one month before Bugzilla opened for business, so
naturally I never entered the suggestion.  But if I was on a decent internet
connection at the moment, I'd do it now.

  Ben Rubinstein   |  Email: [EMAIL PROTECTED]
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com|  Fax  : +44 (0)1273-728866


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-17 Thread Mark Smith
And in any case, you can already set and get the rtfText of a field -  
I think that this is, again, a subset of the rtf 'standard'


Best,

Mark

On 16 Aug 2006, at 20:01, Ben Rubinstein wrote:


The richText might make
people think it was going to be RTF; how about the styledtext?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Bill Marriott
You keep missing the obvious. Whether you call it HTML or FauxML or whatever 
you like...

bold is defined to specify boldface text.
p is defined to specify paragraphs
title is defined to indicate metadata that is NOT part of the contents.
unknown tags are defined to be ignored.

Very simple concept, consistently applied, and not surprising or bizarre in 
the least.

Dar Scott wrote:
 I don't follow this logic:

TextEdit can render HTML.
TextEdit removes title.
Rev fields remove title.
Therefore...
Rev field can render HTML.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Mark Schonewille
You twist my words, Dar. The logic you seem to discover in my words  
is definitely not mine.


Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 9-aug-2006, om 5:19 heeft Dar Scott het volgende geschreven:



On Aug 8, 2006, at 5:52 PM, Mark Schonewille wrote:


html
body
titlebar/title
/body

Not that the title tags are in the body and still not rendered by  
TextEdit. However, if I replace title by foo, bar is visible  
in TextEdit. Revolution does the same, if I set the htmlText of a  
field to above html code.


I don't follow this logic:

   TextEdit can render HTML.
   TextEdit removes title.
   Rev fields remove title.
   Therefore...
   Rev field can render HTML.

Try this (similar to above):

html
body
a   b
/body

TextEdit will render the multiple spaces correctly as a single  
space.  Revolution fields will not.


That is because Revolution does not render HTML.  It does not even  
try.


Dar Scott


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Dar Scott


On Aug 9, 2006, at 12:55 AM, Bill Marriott wrote:

Very simple concept, consistently applied, and not surprising or  
bizarre in

the least.


I guess we are not able to agree on that.

However, I can say that I am surprised.  Using htmlText cannot even  
handle spaces correctly.  To me this means there is no intent to  
render HTML.  That, to me, seems clear.  Based on that, I am  
surprised that there is an attempt to filter out title when that  
isn't even in the body.  More over it seems silly to implement  
something not even in the body when basic things that can be handled  
by the field are not event attempted.  Personally, I don't find that  
consistent.


I'm almost convinced, though, that htmlText should work as you  
suggest.  If so, that means it is buggy.  That's the bad news.  The  
good news is that we can submit those bugs.



bold is defined to specify boldface text.

b

p is defined to specify paragraphs

In HTML.  In htmlText it means lines.
title is defined to indicate metadata that is NOT part of the  
contents.

That is not part of a field.

unknown tags are defined to be ignored.

I must be behind in my HTML.

Dar


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Dar Scott


On Aug 9, 2006, at 1:59 AM, Mark Schonewille wrote:

You twist my words, Dar. The logic you seem to discover in my words  
is definitely not mine.


I apologize.  I did not intend to twist your words.  I'm sorry I did  
not infer what you are meaning.


I give up.  You guys are right.  The htmlText renders HTML.

Dar

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Mark Schonewille

Thanks Dar,

I don't mind being wrong, though. If the htmlText proeprty is proven  
to be bizarre, I will gladly admit I'm wrong. Neither would I argue  
that htmlText renders HTML, I'm just saying that the title tag not  
being parsed is not bizarre in my opinion. So, maybe our positions on  
this matter are not as diverging as one might think.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 9-aug-2006, om 12:36 heeft Dar Scott het volgende geschreven:

I apologize.  I did not intend to twist your words.  I'm sorry I  
did not infer what you are meaning.


I give up.  You guys are right.  The htmlText renders HTML.

Dar


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Dave Cragg


On 9 Aug 2006, at 11:36, Dar Scott wrote:



I give up.  You guys are right.  The htmlText renders HTML.


I think you might be accused of twisting people's words again. :-)  
The above description suggests that it renders html well. I didn't  
see anybody making that claim.


Better perhaps...

  The htmlText renders html kinda.

Cheers
Dave
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Martin Baxter

Dave Cragg wrote:


On 9 Aug 2006, at 11:36, Dar Scott wrote:



I give up.  You guys are right.  The htmlText renders HTML.


I think you might be accused of twisting people's words again. :-) The 
above description suggests that it renders html well. I didn't see 
anybody making that claim.


Better perhaps...

  The htmlText renders html kinda.

Cheers
Dave


I'm at a loose end, let's waste a bit more bandwidth...

My take here is that the fact that the htmltext does as you say above 
renders html kinda. is a side-effect of its true purpose. I see its 
purpose as to allow access to RR field text formatting information in a 
text-only form that can be readily understood, stored and manipulated.
This is a more user-friendly alternative to a binary stylerun for 
instance. A pseudo-html syntax was adopted to implement this, which has 
the side-effect that some html can be rendered in an RR field kinda.


I agree with others that the name of the property probably misleads more 
often than it explains.


Martin Baxter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Stephen Barncard

Guys, I don't get why title is worthy of an argument and bad feelings.

If one expects this in incoming html, then search for it in the block 
before display, change it or put it into a var then let htmltext do 
the rest. This should work for any tag that's outside rev-Html.


Using Derek Bump's  css-to-html I've had good results in my 
experiments, anyway. The stack also includes nice a browser-like 
set of buttons that can set text styles in the source field. You can 
type and change and see the results on each keystroke. I made my own 
mods to it so see encode and decode working


This can render rev htmltext for output to the web.

If I want real html rendering from the outside world then I'll use 
Chipp's brilliant product altBrowser.


sqb



On Aug 9, 2006, at 1:59 AM, Mark Schonewille wrote:

You twist my words, Dar. The logic you seem to discover in my words 
is definitely not mine.


I apologize.  I did not intend to twist your words.  I'm sorry I did 
not infer what you are meaning.


I give up.  You guys are right.  The htmlText renders HTML.

Dar



--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Dar Scott


On Aug 9, 2006, at 5:01 AM, Dave Cragg wrote:


I give up.  You guys are right.  The htmlText renders HTML.


I think you might be accused of twisting people's words again. :-)


Guilty.

The above description suggests that it renders html well. I didn't  
see anybody making that claim.


Better perhaps...

  The htmlText renders html kinda.


Perhaps a question to consider is whether we want it to be mo kinda.

Some folks use the htmlText as a way to handle and process the text  
as a single entity.  Enhancing or fixing the HTML nature of this  
might break such scripts and make new scripts harder to write.   
Improving representation of the field text, might make htmlText less  
like HTML.


So there is a bit of a stress between these goals, which might be  
labeled 'html' and 'format'.


For example, if htmlText is enhanced or fixed to represent a sequence  
of spaces correctly, supporting the 'html' use, what impact has that  
on the 'format' use.


Dar Scott

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Dar Scott


On Aug 9, 2006, at 11:26 AM, Stephen Barncard wrote:

Guys, I don't get why title is worthy of an argument and bad  
feelings.


It is certainly not worthy of bad feelings.  That may not be clear in  
bantering in email.


And the argument, and here I mean discussion, is more about the  
nature of htmlText and the nature of advocacy for its features.


Is the purpose of htmlText to represent text with formatting in a  
single easy-to-use value?  Or is the purpose to represent HTML?


It is easy to see which camp we are in.

Are you eager to get the space representation fixed or enhanced?  If  
yes, you are probably in the HTML camp.  If no, then not.


Dar Scott

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Andre Garzia

Folks,

I haven't been following this thread. Was someone trying to set the  
htmlText prop and then retrieve the plain text prop to strip out the  
HTML? I know this didn't work, why can someone use matchText(theText,  
(.+?), theTag) and loop to match all tags?


Cheers
andre

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Dar Scott


On Aug 9, 2006, at 11:58 AM, Dar Scott wrote:


It is easy to see which camp we are in.

Are you eager to get the space representation fixed or enhanced?   
If yes, you are probably in the HTML camp.  If no, then not.


And if you are surprised at the entities handled when htmlText is set  
that are not even generated when htmText is fetched, then you are  
probably in the 'tagged' or 'formatting' camp.


If you think it is most important that 'set the htmlText of field x  
to the htmlText of field x' should leave it unchanged, then you are  
probably in the 'tagged' or 'formatting' camp.  This is a little fuzzy.


Dar
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-09 Thread Chipp Walters

I sure wouldn't want this thread to stop!

OK, the httmltext doesn't render multiples spaces as a single space. And it
doesn't do tables, or forms, or a lot of other suff.

But, I use it ALL THE TIME. Just about every project I do contains htmltext.
It's create for embedding links into fields, or images, or formatting the
text in a filed or creating psedo-tables with tabstops, or creating oultine
controls. While it won't render the majority of HTML pages, it is certainly
useful for many of us.

btw, Dar, as smart as you are, I'm sure you can create a RegEx script to
render the multiple spaces as one ;-). Even though it would be a hack, it's
one that works, and us Rev programmers are all about figuring out how to
make things WORK.

-Chipp
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Bill Marriott
Except that title has a defined, special meaning that Rev knows about --  
which is to specify the title of a document -- and that is by definition 
distinct from the content. The foo tag however, is undefined.

I believe that it's appropriate to strip out the information between title 
tags and to preserve the information between foo tags.

By reference, see:

http://www.w3.org/MarkUp/html3/HTMLandSGML.html

The behavior of WWW applications reading HTML documents and discovering tag 
or attribute names which they do not understand should be to behave as 
though, in the case of a tag, the whole tag had not been there but its 
content had, or in the case of an attribute, that the attribute had not been 
present.

In this case, Rev understands the title tag, and correctly does not 
include it in the content. It does not understand the foo tag and 
therefore renders it as if the tag were not there.


Dar Scott wrote:
 On Aug 7, 2006, at 2:27 AM, Mark Schonewille wrote:

 No, it is what I expect. My internet browser behaves exactly the same.

 Actually, Dan is right.  It is bizarre!

 My word processor doesn't do it.  My calculator doesn't do it.  The  IP 
 address field in preferences doesn't do it.

 A Revolution field is not a browser and it is not even an HTML  displayer. 
 It has a simple html-like markup view that covers the  capabilities of of 
 the field.  Though it is similar to HTML, htmlText  doesn't even attempt 
 to be like HTML even in little things like  representing whitespace.

 The title is way outside the scope of what htmlText does.

 Stripping title and not foo is bizarre.

 It might be a clue that htmlText will become closer to HTML, but I 
 suspect it is an ancient artifact.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Mark Schonewille
Exactly, Bill. Nothing bizarre about it. Thank you for looking up the  
reference.


In reply to Dar's list of applications that do or don't: Apple's  
TextEdit application behaves exactly like Revolution fields in this  
respect.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 8-aug-2006, om 12:56 heeft Bill Marriott het volgende geschreven:

Except that title has a defined, special meaning that Rev knows  
about --
which is to specify the title of a document -- and that is by  
definition

distinct from the content. The foo tag however, is undefined.

I believe that it's appropriate to strip out the information  
between title

tags and to preserve the information between foo tags.

By reference, see:

http://www.w3.org/MarkUp/html3/HTMLandSGML.html

The behavior of WWW applications reading HTML documents and  
discovering tag

or attribute names which they do not understand should be to behave as
though, in the case of a tag, the whole tag had not been there but its
content had, or in the case of an attribute, that the attribute had  
not been

present.

In this case, Rev understands the title tag, and correctly does not
include it in the content. It does not understand the foo tag and
therefore renders it as if the tag were not there.


Dar Scott wrote:


Actually, Dan is right.  It is bizarre!

My word processor doesn't do it.  My calculator doesn't do it.   
The  IP

address field in preferences doesn't do it.

A Revolution field is not a browser and it is not even an HTML   
displayer.
It has a simple html-like markup view that covers the   
capabilities of of
the field.  Though it is similar to HTML, htmlText  doesn't even  
attempt

to be like HTML even in little things like  representing whitespace.

The title is way outside the scope of what htmlText does.

Stripping title and not foo is bizarre.

It might be a clue that htmlText will become closer to HTML, but I
suspect it is an ancient artifact.





___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dar Scott


On Aug 8, 2006, at 4:56 AM, Bill Marriott wrote:

Except that title has a defined, special meaning that Rev knows  
about --
which is to specify the title of a document -- and that is by  
definition

distinct from the content. The foo tag however, is undefined.

I believe that it's appropriate to strip out the information  
between title

tags and to preserve the information between foo tags.

By reference, see:

http://www.w3.org/MarkUp/html3/HTMLandSGML.html


That is an HTML document.

You are assuming that a field and htmlText has something to do with  
HTML.


What do you base this assumption on?

It is clear that htmlText is a view that is html-like.  There is no  
reason to expect it to process HTML when it is dumped into the property.


(Now, I do think htmlText when retrieved might be closer to HTML,  
such as the handling of white space, but that is a different issue.   
Maybe it is even possible for retrieved htmlText to closely render in  
HTML.)


There is no reason to expect a field to process HTML when it is  
dumped into the field's htmlText property.


Stripping title is bizarre.

Dar Scott
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Roger . E . Eller
Dar Scott wrote:
 You are assuming that a field and htmlText has something to do with
 HTML.
 
 What do you base this assumption on?
 
 It is clear that htmlText is a view that is html-like.  There is no
 reason to expect it to process HTML when it is dumped into the property.

I think that RunTime made a bad choice in naming that property htmlText. 
If it was never intended to render the full html spec, then it should have 
been named something like taggedText. There would be no assumption that 
a property named taggedText would render html pages. That's my two 
cents.

Roger Eller [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Peter T. Evensen
Unless I misunderstand what you are saying, setting the htmlText of a field 
*should* process the (Revolution-supported) HTML in the text, otherwise 
setting the htmlText of a field would not be useful.  The whole point is 
being able to use the supported html tags to mark up text and then have it 
displayed properly in a field.  If you look at the documentation entry for 
htmlText, it is clear that this is exactly what this property is intended 
to do.


If you are saying it shouldn't process unsupported HTML tags, that is 
something different.  I'm not sure what it's behavior is.


I use htmlText in a project to strip out html by setting the htmlText of a 
hidden field and then getting the text of that field (instead of 
htmlText).  This neatly strips out the tags.  I am, however, only using the 
Revolution-supported tags in my text. I don't know why it is striping out 
text between  the title tags.


At 01:45 PM 8/8/2006, you wrote:


On Aug 8, 2006, at 4:56 AM, Bill Marriott wrote:


Except that title has a defined, special meaning that Rev knows
about --
which is to specify the title of a document -- and that is by
definition
distinct from the content. The foo tag however, is undefined.

I believe that it's appropriate to strip out the information
between title
tags and to preserve the information between foo tags.

By reference, see:

http://www.w3.org/MarkUp/html3/HTMLandSGML.html


That is an HTML document.

You are assuming that a field and htmlText has something to do with
HTML.

What do you base this assumption on?

It is clear that htmlText is a view that is html-like.  There is no
reason to expect it to process HTML when it is dumped into the property.

(Now, I do think htmlText when retrieved might be closer to HTML,
such as the handling of white space, but that is a different issue.
Maybe it is even possible for retrieved htmlText to closely render in
HTML.)

There is no reason to expect a field to process HTML when it is
dumped into the field's htmlText property.

Stripping title is bizarre.

Dar Scott
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-682-4588 



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Bill Marriott
Dar Scott wrote:
 You are assuming that a field and htmlText has something to do with  HTML.

 What do you base this assumption on?

Oh, I dunno, the name of the function beginning with HTML? The 
documentation which states, Specifies the contents of a field, with its 
text formatting represented as HTML tags and special characters represented 
as HTML entities. And the detailed list of supported, unsupported, and 
custom HTML tags which follows?

Seriously, this is a stretch.

Consider the Rev text field the equivalent of a WAP 1.0 browser, or 
something like that. It is a bonafide HTML presentation, to the extent of 
what Rev text fields are capable of rendering. A relatively complete set of 
text formatting is available. Images are incorporated as appropriate. Links 
are handled. And so on. I assume the only reason the rendering is not more 
complete are the limitations of the field control and Rev itself.

There can be no doubt that the intention of the function is to a) export the 
styled content of a text field as faithfully as possible using HTML and b) 
to render incoming HTML as properly as possible. The title element is 
specifically defined in the HTML specification: The TITLE element is not 
considered part of the flow of text.

 Stripping title is bizarre.

No, it's exactly the right thing to do if you're implementing a function 
named HTMLText() that is designed to process HTML tags at best-effort. 



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dan Shafer

Sorry I ever mentioned I found it bizarre. Nothing we can do about it. It is
what it is.

I don't use htmlText because it's too limited and limiting.

Dan
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dar Scott


On Aug 8, 2006, at 2:58 PM, Bill Marriott wrote:



What do you base this assumption on?


Oh, I dunno, the name of the function beginning with HTML? The
documentation which states, Specifies the contents of a field,  
with its
text formatting represented as HTML tags and special characters  
represented

as HTML entities.


Look at what that actually says.

It says with its text formatting represented as HTML tags.

It never ever says the field displays HTML.

It is clear that htmlText was never intended to have to do with  
HTML.  What is the lowest most functionality of HTML?  The handling  
of white space.  The htmlText property does not do that in output or  
input.  Metacard and RunRev were clear some time ago in that this is  
not a bug.


BUT, I think it would be a good idea to expand htmlText (when  
fetched) to be a string that would display the same content (or very  
similar) content when dumped into an HTML display.  I suspect that  
anything that can be displayed in a field can be represented in  
HTML.  This enhancement will probably break scripts, though.  (Links  
have completely separate semantics, though, and will not transfer  
completely.)



Links are handled.


They are?

There can be no doubt that the intention of the function is to a)  
export the

styled content of a text field as faithfully as possible using HTML


A candidate for an enhancement request.  I'd vote for this.  I'm not  
sure how it should handle dontWrap.



and b)
to render incoming HTML as properly as possible.


Nonsense.  It can't render HTML.

No, it's exactly the right thing to do if you're implementing a  
function

named HTMLText() that is designed to process HTML tags at best-effort.


It is clear from its behavior that that was not what it was designed  
for.  No effort was made to make that happen.  Would you have  
released htmlText the way it is if you made it to render HTML?


So removing title is bizarre.  Somebody complained or asked for it  
and it was tacked on.


Dar Scott


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dar Scott


On Aug 8, 2006, at 1:18 PM, [EMAIL PROTECTED] wrote:


There would be no assumption that
a property named taggedText would render html pages.


I agree.  -- Dar
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dar Scott


On Aug 8, 2006, at 5:22 AM, Mark Schonewille wrote:

Apple's TextEdit application behaves exactly like Revolution fields  
in this respect.


Are you looking at clipboardData[html]?

I don't think TextEdit is creating bad HTML.  I think Revolution is  
using the same function to create htmlText as it does to create  
clipboardData[html]?


Dar



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dar Scott


On Aug 8, 2006, at 2:58 PM, Bill Marriott wrote:


Seriously, this is a stretch.


If people really believe that, where is the outcry over the handling  
of white space?


If you really believe that, then why haven't you submitted such bugs  
to BZ?


If you try submitting a white space bug (I thought one was submitted,  
but that may have been before BZ), what are the chances of it being  
marked not a bug?  If you think high, then you know in your heart  
that htmlText is not HTML.


Dar Scott

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Mark Schonewille

Dar,

No, I opened an html page with the following code in TextEdit while  
not ignoring RTF commands (isn't it funny that TextEdit uses the same  
option to en/disable HTML and RTF?):


html
body
titlebar/title
/body

Not that the title tags are in the body and still not rendered by  
TextEdit. However, if I replace title by foo, bar is visible in  
TextEdit. Revolution does the same, if I set the htmlText of a field  
to above html code.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 9-aug-2006, om 1:06 heeft Dar Scott het volgende geschreven:



On Aug 8, 2006, at 5:22 AM, Mark Schonewille wrote:

Apple's TextEdit application behaves exactly like Revolution  
fields in this respect.


Are you looking at clipboardData[html]?

I don't think TextEdit is creating bad HTML.  I think Revolution is  
using the same function to create htmlText as it does to create  
clipboardData[html]?


Dar


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dar Scott


On Aug 8, 2006, at 4:51 PM, Dar Scott wrote:


On Aug 8, 2006, at 1:18 PM, [EMAIL PROTECTED] wrote:

There would be no assumption that
a property named taggedText would render html pages.


I agree


Whoops.  I think the partial quote might misrepresent Roger.  There  
is an if in the previous sentence:


I think that RunTime made a bad choice in naming that property  
htmlText.
If it was never intended to render the full html spec, then it  
should have
been named something like taggedText. There would be no  
assumption that

a property named taggedText would render html pages. That's my two
cents.


Dar

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Stephen Barncard
Just a suggestion - Derek Bump (Dreamscape Software) did some 
experimenting with css and rev's htmltext a couple of years ago. You 
might want to check it out.


The simple code there did help quite a bit with translating to and 
from (especially to) real web pages and seemed to scale font sizes 
pretty well.


http://www.dreamscapesoftware.com/products/htmltocss.zip


I went in and tweaked a few things for my use on my copy, but it's 
quite useful as is.

--
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-08 Thread Dar Scott


On Aug 8, 2006, at 5:52 PM, Mark Schonewille wrote:


html
body
titlebar/title
/body

Not that the title tags are in the body and still not rendered by  
TextEdit. However, if I replace title by foo, bar is visible  
in TextEdit. Revolution does the same, if I set the htmlText of a  
field to above html code.


I don't follow this logic:

   TextEdit can render HTML.
   TextEdit removes title.
   Rev fields remove title.
   Therefore...
   Rev field can render HTML.

Try this (similar to above):

html
body
a   b
/body

TextEdit will render the multiple spaces correctly as a single  
space.  Revolution fields will not.


That is because Revolution does not render HTML.  It does not even try.

Dar Scott

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-07 Thread Mark Schonewille

Dan,

Have you tried this?

set the htmlText of fld 1 to foobar/foo

Didn't know that foo was a supported tag ;-) Revolution just  
filters out text surrounded by title tags, because they are not  
supposed to appear in the body of an html page.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 7-aug-2006, om 7:53 heeft Dan Shafer het volgende geschreven:

The problem is that title isn't a supported HTML tag in Rev's  
formatted

text, so nothing shows. If you change the tag to one of those that is
supported (see docs), it works fine.

Dan


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-07 Thread Dan Shafer

That's just freaking bizarre!

On 8/7/06, Mark Schonewille [EMAIL PROTECTED] wrote:


Dan,

Have you tried this?

set the htmlText of fld 1 to foobar/foo

Didn't know that foo was a supported tag ;-) Revolution just
filters out text surrounded by title tags, because they are not
supposed to appear in the body of an html page.

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and
get full control of error handling in Revolution.



Op 7-aug-2006, om 7:53 heeft Dan Shafer het volgende geschreven:

 The problem is that title isn't a supported HTML tag in Rev's
 formatted
 text, so nothing shows. If you change the tag to one of those that is
 supported (see docs), it works fine.

 Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, Revolution: Software at the Speed of Thought

From http://www.shafermediastore.com/tech_main.html

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-07 Thread Mark Schonewille

No, it is what I expect. My internet browser behaves exactly the same.

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 7-aug-2006, om 10:08 heeft Dan Shafer het volgende geschreven:


That's just freaking bizarre!


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-07 Thread Dar Scott


On Aug 7, 2006, at 2:27 AM, Mark Schonewille wrote:


No, it is what I expect. My internet browser behaves exactly the same.


Actually, Dan is right.  It is bizarre!

My word processor doesn't do it.  My calculator doesn't do it.  The  
IP address field in preferences doesn't do it.


A Revolution field is not a browser and it is not even an HTML  
displayer.  It has a simple html-like markup view that covers the  
capabilities of of the field.  Though it is similar to HTML, htmlText  
doesn't even attempt to be like HTML even in little things like  
representing whitespace.


The title is way outside the scope of what htmlText does.

Stripping title and not foo is bizarre.

It might be a clue that htmlText will become closer to HTML, but I  
suspect it is an ancient artifact.


Dar Scott

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-06 Thread Mark Schonewille

Hi Sivakatirswami,

Maybe the field stays empty because the title tag is not a part of  
the body of the html page.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 7-aug-2006, om 0:03 heeft Sivakatirswami het volgende geschreven:


I think I am missing thing...

I thought this used to work

# html tag cleaner, simple no brainer style

put  titleChapter 1: Great Revolution Recipes/title into tHtml
set the htmltext of fld title to tHtml

I get nothing returned at all, field is empty.

??


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HTML Tag Cleaner Fails

2006-08-06 Thread Dan Shafer

The problem is that title isn't a supported HTML tag in Rev's formatted
text, so nothing shows. If you change the tag to one of those that is
supported (see docs), it works fine.

Dan


On 8/6/06, Sivakatirswami [EMAIL PROTECTED] wrote:


I think I am missing thing...

I thought this used to work

# html tag cleaner, simple no brainer style

put  titleChapter 1: Great Revolution Recipes/title into tHtml
set the htmltext of fld title to tHtml

I get nothing returned at all, field is empty.

??


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, Revolution: Software at the Speed of Thought

From http://www.shafermediastore.com/tech_main.html

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution