11class Rect :
2-
32 """
43 Class defines the rectangle of an element in the Abbyy document
54 """
65
76 def __init__ (self , l : int , t : int , r : int , b : int ):
8-
97 """
108 Constructs a Rect class
119 :param l: length
@@ -36,7 +34,6 @@ def __str__(self):
3634
3735
3836class Book :
39-
4037 """
4138 Main class; contains all subelements: book -> page -> block -> par -> line -> format
4239 """
@@ -64,7 +61,6 @@ def __str__(self):
6461 s += " " + format .__str__ ()
6562
6663 def getBlocks (self ) -> []:
67-
6864 """
6965 :return: All the blocks of this book
7066 """
@@ -78,7 +74,6 @@ def getBlocks(self) -> []:
7874 return blocks
7975
8076 def getPars (self ) -> []:
81-
8277 """
8378 :return: All the paragraphs of this book
8479 """
@@ -93,7 +88,6 @@ def getPars(self) -> []:
9388 return pars
9489
9590 def getLines (self ) -> []:
96-
9791 """
9892 :return: All the lines of this book
9993 """
@@ -109,7 +103,6 @@ def getLines(self) -> []:
109103 return lines
110104
111105 def getFormats (self ) -> []:
112-
113106 """
114107 :return: All the chars of this book
115108 """
@@ -127,7 +120,6 @@ def getFormats(self) -> []:
127120
128121
129122class Page :
130-
131123 """
132124 Subelement of the book class; contains a list with the subelement block
133125 """
@@ -141,7 +133,6 @@ def __init__(
141133 imgFile : str ,
142134 xmlFile : str ,
143135 ):
144-
145136 """
146137 Construct a page class with an empty block list
147138 :param width: The width of the page (in pixel)
@@ -178,7 +169,6 @@ def __str__(self):
178169 )
179170
180171 def getPars (self ) -> []:
181-
182172 """
183173 :return: All the pars of this page
184174 """
@@ -192,7 +182,6 @@ def getPars(self) -> []:
192182 return pars
193183
194184 def getLines (self ) -> []:
195-
196185 """
197186 :return: All the lines of this page
198187 """
@@ -207,7 +196,6 @@ def getLines(self) -> []:
207196 return lines
208197
209198 def getFormats (self ) -> []:
210-
211199 """
212200 :return: All the Format Tags of this page
213201 """
@@ -224,13 +212,11 @@ def getFormats(self) -> []:
224212
225213
226214class Block :
227-
228215 """
229216 Subelement of the page class; contains a list with the subelement par
230217 """
231218
232219 def __init__ (self , blockType : str , blockName : str , rect : Rect ):
233-
234220 """
235221 Construct a block class with an empty line list
236222 :param blockType: The type of a block (further information in the abbyy doc)
@@ -246,7 +232,6 @@ def __str__(self):
246232 return "Block:[BlockType={}, rect={}]" .format (self .blockType , self .rect )
247233
248234 def getLines (self ) -> []:
249-
250235 """
251236 :return: All the lines of this block
252237 """
@@ -260,7 +245,6 @@ def getLines(self) -> []:
260245 return lines
261246
262247 def getFormats (self ) -> []:
263-
264248 """
265249 :return: All the Format Tags of this block
266250 """
@@ -281,7 +265,6 @@ class Par:
281265 """
282266
283267 def __init__ (self , align : str , startIndent : int , lineSpacing : int ):
284-
285268 """
286269 Construct a Paragraph Class with an empty line list
287270 :param align:
@@ -306,7 +289,6 @@ def __str__(self):
306289 )
307290
308291 def getFormats (self ) -> []:
309-
310292 """
311293 :return: All the Format Tags of the Paragraph
312294 """
@@ -321,13 +303,11 @@ def getFormats(self) -> []:
321303
322304
323305class Line :
324-
325306 """ "
326307 Subelement of the par class; contains a list with the subelement format
327308 """
328309
329310 def __init__ (self , baseline : int , rect : Rect ):
330-
331311 """
332312 Construct a line class with an empty char list
333313 :param baseline: ???
0 commit comments