src package
Subpackages
- src.constraintSets package
- src.preParseChecks package
- src.registries package
- src.schemas package
- src.validationLogging package
- Submodules
- src.validationLogging.validationCodes module
ValidationCodebbc_block_backgroundColor_constraintbbc_document_validitybbc_region_attributes_constraintbbc_region_backgroundColor_constraintbbc_region_overflow_constraintbbc_region_position_constraintbbc_text_backgroundColor_constraintbbc_text_color_constraintbbc_text_fillLineGap_constraintbbc_text_fontFamily_constraintbbc_text_fontSize_constraintbbc_text_fontStyle_constraintbbc_text_lineHeight_constraintbbc_text_linePadding_constraintbbc_text_multiRowAlign_constraintbbc_text_span_constraintbbc_timing_gapsbbc_timing_minimum_subtitlesbbc_timing_segment_overlapdapt_document_validitydapt_lang_audiodapt_lang_rootdapt_metadata_content_descriptordapt_metadata_desctype_validitydapt_metadata_representsdapt_metadata_scriptRepresentsdapt_timing_attribute_constraintdapt_timing_frameratedapt_timing_origin_timecodedapt_timing_segment_overlapdapt_timing_start_of_programme_timecodedapt_timing_tickratedapt_timing_timecode_offsetdapt_timing_timecontainerebuttd_document_validityebuttd_empty_body_constraintebuttd_empty_div_constraintebuttd_head_element_constraintebuttd_inline_styling_constraintebuttd_layout_element_constraintebuttd_multiRowAlignebuttd_nested_div_constraintebuttd_nested_span_constraintebuttd_nested_timing_constraintebuttd_overlapping_region_constraintebuttd_p_xml_id_constraintebuttd_parameter_timeBaseebuttd_region_attributes_constraintebuttd_region_element_constraintebuttd_region_position_constraintebuttd_style_element_constraintebuttd_styling_element_constraintebuttd_timing_attribute_constraintimsc_parameter_activeAreapreParse_byteOrderMarkpreParse_byteOrderMark_corruptpreParse_encodingpreParse_nullBytesttml_attribute_styling_attributettml_document_timingttml_document_validityttml_element_bodyttml_element_brttml_element_headttml_element_layoutttml_element_regionttml_element_stylettml_element_stylingttml_idref_element_applicabilityttml_idref_emptyttml_idref_too_manyttml_layout_region_associationttml_metadata_actor_referencettml_metadata_copyrightttml_metadata_rolettml_parameter_cellResolutionttml_parameter_contentProfilesttml_stylingttml_styling_attribute_applicabilityttml_styling_referencettml_styling_referential_chainedttml_timing_attribute_syntaxunclassifiedvalidator_internal_exceptionxml_document_validityxml_dtdxml_encoding_declxml_entity_declxml_id_uniquexml_id_unqualifiedxml_parsexml_prunexml_root_elementxml_tt_namespacexml_xsd
- src.validationLogging.validationLogger module
- src.validationLogging.validationResult module
- src.validationLogging.validationSummariser module
- Module contents
- src.xmlChecks package
- Submodules
- src.xmlChecks.actorRefsCheck module
- src.xmlChecks.bbcTimingXmlCheck module
- src.xmlChecks.bodyXmlCheck module
- src.xmlChecks.copyrightCheck module
- src.xmlChecks.daptLangCheck module
- src.xmlChecks.daptTimingXmlCheck module
- src.xmlChecks.daptUtils module
- src.xmlChecks.daptmDescTypeCheck module
- src.xmlChecks.daptmRepresentsCheck module
- src.xmlChecks.divXmlCheck module
- src.xmlChecks.headXmlCheck module
- src.xmlChecks.inlineStyleAttributeCheck module
- src.xmlChecks.layoutCheck module
- src.xmlChecks.pXmlCheck module
- src.xmlChecks.pruner module
- src.xmlChecks.regionRefsCheck module
- src.xmlChecks.spanXmlCheck module
- src.xmlChecks.styleRefsCheck module
- src.xmlChecks.stylingCheck module
- src.xmlChecks.textCheck module
- src.xmlChecks.timingAttributeCheck module
- src.xmlChecks.ttXmlCheck module
- src.xmlChecks.ttmlRoleCheck module
- src.xmlChecks.ttmlUtils module
- src.xmlChecks.xmlCheck module
- src.xmlChecks.xmlIdCheck module
- src.xmlChecks.xsdValidator module
- Module contents
Submodules
src.styleAttribs module
- class StyleAttribute(ns: str, nsIsRelative: bool, tag: str, appliesTo: list[str], syntaxRegex: re.Pattern, defaultValue: str, computeValue: collections.abc.Callable[[specified, parent, params], str], fallbackComputeValue: collections.abc.Callable[[specified, parent, params], str])[source]
Bases:
object- appliesTo: list[str]
- computeValue: Callable[[specified, parent, params], str]
- defaultValue: str
- fallbackComputeValue: Callable[[specified, parent, params], str]
- ns: str
- nsIsRelative: bool
- syntaxRegex: Pattern
- tag: str
- computeStyles(tt_ns: str, validation_results: ValidationLogger, el_sss: dict[str, str], el_css: dict[str, str], parent_css: dict[str, str], params: dict[str, str], error_significance: int = 3) bool[source]
- getAllStyleAttributeDict(tt_ns: str) dict[str, StyleAttribute][source]
- getMergedStyleSet(el: Element, id_to_styleattribs_map: dict[str, dict[str, str]]) dict[str, str][source]
- getStyleAttributeDict(tt_ns: str, elements: list[str]) dict[str, StyleAttribute][source]
- validateStyleAttr(style_el: Element, context: dict, validation_results: ValidationLogger) bool[source]
src.timeExpression module
src.ttmlValidator module
src.validationCollater module
Read a set of CSV validation files, count the number of Good, Info, Warn and Error for each ValidationCode, increment the number of each in an output CSV file by 1 for every count >0.
For example: 3 files: File 1 has: * 1x Good xml_document_validity, * 1x Good ebuttd_document_validity, * 0x Good bbc_document_validity * 1x Error bbc_document_validity
File 2 has: * 1x Good xml_document_validity, * 0x Good ebuttd_document_validity, * 0x Good bbc_document_validity * 1x Error bbc_document_validity
File 3 has: * 1x Good xml_document_validity, * 1x Good ebuttd_document_validity, * 1x Good bbc_document_validity * 0x Error bbc_document_validity
Result would be:
code,good_count,info_count,warn_count,error_count xml_document_validity,3,0,0,0 ebuttd_document_validity,2,0,0,0 bbc_document_validity,1,0,0,2