- fixed selection box for topwords

- fixed parser detail in condenser

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4509 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent bd2d9f75ae
commit c48e25d784

@ -3,7 +3,7 @@ javacSource=1.5
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

@ -60,10 +60,10 @@ progressbar.step(1);
</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]#&amp;Enter=Search&amp;count=#[count]#&amp;offset=#[offset]#&amp;resource=#[resource]#&amp;contentdom=#[contentdom]#'">#[word]#</option>
<option value="/yacy/user/ysearch.html?search=#[newsearch]#&amp;Enter=Search&amp;count=#[count]#&amp;offset=#[offset]#&amp;resource=#[resource]#&amp;contentdom=#[contentdom]#">#[word]#</option>
#{/words}#
</select>
</p>

@ -872,9 +872,9 @@ public final class plasmaCondenser {
}
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 @@ public final class plasmaCondenser {
}
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;
}

Loading…
Cancel
Save