rhocr 0.0.3 → 0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,94 @@
1
+ #coding: utf-8
2
+
3
+ require_relative '../lib/hocr_box'
4
+
5
+ describe HOCRBox do
6
+
7
+ before(:each) do
8
+ @box ||= HOCRBox.new(1,2,20,8)
9
+ end
10
+
11
+ describe '#coordinates' do
12
+ it 'should have coordinates' do
13
+ @box.coordinates.should == [1,2,20,8]
14
+ end
15
+ end
16
+
17
+ describe "#to_s" do
18
+ it "prints a human readable Box-Version with coordinates upper_left(x,y) bottom_right(x,y)" do
19
+ @box.to_s.should == "(1,2)/(20,8)"
20
+ end
21
+ it "prints a human readable Box-Version with coordinates upper_left(x,y) bottom_right(x,y) with coordinates_to_s" do
22
+ @box.coordinates_to_s.should == "(1,2)/(20,8)"
23
+ end
24
+ end
25
+
26
+ describe "HTML-Methods" do
27
+ it "prints css style used as part in css for positioning element" do
28
+ @box.to_css_style.should == "position:absolute; top:2px; left:1px; height:6px; width:19px;"
29
+ end
30
+ it "has a to #to_image_html method" do
31
+ @box.to_image_html('test_class').should == "<span style='position:absolute; top:2px; left:1px; height:6px; width:19px;' class='test_class'></span>"
32
+ end
33
+ end
34
+
35
+ describe '#encloses?(element)' do
36
+ it "tests waether given HOCRBox is enclosed by the current HOCRBox" do
37
+ @box.encloses?( HOCRBox.new(0,3,19,7) ).should be_false
38
+ @box.encloses?( HOCRBox.new(2,3,19,7) ).should be_true
39
+ end
40
+ it "encloses also itself" do
41
+ @box.encloses?( @box ).should be_true
42
+ end
43
+ end
44
+
45
+ describe '#to_css_style' do
46
+ it 'should create css-style attributes' do
47
+ @box.to_css_style.should == 'position:absolute; top:2px; left:1px; height:6px; width:19px;'
48
+ end
49
+ end
50
+
51
+ describe '#enclosed_by?(element)' do
52
+ it 'should be enclosed by Boxes bigger than itself' do
53
+ @box.enclosed_by?( HOCRBox.new(0,1,21,9) ).should be_true
54
+ end
55
+ it 'should not be enclosed by Boxes smaller than itself' do
56
+ @box.enclosed_by?( HOCRBox.new(2,3,19,7) ).should be_false
57
+ end
58
+ it 'should be enclosed by Boxes of the same size' do
59
+ @box.enclosed_by?( @box ).should be_true
60
+ end
61
+ end
62
+
63
+ describe '#right_of?(element)' do
64
+ it 'should be right of any box-element that has a smaller x1 value than current x2 value' do
65
+ @box.right_of?( HOCRBox.new(0,2,0,8) ).should be_true #x1 == x2 -> Eine Linie
66
+ end
67
+ it 'should not be right of' do
68
+ @box.right_of?( HOCRBox.new(1,2,2,8) ).should be_false
69
+ end
70
+ end
71
+
72
+ describe '#left_of?(element)' do
73
+ it 'should be left of any box-element that has a larger x1 than the current box has x2' do
74
+ @box.left_of?( HOCRBox.new(21,2,21,8) ).should be_true #x1 == x2 -> Eine Linie
75
+ end
76
+ it 'should not be left of' do
77
+ @box.left_of?( HOCRBox.new(1,2,2,8) ).should be_false
78
+ end
79
+ end
80
+
81
+ describe '#left_distance_to(element)' do
82
+ it 'element should be 5px left box' do
83
+ HOCRBox.new(25,0,30,0).left_distance_to(@box).should == 5
84
+ end
85
+ end
86
+
87
+ describe '#right_distance_to(element)' do
88
+ it 'box should be 2px right of element' do
89
+ @box.right_distance_to(HOCRBox.new(22,0,24,0)).should == 2
90
+ end
91
+ end
92
+
93
+
94
+ end
@@ -0,0 +1,80 @@
1
+ #coding: utf-8
2
+
3
+ require_relative '../lib/ocr_document'
4
+
5
+ describe OCRDocument do
6
+
7
+ it 'construcructor should create an empty document with page_count 0' do
8
+ d = OCRDocument.new
9
+ d.page_count.should == 0
10
+ end
11
+
12
+ it 'should be possible to add a file' do
13
+ d = OCRDocument.new
14
+ d.add_page 'data/test.html'
15
+ end
16
+
17
+ it 'adding a file should raise page_count' do
18
+ d = OCRDocument.new
19
+ old_page_count = d.page_count
20
+ d.add_page 'data/test.html'
21
+
22
+ d.page_count.should == old_page_count + 1
23
+ end
24
+
25
+ describe 'methods to #add_page an access pages' do
26
+
27
+ before(:each) do
28
+ @test_document = OCRDocument.new
29
+ @test_document.add_page 'data/test.html'
30
+ @test_document.add_page 'data/Seite_Tagebuch_H_C_Lang_08.html'
31
+ @test_document.add_page 'data/Seite_Die_Gartenlaube_242.html'
32
+ end
33
+
34
+ it 'should have #pages' do
35
+ @test_document.pages.keys.sort.should == [20, 33, 242]
36
+ end
37
+
38
+ it 'should retrieve page by pagenumber' do
39
+ page = @test_document.pages[33]
40
+ page_words = []
41
+ page.each_word do |word|
42
+ page_words << word
43
+ end
44
+ page_words.length.should == 346
45
+ end
46
+
47
+ it 'should have an alternate syntax for accessing pages by #page' do
48
+ @test_document.page(105).should == @test_document.pages[105]
49
+ end
50
+
51
+ end
52
+
53
+ describe 'Methods to iterate over words and lines' do
54
+
55
+ before(:each) do
56
+ @test_document = OCRDocument.new
57
+ @test_document.add_page 'data/test.html'
58
+ @test_document.add_page 'data/Seite_Tagebuch_H_C_Lang_08.html'
59
+ @test_document.add_page 'data/Seite_Die_Gartenlaube_242.html'
60
+ end
61
+
62
+ it ' should have a method to iterate over document lines #each_line' do
63
+ a = []
64
+ @test_document.each_line do |line|
65
+ a << line
66
+ end
67
+ a.size.should == 237
68
+ end
69
+
70
+ it ' should have a method to iterate over document words #each_word' do
71
+ a = []
72
+ @test_document.each_word do |word|
73
+ a << word
74
+ end
75
+ a.size.should == 2071
76
+ end
77
+
78
+ end
79
+
80
+ end
@@ -0,0 +1,86 @@
1
+ #coding: utf-8
2
+
3
+ require_relative '../lib/ocr_element'
4
+ require 'nokogiri'
5
+
6
+ require 'pp'
7
+ describe OCRElement do
8
+
9
+ before(:each) do
10
+ html_string = "<p class='ocr_par' title='bbox 79 109 1119 189' style='font-size:8pt;font-family:Arial;font-style:normal'><span class='ocr_line' title='bbox 79 109 1119 145'><span class='ocrx_word' title='bbox 79 109 294 144'>Athenobius,</span> <span class='ocrx_word' title='bbox 334 112 398 139'>Der</span> <span class='ocrx_word' title='bbox 417 115 476 139'>von</span> <span class='ocrx_word' title='bbox 494 112 545 139'>der</span> <span class='ocrx_word' title='bbox 565 112 687 140'>Göttin</span> <span class='ocrx_word' title='bbox 707 112 857 140'>Minerva</span> <span class='ocrx_word' title='bbox 876 112 954 145'>lebt,</span> <span class='ocrx_word' title='bbox 974 112 1043 140'>oder:</span> <span class='ocrx_word' title='bbox 1062 112 1119 140'>Mi»</span><br></span><span class='ocr_line' title='bbox 108 155 300 189'><span class='ocrx_word' title='bbox 108 159 183 182'>nerva</span> <span class='ocrx_word' title='bbox 201 155 300 189'>Bogen.</span></span></p>"
11
+
12
+ @html_fragment = Nokogiri::HTML::fragment(html_string).child
13
+ @ocr_element = OCRElement.create(@html_fragment)
14
+ end
15
+
16
+ describe '#initialize and Object' do
17
+ it 'should create an element given ocr_class, children and coordiantes' do
18
+ test_element = OCRElement.new('test', [], %w{10, 11, 20, 21})
19
+ test_element.children.should == []
20
+ test_element.coordinates.should == [10,11,20,21]
21
+ test_element.ocr_class.should == 'test'
22
+ end
23
+
24
+ it 'should create an element from html input' do
25
+ @ocr_element.should_not == nil
26
+ end
27
+ it 'should have an ocr_class' do
28
+ @ocr_element.ocr_class.should == 'ocr_par'
29
+ end
30
+ it 'should have coordinates' do
31
+ @ocr_element.coordinates.should == [79, 109, 1119, 189]
32
+ end
33
+ it 'should have children' do
34
+ @ocr_element.children.length == 2
35
+ end
36
+ it 'should have features' do
37
+ @ocr_element.respond_to?(:features).should be_true
38
+ end
39
+ it 'should have empty features on construction' do
40
+ @ocr_element.features.should == []
41
+ end
42
+ end
43
+
44
+ describe '#ocr_classes' do
45
+ it 'ocr_elements of class ocr_block should have an alias for children called #paragraphs' do
46
+ OCRBlock.new('test', [], %w{10, 11, 20, 21}).respond_to?(:paragraphs).should be_true
47
+ end
48
+
49
+ it 'ocr_elements of class ocr_par should have an alias for children called #lines' do
50
+ @ocr_element.respond_to?(:lines).should be_true
51
+ end
52
+
53
+ it 'ocr_elements of class ocr_line should have an alis for children called #words' do
54
+ @ocr_element.lines[0].respond_to?(:words).should be_true
55
+ end
56
+ end
57
+
58
+
59
+ describe 'html_methods' do
60
+ it 'should have a #to_image_html method' do
61
+ @ocr_element.to_image_html.should == "<span class='ocr_par' style='position:absolute; top:109px; left:79px; height:80px; width:1040px;' ></span><span class='ocr_line' style='position:absolute; top:109px; left:79px; height:36px; width:1040px;' ></span><span class='ocrx_word' style='position:absolute; top:109px; left:79px; height:35px; width:215px;'>Athenobius,</span><span class='ocrx_word' style='position:absolute; top:112px; left:334px; height:27px; width:64px;'>Der</span><span class='ocrx_word' style='position:absolute; top:115px; left:417px; height:24px; width:59px;'>von</span><span class='ocrx_word' style='position:absolute; top:112px; left:494px; height:27px; width:51px;'>der</span><span class='ocrx_word' style='position:absolute; top:112px; left:565px; height:28px; width:122px;'>Göttin</span><span class='ocrx_word' style='position:absolute; top:112px; left:707px; height:28px; width:150px;'>Minerva</span><span class='ocrx_word' style='position:absolute; top:112px; left:876px; height:33px; width:78px;'>lebt,</span><span class='ocrx_word' style='position:absolute; top:112px; left:974px; height:28px; width:69px;'>oder:</span><span class='ocrx_word' style='position:absolute; top:112px; left:1062px; height:28px; width:57px;'>Mi»</span><span class='ocr_line' style='position:absolute; top:155px; left:108px; height:34px; width:192px;' ></span><span class='ocrx_word' style='position:absolute; top:159px; left:108px; height:23px; width:75px;'>nerva</span><span class='ocrx_word' style='position:absolute; top:155px; left:201px; height:34px; width:99px;'>Bogen.</span>"
62
+ end
63
+ it 'should have a #to_html method' do
64
+ @ocr_element.to_html.should == "<span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Athenobius,</span><span class='ocrx_word'>Der</span><span class='ocrx_word'>von</span><span class='ocrx_word'>der</span><span class='ocrx_word'>Göttin</span><span class='ocrx_word'>Minerva</span><span class='ocrx_word'>lebt,</span><span class='ocrx_word'>oder:</span><span class='ocrx_word'>Mi»</span> </span><span class='ocr_line'> <span class='ocrx_word'>nerva</span><span class='ocrx_word'>Bogen.</span> </span> </span>"
65
+ end
66
+ end
67
+
68
+ describe 'ocr_line' do
69
+ it 'should have a #to_text method' do
70
+ @ocr_element.lines[0].to_text.should == "Athenobius, Der von der Göttin Minerva lebt, oder: Mi»"
71
+ end
72
+ end
73
+
74
+ describe 'ocr_word' do
75
+ it 'ocr_elements of class ocr_word should have a #text method' do
76
+ @ocr_element.lines[0].words[5].text.should == "Minerva"
77
+ end
78
+ it 'special #to_image_html method' do
79
+ @ocr_element.lines[0].words[5].to_image_html.should == "<span class='ocrx_word' style='position:absolute; top:112px; left:707px; height:28px; width:150px;'>Minerva</span>"
80
+ end
81
+ it 'special #to_html method' do
82
+ @ocr_element.lines[0].words[5].to_html.should == "<span class='ocrx_word'>Minerva</span>"
83
+ end
84
+ end
85
+
86
+ end
@@ -0,0 +1,116 @@
1
+ #coding: utf-8
2
+ require_relative '../lib/ocr_page'
3
+ require 'nokogiri'
4
+ require 'pp'
5
+
6
+ describe OCRPage do
7
+
8
+ before(:each) do
9
+ @test_page ||= OCRPage.new('data/Seite_Tagebuch_H_C_Lang_08.html')
10
+ end
11
+
12
+ describe '#constructor and mehtods for construction' do
13
+ it 'should work' do
14
+ @test_page.should_not be_nil
15
+ end
16
+
17
+ it 'should have an extractor method for page dimensions and page number' do
18
+ dimensions, page_number = @test_page.extract_bbox_ppageno "bbox 0 0 1326 1326;ppageno 33"
19
+ page_number.should == 33
20
+ dimensions.should == %w{ 0 0 1326 1326}
21
+ end
22
+
23
+ it 'may have an image attached, if no image supplied #image is nil' do
24
+ @test_page.image.should be_nil
25
+ t = OCRPage.new('data/Seite_Tagebuch_H_C_Lang_08.html','Ponies.png')
26
+ t.image.should == 'Ponies.png'
27
+ end
28
+ end
29
+
30
+ describe 'Page' do
31
+ it 'should have a #page_number' do
32
+ @test_page.page_number.should_not be_nil
33
+ @test_page.page_number.should == 20
34
+ end
35
+
36
+ it 'should have metedata'
37
+
38
+ it 'page should have #coordinates' do
39
+ @test_page.coordinates.should == [0, 0, 1709, 1709]
40
+ end
41
+ it 'should have children' do
42
+ @test_page.children.should_not == []
43
+ end
44
+ end
45
+
46
+
47
+ describe '#Iterators' do
48
+ it 'should have a block iterator #each_block' do
49
+ a = []
50
+ @test_page.each_block do |block|
51
+ a << block
52
+ end
53
+ a.length.should == 1
54
+ end
55
+ it 'should have a paragraph iterator #each_paragraph' do
56
+ a = []
57
+ @test_page.each_paragraph do |paragraph|
58
+ a << paragraph
59
+ end
60
+ a.length.should == 12
61
+ end
62
+ it 'should have a line iterator #each_line' do
63
+ a = []
64
+ @test_page.each_line do |line|
65
+ a << line
66
+ end
67
+ a.length.should == 45
68
+ end
69
+ it 'should have a word iterator #each_word' do
70
+ a = []
71
+ @test_page.each_word do |word|
72
+ a << word
73
+ end
74
+ a.length.should == 415
75
+ end
76
+
77
+ end
78
+
79
+ describe 'convinience methods' do
80
+ it 'should have a method #lines' do
81
+ @test_page.lines[5].children.length.should == 11
82
+ end
83
+ end
84
+
85
+ describe ' display methods' do
86
+
87
+ before(:each) do
88
+ @output_page ||= OCRPage.new 'data/test.html', 'data/test.png'
89
+ end
90
+
91
+ it 'should have a #to_text method' do
92
+ @output_page.to_text.should == "Athenobius — Aulon. 29\nAthenobius, Der von der Göttin Minerva lebt, oder: Mi»\nnerva Bogen.\nDes Königs Antiochus Freund oder geheimer Nath. l Mack.\n15, 28.\nAthlai. Dee Herr zerreißet oder zerbricht. Einer von den\nNachlommen Bebai. Esra 10, 28.\nAthni. Eine Trübsal von Gott. Ein Sohn Semaja. 1 Chron.\n27. 7.\nAthniel. Gottes Trübsal, d. i. eine Trübsal, von Gott zugesügt.\nEin Sohn Kenas, des Bruders Kaleb; gewann Kiriath Sepher, und\ndamit Achsa. die Tochter seines Betters Kaleb. Nicht, 1. 12. 13.\nAtroth-Sophan, die Krone oder Decke, oder Bedeckung des'\nHügels. Eine Stadt der Rubeniten im Königreich Sthon. 4 Mos.\n32, 35.\nAtrothAddar: Die Krone Addar (des Sohnes Benjamin). Diese\nStadt gehörte den Benjaminitern, lag in den Grenzen Iuda tmd\nEphraim.\nAtroth.Beth-Ioab, d. i. die Krone des Hauses Ioab. Eine\nStadt in Iuda, wo die Nachlommen Salma gewohnt haben. 1 Chron.\n2, 54.\nAttalia. Eine Stadt in Pamphilien od. Libyen, von Attala Phila.\ndelpho erbaut. Ap. Gesch. 14, 25.\nAttalus Ein König in Mysien, welches unter Phrygien gehörte; ,\ngenannt von Attale, welches bei den Phrygiern Kropf oder Gurgel\ngeheißen haben soll. , War ein König der Pergamener und Phrvgier.\nl Mack. 15, 22.\nAva. Ist bei den alten Griechen Aia od. Aea, die Hauptstadt in Col»\nchide, wo Aetas regierte. Colchis heißt heutiges Tages Mengrelicn,\ndie meisten Einwohner sind Christen. Von hier wurden die Leute\nvon Salmanasscr nach Samaria gesührt, wo sie noch ihre Götter\nNibehas und Tharthac anbeteten. 2 Kön. l7, 24. 31.\nAven. Götze, Eitelleit. So wird Bethel genannt. Hos. 10, 8.\nwegen der Götzen, die daselbst von den Israeliten verehrt wurden.\nMit dem ganzen Namen: Beth»Aven, das Götzenhaus, oder, da man\ndem Eiteln nachwandelt. Hos. 4, 15.\nAugustus. Würdig verehrt und angebetet zu werden.\nDiesen Namen gab das romische Voll dem Kaiser Octavian, und\nalle romischen Kaiser haben diesen Namen beibehalten, daß sie «au,-\nper 2ußr>«ti, d. i, allzeit Mehrer des Reichs geheißen haben.\nAvith. Haufe. Eine Stadt in Idumäa. 1 Mos. 36, 35.\nAulon. Ausgehöhlt. Das große Thal, worin die berühmten\nStädte Vethsan oder Scythopolis, Tlberias, Iericho, das todte Meer"
93
+ end
94
+
95
+ it 'should have a #to_html method' do
96
+ @output_page.to_html.should == "<span class='ocr_page'> <span class='ocrx_block'> <span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Athenobius</span><span class='ocrx_word'>—</span><span class='ocrx_word'>Aulon.</span><span class='ocrx_word'>29</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Athenobius,</span><span class='ocrx_word'>Der</span><span class='ocrx_word'>von</span><span class='ocrx_word'>der</span><span class='ocrx_word'>Göttin</span><span class='ocrx_word'>Minerva</span><span class='ocrx_word'>lebt,</span><span class='ocrx_word'>oder:</span><span class='ocrx_word'>Mi»</span> </span><span class='ocr_line'> <span class='ocrx_word'>nerva</span><span class='ocrx_word'>Bogen.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Des</span><span class='ocrx_word'>Königs</span><span class='ocrx_word'>Antiochus</span><span class='ocrx_word'>Freund</span><span class='ocrx_word'>oder</span><span class='ocrx_word'>geheimer</span><span class='ocrx_word'>Nath.</span><span class='ocrx_word'>l</span><span class='ocrx_word'>Mack.</span> </span><span class='ocr_line'> <span class='ocrx_word'>15,</span><span class='ocrx_word'>28.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Athlai.</span><span class='ocrx_word'>Dee</span><span class='ocrx_word'>Herr</span><span class='ocrx_word'>zerreißet</span><span class='ocrx_word'>oder</span><span class='ocrx_word'>zerbricht.</span><span class='ocrx_word'>Einer</span><span class='ocrx_word'>von</span><span class='ocrx_word'>den</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Nachlommen</span><span class='ocrx_word'>Bebai.</span><span class='ocrx_word'>Esra</span><span class='ocrx_word'>10,</span><span class='ocrx_word'>28.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Athni.</span><span class='ocrx_word'>Eine</span><span class='ocrx_word'>Trübsal</span><span class='ocrx_word'>von</span><span class='ocrx_word'>Gott.</span><span class='ocrx_word'>Ein</span><span class='ocrx_word'>Sohn</span><span class='ocrx_word'>Semaja.</span><span class='ocrx_word'>1</span><span class='ocrx_word'>Chron.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>27.</span><span class='ocrx_word'>7.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Athniel.</span><span class='ocrx_word'>Gottes</span><span class='ocrx_word'>Trübsal,</span><span class='ocrx_word'>d.</span><span class='ocrx_word'>i.</span><span class='ocrx_word'>eine</span><span class='ocrx_word'>Trübsal,</span><span class='ocrx_word'>von</span><span class='ocrx_word'>Gott</span><span class='ocrx_word'>zugesügt.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Ein</span><span class='ocrx_word'>Sohn</span><span class='ocrx_word'>Kenas,</span><span class='ocrx_word'>des</span><span class='ocrx_word'>Bruders</span><span class='ocrx_word'>Kaleb;</span><span class='ocrx_word'>gewann</span><span class='ocrx_word'>Kiriath</span><span class='ocrx_word'>Sepher,</span><span class='ocrx_word'>und</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>damit</span><span class='ocrx_word'>Achsa.</span><span class='ocrx_word'>die</span><span class='ocrx_word'>Tochter</span><span class='ocrx_word'>seines</span><span class='ocrx_word'>Betters</span><span class='ocrx_word'>Kaleb.</span><span class='ocrx_word'>Nicht,</span><span class='ocrx_word'>1.</span><span class='ocrx_word'>12.</span><span class='ocrx_word'>13.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Atroth-Sophan,</span><span class='ocrx_word'>die</span><span class='ocrx_word'>Krone</span><span class='ocrx_word'>oder</span><span class='ocrx_word'>Decke,</span><span class='ocrx_word'>oder</span><span class='ocrx_word'>Bedeckung</span><span class='ocrx_word'>des'</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Hügels.</span><span class='ocrx_word'>Eine</span><span class='ocrx_word'>Stadt</span><span class='ocrx_word'>der</span><span class='ocrx_word'>Rubeniten</span><span class='ocrx_word'>im</span><span class='ocrx_word'>Königreich</span><span class='ocrx_word'>Sthon.</span><span class='ocrx_word'>4</span><span class='ocrx_word'>Mos.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>32,</span><span class='ocrx_word'>35.</span> </span><span class='ocr_line'> <span class='ocrx_word'>AtrothAddar:</span><span class='ocrx_word'>Die</span><span class='ocrx_word'>Krone</span><span class='ocrx_word'>Addar</span><span class='ocrx_word'>(des</span><span class='ocrx_word'>Sohnes</span><span class='ocrx_word'>Benjamin).</span><span class='ocrx_word'>Diese</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Stadt</span><span class='ocrx_word'>gehörte</span><span class='ocrx_word'>den</span><span class='ocrx_word'>Benjaminitern,</span><span class='ocrx_word'>lag</span><span class='ocrx_word'>in</span><span class='ocrx_word'>den</span><span class='ocrx_word'>Grenzen</span><span class='ocrx_word'>Iuda</span><span class='ocrx_word'>tmd</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Ephraim.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Atroth.Beth-Ioab,</span><span class='ocrx_word'>d.</span><span class='ocrx_word'>i.</span><span class='ocrx_word'>die</span><span class='ocrx_word'>Krone</span><span class='ocrx_word'>des</span><span class='ocrx_word'>Hauses</span><span class='ocrx_word'>Ioab.</span><span class='ocrx_word'>Eine</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Stadt</span><span class='ocrx_word'>in</span><span class='ocrx_word'>Iuda,</span><span class='ocrx_word'>wo</span><span class='ocrx_word'>die</span><span class='ocrx_word'>Nachlommen</span><span class='ocrx_word'>Salma</span><span class='ocrx_word'>gewohnt</span><span class='ocrx_word'>haben.</span><span class='ocrx_word'>1</span><span class='ocrx_word'>Chron.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>2,</span><span class='ocrx_word'>54.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Attalia.</span><span class='ocrx_word'>Eine</span><span class='ocrx_word'>Stadt</span><span class='ocrx_word'>in</span><span class='ocrx_word'>Pamphilien</span><span class='ocrx_word'>od.</span><span class='ocrx_word'>Libyen,</span><span class='ocrx_word'>von</span><span class='ocrx_word'>Attala</span><span class='ocrx_word'>Phila.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>delpho</span><span class='ocrx_word'>erbaut.</span><span class='ocrx_word'>Ap.</span><span class='ocrx_word'>Gesch.</span><span class='ocrx_word'>14,</span><span class='ocrx_word'>25.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Attalus</span><span class='ocrx_word'>Ein</span><span class='ocrx_word'>König</span><span class='ocrx_word'>in</span><span class='ocrx_word'>Mysien,</span><span class='ocrx_word'>welches</span><span class='ocrx_word'>unter</span><span class='ocrx_word'>Phrygien</span><span class='ocrx_word'>gehörte;</span><span class='ocrx_word'>,</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>genannt</span><span class='ocrx_word'>von</span><span class='ocrx_word'>Attale,</span><span class='ocrx_word'>welches</span><span class='ocrx_word'>bei</span><span class='ocrx_word'>den</span><span class='ocrx_word'>Phrygiern</span><span class='ocrx_word'>Kropf</span><span class='ocrx_word'>oder</span><span class='ocrx_word'>Gurgel</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>geheißen</span><span class='ocrx_word'>haben</span><span class='ocrx_word'>soll.</span><span class='ocrx_word'>,</span><span class='ocrx_word'>War</span><span class='ocrx_word'>ein</span><span class='ocrx_word'>König</span><span class='ocrx_word'>der</span><span class='ocrx_word'>Pergamener</span><span class='ocrx_word'>und</span><span class='ocrx_word'>Phrvgier.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>l</span><span class='ocrx_word'>Mack.</span><span class='ocrx_word'>15,</span><span class='ocrx_word'>22.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Ava.</span><span class='ocrx_word'>Ist</span><span class='ocrx_word'>bei</span><span class='ocrx_word'>den</span><span class='ocrx_word'>alten</span><span class='ocrx_word'>Griechen</span><span class='ocrx_word'>Aia</span><span class='ocrx_word'>od.</span><span class='ocrx_word'>Aea,</span><span class='ocrx_word'>die</span><span class='ocrx_word'>Hauptstadt</span><span class='ocrx_word'>in</span><span class='ocrx_word'>Col»</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>chide,</span><span class='ocrx_word'>wo</span><span class='ocrx_word'>Aetas</span><span class='ocrx_word'>regierte.</span><span class='ocrx_word'>Colchis</span><span class='ocrx_word'>heißt</span><span class='ocrx_word'>heutiges</span><span class='ocrx_word'>Tages</span><span class='ocrx_word'>Mengrelicn,</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>die</span><span class='ocrx_word'>meisten</span><span class='ocrx_word'>Einwohner</span><span class='ocrx_word'>sind</span><span class='ocrx_word'>Christen.</span><span class='ocrx_word'>Von</span><span class='ocrx_word'>hier</span><span class='ocrx_word'>wurden</span><span class='ocrx_word'>die</span><span class='ocrx_word'>Leute</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>von</span><span class='ocrx_word'>Salmanasscr</span><span class='ocrx_word'>nach</span><span class='ocrx_word'>Samaria</span><span class='ocrx_word'>gesührt,</span><span class='ocrx_word'>wo</span><span class='ocrx_word'>sie</span><span class='ocrx_word'>noch</span><span class='ocrx_word'>ihre</span><span class='ocrx_word'>Götter</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Nibehas</span><span class='ocrx_word'>und</span><span class='ocrx_word'>Tharthac</span><span class='ocrx_word'>anbeteten.</span><span class='ocrx_word'>2</span><span class='ocrx_word'>Kön.</span><span class='ocrx_word'>l7,</span><span class='ocrx_word'>24.</span><span class='ocrx_word'>31.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Aven.</span><span class='ocrx_word'>Götze,</span><span class='ocrx_word'>Eitelleit.</span><span class='ocrx_word'>So</span><span class='ocrx_word'>wird</span><span class='ocrx_word'>Bethel</span><span class='ocrx_word'>genannt.</span><span class='ocrx_word'>Hos.</span><span class='ocrx_word'>10,</span><span class='ocrx_word'>8.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>wegen</span><span class='ocrx_word'>der</span><span class='ocrx_word'>Götzen,</span><span class='ocrx_word'>die</span><span class='ocrx_word'>daselbst</span><span class='ocrx_word'>von</span><span class='ocrx_word'>den</span><span class='ocrx_word'>Israeliten</span><span class='ocrx_word'>verehrt</span><span class='ocrx_word'>wurden.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Mit</span><span class='ocrx_word'>dem</span><span class='ocrx_word'>ganzen</span><span class='ocrx_word'>Namen:</span><span class='ocrx_word'>Beth»Aven,</span><span class='ocrx_word'>das</span><span class='ocrx_word'>Götzenhaus,</span><span class='ocrx_word'>oder,</span><span class='ocrx_word'>da</span><span class='ocrx_word'>man</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>dem</span><span class='ocrx_word'>Eiteln</span><span class='ocrx_word'>nachwandelt.</span><span class='ocrx_word'>Hos.</span><span class='ocrx_word'>4,</span><span class='ocrx_word'>15.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Augustus.</span><span class='ocrx_word'>Würdig</span><span class='ocrx_word'>verehrt</span><span class='ocrx_word'>und</span><span class='ocrx_word'>angebetet</span><span class='ocrx_word'>zu</span><span class='ocrx_word'>werden.</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Diesen</span><span class='ocrx_word'>Namen</span><span class='ocrx_word'>gab</span><span class='ocrx_word'>das</span><span class='ocrx_word'>romische</span><span class='ocrx_word'>Voll</span><span class='ocrx_word'>dem</span><span class='ocrx_word'>Kaiser</span><span class='ocrx_word'>Octavian,</span><span class='ocrx_word'>und</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>alle</span><span class='ocrx_word'>romischen</span><span class='ocrx_word'>Kaiser</span><span class='ocrx_word'>haben</span><span class='ocrx_word'>diesen</span><span class='ocrx_word'>Namen</span><span class='ocrx_word'>beibehalten,</span><span class='ocrx_word'>daß</span><span class='ocrx_word'>sie</span><span class='ocrx_word'>«au,-</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>per</span><span class='ocrx_word'>2ußr>«ti,</span><span class='ocrx_word'>d.</span><span class='ocrx_word'>i,</span><span class='ocrx_word'>allzeit</span><span class='ocrx_word'>Mehrer</span><span class='ocrx_word'>des</span><span class='ocrx_word'>Reichs</span><span class='ocrx_word'>geheißen</span><span class='ocrx_word'>haben.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Avith.</span><span class='ocrx_word'>Haufe.</span><span class='ocrx_word'>Eine</span><span class='ocrx_word'>Stadt</span><span class='ocrx_word'>in</span><span class='ocrx_word'>Idumäa.</span><span class='ocrx_word'>1</span><span class='ocrx_word'>Mos.</span><span class='ocrx_word'>36,</span><span class='ocrx_word'>35.</span> </span><span class='ocr_line'> <span class='ocrx_word'>Aulon.</span><span class='ocrx_word'>Ausgehöhlt.</span><span class='ocrx_word'>Das</span><span class='ocrx_word'>große</span><span class='ocrx_word'>Thal,</span><span class='ocrx_word'>worin</span><span class='ocrx_word'>die</span><span class='ocrx_word'>berühmten</span> </span> </span><span class='ocr_par'> <span class='ocr_line'> <span class='ocrx_word'>Städte</span><span class='ocrx_word'>Vethsan</span><span class='ocrx_word'>oder</span><span class='ocrx_word'>Scythopolis,</span><span class='ocrx_word'>Tlberias,</span><span class='ocrx_word'>Iericho,</span><span class='ocrx_word'>das</span><span class='ocrx_word'>todte</span><span class='ocrx_word'>Meer</span> </span> </span> </span> </span>"
97
+ end
98
+
99
+ it 'should have a #to_image_html method' do
100
+ File.new('test.html','w+') << @output_page.to_image_html
101
+ @output_page.to_image_html.should == "<div class='ocr_page' style='position:absolute; top:0px; left:0px; height:1326px; width:1326px;;background-image: url(data/test.png); width:1326px; height:1326>px ;'><span class='ocrx_block' style='position:absolute; top:32px; left:55px; height:1855px; width:1080px;' ></span><span class='ocr_par' style='position:absolute; top:32px; left:432px; height:39px; width:685px;' ></span><span class='ocr_line' style='position:absolute; top:32px; left:432px; height:39px; width:685px;' ></span><span class='ocrx_word' style='position:absolute; top:32px; left:432px; height:35px; width:156px;'>Athenobius</span><span class='ocrx_word' style='position:absolute; top:48px; left:606px; height:6px; width:34px;'>—</span><span class='ocrx_word' style='position:absolute; top:34px; left:657px; height:28px; width:92px;'>Aulon.</span><span class='ocrx_word' style='position:absolute; top:37px; left:1074px; height:34px; width:43px;'>29</span><span class='ocr_par' style='position:absolute; top:109px; left:79px; height:80px; width:1040px;' ></span><span class='ocr_line' style='position:absolute; top:109px; left:79px; height:36px; width:1040px;' ></span><span class='ocrx_word' style='position:absolute; top:109px; left:79px; height:35px; width:215px;'>Athenobius,</span><span class='ocrx_word' style='position:absolute; top:112px; left:334px; height:27px; width:64px;'>Der</span><span class='ocrx_word' style='position:absolute; top:115px; left:417px; height:24px; width:59px;'>von</span><span class='ocrx_word' style='position:absolute; top:112px; left:494px; height:27px; width:51px;'>der</span><span class='ocrx_word' style='position:absolute; top:112px; left:565px; height:28px; width:122px;'>Göttin</span><span class='ocrx_word' style='position:absolute; top:112px; left:707px; height:28px; width:150px;'>Minerva</span><span class='ocrx_word' style='position:absolute; top:112px; left:876px; height:33px; width:78px;'>lebt,</span><span class='ocrx_word' style='position:absolute; top:112px; left:974px; height:28px; width:69px;'>oder:</span><span class='ocrx_word' style='position:absolute; top:112px; left:1062px; height:28px; width:57px;'>Mi»</span><span class='ocr_line' style='position:absolute; top:155px; left:108px; height:34px; width:192px;' ></span><span class='ocrx_word' style='position:absolute; top:159px; left:108px; height:23px; width:75px;'>nerva</span><span class='ocrx_word' style='position:absolute; top:155px; left:201px; height:34px; width:99px;'>Bogen.</span><span class='ocr_par' style='position:absolute; top:196px; left:74px; height:120px; width:1043px;' ></span><span class='ocr_line' style='position:absolute; top:196px; left:160px; height:36px; width:957px;' ></span><span class='ocrx_word' style='position:absolute; top:198px; left:160px; height:27px; width:54px;'>Des</span><span class='ocrx_word' style='position:absolute; top:197px; left:242px; height:33px; width:98px;'>Königs</span><span class='ocrx_word' style='position:absolute; top:196px; left:367px; height:34px; width:136px;'>Antiochus</span><span class='ocrx_word' style='position:absolute; top:197px; left:531px; height:33px; width:95px;'>Freund</span><span class='ocrx_word' style='position:absolute; top:197px; left:655px; height:28px; width:58px;'>oder</span><span class='ocrx_word' style='position:absolute; top:196px; left:739px; height:36px; width:119px;'>geheimer</span><span class='ocrx_word' style='position:absolute; top:196px; left:885px; height:34px; width:78px;'>Nath.</span><span class='ocrx_word' style='position:absolute; top:199px; left:994px; height:25px; width:11px;'>l</span><span class='ocrx_word' style='position:absolute; top:197px; left:1033px; height:29px; width:84px;'>Mack.</span><span class='ocr_line' style='position:absolute; top:241px; left:109px; height:33px; width:97px;' ></span><span class='ocrx_word' style='position:absolute; top:241px; left:109px; height:33px; width:38px;'>15,</span><span class='ocrx_word' style='position:absolute; top:242px; left:166px; height:25px; width:40px;'>28.</span><span class='ocr_line' style='position:absolute; top:281px; left:74px; height:35px; width:1042px;' ></span><span class='ocrx_word' style='position:absolute; top:281px; left:74px; height:34px; width:131px;'>Athlai.</span><span class='ocrx_word' style='position:absolute; top:284px; left:242px; height:26px; width:68px;'>Dee</span><span class='ocrx_word' style='position:absolute; top:282px; left:337px; height:33px; width:80px;'>Herr</span><span class='ocrx_word' style='position:absolute; top:281px; left:440px; height:34px; width:158px;'>zerreißet</span><span class='ocrx_word' style='position:absolute; top:282px; left:625px; height:28px; width:56px;'>oder</span><span class='ocrx_word' style='position:absolute; top:282px; left:706px; height:34px; width:158px;'>zerbricht.</span><span class='ocrx_word' style='position:absolute; top:282px; left:898px; height:28px; width:77px;'>Einer</span><span class='ocrx_word' style='position:absolute; top:286px; left:999px; height:24px; width:51px;'>von</span><span class='ocrx_word' style='position:absolute; top:282px; left:1069px; height:28px; width:47px;'>den</span><span class='ocr_par' style='position:absolute; top:324px; left:74px; height:77px; width:1040px;' ></span><span class='ocr_line' style='position:absolute; top:324px; left:107px; height:33px; width:487px;' ></span><span class='ocrx_word' style='position:absolute; top:325px; left:107px; height:32px; width:174px;'>Nachlommen</span><span class='ocrx_word' style='position:absolute; top:324px; left:300px; height:28px; width:92px;'>Bebai.</span><span class='ocrx_word' style='position:absolute; top:324px; left:410px; height:32px; width:62px;'>Esra</span><span class='ocrx_word' style='position:absolute; top:327px; left:496px; height:28px; width:37px;'>10,</span><span class='ocrx_word' style='position:absolute; top:326px; left:553px; height:25px; width:41px;'>28.</span><span class='ocr_line' style='position:absolute; top:366px; left:74px; height:35px; width:1040px;' ></span><span class='ocrx_word' style='position:absolute; top:366px; left:74px; height:34px; width:115px;'>Athni.</span><span class='ocrx_word' style='position:absolute; top:368px; left:217px; height:27px; width:79px;'>Eine</span><span class='ocrx_word' style='position:absolute; top:367px; left:315px; height:34px; width:135px;'>Trübsal</span><span class='ocrx_word' style='position:absolute; top:372px; left:469px; height:22px; width:59px;'>von</span><span class='ocrx_word' style='position:absolute; top:366px; left:548px; height:28px; width:90px;'>Gott.</span><span class='ocrx_word' style='position:absolute; top:366px; left:673px; height:28px; width:49px;'>Ein</span><span class='ocrx_word' style='position:absolute; top:366px; left:742px; height:34px; width:77px;'>Sohn</span><span class='ocrx_word' style='position:absolute; top:366px; left:838px; height:34px; width:116px;'>Semaja.</span><span class='ocrx_word' style='position:absolute; top:369px; left:986px; height:25px; width:12px;'>1</span><span class='ocrx_word' style='position:absolute; top:368px; left:1018px; height:32px; width:96px;'>Chron.</span><span class='ocr_par' style='position:absolute; top:412px; left:71px; height:76px; width:1041px;' ></span><span class='ocr_line' style='position:absolute; top:412px; left:104px; height:28px; width:83px;' ></span><span class='ocrx_word' style='position:absolute; top:412px; left:104px; height:28px; width:40px;'>27.</span><span class='ocrx_word' style='position:absolute; top:413px; left:163px; height:25px; width:24px;'>7.</span><span class='ocr_line' style='position:absolute; top:451px; left:71px; height:37px; width:1041px;' ></span><span class='ocrx_word' style='position:absolute; top:451px; left:71px; height:34px; width:146px;'>Athniel.</span><span class='ocrx_word' style='position:absolute; top:452px; left:246px; height:27px; width:118px;'>Gottes</span><span class='ocrx_word' style='position:absolute; top:451px; left:384px; height:33px; width:147px;'>Trübsal,</span><span class='ocrx_word' style='position:absolute; top:451px; left:550px; height:28px; width:22px;'>d.</span><span class='ocrx_word' style='position:absolute; top:451px; left:591px; height:28px; width:17px;'>i.</span><span class='ocrx_word' style='position:absolute; top:451px; left:627px; height:28px; width:54px;'>eine</span><span class='ocrx_word' style='position:absolute; top:451px; left:699px; height:33px; width:120px;'>Trübsal,</span><span class='ocrx_word' style='position:absolute; top:459px; left:839px; height:20px; width:49px;'>von</span><span class='ocrx_word' style='position:absolute; top:452px; left:908px; height:28px; width:62px;'>Gott</span><span class='ocrx_word' style='position:absolute; top:452px; left:990px; height:36px; width:122px;'>zugesügt.</span><span class='ocr_par' style='position:absolute; top:494px; left:102px; height:34px; width:1008px;' ></span><span class='ocr_line' style='position:absolute; top:494px; left:102px; height:34px; width:1008px;' ></span><span class='ocrx_word' style='position:absolute; top:496px; left:102px; height:27px; width:50px;'>Ein</span><span class='ocrx_word' style='position:absolute; top:495px; left:172px; height:31px; width:76px;'>Sohn</span><span class='ocrx_word' style='position:absolute; top:495px; left:268px; height:30px; width:94px;'>Kenas,</span><span class='ocrx_word' style='position:absolute; top:495px; left:380px; height:26px; width:44px;'>des</span><span class='ocrx_word' style='position:absolute; top:494px; left:445px; height:27px; width:112px;'>Bruders</span><span class='ocrx_word' style='position:absolute; top:494px; left:576px; height:32px; width:89px;'>Kaleb;</span><span class='ocrx_word' style='position:absolute; top:500px; left:693px; height:28px; width:105px;'>gewann</span><span class='ocrx_word' style='position:absolute; top:495px; left:818px; height:33px; width:98px;'>Kiriath</span><span class='ocrx_word' style='position:absolute; top:495px; left:936px; height:33px; width:106px;'>Sepher,</span><span class='ocrx_word' style='position:absolute; top:495px; left:1061px; height:28px; width:49px;'>und</span><span class='ocr_par' style='position:absolute; top:535px; left:68px; height:79px; width:1051px;' ></span><span class='ocr_line' style='position:absolute; top:535px; left:100px; height:35px; width:937px;' ></span><span class='ocrx_word' style='position:absolute; top:538px; left:100px; height:27px; width:80px;'>damit</span><span class='ocrx_word' style='position:absolute; top:537px; left:199px; height:33px; width:82px;'>Achsa.</span><span class='ocrx_word' style='position:absolute; top:538px; left:300px; height:26px; width:36px;'>die</span><span class='ocrx_word' style='position:absolute; top:537px; left:356px; height:32px; width:98px;'>Tochter</span><span class='ocrx_word' style='position:absolute; top:535px; left:472px; height:32px; width:81px;'>seines</span><span class='ocrx_word' style='position:absolute; top:537px; left:574px; height:27px; width:100px;'>Betters</span><span class='ocrx_word' style='position:absolute; top:537px; left:694px; height:27px; width:86px;'>Kaleb.</span><span class='ocrx_word' style='position:absolute; top:536px; left:800px; height:34px; width:77px;'>Nicht,</span><span class='ocrx_word' style='position:absolute; top:540px; left:899px; height:29px; width:20px;'>1.</span><span class='ocrx_word' style='position:absolute; top:539px; left:940px; height:26px; width:38px;'>12.</span><span class='ocrx_word' style='position:absolute; top:539px; left:1000px; height:25px; width:37px;'>13.</span><span class='ocr_line' style='position:absolute; top:576px; left:68px; height:38px; width:1051px;' ></span><span class='ocrx_word' style='position:absolute; top:578px; left:68px; height:36px; width:308px;'>Atroth-Sophan,</span><span class='ocrx_word' style='position:absolute; top:580px; left:396px; height:26px; width:37px;'>die</span><span class='ocrx_word' style='position:absolute; top:580px; left:454px; height:27px; width:101px;'>Krone</span><span class='ocrx_word' style='position:absolute; top:580px; left:580px; height:26px; width:53px;'>oder</span><span class='ocrx_word' style='position:absolute; top:579px; left:658px; height:30px; width:102px;'>Decke,</span><span class='ocrx_word' style='position:absolute; top:580px; left:785px; height:26px; width:56px;'>oder</span><span class='ocrx_word' style='position:absolute; top:580px; left:860px; height:34px; width:177px;'>Bedeckung</span><span class='ocrx_word' style='position:absolute; top:576px; left:1057px; height:32px; width:62px;'>des'</span><span class='ocr_par' style='position:absolute; top:621px; left:100px; height:36px; width:1011px;' ></span><span class='ocr_line' style='position:absolute; top:621px; left:100px; height:36px; width:1011px;' ></span><span class='ocrx_word' style='position:absolute; top:624px; left:100px; height:33px; width:135px;'>Hügels.</span><span class='ocrx_word' style='position:absolute; top:623px; left:273px; height:27px; width:62px;'>Eine</span><span class='ocrx_word' style='position:absolute; top:623px; left:355px; height:26px; width:81px;'>Stadt</span><span class='ocrx_word' style='position:absolute; top:623px; left:456px; height:26px; width:40px;'>der</span><span class='ocrx_word' style='position:absolute; top:621px; left:515px; height:28px; width:141px;'>Rubeniten</span><span class='ocrx_word' style='position:absolute; top:621px; left:680px; height:27px; width:35px;'>im</span><span class='ocrx_word' style='position:absolute; top:622px; left:734px; height:34px; width:141px;'>Königreich</span><span class='ocrx_word' style='position:absolute; top:622px; left:895px; height:32px; width:97px;'>Sthon.</span><span class='ocrx_word' style='position:absolute; top:624px; left:1008px; height:26px; width:16px;'>4</span><span class='ocrx_word' style='position:absolute; top:623px; left:1043px; height:34px; width:68px;'>Mos.</span><span class='ocr_par' style='position:absolute; top:668px; left:67px; height:74px; width:1045px;' ></span><span class='ocr_line' style='position:absolute; top:668px; left:98px; height:30px; width:102px;' ></span><span class='ocrx_word' style='position:absolute; top:669px; left:98px; height:29px; width:41px;'>32,</span><span class='ocrx_word' style='position:absolute; top:668px; left:158px; height:25px; width:42px;'>35.</span><span class='ocr_line' style='position:absolute; top:706px; left:67px; height:36px; width:1045px;' ></span><span class='ocrx_word' style='position:absolute; top:707px; left:67px; height:35px; width:274px;'>AtrothAddar:</span><span class='ocrx_word' style='position:absolute; top:706px; left:356px; height:29px; width:62px;'>Die</span><span class='ocrx_word' style='position:absolute; top:707px; left:432px; height:27px; width:105px;'>Krone</span><span class='ocrx_word' style='position:absolute; top:706px; left:551px; height:27px; width:110px;'>Addar</span><span class='ocrx_word' style='position:absolute; top:706px; left:675px; height:31px; width:54px;'>(des</span><span class='ocrx_word' style='position:absolute; top:706px; left:744px; height:33px; width:105px;'>Sohnes</span><span class='ocrx_word' style='position:absolute; top:706px; left:861px; height:34px; width:155px;'>Benjamin).</span><span class='ocrx_word' style='position:absolute; top:708px; left:1037px; height:33px; width:75px;'>Diese</span><span class='ocr_par' style='position:absolute; top:748px; left:98px; height:37px; width:1013px;' ></span><span class='ocr_line' style='position:absolute; top:748px; left:98px; height:37px; width:1013px;' ></span><span class='ocrx_word' style='position:absolute; top:752px; left:98px; height:28px; width:86px;'>Stadt</span><span class='ocrx_word' style='position:absolute; top:751px; left:202px; height:34px; width:98px;'>gehörte</span><span class='ocrx_word' style='position:absolute; top:750px; left:322px; height:27px; width:47px;'>den</span><span class='ocrx_word' style='position:absolute; top:748px; left:395px; height:33px; width:216px;'>Benjaminitern,</span><span class='ocrx_word' style='position:absolute; top:749px; left:635px; height:33px; width:43px;'>lag</span><span class='ocrx_word' style='position:absolute; top:748px; left:702px; height:27px; width:26px;'>in</span><span class='ocrx_word' style='position:absolute; top:749px; left:753px; height:27px; width:45px;'>den</span><span class='ocrx_word' style='position:absolute; top:749px; left:826px; height:35px; width:112px;'>Grenzen</span><span class='ocrx_word' style='position:absolute; top:750px; left:962px; height:33px; width:71px;'>Iuda</span><span class='ocrx_word' style='position:absolute; top:750px; left:1057px; height:28px; width:54px;'>tmd</span><span class='ocr_par' style='position:absolute; top:794px; left:64px; height:76px; width:1048px;' ></span><span class='ocr_line' style='position:absolute; top:794px; left:98px; height:31px; width:134px;' ></span><span class='ocrx_word' style='position:absolute; top:794px; left:98px; height:31px; width:134px;'>Ephraim.</span><span class='ocr_line' style='position:absolute; top:833px; left:64px; height:37px; width:1048px;' ></span><span class='ocrx_word' style='position:absolute; top:834px; left:64px; height:36px; width:355px;'>Atroth.Beth-Ioab,</span><span class='ocrx_word' style='position:absolute; top:836px; left:438px; height:26px; width:22px;'>d.</span><span class='ocrx_word' style='position:absolute; top:835px; left:480px; height:27px; width:17px;'>i.</span><span class='ocrx_word' style='position:absolute; top:834px; left:517px; height:27px; width:48px;'>die</span><span class='ocrx_word' style='position:absolute; top:834px; left:584px; height:27px; width:104px;'>Krone</span><span class='ocrx_word' style='position:absolute; top:833px; left:712px; height:28px; width:52px;'>des</span><span class='ocrx_word' style='position:absolute; top:833px; left:784px; height:33px; width:125px;'>Hauses</span><span class='ocrx_word' style='position:absolute; top:834px; left:926px; height:32px; width:94px;'>Ioab.</span><span class='ocrx_word' style='position:absolute; top:835px; left:1050px; height:28px; width:62px;'>Eine</span><span class='ocr_par' style='position:absolute; top:876px; left:101px; height:35px; width:1012px;' ></span><span class='ocr_line' style='position:absolute; top:876px; left:101px; height:35px; width:1012px;' ></span><span class='ocrx_word' style='position:absolute; top:879px; left:101px; height:28px; width:86px;'>Stadt</span><span class='ocrx_word' style='position:absolute; top:879px; left:201px; height:27px; width:26px;'>in</span><span class='ocrx_word' style='position:absolute; top:879px; left:249px; height:32px; width:80px;'>Iuda,</span><span class='ocrx_word' style='position:absolute; top:883px; left:350px; height:22px; width:38px;'>wo</span><span class='ocrx_word' style='position:absolute; top:878px; left:408px; height:27px; width:37px;'>die</span><span class='ocrx_word' style='position:absolute; top:877px; left:456px; height:32px; width:178px;'>Nachlommen</span><span class='ocrx_word' style='position:absolute; top:876px; left:645px; height:28px; width:97px;'>Salma</span><span class='ocrx_word' style='position:absolute; top:876px; left:762px; height:34px; width:114px;'>gewohnt</span><span class='ocrx_word' style='position:absolute; top:877px; left:887px; height:33px; width:85px;'>haben.</span><span class='ocrx_word' style='position:absolute; top:880px; left:992px; height:24px; width:10px;'>1</span><span class='ocrx_word' style='position:absolute; top:877px; left:1021px; height:34px; width:92px;'>Chron.</span><span class='ocr_par' style='position:absolute; top:923px; left:64px; height:73px; width:1048px;' ></span><span class='ocr_line' style='position:absolute; top:923px; left:96px; height:30px; width:89px;' ></span><span class='ocrx_word' style='position:absolute; top:923px; left:96px; height:30px; width:24px;'>2,</span><span class='ocrx_word' style='position:absolute; top:924px; left:141px; height:25px; width:44px;'>54.</span><span class='ocr_line' style='position:absolute; top:961px; left:64px; height:35px; width:1048px;' ></span><span class='ocrx_word' style='position:absolute; top:962px; left:64px; height:31px; width:148px;'>Attalia.</span><span class='ocrx_word' style='position:absolute; top:963px; left:249px; height:27px; width:63px;'>Eine</span><span class='ocrx_word' style='position:absolute; top:963px; left:330px; height:27px; width:81px;'>Stadt</span><span class='ocrx_word' style='position:absolute; top:962px; left:428px; height:26px; width:27px;'>in</span><span class='ocrx_word' style='position:absolute; top:961px; left:474px; height:33px; width:163px;'>Pamphilien</span><span class='ocrx_word' style='position:absolute; top:962px; left:665px; height:28px; width:36px;'>od.</span><span class='ocrx_word' style='position:absolute; top:961px; left:720px; height:33px; width:104px;'>Libyen,</span><span class='ocrx_word' style='position:absolute; top:967px; left:848px; height:22px; width:49px;'>von</span><span class='ocrx_word' style='position:absolute; top:962px; left:916px; height:27px; width:88px;'>Attala</span><span class='ocrx_word' style='position:absolute; top:962px; left:1023px; height:34px; width:89px;'>Phila.</span><span class='ocr_par' style='position:absolute; top:1005px; left:62px; height:77px; width:1073px;' ></span><span class='ocr_line' style='position:absolute; top:1005px; left:95px; height:34px; width:499px;' ></span><span class='ocrx_word' style='position:absolute; top:1006px; left:95px; height:33px; width:90px;'>delpho</span><span class='ocrx_word' style='position:absolute; top:1006px; left:206px; height:27px; width:96px;'>erbaut.</span><span class='ocrx_word' style='position:absolute; top:1006px; left:321px; height:31px; width:47px;'>Ap.</span><span class='ocrx_word' style='position:absolute; top:1005px; left:388px; height:33px; width:83px;'>Gesch.</span><span class='ocrx_word' style='position:absolute; top:1006px; left:494px; height:32px; width:39px;'>14,</span><span class='ocrx_word' style='position:absolute; top:1006px; left:553px; height:25px; width:41px;'>25.</span><span class='ocr_line' style='position:absolute; top:1046px; left:62px; height:36px; width:1073px;' ></span><span class='ocrx_word' style='position:absolute; top:1048px; left:62px; height:29px; width:146px;'>Attalus</span><span class='ocrx_word' style='position:absolute; top:1048px; left:255px; height:27px; width:51px;'>Ein</span><span class='ocrx_word' style='position:absolute; top:1046px; left:330px; height:34px; width:81px;'>König</span><span class='ocrx_word' style='position:absolute; top:1047px; left:436px; height:26px; width:26px;'>in</span><span class='ocrx_word' style='position:absolute; top:1046px; left:482px; height:32px; width:112px;'>Mysien,</span><span class='ocrx_word' style='position:absolute; top:1046px; left:623px; height:32px; width:99px;'>welches</span><span class='ocrx_word' style='position:absolute; top:1047px; left:747px; height:26px; width:72px;'>unter</span><span class='ocrx_word' style='position:absolute; top:1046px; left:843px; height:35px; width:129px;'>Phrygien</span><span class='ocrx_word' style='position:absolute; top:1047px; left:997px; height:35px; width:115px;'>gehörte;</span><span class='ocrx_word' style='position:absolute; top:1058px; left:1128px; height:9px; width:7px;'>,</span><span class='ocr_par' style='position:absolute; top:1089px; left:95px; height:36px; width:1016px;' ></span><span class='ocr_line' style='position:absolute; top:1089px; left:95px; height:36px; width:1016px;' ></span><span class='ocrx_word' style='position:absolute; top:1093px; left:95px; height:32px; width:112px;'>genannt</span><span class='ocrx_word' style='position:absolute; top:1095px; left:227px; height:22px; width:47px;'>von</span><span class='ocrx_word' style='position:absolute; top:1090px; left:294px; height:29px; width:122px;'>Attale,</span><span class='ocrx_word' style='position:absolute; top:1090px; left:435px; height:30px; width:99px;'>welches</span><span class='ocrx_word' style='position:absolute; top:1089px; left:553px; height:27px; width:38px;'>bei</span><span class='ocrx_word' style='position:absolute; top:1089px; left:610px; height:26px; width:47px;'>den</span><span class='ocrx_word' style='position:absolute; top:1089px; left:676px; height:33px; width:143px;'>Phrygiern</span><span class='ocrx_word' style='position:absolute; top:1089px; left:838px; height:32px; width:79px;'>Kropf</span><span class='ocrx_word' style='position:absolute; top:1090px; left:935px; height:26px; width:56px;'>oder</span><span class='ocrx_word' style='position:absolute; top:1090px; left:1012px; height:34px; width:99px;'>Gurgel</span><span class='ocr_par' style='position:absolute; top:1131px; left:94px; height:37px; width:1016px;' ></span><span class='ocr_line' style='position:absolute; top:1131px; left:94px; height:37px; width:1016px;' ></span><span class='ocrx_word' style='position:absolute; top:1133px; left:94px; height:35px; width:119px;'>geheißen</span><span class='ocrx_word' style='position:absolute; top:1133px; left:233px; height:32px; width:77px;'>haben</span><span class='ocrx_word' style='position:absolute; top:1131px; left:329px; height:30px; width:51px;'>soll.</span><span class='ocrx_word' style='position:absolute; top:1157px; left:393px; height:4px; width:4px;'>,</span><span class='ocrx_word' style='position:absolute; top:1131px; left:417px; height:28px; width:62px;'>War</span><span class='ocrx_word' style='position:absolute; top:1132px; left:497px; height:26px; width:39px;'>ein</span><span class='ocrx_word' style='position:absolute; top:1132px; left:555px; height:33px; width:82px;'>König</span><span class='ocrx_word' style='position:absolute; top:1132px; left:660px; height:26px; width:40px;'>der</span><span class='ocrx_word' style='position:absolute; top:1132px; left:719px; height:33px; width:170px;'>Pergamener</span><span class='ocrx_word' style='position:absolute; top:1133px; left:907px; height:25px; width:49px;'>und</span><span class='ocrx_word' style='position:absolute; top:1131px; left:976px; height:34px; width:134px;'>Phrvgier.</span><span class='ocr_par' style='position:absolute; top:1175px; left:59px; height:75px; width:1051px;' ></span><span class='ocr_line' style='position:absolute; top:1175px; left:95px; height:32px; width:237px;' ></span><span class='ocrx_word' style='position:absolute; top:1177px; left:95px; height:24px; width:11px;'>l</span><span class='ocrx_word' style='position:absolute; top:1175px; left:130px; height:27px; width:81px;'>Mack.</span><span class='ocrx_word' style='position:absolute; top:1176px; left:233px; height:31px; width:39px;'>15,</span><span class='ocrx_word' style='position:absolute; top:1176px; left:292px; height:25px; width:40px;'>22.</span><span class='ocr_line' style='position:absolute; top:1216px; left:59px; height:34px; width:1051px;' ></span><span class='ocrx_word' style='position:absolute; top:1217px; left:59px; height:29px; width:87px;'>Ava.</span><span class='ocrx_word' style='position:absolute; top:1217px; left:184px; height:33px; width:40px;'>Ist</span><span class='ocrx_word' style='position:absolute; top:1217px; left:242px; height:26px; width:38px;'>bei</span><span class='ocrx_word' style='position:absolute; top:1218px; left:299px; height:25px; width:45px;'>den</span><span class='ocrx_word' style='position:absolute; top:1217px; left:364px; height:26px; width:68px;'>alten</span><span class='ocrx_word' style='position:absolute; top:1216px; left:453px; height:32px; width:115px;'>Griechen</span><span class='ocrx_word' style='position:absolute; top:1216px; left:587px; height:26px; width:49px;'>Aia</span><span class='ocrx_word' style='position:absolute; top:1216px; left:655px; height:26px; width:36px;'>od.</span><span class='ocrx_word' style='position:absolute; top:1216px; left:711px; height:31px; width:60px;'>Aea,</span><span class='ocrx_word' style='position:absolute; top:1216px; left:790px; height:26px; width:38px;'>die</span><span class='ocrx_word' style='position:absolute; top:1216px; left:842px; height:33px; width:151px;'>Hauptstadt</span><span class='ocrx_word' style='position:absolute; top:1217px; left:1010px; height:26px; width:26px;'>in</span><span class='ocrx_word' style='position:absolute; top:1216px; left:1051px; height:29px; width:59px;'>Col»</span><span class='ocr_par' style='position:absolute; top:1258px; left:92px; height:35px; width:1016px;' ></span><span class='ocr_line' style='position:absolute; top:1258px; left:92px; height:35px; width:1016px;' ></span><span class='ocrx_word' style='position:absolute; top:1261px; left:92px; height:32px; width:73px;'>chide,</span><span class='ocrx_word' style='position:absolute; top:1265px; left:186px; height:21px; width:38px;'>wo</span><span class='ocrx_word' style='position:absolute; top:1260px; left:244px; height:25px; width:79px;'>Aetas</span><span class='ocrx_word' style='position:absolute; top:1258px; left:341px; height:34px; width:110px;'>regierte.</span><span class='ocrx_word' style='position:absolute; top:1258px; left:494px; height:33px; width:99px;'>Colchis</span><span class='ocrx_word' style='position:absolute; top:1258px; left:612px; height:33px; width:66px;'>heißt</span><span class='ocrx_word' style='position:absolute; top:1258px; left:697px; height:34px; width:115px;'>heutiges</span><span class='ocrx_word' style='position:absolute; top:1258px; left:833px; height:34px; width:83px;'>Tages</span><span class='ocrx_word' style='position:absolute; top:1258px; left:938px; height:35px; width:170px;'>Mengrelicn,</span><span class='ocr_par' style='position:absolute; top:1300px; left:92px; height:35px; width:1017px;' ></span><span class='ocr_line' style='position:absolute; top:1300px; left:92px; height:35px; width:1017px;' ></span><span class='ocrx_word' style='position:absolute; top:1303px; left:92px; height:27px; width:39px;'>die</span><span class='ocrx_word' style='position:absolute; top:1303px; left:160px; height:32px; width:98px;'>meisten</span><span class='ocrx_word' style='position:absolute; top:1302px; left:277px; height:30px; width:153px;'>Einwohner</span><span class='ocrx_word' style='position:absolute; top:1300px; left:455px; height:33px; width:50px;'>sind</span><span class='ocrx_word' style='position:absolute; top:1300px; left:531px; height:34px; width:122px;'>Christen.</span><span class='ocrx_word' style='position:absolute; top:1300px; left:698px; height:28px; width:57px;'>Von</span><span class='ocrx_word' style='position:absolute; top:1300px; left:780px; height:32px; width:51px;'>hier</span><span class='ocrx_word' style='position:absolute; top:1302px; left:855px; height:26px; width:101px;'>wurden</span><span class='ocrx_word' style='position:absolute; top:1302px; left:980px; height:26px; width:38px;'>die</span><span class='ocrx_word' style='position:absolute; top:1301px; left:1037px; height:28px; width:72px;'>Leute</span><span class='ocr_par' style='position:absolute; top:1342px; left:92px; height:36px; width:1018px;' ></span><span class='ocr_line' style='position:absolute; top:1342px; left:92px; height:36px; width:1018px;' ></span><span class='ocrx_word' style='position:absolute; top:1349px; left:92px; height:22px; width:52px;'>von</span><span class='ocrx_word' style='position:absolute; top:1344px; left:165px; height:32px; width:182px;'>Salmanasscr</span><span class='ocrx_word' style='position:absolute; top:1344px; left:371px; height:31px; width:57px;'>nach</span><span class='ocrx_word' style='position:absolute; top:1343px; left:454px; height:27px; width:128px;'>Samaria</span><span class='ocrx_word' style='position:absolute; top:1343px; left:606px; height:35px; width:110px;'>gesührt,</span><span class='ocrx_word' style='position:absolute; top:1347px; left:741px; height:22px; width:38px;'>wo</span><span class='ocrx_word' style='position:absolute; top:1342px; left:804px; height:33px; width:31px;'>sie</span><span class='ocrx_word' style='position:absolute; top:1343px; left:859px; height:32px; width:58px;'>noch</span><span class='ocrx_word' style='position:absolute; top:1343px; left:942px; height:33px; width:51px;'>ihre</span><span class='ocrx_word' style='position:absolute; top:1344px; left:1019px; height:27px; width:91px;'>Götter</span><span class='ocr_par' style='position:absolute; top:1386px; left:58px; height:76px; width:1051px;' ></span><span class='ocr_line' style='position:absolute; top:1386px; left:93px; height:33px; width:782px;' ></span><span class='ocrx_word' style='position:absolute; top:1387px; left:93px; height:32px; width:118px;'>Nibehas</span><span class='ocrx_word' style='position:absolute; top:1387px; left:231px; height:26px; width:48px;'>und</span><span class='ocrx_word' style='position:absolute; top:1386px; left:298px; height:32px; width:123px;'>Tharthac</span><span class='ocrx_word' style='position:absolute; top:1386px; left:440px; height:27px; width:138px;'>anbeteten.</span><span class='ocrx_word' style='position:absolute; top:1388px; left:597px; height:24px; width:15px;'>2</span><span class='ocrx_word' style='position:absolute; top:1387px; left:630px; height:26px; width:64px;'>Kön.</span><span class='ocrx_word' style='position:absolute; top:1388px; left:716px; height:28px; width:38px;'>l7,</span><span class='ocrx_word' style='position:absolute; top:1386px; left:775px; height:27px; width:41px;'>24.</span><span class='ocrx_word' style='position:absolute; top:1387px; left:835px; height:26px; width:40px;'>31.</span><span class='ocr_line' style='position:absolute; top:1428px; left:58px; height:34px; width:1051px;' ></span><span class='ocrx_word' style='position:absolute; top:1428px; left:58px; height:30px; width:117px;'>Aven.</span><span class='ocrx_word' style='position:absolute; top:1429px; left:213px; height:33px; width:101px;'>Götze,</span><span class='ocrx_word' style='position:absolute; top:1428px; left:339px; height:27px; width:163px;'>Eitelleit.</span><span class='ocrx_word' style='position:absolute; top:1428px; left:538px; height:27px; width:42px;'>So</span><span class='ocrx_word' style='position:absolute; top:1429px; left:605px; height:26px; width:60px;'>wird</span><span class='ocrx_word' style='position:absolute; top:1428px; left:690px; height:33px; width:88px;'>Bethel</span><span class='ocrx_word' style='position:absolute; top:1429px; left:802px; height:33px; width:118px;'>genannt.</span><span class='ocrx_word' style='position:absolute; top:1428px; left:939px; height:34px; width:56px;'>Hos.</span><span class='ocrx_word' style='position:absolute; top:1431px; left:1023px; height:29px; width:38px;'>10,</span><span class='ocrx_word' style='position:absolute; top:1431px; left:1086px; height:25px; width:23px;'>8.</span><span class='ocr_par' style='position:absolute; top:1471px; left:92px; height:34px; width:1018px;' ></span><span class='ocr_line' style='position:absolute; top:1471px; left:92px; height:34px; width:1018px;' ></span><span class='ocrx_word' style='position:absolute; top:1478px; left:92px; height:27px; width:88px;'>wegen</span><span class='ocrx_word' style='position:absolute; top:1472px; left:199px; height:26px; width:42px;'>der</span><span class='ocrx_word' style='position:absolute; top:1471px; left:261px; height:33px; width:104px;'>Götzen,</span><span class='ocrx_word' style='position:absolute; top:1471px; left:390px; height:26px; width:39px;'>die</span><span class='ocrx_word' style='position:absolute; top:1471px; left:456px; height:32px; width:100px;'>daselbst</span><span class='ocrx_word' style='position:absolute; top:1476px; left:579px; height:21px; width:49px;'>von</span><span class='ocrx_word' style='position:absolute; top:1472px; left:651px; height:25px; width:43px;'>den</span><span class='ocrx_word' style='position:absolute; top:1471px; left:715px; height:32px; width:137px;'>Israeliten</span><span class='ocrx_word' style='position:absolute; top:1471px; left:877px; height:32px; width:96px;'>verehrt</span><span class='ocrx_word' style='position:absolute; top:1472px; left:1000px; height:26px; width:110px;'>wurden.</span><span class='ocr_par' style='position:absolute; top:1513px; left:91px; height:35px; width:1019px;' ></span><span class='ocr_line' style='position:absolute; top:1513px; left:91px; height:35px; width:1019px;' ></span><span class='ocrx_word' style='position:absolute; top:1515px; left:91px; height:26px; width:58px;'>Mit</span><span class='ocrx_word' style='position:absolute; top:1515px; left:167px; height:26px; width:53px;'>dem</span><span class='ocrx_word' style='position:absolute; top:1520px; left:240px; height:28px; width:92px;'>ganzen</span><span class='ocrx_word' style='position:absolute; top:1513px; left:352px; height:27px; width:109px;'>Namen:</span><span class='ocrx_word' style='position:absolute; top:1513px; left:482px; height:31px; width:158px;'>Beth»Aven,</span><span class='ocrx_word' style='position:absolute; top:1513px; left:658px; height:27px; width:50px;'>das</span><span class='ocrx_word' style='position:absolute; top:1513px; left:726px; height:35px; width:167px;'>Götzenhaus,</span><span class='ocrx_word' style='position:absolute; top:1513px; left:914px; height:33px; width:65px;'>oder,</span><span class='ocrx_word' style='position:absolute; top:1514px; left:997px; height:26px; width:32px;'>da</span><span class='ocrx_word' style='position:absolute; top:1520px; left:1048px; height:21px; width:62px;'>man</span><span class='ocr_par' style='position:absolute; top:1555px; left:56px; height:78px; width:1054px;' ></span><span class='ocr_line' style='position:absolute; top:1555px; left:91px; height:33px; width:540px;' ></span><span class='ocrx_word' style='position:absolute; top:1558px; left:91px; height:26px; width:58px;'>dem</span><span class='ocrx_word' style='position:absolute; top:1557px; left:169px; height:26px; width:85px;'>Eiteln</span><span class='ocrx_word' style='position:absolute; top:1556px; left:275px; height:31px; width:178px;'>nachwandelt.</span><span class='ocrx_word' style='position:absolute; top:1555px; left:473px; height:33px; width:59px;'>Hos.</span><span class='ocrx_word' style='position:absolute; top:1558px; left:549px; height:26px; width:22px;'>4,</span><span class='ocrx_word' style='position:absolute; top:1558px; left:593px; height:23px; width:38px;'>15.</span><span class='ocr_line' style='position:absolute; top:1597px; left:56px; height:36px; width:1054px;' ></span><span class='ocrx_word' style='position:absolute; top:1597px; left:56px; height:36px; width:186px;'>Augustus.</span><span class='ocrx_word' style='position:absolute; top:1597px; left:287px; height:34px; width:132px;'>Würdig</span><span class='ocrx_word' style='position:absolute; top:1598px; left:448px; height:32px; width:129px;'>verehrt</span><span class='ocrx_word' style='position:absolute; top:1598px; left:608px; height:26px; width:60px;'>und</span><span class='ocrx_word' style='position:absolute; top:1599px; left:704px; height:33px; width:172px;'>angebetet</span><span class='ocrx_word' style='position:absolute; top:1605px; left:908px; height:27px; width:36px;'>zu</span><span class='ocrx_word' style='position:absolute; top:1599px; left:978px; height:28px; width:132px;'>werden.</span><span class='ocr_par' style='position:absolute; top:1640px; left:92px; height:34px; width:1016px;' ></span><span class='ocr_line' style='position:absolute; top:1640px; left:92px; height:34px; width:1016px;' ></span><span class='ocrx_word' style='position:absolute; top:1640px; left:92px; height:34px; width:97px;'>Diesen</span><span class='ocrx_word' style='position:absolute; top:1640px; left:211px; height:27px; width:100px;'>Namen</span><span class='ocrx_word' style='position:absolute; top:1641px; left:340px; height:33px; width:46px;'>gab</span><span class='ocrx_word' style='position:absolute; top:1641px; left:413px; height:26px; width:46px;'>das</span><span class='ocrx_word' style='position:absolute; top:1640px; left:487px; height:32px; width:109px;'>romische</span><span class='ocrx_word' style='position:absolute; top:1640px; left:616px; height:27px; width:62px;'>Voll</span><span class='ocrx_word' style='position:absolute; top:1641px; left:706px; height:26px; width:52px;'>dem</span><span class='ocrx_word' style='position:absolute; top:1641px; left:781px; height:31px; width:88px;'>Kaiser</span><span class='ocrx_word' style='position:absolute; top:1641px; left:887px; height:31px; width:143px;'>Octavian,</span><span class='ocrx_word' style='position:absolute; top:1642px; left:1058px; height:26px; width:50px;'>und</span><span class='ocr_par' style='position:absolute; top:1682px; left:93px; height:34px; width:1015px;' ></span><span class='ocr_line' style='position:absolute; top:1682px; left:93px; height:34px; width:1015px;' ></span><span class='ocrx_word' style='position:absolute; top:1683px; left:93px; height:27px; width:49px;'>alle</span><span class='ocrx_word' style='position:absolute; top:1683px; left:161px; height:32px; width:130px;'>romischen</span><span class='ocrx_word' style='position:absolute; top:1683px; left:310px; height:32px; width:86px;'>Kaiser</span><span class='ocrx_word' style='position:absolute; top:1683px; left:416px; height:30px; width:79px;'>haben</span><span class='ocrx_word' style='position:absolute; top:1682px; left:514px; height:32px; width:80px;'>diesen</span><span class='ocrx_word' style='position:absolute; top:1682px; left:614px; height:27px; width:95px;'>Namen</span><span class='ocrx_word' style='position:absolute; top:1683px; left:728px; height:33px; width:170px;'>beibehalten,</span><span class='ocrx_word' style='position:absolute; top:1682px; left:917px; height:33px; width:47px;'>daß</span><span class='ocrx_word' style='position:absolute; top:1682px; left:983px; height:33px; width:31px;'>sie</span><span class='ocrx_word' style='position:absolute; top:1692px; left:1033px; height:18px; width:75px;'>«au,-</span><span class='ocr_par' style='position:absolute; top:1724px; left:55px; height:119px; width:1052px;' ></span><span class='ocr_line' style='position:absolute; top:1724px; left:90px; height:35px; width:907px;' ></span><span class='ocrx_word' style='position:absolute; top:1733px; left:90px; height:25px; width:52px;'>per</span><span class='ocrx_word' style='position:absolute; top:1727px; left:160px; height:31px; width:124px;'>2ußr>«ti,</span><span class='ocrx_word' style='position:absolute; top:1726px; left:304px; height:25px; width:22px;'>d.</span><span class='ocrx_word' style='position:absolute; top:1724px; left:345px; height:26px; width:15px;'>i,</span><span class='ocrx_word' style='position:absolute; top:1725px; left:382px; height:32px; width:80px;'>allzeit</span><span class='ocrx_word' style='position:absolute; top:1725px; left:482px; height:31px; width:99px;'>Mehrer</span><span class='ocrx_word' style='position:absolute; top:1725px; left:600px; height:26px; width:43px;'>des</span><span class='ocrx_word' style='position:absolute; top:1724px; left:664px; height:32px; width:86px;'>Reichs</span><span class='ocrx_word' style='position:absolute; top:1725px; left:770px; height:34px; width:115px;'>geheißen</span><span class='ocrx_word' style='position:absolute; top:1725px; left:904px; height:33px; width:93px;'>haben.</span><span class='ocr_line' style='position:absolute; top:1766px; left:55px; height:34px; width:897px;' ></span><span class='ocrx_word' style='position:absolute; top:1766px; left:55px; height:34px; width:121px;'>Avith.</span><span class='ocrx_word' style='position:absolute; top:1767px; left:212px; height:32px; width:112px;'>Haufe.</span><span class='ocrx_word' style='position:absolute; top:1766px; left:361px; height:27px; width:63px;'>Eine</span><span class='ocrx_word' style='position:absolute; top:1766px; left:443px; height:28px; width:81px;'>Stadt</span><span class='ocrx_word' style='position:absolute; top:1768px; left:542px; height:25px; width:27px;'>in</span><span class='ocrx_word' style='position:absolute; top:1767px; left:587px; height:32px; width:122px;'>Idumäa.</span><span class='ocrx_word' style='position:absolute; top:1769px; left:732px; height:24px; width:10px;'>1</span><span class='ocrx_word' style='position:absolute; top:1767px; left:763px; height:32px; width:68px;'>Mos.</span><span class='ocrx_word' style='position:absolute; top:1769px; left:849px; height:29px; width:43px;'>36,</span><span class='ocrx_word' style='position:absolute; top:1769px; left:910px; height:26px; width:42px;'>35.</span><span class='ocr_line' style='position:absolute; top:1809px; left:57px; height:34px; width:1050px;' ></span><span class='ocrx_word' style='position:absolute; top:1809px; left:57px; height:30px; width:125px;'>Aulon.</span><span class='ocrx_word' style='position:absolute; top:1809px; left:236px; height:34px; width:209px;'>Ausgehöhlt.</span><span class='ocrx_word' style='position:absolute; top:1809px; left:491px; height:27px; width:62px;'>Das</span><span class='ocrx_word' style='position:absolute; top:1809px; left:581px; height:34px; width:72px;'>große</span><span class='ocrx_word' style='position:absolute; top:1809px; left:681px; height:32px; width:76px;'>Thal,</span><span class='ocrx_word' style='position:absolute; top:1810px; left:791px; height:27px; width:80px;'>worin</span><span class='ocrx_word' style='position:absolute; top:1810px; left:897px; height:27px; width:38px;'>die</span><span class='ocrx_word' style='position:absolute; top:1809px; left:962px; height:34px; width:145px;'>berühmten</span><span class='ocr_par' style='position:absolute; top:1851px; left:89px; height:36px; width:1017px;' ></span><span class='ocr_line' style='position:absolute; top:1851px; left:89px; height:36px; width:1017px;' ></span><span class='ocrx_word' style='position:absolute; top:1853px; left:89px; height:29px; width:97px;'>Städte</span><span class='ocrx_word' style='position:absolute; top:1852px; left:204px; height:34px; width:111px;'>Vethsan</span><span class='ocrx_word' style='position:absolute; top:1852px; left:334px; height:27px; width:56px;'>oder</span><span class='ocrx_word' style='position:absolute; top:1852px; left:409px; height:34px; width:179px;'>Scythopolis,</span><span class='ocrx_word' style='position:absolute; top:1851px; left:605px; height:34px; width:127px;'>Tlberias,</span><span class='ocrx_word' style='position:absolute; top:1852px; left:751px; height:35px; width:111px;'>Iericho,</span><span class='ocrx_word' style='position:absolute; top:1851px; left:881px; height:29px; width:48px;'>das</span><span class='ocrx_word' style='position:absolute; top:1853px; left:949px; height:27px; width:64px;'>todte</span><span class='ocrx_word' style='position:absolute; top:1852px; left:1033px; height:28px; width:73px;'>Meer</span></div>"
102
+ end
103
+ end
104
+
105
+ describe 'convinience methods for example' do
106
+ before(:each) do
107
+ @output_page ||= OCRPage.new 'data/test.html', 'data/test.png'
108
+ end
109
+
110
+ it 'should be abble to find words enclosed by an ocr_box' do
111
+ words = @output_page.enclosed_words( HOCRBox.new 0,0, 300,300 )
112
+ words.length.should == 6
113
+ end
114
+ end
115
+
116
+ end
@@ -0,0 +1,34 @@
1
+ require_relative '../lib/rhocr'
2
+
3
+ describe RHOCR do
4
+ # Adds a big folder, takes some time, set long to true to test
5
+ long = false
6
+ if long then
7
+ it 'should create ocr_pages given a folder #add_folder' do
8
+ start = Time.now()
9
+ test_folder = "data/bsb10413454/hocr/*.html"
10
+ @rhocr_doc.add_folder(test_folder)
11
+ puts " It took #{ (Time.now - start).to_i } seconds to process pages"
12
+ end
13
+ end
14
+
15
+ before(:each) do
16
+ @rhocr_doc ||= RHOCR.new.add_folder "data/*.html"
17
+ end
18
+
19
+ describe 'methods to iterate' do
20
+ it 'should have lines' do
21
+ @rhocr_doc.lines.length.should == 237
22
+ end
23
+
24
+ it 'should have words' do
25
+ @rhocr_doc.words.length.should == 2071
26
+ end
27
+
28
+ it 'should support common iterator methods throug enumerable for word an line arrays' do
29
+ @rhocr_doc.words.respond_to?(:each_cons).should be_true
30
+ @rhocr_doc.lines.respond_to?(:map).should be_true
31
+ end
32
+ end
33
+
34
+ end