diff options
author | Mark Shoulson <mark@nagas.meson.org> | 2009-01-17 21:48:26 -0500 |
---|---|---|
committer | Mark Shoulson <mark@nagas.meson.org> | 2009-01-17 21:48:26 -0500 |
commit | 7b5d5f8c4bbec220ca2e31af5861d4009a3c1997 (patch) | |
tree | d1913695d8a09f5d99d8aaacd7bcb0151af40b00 /scan4dups.py | |
parent | Added archaic Greek symbols etc. (diff) | |
download | dotXCompose-7b5d5f8c4bbec220ca2e31af5861d4009a3c1997.tar.gz dotXCompose-7b5d5f8c4bbec220ca2e31af5861d4009a3c1997.tar.bz2 dotXCompose-7b5d5f8c4bbec220ca2e31af5861d4009a3c1997.zip |
Small upgrade to scan4dups, added some more math and weird symbols.
Diffstat (limited to 'scan4dups.py')
-rw-r--r-- | scan4dups.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scan4dups.py b/scan4dups.py index a872db6..80a5eb7 100644 --- a/scan4dups.py +++ b/scan4dups.py @@ -54,7 +54,12 @@ try: startpos+=m.end() if startpos!=0: # Skip if the line had nothing. if ptr.keys(): # Dup if the end is NOT a leaf. - dupsfound.append(name2leaf(ptr)) + # By rights I should follow each other key all the way + # down to all its possible ends. Too much work. But + # I will go one more down, OK? + for other in ptr.keys(): + dupsfound.append(name2leaf(ptr[other])+"(+?)") + # The (+?) is because there might be more after that. mystring=name2leaf(ptr) # print "processed: (%s)"%mystring for i in dupsfound: |