ocrd_models.ocrd_page module

API to PAGE-XML, generated with generateDS from XML schema.

class ocrd_models.ocrd_page.AdvertRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing advertisements. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The background colour of the region

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='AdvertRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='AdvertRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='AdvertRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_ns_prefix_()[source]
get_orientation()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
subclass = None
superclass

alias of RegionType

validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.AlternativeImageType(filename=None, comments=None, conf=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Confidence value (between 0 and 1)

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='AlternativeImageType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='AlternativeImageType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='AlternativeImageType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_comments()[source]
get_conf()[source]
get_filename()[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_comments(comments)[source]
set_conf(conf)[source]
set_filename(filename)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
validate_ConfSimpleType(value)[source]
class ocrd_models.ocrd_page.BaselineType(points=None, conf=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Confidence value (between 0 and 1)

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BaselineType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='BaselineType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BaselineType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_conf()[source]
get_ns_prefix_()[source]
get_points()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_conf(conf)[source]
set_ns_prefix_(ns_prefix)[source]
set_points(points)[source]
subclass = None
superclass = None
validate_ConfSimpleType(value)[source]
validate_PointsType(value)[source]
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']]
class ocrd_models.ocrd_page.BorderType(Coords=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Border of the actual page (if the scanned image contains parts not belonging to the page).

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BorderType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='BorderType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BorderType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Coords()[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_Coords(Coords)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.ChartRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, type_=None, numColours=None, bgColour=None, embText=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing charts or graphs of any type, should be marked as chart regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The type of chart in the region An approximation of the number of colours used in the region The background colour of the region Specifies whether the region also contains text

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='ChartRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='ChartRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='ChartRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_embText()[source]
get_ns_prefix_()[source]
get_numColours()[source]
get_orientation()[source]
get_type()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_embText(embText)[source]
set_ns_prefix_(ns_prefix)[source]
set_numColours(numColours)[source]
set_orientation(orientation)[source]
set_type(type_)[source]
subclass = None
superclass

alias of RegionType

validate_ChartTypeSimpleType(value)[source]
validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.ChemRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing chemical formulas. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The background colour of the region

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='ChemRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='ChemRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_ns_prefix_()[source]
get_orientation()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
subclass = None
superclass

alias of RegionType

validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.CoordsType(points=None, conf=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Polygon outline of the element as a path of points. No points may lie outside the outline of its parent, which in the case of Border is the bounding rectangle of the root image. Paths are closed by convention, i.e. the last point logically connects with the first (and at least 3 points are required to span an area). Paths must be planar (i.e. must not self-intersect). Confidence value (between 0 and 1)

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='CoordsType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='CoordsType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='CoordsType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_conf()[source]
get_ns_prefix_()[source]
get_points()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_conf(conf)[source]
set_ns_prefix_(ns_prefix)[source]
set_points(points)[source]
subclass = None
superclass = None
validate_ConfSimpleType(value)[source]
validate_PointsType(value)[source]
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']]
class ocrd_models.ocrd_page.CustomRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, type_=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing content that is not covered by the default types (text, graphic, image, line drawing, chart, table, separator, maths, map, music, chem, advert, noise, unknown). Information on the type of content represented by this region

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='CustomRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='CustomRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_ns_prefix_()[source]
get_type()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_ns_prefix_(ns_prefix)[source]
set_type(type_)[source]
subclass = None
superclass

alias of RegionType

class ocrd_models.ocrd_page.GlyphType(id=None, ligature=None, symbol=None, script=None, production=None, custom=None, comments=None, AlternativeImage=None, Coords=None, Graphemes=None, TextEquiv=None, TextStyle=None, UserDefined=None, Labels=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

The script used for the glyph Overrides the production attribute of the parent word / text line / text region. For generic use

add_AlternativeImage(value)[source]
add_Labels(value)[source]
add_TextEquiv(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GlyphType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GlyphType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GlyphType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_AlternativeImage()[source]
get_Coords()[source]
get_Graphemes()[source]
get_Labels()[source]
get_TextEquiv()[source]
get_TextStyle()[source]
get_UserDefined()[source]
get_comments()[source]
get_custom()[source]
get_id()[source]
get_ligature()[source]
get_ns_prefix_()[source]
get_production()[source]
get_script()[source]
get_symbol()[source]
hasContent_()[source]
insert_AlternativeImage_at(index, value)[source]
insert_Labels_at(index, value)[source]
insert_TextEquiv_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_AlternativeImage_at(index, value)[source]
replace_Labels_at(index, value)[source]
replace_TextEquiv_at(index, value)[source]
set_AlternativeImage(AlternativeImage)[source]
set_Coords(Coords)[source]
set_Graphemes(Graphemes)[source]
set_Labels(Labels)[source]
set_TextEquiv(TextEquiv)[source]
set_TextStyle(TextStyle)[source]
set_UserDefined(UserDefined)[source]
set_comments(comments)[source]
set_custom(custom)[source]
set_id(id)[source]
set_ligature(ligature)[source]
set_ns_prefix_(ns_prefix)[source]
set_production(production)[source]
set_script(script)[source]
set_symbol(symbol)[source]
subclass = None
superclass = None
validate_ProductionSimpleType(value)[source]
validate_ScriptSimpleType(value)[source]
class ocrd_models.ocrd_page.GraphemeBaseType(id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, extensiontype_=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Base type for graphemes, grapheme groups and non-printing characters. Order index of grapheme, group, or non-printing character within the parent container (graphemes or glyph or grapheme group). Type of character represented by the grapheme, group, or non-printing character element. For generic useFor generic use

add_TextEquiv(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeBaseType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GraphemeBaseType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeBaseType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_TextEquiv()[source]
get_charType()[source]
get_comments()[source]
get_custom()[source]
get_extensiontype_()[source]
get_id()[source]
get_index()[source]
get_ligature()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_TextEquiv_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_TextEquiv_at(index, value)[source]
set_TextEquiv(TextEquiv)[source]
set_charType(charType)[source]
set_comments(comments)[source]
set_custom(custom)[source]
set_extensiontype_(extensiontype_)[source]
set_id(id)[source]
set_index(index)[source]
set_ligature(ligature)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.GraphemeGroupType(id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, Grapheme=None, NonPrintingChar=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GraphemeBaseType

add_Grapheme(value)[source]
add_NonPrintingChar(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeGroupType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GraphemeGroupType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeGroupType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Grapheme()[source]
get_NonPrintingChar()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_Grapheme_at(index, value)[source]
insert_NonPrintingChar_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Grapheme_at(index, value)[source]
replace_NonPrintingChar_at(index, value)[source]
set_Grapheme(Grapheme)[source]
set_NonPrintingChar(NonPrintingChar)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass

alias of GraphemeBaseType

class ocrd_models.ocrd_page.GraphemeType(id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, Coords=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GraphemeBaseType

Represents a sub-element of a glyph. Smallest graphical unit that can be assigned a Unicode code point.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GraphemeType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Coords()[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_Coords(Coords)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass

alias of GraphemeBaseType

class ocrd_models.ocrd_page.GraphemesType(Grapheme=None, NonPrintingChar=None, GraphemeGroup=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Container for graphemes, grapheme groups and non-printing characters.

add_Grapheme(value)[source]
add_GraphemeGroup(value)[source]
add_NonPrintingChar(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemesType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GraphemesType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemesType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Grapheme()[source]
get_GraphemeGroup()[source]
get_NonPrintingChar()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_GraphemeGroup_at(index, value)[source]
insert_Grapheme_at(index, value)[source]
insert_NonPrintingChar_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_GraphemeGroup_at(index, value)[source]
replace_Grapheme_at(index, value)[source]
replace_NonPrintingChar_at(index, value)[source]
set_Grapheme(Grapheme)[source]
set_GraphemeGroup(GraphemeGroup)[source]
set_NonPrintingChar(NonPrintingChar)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.GraphicRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, type_=None, numColours=None, embText=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing simple graphics, such as a company logo, should be marked as graphic regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The type of graphic in the region An approximation of the number of colours used in the region Specifies whether the region also contains text.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='GraphicRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GraphicRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='GraphicRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_embText()[source]
get_ns_prefix_()[source]
get_numColours()[source]
get_orientation()[source]
get_type()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_embText(embText)[source]
set_ns_prefix_(ns_prefix)[source]
set_numColours(numColours)[source]
set_orientation(orientation)[source]
set_type(type_)[source]
subclass = None
superclass

alias of RegionType

validate_GraphicsTypeSimpleType(value)[source]
class ocrd_models.ocrd_page.GridPointsType(index=None, points=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Points with x,y coordinates. The grid row index

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridPointsType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GridPointsType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridPointsType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_index()[source]
get_ns_prefix_()[source]
get_points()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_index(index)[source]
set_ns_prefix_(ns_prefix)[source]
set_points(points)[source]
subclass = None
superclass = None
validate_PointsType(value)[source]
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']]
class ocrd_models.ocrd_page.GridType(GridPoints=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Matrix of grid points defining the table grid on the page.

add_GridPoints(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='GridType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_GridPoints()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_GridPoints_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_GridPoints_at(index, value)[source]
set_GridPoints(GridPoints)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.ImageRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, colourDepth=None, bgColour=None, embText=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

An image is considered to be more intricate and complex than a graphic. These can be photos or drawings. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The colour bit depth required for the region The background colour of the region Specifies whether the region also contains text

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='ImageRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='ImageRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_colourDepth()[source]
get_embText()[source]
get_ns_prefix_()[source]
get_orientation()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_colourDepth(colourDepth)[source]
set_embText(embText)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
subclass = None
superclass

alias of RegionType

validate_ColourDepthSimpleType(value)[source]
validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.LabelType(value=None, type_=None, comments=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Semantic label The label / tag (e.g. ‘person’). Can be an RDF resource identifier (e.g. object of an RDF triple). Additional information on the label (e.g. ‘YYYY-mm-dd’ for a date label). Can be used as predicate of an RDF triple.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='LabelType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_comments()[source]
get_ns_prefix_()[source]
get_type()[source]
get_value()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_comments(comments)[source]
set_ns_prefix_(ns_prefix)[source]
set_type(type_)[source]
set_value(value)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.LabelsType(externalModel=None, externalId=None, prefix=None, comments=None, Label=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Reference to external model / ontology / schema E.g. an RDF resource identifier (to be used as subject or object of an RDF triple) Prefix for all labels (e.g. first part of an URI)

add_Label(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelsType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='LabelsType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelsType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Label()[source]
get_comments()[source]
get_externalId()[source]
get_externalModel()[source]
get_ns_prefix_()[source]
get_prefix()[source]
hasContent_()[source]
insert_Label_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Label_at(index, value)[source]
set_Label(Label)[source]
set_comments(comments)[source]
set_externalId(externalId)[source]
set_externalModel(externalModel)[source]
set_ns_prefix_(ns_prefix)[source]
set_prefix(prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.LayerType(id=None, zIndex=None, caption=None, RegionRef=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

add_RegionRef(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayerType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='LayerType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayerType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_RegionRef()[source]
get_caption()[source]
get_id()[source]
get_ns_prefix_()[source]
get_zIndex()[source]
hasContent_()[source]
insert_RegionRef_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_RegionRef_at(index, value)[source]
set_RegionRef(RegionRef)[source]
set_caption(caption)[source]
set_id(id)[source]
set_ns_prefix_(ns_prefix)[source]
set_zIndex(zIndex)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.LayersType(Layer=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Can be used to express the z-index of overlapping regions. An element with a greater z-index is always in front of another element with lower z-index.

add_Layer(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayersType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='LayersType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayersType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Layer()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_Layer_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Layer_at(index, value)[source]
set_Layer(Layer)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.LineDrawingRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, penColour=None, bgColour=None, embText=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

A line drawing is a single colour illustration without solid areas. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The pen (foreground) colour of the region The background colour of the region Specifies whether the region also contains text

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='LineDrawingRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='LineDrawingRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='LineDrawingRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_embText()[source]
get_ns_prefix_()[source]
get_orientation()[source]
get_penColour()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_embText(embText)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
set_penColour(penColour)[source]
subclass = None
superclass

alias of RegionType

validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.MapRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing maps. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='MapRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='MapRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='MapRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_ns_prefix_()[source]
get_orientation()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
subclass = None
superclass

alias of RegionType

class ocrd_models.ocrd_page.MathsRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing equations and mathematical symbols should be marked as maths regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The background colour of the region

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='MathsRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='MathsRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='MathsRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_ns_prefix_()[source]
get_orientation()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
subclass = None
superclass

alias of RegionType

validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.MetadataItemType(type_=None, name=None, value=None, date=None, Labels=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Type of metadata (e.g. author) E.g. imagePhotometricInterpretation E.g. RGB

add_Labels(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='MetadataItemType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='MetadataItemType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='MetadataItemType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Labels()[source]
get_date()[source]
get_name()[source]
get_ns_prefix_()[source]
get_type()[source]
get_value()[source]
hasContent_()[source]
insert_Labels_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Labels_at(index, value)[source]
set_Labels(Labels)[source]
set_date(date)[source]
set_name(name)[source]
set_ns_prefix_(ns_prefix)[source]
set_type(type_)[source]
set_value(value)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.MetadataType(externalRef=None, Creator=None, Created=None, LastChange=None, Comments=None, UserDefined=None, MetadataItem=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

External reference of any kind

add_MetadataItem(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15" xmlns:None="http://www.w3.org/2001/XMLSchema" ', name_='MetadataType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='MetadataType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15" xmlns:None="http://www.w3.org/2001/XMLSchema" ', name_='MetadataType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Comments()[source]
get_Created()[source]
get_Creator()[source]
get_LastChange()[source]
get_MetadataItem()[source]
get_UserDefined()[source]
get_externalRef()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_MetadataItem_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_MetadataItem_at(index, value)[source]
set_Comments(Comments)[source]
set_Created(Created)[source]
set_Creator(Creator)[source]
set_LastChange(LastChange)[source]
set_MetadataItem(MetadataItem)[source]
set_UserDefined(UserDefined)[source]
set_externalRef(externalRef)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.MusicRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Regions containing musical notations. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The background colour of the region

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='MusicRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='MusicRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='MusicRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_ns_prefix_()[source]
get_orientation()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
subclass = None
superclass

alias of RegionType

validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.NoiseRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Noise regions are regions where no real data lies, only false data created by artifacts on the document or scanner noise.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='NoiseRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='NoiseRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='NoiseRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = []
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass

alias of RegionType

class ocrd_models.ocrd_page.NonPrintingCharType(id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GraphemeBaseType

A glyph component without visual representation but with Unicode code point. Non-visual / non-printing / control character. Part of grapheme container (of glyph) or grapheme sub group.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='NonPrintingCharType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='NonPrintingCharType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='NonPrintingCharType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = []
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass

alias of GraphemeBaseType

class ocrd_models.ocrd_page.OrderedGroupIndexedType(id=None, regionRef=None, index=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Indexed group containing ordered elements Optional link to a parent region of nested regions. The parent region doubles as reading order group. Only the nested regions should be allowed as group members. Position (order number) of this item within the current hierarchy level. Is this group a continuation of another group (from previous column or page, for example)? For generic use

add_Labels(value)[source]
add_OrderedGroupIndexed(value)[source]
add_RegionRefIndexed(value)[source]
add_UnorderedGroupIndexed(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
clear_AllIndexed()[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupIndexedType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='OrderedGroupIndexedType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupType', fromsubclass_=False, pretty_print=True)[source]
extend_AllIndexed(elements, validate_continuity=False)[source]

Add all elements in list elements, respecting @index order. With validate_continuity, check that all new elements come after all old elements (or raise an exception). Otherwise, ensure this condition silently (by increasing @index accordingly).

static factory(*args_, **kwargs_)[source]
get_AllIndexed(classes=None, index_sort=True)[source]

Get all indexed children sorted by their @index.

Parameters
  • classes (list) – Type of children to return. Default: [‘RegionRef’, ‘OrderedGroup’, ‘UnorderedGroup’]

  • index_sort (boolean) – Whether to sort by @index

get_Labels()[source]
get_OrderedGroupIndexed()[source]
get_RegionRefIndexed()[source]
get_UnorderedGroupIndexed()[source]
get_UserDefined()[source]
get_caption()[source]
get_comments()[source]
get_continuation()[source]
get_custom()[source]
get_id()[source]
get_index()[source]
get_ns_prefix_()[source]
get_regionRef()[source]
get_type()[source]
hasContent_()[source]
insert_Labels_at(index, value)[source]
insert_OrderedGroupIndexed_at(index, value)[source]
insert_RegionRefIndexed_at(index, value)[source]
insert_UnorderedGroupIndexed_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Labels_at(index, value)[source]
replace_OrderedGroupIndexed_at(index, value)[source]
replace_RegionRefIndexed_at(index, value)[source]
replace_UnorderedGroupIndexed_at(index, value)[source]
set_Labels(Labels)[source]
set_OrderedGroupIndexed(OrderedGroupIndexed)[source]
set_RegionRefIndexed(RegionRefIndexed)[source]
set_UnorderedGroupIndexed(UnorderedGroupIndexed)[source]
set_UserDefined(UserDefined)[source]
set_caption(caption)[source]
set_comments(comments)[source]
set_continuation(continuation)[source]
set_custom(custom)[source]
set_id(id)[source]
set_index(index)[source]
set_ns_prefix_(ns_prefix)[source]
set_regionRef(regionRef)[source]
set_type(type_)[source]
sort_AllIndexed(validate_uniqueness=True)[source]

Sort all indexed children in-place.

subclass = None
superclass = None
validate_GroupTypeSimpleType(value)[source]
class ocrd_models.ocrd_page.OrderedGroupType(id=None, regionRef=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Numbered group (contains ordered elements) Optional link to a parent region of nested regions. The parent region doubles as reading order group. Only the nested regions should be allowed as group members. Is this group a continuation of another group (from previous column or page, for example)? For generic use

add_Labels(value)[source]
add_OrderedGroupIndexed(value)[source]
add_RegionRefIndexed(value)[source]
add_UnorderedGroupIndexed(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
clear_AllIndexed()[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='OrderedGroupType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupType', fromsubclass_=False, pretty_print=True)[source]
extend_AllIndexed(elements, validate_continuity=False)[source]

Add all elements in list elements, respecting @index order. With validate_continuity, check that all new elements come after all old elements (or raise an exception). Otherwise, ensure this condition silently (by increasing @index accordingly).

static factory(*args_, **kwargs_)[source]
get_AllIndexed(classes=None, index_sort=True)[source]

Get all indexed children sorted by their @index.

Parameters
  • classes (list) – Type of children to return. Default: [‘RegionRef’, ‘OrderedGroup’, ‘UnorderedGroup’]

  • index_sort (boolean) – Whether to sort by @index

get_Labels()[source]
get_OrderedGroupIndexed()[source]
get_RegionRefIndexed()[source]
get_UnorderedGroupIndexed()[source]
get_UserDefined()[source]
get_caption()[source]
get_comments()[source]
get_continuation()[source]
get_custom()[source]
get_id()[source]
get_ns_prefix_()[source]
get_regionRef()[source]
get_type()[source]
hasContent_()[source]
insert_Labels_at(index, value)[source]
insert_OrderedGroupIndexed_at(index, value)[source]
insert_RegionRefIndexed_at(index, value)[source]
insert_UnorderedGroupIndexed_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Labels_at(index, value)[source]
replace_OrderedGroupIndexed_at(index, value)[source]
replace_RegionRefIndexed_at(index, value)[source]
replace_UnorderedGroupIndexed_at(index, value)[source]
set_Labels(Labels)[source]
set_OrderedGroupIndexed(OrderedGroupIndexed)[source]
set_RegionRefIndexed(RegionRefIndexed)[source]
set_UnorderedGroupIndexed(UnorderedGroupIndexed)[source]
set_UserDefined(UserDefined)[source]
set_caption(caption)[source]
set_comments(comments)[source]
set_continuation(continuation)[source]
set_custom(custom)[source]
set_id(id)[source]
set_ns_prefix_(ns_prefix)[source]
set_regionRef(regionRef)[source]
set_type(type_)[source]
sort_AllIndexed(validate_uniqueness=True)[source]

Sort all indexed children in-place.

subclass = None
superclass = None
validate_GroupTypeSimpleType(value)[source]
class ocrd_models.ocrd_page.PageType(imageFilename=None, imageWidth=None, imageHeight=None, imageXResolution=None, imageYResolution=None, imageResolutionUnit=None, custom=None, orientation=None, type_=None, primaryLanguage=None, secondaryLanguage=None, primaryScript=None, secondaryScript=None, readingDirection=None, textLineOrder=None, conf=None, AlternativeImage=None, Border=None, PrintSpace=None, ReadingOrder=None, Layers=None, Relations=None, TextStyle=None, UserDefined=None, Labels=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, MapRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Contains the image file name including the file extension. Specifies the width of the image.Specifies the height of the image.Specifies the image resolution in width.Specifies the image resolution in height. Specifies the unit of the resolution information referring to a standardised unit of measurement (pixels per inch, pixels per centimeter or other). For generic use The angle the rectangle encapsulating the page (or its Border) has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). (The rotated image can be further referenced via “AlternativeImage”.) Range: -179.999,180 The type of the page within the document (e.g. cover page). The primary language used in the page (lower-level definitions override the page-level definition). The secondary language used in the page (lower-level definitions override the page-level definition). The primary script used in the page (lower-level definitions override the page-level definition). The secondary script used in the page (lower-level definitions override the page-level definition). The direction in which text within lines should be read (order of words and characters), in addition to “textLineOrder” (lower-level definitions override the page-level definition). The order of text lines within a block, in addition to “readingDirection” (lower-level definitions override the page-level definition). Confidence value for whole page (between 0 and 1)

add_AdvertRegion(value)[source]
add_AlternativeImage(value)[source]
add_ChartRegion(value)[source]
add_ChemRegion(value)[source]
add_CustomRegion(value)[source]
add_GraphicRegion(value)[source]
add_ImageRegion(value)[source]
add_Labels(value)[source]
add_LineDrawingRegion(value)[source]
add_MapRegion(value)[source]
add_MathsRegion(value)[source]
add_MusicRegion(value)[source]
add_NoiseRegion(value)[source]
add_SeparatorRegion(value)[source]
add_TableRegion(value)[source]
add_TextRegion(value)[source]
add_UnknownRegion(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PageType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='PageType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PageType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_AdvertRegion()[source]
get_AllRegions(classes=None, order='document', depth=0)[source]

Get all the *Region element or only those provided by classes. Returned in document order unless order is reading-order :param classes: :type classes: list :param order: return regions sorted by document order (document, default) or by

reading order with regions not in the reading order at the end of the returned list (reading-order) or regions not in the reading order omitted (reading-order-only)

Parameters

depth (int) – 0

For example, to get all text anywhere on the page in reading order, use:

'\n'.join(line.get_TextEquiv()[0].Unicode
          for region in page.get_AllRegions(classes=['Text'], depth=0, order='reading-order')
          for line in region.get_TextLine())
get_AlternativeImage()[source]
get_Border()[source]
get_ChartRegion()[source]
get_ChemRegion()[source]
get_CustomRegion()[source]
get_GraphicRegion()[source]
get_ImageRegion()[source]
get_Labels()[source]
get_Layers()[source]
get_LineDrawingRegion()[source]
get_MapRegion()[source]
get_MathsRegion()[source]
get_MusicRegion()[source]
get_NoiseRegion()[source]
get_PrintSpace()[source]
get_ReadingOrder()[source]
get_Relations()[source]
get_SeparatorRegion()[source]
get_TableRegion()[source]
get_TextRegion()[source]
get_TextStyle()[source]
get_UnknownRegion()[source]
get_UserDefined()[source]
get_conf()[source]
get_custom()[source]
get_imageFilename()[source]
get_imageHeight()[source]
get_imageResolutionUnit()[source]
get_imageWidth()[source]
get_imageXResolution()[source]
get_imageYResolution()[source]
get_ns_prefix_()[source]
get_orientation()[source]
get_primaryLanguage()[source]
get_primaryScript()[source]
get_readingDirection()[source]
get_secondaryLanguage()[source]
get_secondaryScript()[source]
get_textLineOrder()[source]
get_type()[source]
hasContent_()[source]
insert_AdvertRegion_at(index, value)[source]
insert_AlternativeImage_at(index, value)[source]
insert_ChartRegion_at(index, value)[source]
insert_ChemRegion_at(index, value)[source]
insert_CustomRegion_at(index, value)[source]
insert_GraphicRegion_at(index, value)[source]
insert_ImageRegion_at(index, value)[source]
insert_Labels_at(index, value)[source]
insert_LineDrawingRegion_at(index, value)[source]
insert_MapRegion_at(index, value)[source]
insert_MathsRegion_at(index, value)[source]
insert_MusicRegion_at(index, value)[source]
insert_NoiseRegion_at(index, value)[source]
insert_SeparatorRegion_at(index, value)[source]
insert_TableRegion_at(index, value)[source]
insert_TextRegion_at(index, value)[source]
insert_UnknownRegion_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_AdvertRegion_at(index, value)[source]
replace_AlternativeImage_at(index, value)[source]
replace_ChartRegion_at(index, value)[source]
replace_ChemRegion_at(index, value)[source]
replace_CustomRegion_at(index, value)[source]
replace_GraphicRegion_at(index, value)[source]
replace_ImageRegion_at(index, value)[source]
replace_Labels_at(index, value)[source]
replace_LineDrawingRegion_at(index, value)[source]
replace_MapRegion_at(index, value)[source]
replace_MathsRegion_at(index, value)[source]
replace_MusicRegion_at(index, value)[source]
replace_NoiseRegion_at(index, value)[source]
replace_SeparatorRegion_at(index, value)[source]
replace_TableRegion_at(index, value)[source]
replace_TextRegion_at(index, value)[source]
replace_UnknownRegion_at(index, value)[source]
set_AdvertRegion(AdvertRegion)[source]
set_AlternativeImage(AlternativeImage)[source]
set_Border(Border)[source]
set_ChartRegion(ChartRegion)[source]
set_ChemRegion(ChemRegion)[source]
set_CustomRegion(CustomRegion)[source]
set_GraphicRegion(GraphicRegion)[source]
set_ImageRegion(ImageRegion)[source]
set_Labels(Labels)[source]
set_Layers(Layers)[source]
set_LineDrawingRegion(LineDrawingRegion)[source]
set_MapRegion(MapRegion)[source]
set_MathsRegion(MathsRegion)[source]
set_MusicRegion(MusicRegion)[source]
set_NoiseRegion(NoiseRegion)[source]
set_PrintSpace(PrintSpace)[source]
set_ReadingOrder(ReadingOrder)[source]
set_Relations(Relations)[source]
set_SeparatorRegion(SeparatorRegion)[source]
set_TableRegion(TableRegion)[source]
set_TextRegion(TextRegion)[source]
set_TextStyle(TextStyle)[source]
set_UnknownRegion(UnknownRegion)[source]
set_UserDefined(UserDefined)[source]
set_conf(conf)[source]
set_custom(custom)[source]
set_imageFilename(imageFilename)[source]
set_imageHeight(imageHeight)[source]
set_imageResolutionUnit(imageResolutionUnit)[source]
set_imageWidth(imageWidth)[source]
set_imageXResolution(imageXResolution)[source]
set_imageYResolution(imageYResolution)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
set_primaryLanguage(primaryLanguage)[source]
set_primaryScript(primaryScript)[source]
set_readingDirection(readingDirection)[source]
set_secondaryLanguage(secondaryLanguage)[source]
set_secondaryScript(secondaryScript)[source]
set_textLineOrder(textLineOrder)[source]
set_type(type_)[source]
subclass = None
superclass = None
validate_ConfSimpleType(value)[source]
validate_LanguageSimpleType(value)[source]
validate_PageTypeSimpleType(value)[source]
validate_ReadingDirectionSimpleType(value)[source]
validate_ScriptSimpleType(value)[source]
validate_TextLineOrderSimpleType(value)[source]
class ocrd_models.ocrd_page.PcGtsType(pcGtsId=None, Metadata=None, Page=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PcGtsType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='PcGtsType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PcGtsType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_AllAlternativeImagePaths(page=True, region=True, line=True, word=True, glyph=True)[source]

Get all the pc:AlternativeImage/@filename paths referenced in the PAGE-XML document.

page (boolean): Get pc:Page level images region (boolean): Get images on pc:*Region level line (boolean) Get images on pc:TextLine level word (boolean) Get images on pc:Word level glyph (boolean) Get images on pc:Glyph level

get_Metadata()[source]
get_Page()[source]
get_ns_prefix_()[source]
get_pcGtsId()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
prune_ReadingOrder()[source]

Remove any empty ReadingOrder elements

set_Metadata(Metadata)[source]
set_Page(Page)[source]
set_ns_prefix_(ns_prefix)[source]
set_pcGtsId(pcGtsId)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.PrintSpaceType(Coords=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Determines the effective area on the paper of a printed page. Its size is equal for all pages of a book (exceptions: titlepage, multipage pictures). It contains all living elements (except marginals) like body type, footnotes, headings, running titles. It does not contain pagenumber (if not part of running title), marginals, signature mark, preview words.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PrintSpaceType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='PrintSpaceType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PrintSpaceType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Coords()[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_Coords(Coords)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.ReadingOrderType(conf=None, OrderedGroup=None, UnorderedGroup=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Definition of the reading order within the page. To express a reading order between elements they have to be included in an OrderedGroup. Groups may contain further groups. Confidence value (between 0 and 1)

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='ReadingOrderType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='ReadingOrderType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='ReadingOrderType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_OrderedGroup()[source]
get_UnorderedGroup()[source]
get_conf()[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_OrderedGroup(OrderedGroup)[source]
set_UnorderedGroup(UnorderedGroup)[source]
set_conf(conf)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
validate_ConfSimpleType(value)[source]
class ocrd_models.ocrd_page.RegionRefIndexedType(index=None, regionRef=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Numbered regionPosition (order number) of this item within the current hierarchy level.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefIndexedType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='RegionRefIndexedType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefIndexedType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_index()[source]
get_ns_prefix_()[source]
get_regionRef()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_index(index)[source]
set_ns_prefix_(ns_prefix)[source]
set_regionRef(regionRef)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.RegionRefType(regionRef=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='RegionRefType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_ns_prefix_()[source]
get_regionRef()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_ns_prefix_(ns_prefix)[source]
set_regionRef(regionRef)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.RegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, extensiontype_=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

For generic use Is this region a continuation of another region (in previous column or page, for example)?

add_AdvertRegion(value)[source]
add_AlternativeImage(value)[source]
add_ChartRegion(value)[source]
add_ChemRegion(value)[source]
add_CustomRegion(value)[source]
add_GraphicRegion(value)[source]
add_ImageRegion(value)[source]
add_Labels(value)[source]
add_LineDrawingRegion(value)[source]
add_MathsRegion(value)[source]
add_MusicRegion(value)[source]
add_NoiseRegion(value)[source]
add_SeparatorRegion(value)[source]
add_TableRegion(value)[source]
add_TextRegion(value)[source]
add_UnknownRegion(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='RegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_AdvertRegion()[source]
get_AlternativeImage()[source]
get_ChartRegion()[source]
get_ChemRegion()[source]
get_Coords()[source]
get_CustomRegion()[source]
get_GraphicRegion()[source]
get_ImageRegion()[source]
get_Labels()[source]
get_LineDrawingRegion()[source]
get_MathsRegion()[source]
get_MusicRegion()[source]
get_NoiseRegion()[source]
get_Roles()[source]
get_SeparatorRegion()[source]
get_TableRegion()[source]
get_TextRegion()[source]
get_UnknownRegion()[source]
get_UserDefined()[source]
get_comments()[source]
get_continuation()[source]
get_custom()[source]
get_extensiontype_()[source]
get_id()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_AdvertRegion_at(index, value)[source]
insert_AlternativeImage_at(index, value)[source]
insert_ChartRegion_at(index, value)[source]
insert_ChemRegion_at(index, value)[source]
insert_CustomRegion_at(index, value)[source]
insert_GraphicRegion_at(index, value)[source]
insert_ImageRegion_at(index, value)[source]
insert_Labels_at(index, value)[source]
insert_LineDrawingRegion_at(index, value)[source]
insert_MathsRegion_at(index, value)[source]
insert_MusicRegion_at(index, value)[source]
insert_NoiseRegion_at(index, value)[source]
insert_SeparatorRegion_at(index, value)[source]
insert_TableRegion_at(index, value)[source]
insert_TextRegion_at(index, value)[source]
insert_UnknownRegion_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_AdvertRegion_at(index, value)[source]
replace_AlternativeImage_at(index, value)[source]
replace_ChartRegion_at(index, value)[source]
replace_ChemRegion_at(index, value)[source]
replace_CustomRegion_at(index, value)[source]
replace_GraphicRegion_at(index, value)[source]
replace_ImageRegion_at(index, value)[source]
replace_Labels_at(index, value)[source]
replace_LineDrawingRegion_at(index, value)[source]
replace_MathsRegion_at(index, value)[source]
replace_MusicRegion_at(index, value)[source]
replace_NoiseRegion_at(index, value)[source]
replace_SeparatorRegion_at(index, value)[source]
replace_TableRegion_at(index, value)[source]
replace_TextRegion_at(index, value)[source]
replace_UnknownRegion_at(index, value)[source]
set_AdvertRegion(AdvertRegion)[source]
set_AlternativeImage(AlternativeImage)[source]
set_ChartRegion(ChartRegion)[source]
set_ChemRegion(ChemRegion)[source]
set_Coords(Coords)[source]
set_CustomRegion(CustomRegion)[source]
set_GraphicRegion(GraphicRegion)[source]
set_ImageRegion(ImageRegion)[source]
set_Labels(Labels)[source]
set_LineDrawingRegion(LineDrawingRegion)[source]
set_MathsRegion(MathsRegion)[source]
set_MusicRegion(MusicRegion)[source]
set_NoiseRegion(NoiseRegion)[source]
set_Roles(Roles)[source]
set_SeparatorRegion(SeparatorRegion)[source]
set_TableRegion(TableRegion)[source]
set_TextRegion(TextRegion)[source]
set_UnknownRegion(UnknownRegion)[source]
set_UserDefined(UserDefined)[source]
set_comments(comments)[source]
set_continuation(continuation)[source]
set_custom(custom)[source]
set_extensiontype_(extensiontype_)[source]
set_id(id)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.RelationType(id=None, type_=None, custom=None, comments=None, Labels=None, SourceRegionRef=None, TargetRegionRef=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

One-to-one relation between to layout object. Use ‘link’ for loose relations and ‘join’ for strong relations (where something is fragmented for instance). Examples for ‘link’: caption - image floating - paragraph paragraph - paragraph (when a paragraph is split across columns and the last word of the first paragraph DOES NOT continue in the second paragraph) drop-cap - paragraph (when the drop-cap is a whole word) Examples for ‘join’: word - word (separated word at the end of a line) drop-cap - paragraph (when the drop-cap is not a whole word) paragraph - paragraph (when a pragraph is split across columns and the last word of the first paragraph DOES continue in the second paragraph) For generic use

add_Labels(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='RelationType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Labels()[source]
get_SourceRegionRef()[source]
get_TargetRegionRef()[source]
get_comments()[source]
get_custom()[source]
get_id()[source]
get_ns_prefix_()[source]
get_type()[source]
hasContent_()[source]
insert_Labels_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Labels_at(index, value)[source]
set_Labels(Labels)[source]
set_SourceRegionRef(SourceRegionRef)[source]
set_TargetRegionRef(TargetRegionRef)[source]
set_comments(comments)[source]
set_custom(custom)[source]
set_id(id)[source]
set_ns_prefix_(ns_prefix)[source]
set_type(type_)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.RelationsType(Relation=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Container for one-to-one relations between layout objects (for example: DropCap - paragraph, caption - image).

add_Relation(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationsType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='RelationsType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationsType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Relation()[source]
get_ns_prefix_()[source]
hasContent_()[source]
insert_Relation_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_Relation_at(index, value)[source]
set_Relation(Relation)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.RolesType(TableCellRole=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RolesType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='RolesType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RolesType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_TableCellRole()[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_TableCellRole(TableCellRole)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.SeparatorRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, colour=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Separators are lines that lie between columns and paragraphs and can be used to logically separate different articles from each other. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The colour of the separator

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='SeparatorRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='SeparatorRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='SeparatorRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_colour()[source]
get_ns_prefix_()[source]
get_orientation()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_colour(colour)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
subclass = None
superclass

alias of RegionType

validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.TableCellRoleType(rowIndex=None, columnIndex=None, rowSpan=None, colSpan=None, header=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Cell position in table starting with row 0Cell position in table starting with column 0Number of rows the cell spans (optional; default is 1)Number of columns the cell spans (optional; default is 1) Is the cell a column or row header?

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TableCellRoleType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='TableCellRoleType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TableCellRoleType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_colSpan()[source]
get_columnIndex()[source]
get_header()[source]
get_ns_prefix_()[source]
get_rowIndex()[source]
get_rowSpan()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_colSpan(colSpan)[source]
set_columnIndex(columnIndex)[source]
set_header(header)[source]
set_ns_prefix_(ns_prefix)[source]
set_rowIndex(rowIndex)[source]
set_rowSpan(rowSpan)[source]
subclass = None
superclass = None
class ocrd_models.ocrd_page.TableRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, rows=None, columns=None, lineColour=None, bgColour=None, lineSeparators=None, embText=None, Grid=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Tabular data in any form is represented with a table region. Rows and columns may or may not have separator lines; these lines are not separator regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The number of rows present in the table The number of columns present in the table The colour of the lines used in the region The background colour of the region Specifies the presence of line separators Specifies whether the region also contains text

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='TableRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='TableRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='TableRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_Grid()[source]
get_bgColour()[source]
get_columns()[source]
get_embText()[source]
get_lineColour()[source]
get_lineSeparators()[source]
get_ns_prefix_()[source]
get_orientation()[source]
get_rows()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_Grid(Grid)[source]
set_bgColour(bgColour)[source]
set_columns(columns)[source]
set_embText(embText)[source]
set_lineColour(lineColour)[source]
set_lineSeparators(lineSeparators)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
set_rows(rows)[source]
subclass = None
superclass

alias of RegionType

validate_ColourSimpleType(value)[source]
class ocrd_models.ocrd_page.TextEquivType(index=None, conf=None, dataType=None, dataTypeDetails=None, comments=None, PlainText=None, Unicode=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Used for sort order in case multiple TextEquivs are defined. The text content with the lowest index should be interpreted as the main text content. OCR confidence value (between 0 and 1) Type of text content (is it free text or a number, for instance). This is only a descriptive attribute, the text type is not checked during XML validation. Refinement for dataType attribute. Can be a regular expression, for instance.

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15" xmlns:None="http://www.w3.org/2001/XMLSchema" ', name_='TextEquivType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='TextEquivType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15" xmlns:None="http://www.w3.org/2001/XMLSchema" ', name_='TextEquivType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_PlainText()[source]
get_Unicode()[source]
get_comments()[source]
get_conf()[source]
get_dataType()[source]
get_dataTypeDetails()[source]
get_index()[source]
get_ns_prefix_()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_PlainText(PlainText)[source]
set_Unicode(Unicode)[source]
set_comments(comments)[source]
set_conf(conf)[source]
set_dataType(dataType)[source]
set_dataTypeDetails(dataTypeDetails)[source]
set_index(index)[source]
set_ns_prefix_(ns_prefix)[source]
subclass = None
superclass = None
validate_ConfSimpleType(value)[source]
validate_TextDataTypeSimpleType(value)[source]
class ocrd_models.ocrd_page.TextLineType(id=None, primaryLanguage=None, primaryScript=None, secondaryScript=None, readingDirection=None, production=None, custom=None, comments=None, index=None, AlternativeImage=None, Coords=None, Baseline=None, Word=None, TextEquiv=None, TextStyle=None, UserDefined=None, Labels=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Overrides primaryLanguage attribute of parent text region The primary script used in the text line The secondary script used in the text line The direction in which text within the line should be read (order of words and characters). Overrides the production attribute of the parent text region For generic use Position (order number) of this text line within the parent text region.

add_AlternativeImage(value)[source]
add_Labels(value)[source]
add_TextEquiv(value)[source]
add_Word(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextLineType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='TextLineType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextLineType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_AlternativeImage()[source]
get_Baseline()[source]
get_Coords()[source]
get_Labels()[source]
get_TextEquiv()[source]
get_TextStyle()[source]
get_UserDefined()[source]
get_Word()[source]
get_comments()[source]
get_custom()[source]
get_id()[source]
get_index()[source]
get_ns_prefix_()[source]
get_primaryLanguage()[source]
get_primaryScript()[source]
get_production()[source]
get_readingDirection()[source]
get_secondaryScript()[source]
hasContent_()[source]
insert_AlternativeImage_at(index, value)[source]
insert_Labels_at(index, value)[source]
insert_TextEquiv_at(index, value)[source]
insert_Word_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_AlternativeImage_at(index, value)[source]
replace_Labels_at(index, value)[source]
replace_TextEquiv_at(index, value)[source]
replace_Word_at(index, value)[source]
set_AlternativeImage(AlternativeImage)[source]
set_Baseline(Baseline)[source]
set_Coords(Coords)[source]
set_Labels(Labels)[source]
set_TextEquiv(TextEquiv)[source]
set_TextStyle(TextStyle)[source]
set_UserDefined(UserDefined)[source]
set_Word(Word)[source]
set_comments(comments)[source]
set_custom(custom)[source]
set_id(id)[source]
set_index(index)[source]
set_ns_prefix_(ns_prefix)[source]
set_primaryLanguage(primaryLanguage)[source]
set_primaryScript(primaryScript)[source]
set_production(production)[source]
set_readingDirection(readingDirection)[source]
set_secondaryScript(secondaryScript)[source]
subclass = None
superclass = None
validate_LanguageSimpleType(value)[source]
validate_ProductionSimpleType(value)[source]
validate_ReadingDirectionSimpleType(value)[source]
validate_ScriptSimpleType(value)[source]
class ocrd_models.ocrd_page.TextRegionType(id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, type_=None, leading=None, readingDirection=None, textLineOrder=None, readingOrientation=None, indented=None, align=None, primaryLanguage=None, secondaryLanguage=None, primaryScript=None, secondaryScript=None, production=None, TextLine=None, TextEquiv=None, TextStyle=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.RegionType

Pure text is represented as a text region. This includes drop capitals, but practically ornate text may be considered as a graphic. The angle the rectangle encapsulating the region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). (The rotated image can be further referenced via “AlternativeImage”.) Range: -179.999,180 The nature of the text in the region The degree of space in points between the lines of text (line spacing) The direction in which text within lines should be read (order of words and characters), in addition to “textLineOrder”. The order of text lines within the block, in addition to “readingDirection”. The angle the baseline of text within the region has to be rotated (relative to the rectangle encapsulating the region) in clockwise direction in order to correct the present skew, in addition to “orientation” (negative values indicate anti-clockwise rotation). Range: -179.999,180 Defines whether a region of text is indented or not Text align The primary language used in the region The secondary language used in the region The primary script used in the region The secondary script used in the region

add_TextEquiv(value)[source]
add_TextLine(value)[source]
build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='', name_='TextRegionType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='TextRegionType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='', name_='TextRegionType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_TextEquiv()[source]
get_TextLine()[source]
get_TextStyle()[source]
get_align()[source]
get_indented()[source]
get_leading()[source]
get_ns_prefix_()[source]
get_orientation()[source]
get_primaryLanguage()[source]
get_primaryScript()[source]
get_production()[source]
get_readingDirection()[source]
get_readingOrientation()[source]
get_secondaryLanguage()[source]
get_secondaryScript()[source]
get_textLineOrder()[source]
get_type()[source]
hasContent_()[source]
insert_TextEquiv_at(index, value)[source]
insert_TextLine_at(index, value)[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
replace_TextEquiv_at(index, value)[source]
replace_TextLine_at(index, value)[source]
set_TextEquiv(TextEquiv)[source]
set_TextLine(TextLine)[source]
set_TextStyle(TextStyle)[source]
set_align(align)[source]
set_indented(indented)[source]
set_leading(leading)[source]
set_ns_prefix_(ns_prefix)[source]
set_orientation(orientation)[source]
set_primaryLanguage(primaryLanguage)[source]
set_primaryScript(primaryScript)[source]
set_production(production)[source]
set_readingDirection(readingDirection)[source]
set_readingOrientation(readingOrientation)[source]
set_secondaryLanguage(secondaryLanguage)[source]
set_secondaryScript(secondaryScript)[source]
set_textLineOrder(textLineOrder)[source]
set_type(type_)[source]
subclass = None
superclass

alias of RegionType

validate_AlignSimpleType(value)[source]
validate_LanguageSimpleType(value)[source]
validate_ProductionSimpleType(value)[source]
validate_ReadingDirectionSimpleType(value)[source]
validate_ScriptSimpleType(value)[source]
validate_TextLineOrderSimpleType(value)[source]
validate_TextTypeSimpleType(value)[source]
class ocrd_models.ocrd_page.TextStyleType(fontFamily=None, serif=None, monospace=None, fontSize=None, xHeight=None, kerning=None, textColour=None, textColourRgb=None, bgColour=None, bgColourRgb=None, reverseVideo=None, bold=None, italic=None, underlined=None, underlineStyle=None, subscript=None, superscript=None, strikethrough=None, smallCaps=None, letterSpaced=None, gds_collector_=None, **kwargs_)[source]

Bases: ocrd_models.ocrd_page_generateds.GeneratedsSuper

Monospace (fixed-pitch, non-proportional) or proportional font. For instance: Arial, Times New Roman. Add more information if necessary (e.g. blackletter, antiqua). Serif or sans-serif typeface. The size of the characters in points. The x-height or corpus size refers to the distance between the baseline and the mean line of lower-case letters in a typeface. The unit is assumed to be pixels. The degree of space (in points) between the characters in a string of text. Text colour in RGB encoded format (red value) + (256 x green value) + (65536 x blue value). Background colour Background colour in RGB encoded format (red value) + (256 x green value) + (65536 x blue value). Specifies whether the colour of the text appears reversed against a background colour. Line style details if “underlined” is TRUE

build(node, gds_collector_=None)[source]
buildAttributes(node, attrs, already_processed)[source]
buildChildren(child_, node, nodeName_, fromsubclass_=False, gds_collector_=None)[source]
export(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextStyleType', pretty_print=True)[source]
exportAttributes(outfile, level, already_processed, namespaceprefix_='', name_='TextStyleType')[source]
exportChildren(outfile, level, namespaceprefix_='', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextStyleType', fromsubclass_=False, pretty_print=True)[source]
static factory(*args_, **kwargs_)[source]
get_bgColour()[source]
get_bgColourRgb()[source]
get_bold()[source]
get_fontFamily()[source]
get_fontSize()[source]
get_italic()[source]
get_kerning()[source]
get_letterSpaced()[source]
get_monospace()[source]
get_ns_prefix_()[source]
get_reverseVideo()[source]
get_serif()[source]
get_smallCaps()[source]
get_strikethrough()[source]
get_subscript()[source]
get_superscript()[source]
get_textColour()[source]
get_textColourRgb()[source]
get_underlineStyle()[source]
get_underlined()[source]
get_xHeight()[source]
hasContent_()[source]
member_data_items_ = [<ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>, <ocrd_models.ocrd_page_generateds.MemberSpec_ object>]
set_bgColour(bgColour)[source]
set_bgColourRgb(bgColourRgb)[source]
set_bold(bold)[source]
set_fontFamily(fontFamily)[source]
set_fontSize(fontSize)[source]
set_italic(italic)[source]
set_kerning(kerning)[source]
set_letterSpaced(letterSpaced)[source]
set_monospace(monospace)[source]
set_ns_prefix_(ns_prefix)[source]
set_reverseVideo(reverseVideo)[source]
set_serif(serif)[source]
set_smallCaps(smallCaps)[source]
set_strikethrough(strikethrough)[source]
set_subscript(subscript)[source]
set_superscript(superscript)[source]
set_textColour(textColour)[source]
set_textColourRgb(textColourRgb)