summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhtroot/env/grafics/YaCyLogo2011.svg199
-rw-r--r--htroot/env/grafics/YaCyLogo2012.svg82
-rw-r--r--source/net/yacy/htroot/QuickCrawlLink_p.java4
-rw-r--r--test/java/net/yacy/document/parser/htmlParserTest.java9
4 files changed, 289 insertions, 5 deletions
diff --git a/htroot/env/grafics/YaCyLogo2011.svg b/htroot/env/grafics/YaCyLogo2011.svg
new file mode 100755
index 000000000..a16bb0f25
--- /dev/null
+++ b/htroot/env/grafics/YaCyLogo2011.svg
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ YaCy Logo from 2011, (C) Michael Peter Christen 2011, MIT Licensed.
+ Original Artwork from Natali Christen. Font: WideAwake
+-->
+
+<svg
+ xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="104"
+ height="67"
+ viewBox="-0.114 -0.803 104 67"
+ xml:space="preserve"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.2 r9819"
+ sodipodi:docname="YaCyLogo2011.svg"><metadata
+ id="metadata52"><rdf:RDF><cc:Work
+ rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1135"
+ inkscape:window-height="800"
+ id="namedview50"
+ showgrid="false"
+ inkscape:zoom="7.5667206"
+ inkscape:cx="51.669647"
+ inkscape:cy="33.5"
+ inkscape:window-x="171"
+ inkscape:window-y="198"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="svg2" />
+ <defs
+ id="defs4">
+
+
+
+ <linearGradient
+ gradientTransform="matrix(91.8794 0 0 -91.8794 60189.6133 41819.4375)"
+ y2="454.7988"
+ x2="-654.0293"
+ y1="454.7988"
+ x1="-655.0293"
+ gradientUnits="userSpaceOnUse"
+ id="XMLID_1_">
+ <stop
+ id="stop11"
+ style="stop-color:#7AC0CA"
+ offset="0" />
+ <stop
+ id="stop13"
+ style="stop-color:#2593AD"
+ offset="1" />
+ <a:midPointStop
+ style="stop-color:#7AC0CA"
+ offset="0" />
+ <a:midPointStop
+ style="stop-color:#7AC0CA"
+ offset="0.5" />
+ <a:midPointStop
+ style="stop-color:#2593AD"
+ offset="1" />
+ </linearGradient>
+
+
+
+ </defs>
+ <path
+ enable-background="new "
+ d="m 30.98,51.183 13.859,-0.004 c 1.463,0 2.688,-0.897 3.016,-2.309 l 18.442,0.033 c 0.034,0 0.065,-0.009 0.099,-0.01 l -0.655,3.78 c -0.03,0.179 -0.045,0.357 -0.045,0.534 0,0.733 0.256,1.448 0.734,2.017 0.595,0.706 1.472,1.113 2.396,1.113 h 13.729 c 1.52,0 2.819,-1.089 3.083,-2.586 0,0 3.19,-18.107 4.426,-25.121 0.543,-0.218 1.026,-0.574 1.38,-1.07 1.105,0.59 2.458,0.473 3.437,-0.317 0.748,-0.604 1.164,-1.506 1.164,-2.436 0,-0.285 -0.049,-0.574 -0.131,-0.859 1.145,-0.494 1.896,-1.613 1.896,-2.865 v -0.019 c -0.008,-1.259 -0.773,-2.378 -1.932,-2.859 0.075,-0.273 0.121,-0.55 0.121,-0.824 0,-0.942 -0.427,-1.854 -1.193,-2.46 -0.988,-0.778 -2.341,-0.879 -3.439,-0.275 -0.74,-1.012 -2.011,-1.492 -3.236,-1.205 -1.223,0.287 -2.141,1.279 -2.355,2.51 -1.256,-0.053 -2.424,0.647 -2.965,1.786 -0.049,0.103 -0.071,0.211 -0.107,0.317 h -8.232 c -0.039,0 -0.076,0.008 -0.115,0.01 L 75.793,9.907 C 75.824,9.725 75.84,9.545 75.84,9.365 75.84,8.634 75.584,7.921 75.108,7.352 74.512,6.643 73.635,6.235 72.71,6.235 H 55.231 c -1.52,0 -2.819,1.089 -3.082,2.588 l -1.575,9.079 -13.745,-0.065 c 0.287,-1.631 0.457,-2.6 0.457,-2.6 0.032,-0.18 0.048,-0.361 0.048,-0.542 0,-0.731 -0.257,-1.444 -0.732,-2.013 -0.596,-0.709 -1.474,-1.117 -2.398,-1.117 H 16.409 c -1.52,0 -2.82,1.09 -3.083,2.587 L 5.976,55.86 c -0.031,0.18 -0.046,0.357 -0.046,0.535 0,0.733 0.257,1.448 0.736,2.017 0.595,0.706 1.471,1.113 2.395,1.113 h 17.876 c 1.52,0 2.819,-1.092 3.083,-2.588 l 0.96,-5.754 z"
+ id="path3848"
+ style="fill:#2080c0;fill-opacity:1"
+ inkscape:connector-curvature="0" /><path
+ inkscape:connector-curvature="0"
+ style="fill:#2080c0;fill-opacity:1"
+ id="path15"
+ d="m 30.98,51.183 13.859,-0.004 c 1.463,0 2.688,-0.897 3.016,-2.309 l 18.442,0.033 c 0.034,0 0.065,-0.009 0.099,-0.01 l -0.655,3.78 c -0.03,0.179 -0.045,0.357 -0.045,0.534 0,0.733 0.256,1.448 0.734,2.017 0.595,0.706 1.472,1.113 2.396,1.113 h 13.729 c 1.52,0 2.819,-1.089 3.083,-2.586 0,0 3.19,-18.107 4.426,-25.121 0.543,-0.218 1.026,-0.574 1.38,-1.07 1.105,0.59 2.458,0.473 3.437,-0.317 0.748,-0.604 1.164,-1.506 1.164,-2.436 0,-0.285 -0.049,-0.574 -0.131,-0.859 1.145,-0.494 1.896,-1.613 1.896,-2.865 v -0.019 c -0.008,-1.259 -0.773,-2.378 -1.932,-2.859 0.075,-0.273 0.121,-0.55 0.121,-0.824 0,-0.942 -0.427,-1.854 -1.193,-2.46 -0.988,-0.778 -2.341,-0.879 -3.439,-0.275 -0.74,-1.012 -2.011,-1.492 -3.236,-1.205 -1.223,0.287 -2.141,1.279 -2.355,2.51 -1.256,-0.053 -2.424,0.647 -2.965,1.786 -0.049,0.103 -0.071,0.211 -0.107,0.317 h -8.232 c -0.039,0 -0.076,0.008 -0.115,0.01 L 75.793,9.907 C 75.824,9.725 75.84,9.545 75.84,9.365 75.84,8.634 75.584,7.921 75.108,7.352 74.512,6.643 73.635,6.235 72.71,6.235 H 55.231 c -1.52,0 -2.819,1.089 -3.082,2.588 l -1.575,9.079 -13.745,-0.065 c 0.287,-1.631 0.457,-2.6 0.457,-2.6 0.032,-0.18 0.048,-0.361 0.048,-0.542 0,-0.731 -0.257,-1.444 -0.732,-2.013 -0.596,-0.709 -1.474,-1.117 -2.398,-1.117 H 16.409 c -1.52,0 -2.82,1.09 -3.083,2.587 L 5.976,55.86 c -0.031,0.18 -0.046,0.357 -0.046,0.535 0,0.733 0.257,1.448 0.736,2.017 0.595,0.706 1.471,1.113 2.395,1.113 h 17.876 c 1.52,0 2.819,-1.092 3.083,-2.588 l 0.96,-5.754 z"
+ enable-background="new " /><g
+ id="g17"
+ style="fill:#ffffff">
+ <defs
+ id="defs19">
+ <path
+ inkscape:connector-curvature="0"
+ d="m 94.96,21.122 -2.616,-1.015 0.807,-2.688 -2.424,1.412 -1.6,-2.305 -0.407,2.776 -2.8,-0.188 1.917,2.048 -0.052,0.057 H 82.771 L 79.462,39.585 H 77.224 L 80.529,21.219 H 74.75 l -4.232,24.06 h 8.015 l -0.474,2.275 h -7.966 l -0.985,5.691 h 13.729 l 5.318,-30.185 0.588,-0.047 0.44,2.771 1.571,-2.324 2.44,1.384 -0.837,-2.678 2.603,-1.044 z m -32.557,7.15 -1.814,10.292 h -2.944 l 3.857,-21.917 h 2.946 l -1.547,8.786 h 7.266 L 72.989,9.401 H 55.513 l -6.409,36.41 H 66.58 L 69.576,28.272 H 62.403 z M 40.684,42.697 h -2.191 l 1.473,-8.758 h 2.26 l -1.542,8.758 z m -3.758,-21.692 -0.949,5.389 h 7.576 l -0.379,2.156 h -7.577 l -3.44,19.536 H 45.122 L 49.886,21.005 H 36.926 z M 34.485,14.732 H 27.133 L 22.826,38.648 H 19.912 L 24.214,14.732 H 16.69 l -5.512,31.326 h 10.437 l -0.616,2.965 H 10.625 l -1.284,7.411 h 17.877"
+ id="XMLID_8_" />
+ </defs>
+ <linearGradient
+ y2="32.917999"
+ x2="65.987198"
+ y1="32.917999"
+ x1="23.477501"
+ gradientUnits="userSpaceOnUse"
+ id="XMLID_3_">
+ <stop
+ id="stop23"
+ style="stop-color:#FFFFFF"
+ offset="0" />
+ <stop
+ id="stop25"
+ style="stop-color:#D8EAEB"
+ offset="0.2753" />
+ <stop
+ id="stop27"
+ style="stop-color:#E0EEEF"
+ offset="0.3289" />
+ <stop
+ id="stop29"
+ style="stop-color:#F1F8F8"
+ offset="0.4919" />
+ <stop
+ id="stop31"
+ style="stop-color:#FCFDFD"
+ offset="0.6664" />
+ <stop
+ id="stop33"
+ style="stop-color:#FFFFFF"
+ offset="0.8708" />
+ <stop
+ id="stop35"
+ style="stop-color:#EAF1F3"
+ offset="1" />
+ <a:midPointStop
+ style="stop-color:#FFFFFF"
+ offset="0" />
+ <a:midPointStop
+ style="stop-color:#FFFFFF"
+ offset="0.5" />
+ <a:midPointStop
+ style="stop-color:#D8EAEB"
+ offset="0.2753" />
+ <a:midPointStop
+ style="stop-color:#D8EAEB"
+ offset="0.2615" />
+ <a:midPointStop
+ style="stop-color:#FFFFFF"
+ offset="0.8708" />
+ <a:midPointStop
+ style="stop-color:#FFFFFF"
+ offset="0.5" />
+ <a:midPointStop
+ style="stop-color:#EAF1F3"
+ offset="1" />
+ </linearGradient>
+ <use
+ height="67"
+ width="104"
+ y="0"
+ x="0"
+ style="fill:#ffffff;fill-opacity:1;opacity:0.9"
+ id="use37"
+ xlink:href="#XMLID_8_"
+ inkscape:export-xdpi="61.233601"
+ inkscape:export-ydpi="61.233601" />
+ <clipPath
+ id="XMLID_4_">
+ <use
+ height="67"
+ width="104"
+ y="0"
+ x="0"
+ id="use40"
+ xlink:href="#XMLID_8_" />
+ </clipPath>
+ </g><g
+ id="g42">
+ <defs
+ id="defs44">
+ <path
+ inkscape:connector-curvature="0"
+ d="m 94.96,21.122 -2.616,-1.015 0.807,-2.688 -2.424,1.412 -1.6,-2.305 -0.407,2.776 -2.8,-0.188 1.917,2.048 -0.052,0.057 H 82.771 L 79.462,39.585 H 77.224 L 80.529,21.219 H 74.75 l -4.232,24.06 h 8.015 l -0.474,2.275 h -7.966 l -0.985,5.691 h 13.729 l 5.318,-30.185 0.588,-0.047 0.44,2.771 1.571,-2.324 2.44,1.384 -0.837,-2.678 2.603,-1.044 z m -32.557,7.15 -1.814,10.292 h -2.944 l 3.857,-21.917 h 2.946 l -1.547,8.786 h 7.266 L 72.989,9.401 H 55.513 l -6.409,36.41 H 66.58 L 69.576,28.272 H 62.403 z M 40.684,42.697 h -2.191 l 1.473,-8.758 h 2.26 l -1.542,8.758 z m -3.758,-21.692 -0.949,5.389 h 7.576 l -0.379,2.156 h -7.577 l -3.44,19.536 H 45.122 L 49.886,21.005 H 36.926 z M 34.485,14.732 H 27.133 L 22.826,38.648 H 19.912 L 24.214,14.732 H 16.69 l -5.512,31.326 h 10.437 l -0.616,2.965 H 10.625 l -1.284,7.411 h 17.877 l 7.267,-41.702 z"
+ id="XMLID_7_" />
+ </defs>
+ <clipPath
+ id="XMLID_6_">
+ <use
+ height="67"
+ width="104"
+ y="0"
+ x="0"
+ id="use48"
+ xlink:href="#XMLID_7_" />
+ </clipPath>
+ </g>
+</svg>
diff --git a/htroot/env/grafics/YaCyLogo2012.svg b/htroot/env/grafics/YaCyLogo2012.svg
new file mode 100644
index 000000000..1acb6e94e
--- /dev/null
+++ b/htroot/env/grafics/YaCyLogo2012.svg
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ YaCy Logo from 2012, (C) Michael Peter Christen 2012, MIT Licensed.
+ Original Artwork from Natali Christen. Font: WideAwake
+-->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="86.583px" height="60.333px" viewBox="0 0 86.583 60.333" enable-background="new 0 0 86.583 60.333" xml:space="preserve">
+<rect fill="#1D1D1B" width="86.583" height="60.333"/>
+<g>
+ <path fill="#2080C0" d="M27.456,41.374h11.09c1.168,0,2.148-0.719,2.41-1.849l14.754,0.024c0.027,0,0.051-0.004,0.078-0.008
+ l-0.523,3.026c-0.023,0.142-0.036,0.286-0.036,0.427c0,0.586,0.208,1.155,0.587,1.612c0.477,0.567,1.18,0.892,1.918,0.892h10.984
+ c1.215,0,2.254-0.871,2.465-2.07c0,0,2.555-14.485,3.543-20.098c0.434-0.172,0.82-0.457,1.102-0.855
+ c0.887,0.472,1.969,0.379,2.75-0.254c0.598-0.481,0.934-1.203,0.934-1.946c0-0.23-0.039-0.461-0.105-0.687
+ c0.914-0.399,1.516-1.293,1.516-2.293v-0.016c-0.008-1.008-0.617-1.902-1.547-2.289c0.062-0.215,0.098-0.437,0.098-0.656
+ c0-0.754-0.34-1.484-0.953-1.969c-0.793-0.621-1.875-0.703-2.754-0.219c-0.59-0.812-1.605-1.195-2.586-0.964
+ c-0.98,0.23-1.715,1.023-1.887,2.007c-1.004-0.043-1.938,0.516-2.371,1.43c-0.039,0.082-0.055,0.168-0.086,0.254h-6.586
+ c-0.031,0-0.059,0.004-0.09,0.008l1.148-6.527c0.023-0.145,0.039-0.29,0.039-0.434c0-0.586-0.207-1.156-0.586-1.609
+ c-0.477-0.567-1.18-0.895-1.918-0.895H46.858c-1.215,0-2.254,0.871-2.464,2.07l-1.262,7.262l-10.996-0.051
+ c0.23-1.304,0.367-2.078,0.367-2.078c0.023-0.144,0.039-0.289,0.039-0.433c0-0.586-0.207-1.157-0.586-1.614
+ c-0.477-0.566-1.18-0.89-1.918-0.89H15.799c-1.215,0-2.254,0.871-2.465,2.066L7.452,45.116c-0.023,0.145-0.035,0.284-0.035,0.43
+ c0,0.586,0.207,1.156,0.59,1.613c0.476,0.562,1.176,0.891,1.914,0.891h14.301c1.218,0,2.257-0.875,2.468-2.07L27.456,41.374z
+ M27.456,41.374"/>
+ <path fill="#2080C0" d="M27.456,41.374h11.09c1.168,0,2.148-0.719,2.41-1.849l14.754,0.024c0.027,0,0.051-0.004,0.078-0.008
+ l-0.523,3.026c-0.023,0.142-0.036,0.286-0.036,0.427c0,0.586,0.208,1.155,0.587,1.612c0.477,0.567,1.18,0.892,1.918,0.892h10.984
+ c1.215,0,2.254-0.871,2.465-2.07c0,0,2.555-14.485,3.543-20.098c0.434-0.172,0.82-0.457,1.102-0.855
+ c0.887,0.472,1.969,0.379,2.75-0.254c0.598-0.481,0.934-1.203,0.934-1.946c0-0.23-0.039-0.461-0.105-0.687
+ c0.914-0.399,1.516-1.293,1.516-2.293v-0.016c-0.008-1.008-0.617-1.902-1.547-2.289c0.062-0.215,0.098-0.437,0.098-0.656
+ c0-0.754-0.34-1.484-0.953-1.969c-0.793-0.621-1.875-0.703-2.754-0.219c-0.59-0.812-1.605-1.195-2.586-0.964
+ c-0.98,0.23-1.715,1.023-1.887,2.007c-1.004-0.043-1.938,0.516-2.371,1.43c-0.039,0.082-0.055,0.168-0.086,0.254h-6.586
+ c-0.031,0-0.059,0.004-0.09,0.008l1.148-6.527c0.023-0.145,0.039-0.29,0.039-0.434c0-0.586-0.207-1.156-0.586-1.609
+ c-0.477-0.567-1.18-0.895-1.918-0.895H46.858c-1.215,0-2.254,0.871-2.464,2.07l-1.262,7.262l-10.996-0.051
+ c0.23-1.304,0.367-2.078,0.367-2.078c0.023-0.144,0.039-0.289,0.039-0.433c0-0.586-0.207-1.157-0.586-1.614
+ c-0.477-0.566-1.18-0.89-1.918-0.89H15.799c-1.215,0-2.254,0.871-2.465,2.066L7.452,45.116c-0.023,0.145-0.035,0.284-0.035,0.43
+ c0,0.586,0.207,1.156,0.59,1.613c0.476,0.562,1.176,0.891,1.914,0.891h14.301c1.218,0,2.257-0.875,2.468-2.07L27.456,41.374z
+ M27.456,41.374"/>
+ <path fill="#FEFEFE" d="M78.639,17.326l-2.09-0.812l0.645-2.153l-1.941,1.133l-1.277-1.844l-0.328,2.219l-2.238-0.148l1.535,1.636
+ l-0.043,0.047h-4.012l-2.648,14.692h-1.789l2.645-14.692h-4.625L59.088,36.65h6.41l-0.379,1.821h-6.371l-0.789,4.554h10.984
+ l4.254-24.147l0.469-0.039l0.352,2.219l1.258-1.86l1.952,1.106l-0.671-2.141L78.639,17.326z M52.596,23.045l-1.453,8.234h-2.355
+ l3.086-17.536h2.355l-1.234,7.031h5.812l2.258-12.828h-13.98l-5.129,29.129h13.98l2.398-14.031H52.596z M35.222,34.584h-1.754
+ l1.179-7.004h1.805L35.222,34.584z M32.213,17.232l-0.758,4.313h6.059l-0.301,1.723H31.15l-2.754,15.628h10.375l3.809-21.664
+ H32.213z M30.26,12.213h-5.883l-3.445,19.133h-2.328l3.441-19.133h-6.02l-4.41,25.062h8.348l-0.492,2.371h-8.297l-1.028,5.931
+ h14.301"/>
+</g>
+<path fill="#FEFEFE" d="M27.802,54.396c-0.639,0-1.19-0.18-1.19-0.18v-0.859c0,0,0.703,0.216,1.047,0.216
+ c0.407,0,0.773-0.123,0.773-0.61c0-0.444-0.258-0.581-0.602-0.774l-0.452-0.25c-0.422-0.236-0.81-0.602-0.81-1.312
+ c0-1.096,0.904-1.389,1.564-1.389c0.701,0,1.089,0.191,1.089,0.191v0.817c0,0-0.538-0.207-1.02-0.207
+ c-0.358,0-0.643,0.129-0.643,0.53c0,0.352,0.229,0.494,0.523,0.658l0.428,0.237c0.459,0.252,0.924,0.617,0.924,1.461
+ C29.435,54.152,28.519,54.396,27.802,54.396z"/>
+<path fill="#FEFEFE" d="M33.155,52.755h-2.15c0.022,0.745,0.445,0.845,0.76,0.845c0.507,0,1.16-0.193,1.16-0.193v0.796
+ c0,0-0.544,0.193-1.16,0.193c-0.788,0-1.757-0.208-1.757-1.972c0-1.598,0.845-1.971,1.612-1.971c0.717,0,1.577,0.345,1.543,1.971
+ L33.155,52.755z M31.621,51.107c-0.428,0-0.602,0.258-0.615,1.017h1.176C32.167,51.307,31.988,51.107,31.621,51.107z"/>
+<path fill="#FEFEFE" d="M35.906,54.324l-0.108-0.336c0,0-0.371,0.408-1.023,0.408c-0.466,0-1.076-0.193-1.076-1.226
+ c0-1.039,0.853-1.219,1.418-1.219h0.66v-0.273c0-0.371-0.192-0.415-0.537-0.415c-0.537,0-1.198,0.216-1.198,0.216v-0.796
+ c0,0,0.652-0.229,1.369-0.229c0.746,0,1.37,0.187,1.37,1.233v2.637H35.906z M35.777,52.503l-0.287,0.008
+ c-0.566,0.015-0.787,0.15-0.787,0.639c0,0.393,0.179,0.501,0.437,0.501c0.351,0,0.637-0.187,0.637-0.187V52.503z"/>
+<path fill="#FEFEFE" d="M39.38,51.378c-0.22,0-0.486,0.136-0.486,0.136v2.81h-1.002v-3.798h0.803l0.128,0.38
+ c0,0,0.245-0.452,0.71-0.452c0.243,0,0.422,0.044,0.422,0.044v0.953C39.955,51.451,39.596,51.378,39.38,51.378z"/>
+<path fill="#FEFEFE" d="M41.947,54.396c-0.724,0-1.669-0.158-1.669-1.949c0-1.807,1.125-1.993,1.778-1.993
+ c0.472,0,0.801,0.166,0.801,0.166v0.767c0,0-0.531-0.159-0.781-0.159c-0.408,0-0.795,0.122-0.795,1.22
+ c0,1.012,0.314,1.153,0.738,1.153c0.307,0,0.838-0.165,0.838-0.165v0.796C42.857,54.231,42.405,54.396,41.947,54.396z"/>
+<path fill="#FEFEFE" d="M45.832,54.324v-2.681c0-0.271-0.101-0.357-0.432-0.357c-0.35,0-0.858,0.271-0.858,0.271v2.767h-1.004
+ v-5.159h1.004v1.756c0,0,0.587-0.467,1.239-0.467c0.63,0,1.053,0.295,1.053,1.133v2.737H45.832z"/>
+<path fill="#2080C0" d="M51.422,50.162h-1.758v1.081h1.506v0.773h-1.506v1.455h1.791v0.853h-2.793v-5.017h2.83L51.422,50.162z"/>
+<path fill="#2080C0" d="M54.501,54.324v-2.681c0-0.271-0.105-0.357-0.428-0.357c-0.432,0-0.861,0.271-0.861,0.271v2.767h-1.003
+ v-3.798h0.838l0.145,0.407c0,0,0.566-0.479,1.26-0.479c0.631,0,1.055,0.279,1.055,1.133v2.737H54.501z"/>
+<path fill="#2080C0" d="M59.303,51.227c0,0,0.244,0.166,0.244,0.574c0,0.96-0.68,1.282-1.542,1.282
+ c-0.229,0-0.452-0.035-0.608-0.078c-0.1,0.064-0.173,0.157-0.173,0.251c0,0.165,0.131,0.187,0.345,0.202l1.105,0.062
+ c0.701,0.045,1.181,0.201,1.181,1.019c0,0.967-0.674,1.219-1.935,1.219c-1.019,0-1.591-0.273-1.591-0.982
+ c0-0.416,0.314-0.652,0.422-0.724c-0.164-0.115-0.278-0.294-0.278-0.552c0-0.351,0.23-0.56,0.465-0.709
+ c-0.285-0.209-0.479-0.531-0.479-1.019c0-0.981,0.693-1.319,1.546-1.319c0.353,0,0.443,0.072,0.623,0.072h1.305v0.701H59.303z
+ M58.316,54.282l-0.969-0.057c-0.065,0.113-0.116,0.228-0.116,0.379c0,0.352,0.23,0.488,0.689,0.488
+ c0.694,0,1.024-0.108,1.024-0.496C58.945,54.324,58.824,54.31,58.316,54.282z M58.005,51.071c-0.388,0-0.603,0.221-0.603,0.693
+ c0,0.503,0.21,0.697,0.603,0.697c0.395,0,0.604-0.194,0.604-0.697C58.609,51.271,58.379,51.071,58.005,51.071z"/>
+<path fill="#2080C0" d="M61.118,50.024c-0.336,0-0.597-0.279-0.597-0.607c0-0.332,0.261-0.611,0.597-0.611s0.594,0.279,0.594,0.611
+ C61.711,49.745,61.454,50.024,61.118,50.024z M60.616,54.324v-3.798h1.002v3.798H60.616z"/>
+<path fill="#2080C0" d="M65.021,54.324v-2.681c0-0.271-0.106-0.357-0.429-0.357c-0.432,0-0.859,0.271-0.859,0.271v2.767h-1.006
+ v-3.798h0.84l0.145,0.407c0,0,0.564-0.479,1.26-0.479c0.631,0,1.055,0.279,1.055,1.133v2.737H65.021z"/>
+<path fill="#2080C0" d="M70.068,52.755h-2.149c0.021,0.745,0.444,0.845,0.758,0.845c0.51,0,1.162-0.193,1.162-0.193v0.796
+ c0,0-0.546,0.193-1.162,0.193c-0.788,0-1.755-0.208-1.755-1.972c0-1.598,0.846-1.971,1.611-1.971c0.719,0,1.577,0.345,1.542,1.971
+ L70.068,52.755z M68.533,51.107c-0.43,0-0.602,0.258-0.614,1.017h1.176C69.079,51.307,68.899,51.107,68.533,51.107z"/>
+</svg>
diff --git a/source/net/yacy/htroot/QuickCrawlLink_p.java b/source/net/yacy/htroot/QuickCrawlLink_p.java
index 3f12dd486..e78557c98 100644
--- a/source/net/yacy/htroot/QuickCrawlLink_p.java
+++ b/source/net/yacy/htroot/QuickCrawlLink_p.java
@@ -86,7 +86,7 @@ public class QuickCrawlLink_p {
// get the URL
String crawlingStart = post.get("url", "");
- if (crawlingStart.length() == 0) {
+ if (crawlingStart.length() != 0) {
prop.put("mode", "1");
crawlingStart = UTF8.decodeURL(crawlingStart);
@@ -95,7 +95,7 @@ public class QuickCrawlLink_p {
// get the browser title
String title = post.get("title", "");
- if (title.length() == 0) {
+ if (title.length() != 0) {
title = crawlingStart;
/* Decode eventual special(non ASCII) characters in title */
title = UTF8.decodeURL(title);
diff --git a/test/java/net/yacy/document/parser/htmlParserTest.java b/test/java/net/yacy/document/parser/htmlParserTest.java
index 4e638b52a..760326ee1 100644
--- a/test/java/net/yacy/document/parser/htmlParserTest.java
+++ b/test/java/net/yacy/document/parser/htmlParserTest.java
@@ -1,6 +1,10 @@
package net.yacy.document.parser;
import static net.yacy.document.parser.htmlParser.parseToScraper;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
import java.io.ByteArrayInputStream;
import java.io.File;
@@ -17,7 +21,6 @@ import java.util.Set;
import org.junit.Test;
-import junit.framework.TestCase;
import net.yacy.cora.document.id.AnchorURL;
import net.yacy.document.Document;
import net.yacy.document.Parser;
@@ -26,7 +29,7 @@ import net.yacy.document.parser.html.ContentScraper;
import net.yacy.document.parser.html.ImageEntry;
import net.yacy.document.parser.html.TagValency;
-public class htmlParserTest extends TestCase {
+public class htmlParserTest {
@Test
public void testGetRealCharsetEncoding() {
@@ -436,7 +439,7 @@ public class htmlParserTest extends TestCase {
String txt = scraper.getText();
System.out.println("ScraperTagTest: [" + textSource + "] = [" + txt + "]");
- assertEquals(txt, textSource);
+ assertEquals(txt, textSource + ".");
}
/**