Skip to content

comicbox.formats.pdf.transform.credits ΒΆ

Author to Credits transforms.

authors_to_credits_transform_from_cb(author_tag) ΒΆ

Create a Transform for pdf authors to comicbox credits.

Source code in comicbox/formats/pdf/transform/credits.py
61
62
63
64
65
66
def authors_to_credits_transform_from_cb(author_tag: str) -> MetaSpec:
    """Create a Transform for pdf authors to comicbox credits."""
    return MetaSpec(
        key_map={author_tag: CREDITS_KEY},
        spec=_credits_to_authors,
    )

authors_to_credits_transform_to_cb(author_tag) ΒΆ

Create a Transform for pdf authors to comicbox credits.

Source code in comicbox/formats/pdf/transform/credits.py
53
54
55
56
57
58
def authors_to_credits_transform_to_cb(author_tag: str) -> MetaSpec:
    """Create a Transform for pdf authors to comicbox credits."""
    return MetaSpec(
        key_map={CREDITS_KEY: author_tag},
        spec=_authors_to_credits,
    )