Author: orbiter
Date: 2008-02-25 20:00:11 +0100 (Mon, 25 Feb 2008)
New Revision: 4509
Modified:
trunk/build.properties
trunk/htroot/yacy/user/ysearchitem.html
trunk/source/de/anomic/plasma/plasmaCondenser.java
Log:
- fixed selection box for topwords
- fixed parser detail in condenser
Modified: trunk/build.properties
===================================================================
--- trunk/build.properties 2008-02-25 18:19:22 UTC (rev 4508)
+++ trunk/build.properties 2008-02-25 19:00:11 UTC (rev 4509)
@@ -3,7 +3,7 @@
javacTarget=1.5
# Release Configuration
-releaseVersion=0.572
+releaseVersion=0.573
stdReleaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
embReleaseFile=yacy_emb_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
proReleaseFile=yacy_pro_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
Modified: trunk/htroot/yacy/user/ysearchitem.html
===================================================================
--- trunk/htroot/yacy/user/ysearchitem.html 2008-02-25 18:19:22 UTC (rev
4508)
+++ trunk/htroot/yacy/user/ysearchitem.html 2008-02-25 19:00:11 UTC (rev
4509)
@@ -60,10 +60,10 @@
</p>
#(topwords)#::
<p><strong>Category</strong>:
- <select id="count" name="count">
+ <select
onchange="window.location.href=this.options[this.selectedIndex].value">
<option selected="selected">-select-</option>
#{words}#
- <option
onclick="window.location.href='/yacy/user/ysearch.html?search=#[newsearch]#&Enter=Search&count=#[count]#&offset=#[offset]#&resource=#[resource]#&contentdom=#[contentdom]#'">#[word]#</option>
+ <option
value="/yacy/user/ysearch.html?search=#[newsearch]#&Enter=Search&count=#[count]#&offset=#[offset]#&resource=#[resource]#&contentdom=#[contentdom]#">#[word]#</option>
#{/words}#
</select>
</p>
Modified: trunk/source/de/anomic/plasma/plasmaCondenser.java
===================================================================
--- trunk/source/de/anomic/plasma/plasmaCondenser.java 2008-02-25 18:19:22 UTC
(rev 4508)
+++ trunk/source/de/anomic/plasma/plasmaCondenser.java 2008-02-25 19:00:11 UTC
(rev 4509)
@@ -872,9 +872,9 @@
}
static StringBuffer readSentence(Reader reader, boolean pre) throws
IOException {
- StringBuffer s = new StringBuffer(20);
+ StringBuffer s = new StringBuffer(40);
int nextChar;
- char c, lc = (char) 0;
+ char c, lc = ' '; // starting with ' ' as last character prevents that
the result string starts with a ' '
// find sentence end
for (;;) {
@@ -885,13 +885,18 @@
}
c = (char) nextChar;
if (pre && ((c == (char) 10) || (c == (char) 13))) break;
- if ((c == (char) 8) || (c == (char) 10) || (c == (char) 13)) c = '
';
+ if (c < ' ') c = ' ';
if ((lc == ' ') && (c == ' ')) continue; // ignore double spaces
s.append(c);
if (htmlFilterContentScraper.punctuation(c)) break;
lc = c;
}
+ if (s.length() == 0) return s;
+ if (s.charAt(s.length() - 1) == ' ') {
+ s.trimToSize();
+ s.deleteCharAt(s.length() - 1);
+ }
return s;
}
_______________________________________________
YaCy-svn mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/yacy-svn