~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/oeb/polish/check/main.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-02-27 07:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: package-import@ubuntu.com-20140227074806-64wdebb3ptosxhhx
Tags: upstream-1.25.0+dfsg
ImportĀ upstreamĀ versionĀ 1.25.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
from calibre.ebooks.oeb.polish.check.parsing import (
16
16
    check_filenames, check_xml_parsing, check_css_parsing, fix_style_tag, check_html_size, check_ids)
17
17
from calibre.ebooks.oeb.polish.check.images import check_raster_images
18
 
from calibre.ebooks.oeb.polish.check.links import check_links, check_mimetypes
 
18
from calibre.ebooks.oeb.polish.check.links import check_links, check_mimetypes, check_link_destinations
19
19
from calibre.ebooks.oeb.polish.check.fonts import check_fonts
20
20
from calibre.ebooks.oeb.polish.check.opf import check_opf
21
21
 
22
 
XML_TYPES = frozenset(map(guess_type, ('a.xml', 'a.svg', 'a.opf', 'a.ncx')))
 
22
XML_TYPES = frozenset(map(guess_type, ('a.xml', 'a.svg', 'a.opf', 'a.ncx'))) | {'application/oebps-page-map+xml'}
23
23
 
24
24
def run_checks(container):
25
25
 
58
58
                errors.extend(check_css_parsing(name, raw, line_offset=elem.sourceline - 1, is_declaration=True))
59
59
 
60
60
    errors += check_mimetypes(container)
61
 
    errors += check_links(container)
 
61
    errors += check_links(container) + check_link_destinations(container)
62
62
    errors += check_fonts(container)
63
63
    errors += check_filenames(container)
64
64
    errors += check_ids(container)