Skip to content

Commit 370a715

Browse files
committed
Fix NodeFactory.xml for Tess4JNode
Tables were not allowed by the .dtd (http://www.knime.org/Node.dtd), therefore caused warnings. This commit removes the warnings a the cost of less overseeability.
1 parent 0085398 commit 370a715

1 file changed

Lines changed: 74 additions & 80 deletions

File tree

org.knime.knip.tess4j.base/src/org/knime/knip/tess4j/base/node/Tess4JNodeFactory.xml

Lines changed: 74 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -36,90 +36,84 @@
3636

3737
<option name="Page Segmentation Mode">
3838
Define how your page is segmented here. For flow variables use the ID.
39-
<table>
40-
<tr><th> ID </th>
41-
<th> Name </th>
42-
<th> Description </th>
43-
</tr>
44-
<tr><td> 0 </td>
45-
<td><b> OSD Only </b></td>
46-
<td> Orientation and script detection (OSD) only. </td>
47-
</tr>
48-
<tr><td> 1 </td>
49-
<td><b> Auto Pageseg and OSD </b></td>
50-
<td> Automatic page segmentation and OSD. </td>
51-
</tr>
52-
<tr><td> 2 </td>
53-
<td><b> Auto Pageseg Only </b></td>
54-
<td> Automatic page segmentation, no OSD and no OCR. </td>
55-
</tr>
56-
<tr><td> 3 </td>
57-
<td><b> Full Auto Pageseg </b></td>
58-
<td> Fully automatic page segmentation, no OSD. </td>
59-
</tr>
60-
<tr><td> 4 </td>
61-
<td><b> Single Column </b></td>
62-
<td> Assume a single column of test of variable sizes. </td>
63-
</tr>
64-
<tr><td> 5 </td>
65-
<td><b> Single Vert Block </b></td>
66-
<td> Assume a single uniform block of vertically aligned text. </td>
67-
</tr>
68-
<tr><td> 6 </td>
69-
<td><b> Single Block </b></td>
70-
<td> Assume a single uniform block of text. (default) </td>
71-
</tr>
72-
<tr><td> 7 </td>
73-
<td><b> Single Line </b></td>
74-
<td> Treat the image as a single text line. </td>
75-
</tr>
76-
<tr><td> 8 </td>
77-
<td><b> Single Word </b></td>
78-
<td> Treat the image as a single word. </td>
79-
</tr>
80-
<tr><td> 9 </td>
81-
<td><b> Circle Word </b></td>
82-
<td> Treat the image as a single word in a circle. </td>
83-
</tr>
84-
<tr><td> 10 </td>
85-
<td><b> Single Char </b></td>
86-
<td> Treat the image as a single character. </td>
87-
</tr>
88-
<tr><td> 11 </td>
89-
<td><b> Sparse Text </b></td>
90-
<td> Find as much text as possible in no particular order. </td>
91-
</tr>
92-
<tr><td> 12 </td>
93-
<td><b> Sparse Test with OSD </b></td>
94-
<td> Sparse text with OSD. </td>
95-
</tr>
96-
</table>
39+
<p> Legend: (ID) <b> Name </b> Description </p>
40+
<ul>
41+
<li> (0)
42+
<b> OSD Only </b>
43+
Orientation and script detection (OSD) only.
44+
</li>
45+
<li> (1)
46+
<b> Auto Pageseg and OSD </b>
47+
Automatic page segmentation and OSD.
48+
</li>
49+
<li> (2)
50+
<b> Auto Pageseg Only </b>
51+
Automatic page segmentation, no OSD and no OCR.
52+
</li>
53+
<li> (3)
54+
<b> Full Auto Pageseg </b>
55+
Fully automatic page segmentation, no OSD.
56+
</li>
57+
<li> (4)
58+
<b> Single Column </b>
59+
Assume a single column of test of variable sizes.
60+
</li>
61+
<li> (5)
62+
<b> Single Vert Block </b>
63+
Assume a single uniform block of vertically aligned text.
64+
</li>
65+
<li> (6)
66+
<b> Single Block </b>
67+
Assume a single uniform block of text. (default)
68+
</li>
69+
<li> (7)
70+
<b> Single Line </b>
71+
treat the image as a single text line.
72+
</li>
73+
<li> (8)
74+
<b> Single Word </b>
75+
treat the image as a single word.
76+
</li>
77+
<li> (9)
78+
<b> Circle Word </b>
79+
treat the image as a single word in a circle.
80+
</li>
81+
<li> (10)
82+
<b> Single Char </b>
83+
treat the image as a single character.
84+
</li>
85+
<li> (11)
86+
<b> Sparse Text </b>
87+
Find as much text as possible in no particular order.
88+
</li>
89+
<li> (12)
90+
<b> Sparse Test with OSD </b>
91+
Sparse text with OSD.
92+
</li>
93+
</ul>
9794
</option>
9895

9996
<option name="OCR Engine Mode">
10097
Define which OCR engine to use. For flow variables use ID.
101-
<table>
102-
<tr><th> ID </th>
103-
<th> Name </th>
104-
<th> Description </th>
105-
</tr>
106-
<tr><td> 0 </td>
107-
<td><b> Tesseract Only </b></td>
108-
<td> Only use Tesseract. (fastest) </td>
109-
</tr>
110-
<tr><td> 1 </td>
111-
<td><b> Cube Only </b></td>
112-
<td> Only use Cube. This is slower than "Tesseract Only", but more accurate. </td>
113-
</tr>
114-
<tr><td> 2 </td>
115-
<td><b> Tesseract And Cube </b></td>
116-
<td> Use both of the above and combine results. ((best accuracy) </td>
117-
</tr>
118-
<tr><td> 3 </td>
119-
<td><b> Default </b></td>
120-
<td> Use language specific configuration or "Tesseract Only", if not specified. </td>
121-
</tr>
122-
</table>
98+
<p> Legend: (ID) <b> Name </b> Description </p>
99+
<ul>
100+
<li> (0)
101+
<b> Tesseract Only </b>
102+
Only use Tesseract. (fastest)
103+
</li>
104+
<li> (1)
105+
<b> Cube Only </b>
106+
Only use Cube. This is slower than "Tesseract Only", but more accurate.
107+
</li>
108+
<li> (2)
109+
<b> Tesseract And Cube </b>
110+
Use both of the above and combine results. ((best accuracy)
111+
</li>
112+
<li> (3)
113+
<b> Default </b>
114+
Use language specific configuration or "Tesseract Only", if not specified.
115+
</li>
116+
</ul>
123117
</option>
124118
</tab>
125119
</fullDescription>

0 commit comments

Comments
 (0)