resolve_engine#

dscat.docs.resolve_engine(src, engine=None)[source]#

Return the engine used for src.

With no explicit engine, the choice follows the file type: marker for PDFs and markitdown for every other format. Legacy .doc and .rtf always use textutil, which markitdown and marker cannot read, even when an engine is given; for any other format an explicit engine overrides the default.