Commits

Show all
Author Commit Message Labels Comments Date
Geoffrey Sneddon
Make ranks negative
Geoffrey Sneddon
Let's actually make this work, once and for all.
Geoffrey Sneddon
Reflect r1781 of HTML 5 (fix for <h1><h2><h3><h2>).
Geoffrey Sneddon
Move everything into one method
Geoffrey Sneddon
Remove redundant len(). Create new lists/dicts for each instance.
Geoffrey Sneddon
Remove redundant code, add asserts.
Geoffrey Sneddon
Add TOC generation, sorta.
Geoffrey Sneddon
Get tests working, make generator.process(output) required.
Geoffrey Sneddon
Add the start of tests
Geoffrey Sneddon
Or, instead of the previous commit, just use with_tail=False.
Geoffrey Sneddon
Strip Element.tail from textContent(Element).
Geoffrey Sneddon
Make textContent way cheaper
Geoffrey Sneddon
Say "Hi" to OptionParser, and more options
Geoffrey Sneddon
We want all desendant text nodes, not just those that are a direct child
Geoffrey Sneddon
Only check the parents/children of a xref after seeing if the term is valid (this produces a slight increase in speed on HTML 5).
Geoffrey Sneddon
Make generated IDs lowercase, and cache gEBI
Geoffrey Sneddon
Let's make this work.
Geoffrey Sneddon
Getting it to run would be a good start.
Geoffrey Sneddon
Move stuff.
Geoffrey Sneddon
Start work on making this a package
Geoffrey Sneddon
Move xref.refs to term_elements and xref.not_within to term_not_in_stack_with.
Geoffrey Sneddon
Use an iterator instead of etree.Element.find to check the children of the element we're looking at.
Geoffrey Sneddon
Make utils.escapeXPathString clearer still.
Geoffrey Sneddon
Um, why don't we just use a simple string.replace() here? Far more readable.
Geoffrey Sneddon
Make utils.escapeXPathString clearer (insofar as the second string not just being concatenated on to the first in Python), and make it work.
Geoffrey Sneddon
If we use addprevious() then we don't have to look at what we just copied.
Geoffrey Sneddon
Disallow empty terms
Geoffrey Sneddon
Make samp not an element that can be used for terms.
Geoffrey Sneddon
Remove pointless calculation of textContent.
Geoffrey Sneddon
Change xref to just go over everything in document order
  1. Prev
  2. Next