Ok

 

 

From: Rustem Alimov [mailto:arka...@gmail.com] 
Sent: Thursday, October 21, 2010 12:04 PM
To: clucene-developers@lists.sourceforge.net
Subject: Re: [CLucene-dev] Fwd: Highlighter. UPD

 

Hi, yes and trailing quote

Test text - word1 word2 ("word3")
Search - word3
After getBestFragments: word1 word2 ("<b>word3</b> - miising ")

2010/10/21 Kostka Bořivoj <kos...@tovek.cz>

Hi,

 

I'm still not sure, what is the purpose of added lines. Adding trailing 
parenthesis to the end of fragment?

 

Borek

 

From: Rustem Alimov [mailto:arka...@gmail.com] 
Sent: Tuesday, October 12, 2010 4:57 PM
To: clucene-developers@lists.sourceforge.net
Subject: Re: [CLucene-dev] Fwd: Highlighter. UPD

 

Sorry... monday....

            while (text[lastEndOffset + trail] == _T(')') || text[lastEndOffset 
+ trail] == _T('"'))

or a previous version...

2010/10/12 Kostka Bořivoj <kos...@tovek.cz>

I think while is an infinite cycle in this version...

Borek

 

From: Rustem Alimov [mailto:arka...@gmail.com] 
Sent: Monday, October 11, 2010 5:25 PM


To: clucene-developers@lists.sourceforge.net

Subject: Re: [CLucene-dev] Fwd: Highlighter. UPD

 

New version :)

            // append trailing ')' and '"' to snippet
            size_t trail = 0;
            while (text[lastEndOffset] == _T(')') || text[lastEndOffset] == 
_T('"'))
                ++trail;
            if (trail)
            {
                writeTo->append(text + lastEndOffset, trail);
                lastEndOffset += trail;
            }

2010/10/11 Kostka Bořivoj <kos...@tovek.cz>

OK, I'll look at it 

Borek

 

From: Rustem Alimov [mailto:arka...@gmail.com] 
Sent: Monday, October 11, 2010 11:17 AM
To: clucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] Fwd: Highlighter. UPD

 

Hi!


Please, append next block to code

src/contribs-lib/CLucene/highlighter/Highlighter.cpp

Highlighter::getBestTextFragments
Line: 315-317

            // append trailing ')' and '"' to snippet
            while (text[lastEndOffset] == _T(')') || text[lastEndOffset] == 
_T('"'))
            {
                writeTo->append(text + lastEndOffset, 1);
                ++lastEndOffset;
            }

            // append text after end of last token
            //if (lastEndOffset < (int32_t)_tcslen(text))
            //newText->append(text+lastEndOffset);

 


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

 


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

 


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

 

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to