Re: Presentation tags

Derrick Oswald <[email protected]> Thu, 30 Jun 2011 17:34:47 +0200
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <[email protected]>
I'm not sure what you mean by inserted whitespace.
There are no text characters added or re-arranged. The parser is just
extracting the text and tags in the order encountered.
Like I said, if you want the text to be "as the user sees it", try the
StringBean. It discards all the tags and only returns the text.

On Thu, Jun 30, 2011 at 4:13 PM, Chris Bamford <[email protected]>wrote:

>    Hi Derrick,
>
> On 30 Jun 2011, at 14:48, Derrick Oswald wrote:
>
> > Although you might find it difficult to work with, the way the tags and
> text are returned makes sense.
> > To avoid splitting the word, the program would need to make a judgement
> call regarding which text is a word and belongs together and which of the
> tags to ignore.
>
> While I think I follow your answer, I'm not sure I agree - surely there is
> no judgement call required in this case - the removal of the tags from
> "<u>north</u>ern" = "northern", no? Is the text not accumulated in a buffer
> and only tags discarded? I fail to see the need for extra whitespace to be
> inserted. Certainly the purpose of the presentation tags I am aware of is
> not to represent some sort of whitespace (like say, <br> or <p>), so I would
> have thought in their case whitespace should definitely not be inserted?
>
> Kind regards,
>
> - Chris
>    <http://serviceA.mimecast.com/mimecast/click?account=C1A1&code=12313532a22405a492ca116e659a1c28>
>         [ Our Blog<http://serviceA.mimecast.com/mimecast/click?account=C1A1&code=33f443c9b3b0e7f078e5eaa1835879fe>]   [
> Twitter<http://serviceA.mimecast.com/mimecast/click?account=C1A1&code=417ee78c70fbd085aed75e711359923a>]   [
> YouTube<http://serviceA.mimecast.com/mimecast/click?account=C1A1&code=8f412bfd0f4365cf62e8e2bfcb0079b5>]   [
> Community<http://serviceA.mimecast.com/mimecast/click?account=C1A1&code=cb9e1f717d4c508a0e819e51159298fd>]
>      * Chris Bamford *
> Software Engineer  *m: +44 7860 405292
> www.mimecast.com<http://serviceA.mimecast.com/mimecast/click?account=C1A1&code=2974a5cbefa0a041e985a40d2c070ce1>
> *
> 2-8 Balfe Street, London, N1 9EG
>   +44 (0) 207 843 2300
>
> *Disclaimer*
> The information contained in this communication from *
> [email protected] * sent at 2011-06-30 15:14:41 is confidential and
> may be legally privileged. It is intended solely for use by *
> [email protected] * and others authorized to receive
> it. If you are not * [email protected] * you are
> hereby notified that any disclosure, copying, distribution or taking action
> in reliance of the contents of this information is strictly prohibited and
> may be unlawful.
>
> Mimecast Ltd. is a company registered in England and Wales with the company
> number 4698693 VAT No. GB 832 5179 29
> Registered Office:2 - 8 Balfe Street, Kings Cross London, N1 9EG Email
> Address: [email protected]
> ------------------------------
> This email message has been scanned for viruses by Mimecast.
> Mimecast delivers a complete managed email solution from a single web based
> platform.
> For more information please visit http://www.mimecast.com<http://www.mimecast.com>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Htmlparser-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/htmlparser-user
>
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2

_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user
111063015144101402.gif (image/gif, 14 KB) - not displayed
111063015144101202.gif (image/gif, 2.2 KB) - not displayed