aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--dotXCompose7
-rw-r--r--scan4dups.py7
2 files changed, 13 insertions, 1 deletions
diff --git a/dotXCompose b/dotXCompose
index 26faa47..d2eb866 100644
--- a/dotXCompose
+++ b/dotXCompose
@@ -37,6 +37,9 @@ include "%L"
<Multi_key> <minus> <greater> : "→" rightarrow # RIGHTWARDS ARROW
<Multi_key> <minus> <v> : "↓" downarrow # DOWNWARDS ARROW
<Multi_key> <less> <minus> <greater> : "↔" U2194 # LEFT RIGHT ARROW (kragen's)
+# These are just too cool-looking not to have (if your font supports them)
+<Multi_key> <equal> <period> <equal> : "⸎" U2E0E # EDITORIAL CORONIS
+<Multi_key> <equal> <underscore> <bar> : "⸙" U2E19 # PALM BRANCH
<Multi_key> <o> <parenright> :"ɔ" U0254 # LATIN SMALL LETTER OPEN O
@@ -62,6 +65,9 @@ include "%L"
<Multi_key> <a> <p> : "≅" U2245 # APPROXIMATELY EQUAL TO
<Multi_key> <colon> <equal> : "≔" U2254 # COLON EQUALS
<Multi_key> <equal> <question> : "≟" U225f # QUESTIONED EQUAL TO
+<Multi_key> <equal> <equal> : "≡" U2261 # IDENTICAL TO
+# Using <slash> conflicts.
+<Multi_key> <equal> <bar> <equal> : "≢" U2262 # NOT IDENTICAL TO
<Multi_key> <s> <q> : "√" U221A # SQUARE ROOT
# “(Note: I had put the backslash in position 5/15. It enabled the
# ALGOL “and” to be “/\” and the “or” to be “\/”.)” --- Bob Bemer,
@@ -220,6 +226,7 @@ include "%L"
<Multi_key> <colon> <parenleft> : "☹" U2639 # WHITE FROWNING FACE
<Multi_key> <exclam> <question> : "‽" U203D # INTERROBANG
<Multi_key> <question> <exclam> : "‽" U203D # INTERROBANG (in case you can’t remember the order)
+<Multi_key> <question> <exclamdown> : "⸘" U2E18 # INVERTED INTERROBANG (if you have a ¡ key. Otheriwise...? "?i" maybe?
<Multi_key> <less> <3> : "♥" U2665 # BLACK HEART SUIT
<Multi_key> <3> <3> : "♣" U2663 # BLACK CLUB SUIT
<Multi_key> <less> <greater> : "♢" U2662 # WHITE DIAMOND SUIT
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: