aboutsummaryrefslogtreecommitdiff
path: root/scan4dups.py
diff options
context:
space:
mode:
authorMark Shoulson <mark@nagas.meson.org>2009-01-17 21:48:26 -0500
committerMark Shoulson <mark@nagas.meson.org>2009-01-17 21:48:26 -0500
commit7b5d5f8c4bbec220ca2e31af5861d4009a3c1997 (patch)
treed1913695d8a09f5d99d8aaacd7bcb0151af40b00 /scan4dups.py
parentAdded archaic Greek symbols etc. (diff)
downloaddotXCompose-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.py7
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: