Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support grabbing TeX source from MathML <annotation>s #27

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Commits on Jul 26, 2012

  1. Some Sanitizer fixes

    distler committed Jul 26, 2012
    Configuration menu
    Copy the full SHA
    fdb788e View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2013

  1. Support for TeX source in <annotation>

    Double-click on an equation to get the TeX source.
    distler committed Dec 12, 2013
    Configuration menu
    Copy the full SHA
    eea8014 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2013

  1. Support LaTeX in img.latex

    Also, some utf8 support improvements.
    distler committed Dec 23, 2013
    Configuration menu
    Copy the full SHA
    8693312 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2014

  1. Update html5lib to 0.999

    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    7e53bed View commit details
    Browse the repository at this point in the history
  2. Update feedparser to 5.1.3

    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    68a49a8 View commit details
    Browse the repository at this point in the history
  3. Fix errors in test suite after html5lib recent changes

    Errors like the following should be fixed now.
    
    ======================================================================
    ERROR: test_content_html (tests.test_reconstitute.ReconstituteTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 43, in <lambda>
        func = lambda self, name=root: self.eval(name)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 27, in eval
        scrub(testfiles%name, results)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/scrub.py", line 148, in scrub
        xhtml = serializer.XHTMLSerializer(inject_meta_charset = False)
    AttributeError: 'module' object has no attribute 'XHTMLSerializer'
    
    ======================================================================
    ERROR: test_dc_lang (tests.test_reconstitute.ReconstituteTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 43, in <lambda>
        func = lambda self, name=root: self.eval(name)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 28, in eval
        reconstitute(results, results.entries[0]).writexml(work)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/reconstitute.py", line 275, in reconstitute
        content(xentry, 'title', entry.get('title_detail',None), bozo)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/reconstitute.py", line 171, in content
        parser = html5parser.HTMLParser(tree=dom.TreeBuilder)
    AttributeError: 'module' object has no attribute 'TreeBuilder'
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    e32fa7c View commit details
    Browse the repository at this point in the history
  4. Fix test cases errors on AttributeError: object has no attribute 'sum…

    …mary_detail'
    
    Fixes errors like the following :
    ======================================================================
    ERROR: test_content_html (tests.test_reconstitute.ReconstituteTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 43, in <lambda>
        func = lambda self, name=root: self.eval(name)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 28, in eval
        reconstitute(results, results.entries[0]).writexml(work)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/reconstitute.py", line 267, in reconstitute
        id(xentry, entry)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/reconstitute.py", line 79, in id
        entry_id = (entry.summary_detail.base + "/" +
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/vendor/feedparser.py", line 416, in __getattr__
        raise AttributeError, "object has no attribute '%s'" % key
    AttributeError: object has no attribute 'summary_detail'
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    17af58a View commit details
    Browse the repository at this point in the history
  5. Fix test_missing_item_pubDate no longer passing

    Fixes :
    ======================================================================
    FAIL: test_missing_item_pubDate (tests.test_reconstitute.ReconstituteTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 43, in <lambda>
        func = lambda self, name=root: self.eval(name)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 38, in eval
        self.assertEqual(eval(rhs), eval(lhs, results.entries[0]))
    AssertionError: (2006, 6, 21, 13, 16, 41, 2, 172, 0) != time.struct_time(tm_year=2014, tm_mon=1, tm_mday=27, tm_hour=17, tm_min=16, tm_sec=24, tm_wday=0, tm_yday=27, tm_isdst=0)
    
    ----------------------------------------------------------------------
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    ca213d7 View commit details
    Browse the repository at this point in the history
  6. Fix issue on running filters

    Fix errors like:
    ======================================================================
    ERROR: test_spiderFeed_retroactive_filter (tests.test_spider.SpiderTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_spider.py", line 82, in test_spiderFeed_retroactive_filter
        self.spiderFeed(testfeed % '1b')
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_spider.py", line 50, in spiderFeed
        writeCache(feed_uri, feed_info, data)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/spider.py", line 232, in writeCache
        output = shell.run(filter, output, mode="filter")
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/shell/__init__.py", line 62, in run
        return module.run(template_resolved, doc, None, options)
      File "/usr/lib/python2.7/dist-packages/py/_apipkg.py", line 122, in __makeattr
        raise AttributeError(name)
    AttributeError: run
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    5581e07 View commit details
    Browse the repository at this point in the history
  7. Fix date values error in templates

    Fix errors like:
    ======================================================================
    ERROR: test_apply_classic_fancy (tests.test_apply.ApplyTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_apply.py", line 54, in test_apply_classic_fancy
        self.apply_fancy()
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_apply.py", line 84, in apply_fancy
        splice.apply(self.feeddata)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/splice.py", line 142, in apply
        output_file = shell.run(template_file, doc)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/shell/__init__.py", line 66, in run
        module.run(template_resolved, doc, output_file, options)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/shell/tmpl.py", line 256, in run
        tp.set(key, value)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/vendor/htmltmpl.py", line 441, in set
        "be either a scalar or a list." % var
    TemplateError: Htmltmpl error: Value of toplevel variable 'date' must be either a scalar or a list.
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    e7f2fc8 View commit details
    Browse the repository at this point in the history
  8. Change XML test data so that xmlns are correctly set

    Fix errors like :
    ======================================================================
    ERROR: test_georss_box_latlong (tests.test_reconstitute.ReconstituteTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 43, in <lambda>
        func = lambda self, name=root: self.eval(name)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_reconstitute.py", line 26, in eval
        results = feedparser.parse(data)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/vendor/feedparser.py", line 4001, in parse
        saxparser.parse(source)
      File "/usr/lib/python2.7/dist-packages/drv_libxml2.py", line 208, in parse
        eltName,eltQName,attributesNSImpl)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/vendor/feedparser.py", line 1801, in startElementNS
        raise UndeclaredNamespace, "'%s' is not associated with a namespace" % givenprefix
    UndeclaredNamespace: 'georss' is not associated with a namespace
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    f891e7f View commit details
    Browse the repository at this point in the history
  9. Try and fix Django settings issue

    Fix errors like this:
    ======================================================================
    ERROR: test_django_entry_title (tests.test_filter_django.DjangoFilterTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/tests/test_filter_django.py", line 26, in test_django_entry_title
        os.path.realpath('tests/data/filter/django/title.html.dj'), input)
      File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/shell/dj.py", line 26, in run
        TEMPLATE_DIRS=(os.path.dirname(script),)
      File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 89, in configure
        raise RuntimeError('Settings already configured.')
    RuntimeError: Settings already configured.
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    cc52488 View commit details
    Browse the repository at this point in the history
  10. Proposed changes as feedparser seems to have a different behaviour.

    I hope this isn't critical to the planet.
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    88fa100 View commit details
    Browse the repository at this point in the history
  11. Fix scrubbing issue

    Solves errors like :
    ERROR:planet.runner:TypeError: 'NoneType' object has no attribute '__getitem__'
    ERROR:planet.runner:  File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/spider.py", line 480, in spiderPlanet
        writeCache(uri, feed_info, data)
    ERROR:planet.runner:  File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/spider.py", line 167, in writeCache
        scrub.scrub(feed_uri, data)
    ERROR:planet.runner:  File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/scrub.py", line 149, in scrub
        node['value'] = ''.join([str(token) for token in tree])
    ERROR:planet.runner:  File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/vendor/html5lib/serializer/htmlserializer.py", line 199, in serialize
        for token in treewalker:
    ERROR:planet.runner:  File "/home/olivier/svn/svn.debian.org/python-apps/planet-venus/git-svn/planet-venus/planet/vendor/html5lib/filters/optionaltags.py", line 18, in __iter__
        type = token["type"]
    olberger committed Jan 27, 2014
    Configuration menu
    Copy the full SHA
    b0492c0 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2014

  1. Configuration menu
    Copy the full SHA
    01b09c3 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2014

  1. Update feedparser

    distler committed Mar 30, 2014
    Configuration menu
    Copy the full SHA
    124d5f8 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'update-deps' of https://github.com/olberger/venus

    Conflicts:
    	planet/reconstitute.py
    	planet/vendor/feedparser.py
    	planet/vendor/html5lib/sanitizer.py
    distler committed Mar 30, 2014
    Configuration menu
    Copy the full SHA
    7ff1b74 View commit details
    Browse the repository at this point in the history
  3. Update html5lib

    distler committed Mar 30, 2014
    Configuration menu
    Copy the full SHA
    af1a936 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    13e8fc3 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2016

  1. Configuration menu
    Copy the full SHA
    014375f View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2016

  1. Might as well do this one too

    distler committed Dec 17, 2016
    Configuration menu
    Copy the full SHA
    89cd35f View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2018

  1. Unvendor feedparser and httplib2

    Update for feedparser 5.2.x
    distler committed Dec 25, 2018
    Configuration menu
    Copy the full SHA
    3405bc1 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2018

  1. Fixes for new FeedParser

    distler committed Dec 27, 2018
    Configuration menu
    Copy the full SHA
    c0b3da2 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2019

  1. A bit more responsive

    distler committed Jan 7, 2019
    Configuration menu
    Copy the full SHA
    9ccf292 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2019

  1. Fix remaining broken tests

    We were doing georss_box and georss_polygon wrong anyway.
    distler committed Jan 8, 2019
    Configuration menu
    Copy the full SHA
    da2b0ca View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2019

  1. Update HTML5lib Sanitizer

    distler committed Mar 2, 2019
    Configuration menu
    Copy the full SHA
    b537638 View commit details
    Browse the repository at this point in the history