Skip to content

Commit

Permalink
Another try at cleaning up the new new chemistry unicode chars
Browse files Browse the repository at this point in the history
  • Loading branch information
NSoiffer committed Sep 11, 2024
1 parent 20d4bdc commit d5d92a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Rules/Braille/Nemeth/Nemeth_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,9 @@
then_test:
# there is a bug in the xpath package so \u1f8d2 (etc) aren't read properly, so we need to use the actual char
if: "*[2][self::m:mrow]"
then: [x: "'🣒'"] # 0x1f8d2 -- this is currently unassigned and may get used by UTC at some point (<=>)
else: [t: "'🣔'"] # 0x1f8d4 -- this is currently unassigned and may get used by UTC at some point (<<=>)
else: [t: "'🣓'"] # 0x1f8d3 -- this is currently unassigned and may get used by UTC at some point (<==>>)
then: [x: "'🣑'"] # 0x1f8d1 -- this is currently unassigned and may get used by UTC at some point (<=>)
else: [x: "'🣓'"] # 0x1f8d3 -- this is currently unassigned and may get used by UTC at some point (<<=>)
else: [x: "'🣒'"] # 0x1f8d2 -- this is currently unassigned and may get used by UTC at some point (<=>>)

-
name: default
Expand Down
6 changes: 3 additions & 3 deletions Rules/Braille/UEB/UEB_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@
if: "*[1][self::m:mrow]"
then_test:
if: "*[2][self::m:mrow]"
then: [x: "'🣒'"] # this is currently unassigned and may get used by UTC at some point (<=>)
else: [x: "'🣔'"] # this is currently unassigned and may get used by UTC at some point (<<=>)
else: [x: "'🣓'"] # this is currently unassigned and may get used by UTC at some point (<==>>)
then: [x: "'🣑'"] # 0x1f8d1 -- this is currently unassigned and may get used by UTC at some point (<=>)
else: [x: "'🣓'"] # 0x1f8d3 -- this is currently unassigned and may get used by UTC at some point (<<=>)
else: [x: "'🣒'"] # 0x1f8d2 -- this is currently unassigned and may get used by UTC at some point (<=>>)
- t: "W"

-
Expand Down
17 changes: 5 additions & 12 deletions Rules/Braille/UEB/unicode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,14 @@
- "": [t: "1⠸⠶"] # 0x2942 (Rightwards arrow above short leftwards arrow (equilibrium, trend to the right))
- "": [t: "1⠈⠸⠶"] # 0x2944 (Short rightwards arrow above leftwards arrow (equilibrium, trend to the left))

# These repeat the short arrow version because that is what is in the spec, but the spec should really use the long version
- "🣒": [t: "1⠘⠸⠶"] # 0x1f8d2 (Long rightwards harpoon over leftwards harpoon (equilibrium))
- "🣓": [t: "1⠸⠶"] # 0x1f8d3 (Long rightwards harpoon over leftwards harpoon (equilibrium, trend to the right))
- "🣔": [t: "1⠈⠸⠶"] # 0x1f8d4 (Long rightwards harpoon over leftwards harpoon (equilibrium, trend to the left))

# Mappings for some new Unicode chemistry arrows/symbols
# These repeat the short arrow version because that is what is in the spec (GTM 16), but the spec should really use the long version
- "🣑": [t: "1⠘⠸⠶"] # 0x1F8D1 LONG RIGHTWARDS HARPOON OVER LONG LEFTWARDS HARPOON (equilibrium)
- "🣒": [t: "1⠐⠸⠶"] # 0x1f8d2 LONG RIGHTWARDS HARPOON ABOVE SHORT LEFTWARDS HARPOON(equilibrium, trend to the right)
- "🣓": [t: "1⠈⠸⠶"] # 0x1f8d3 SHORT RIGHTWARDS HARPOON ABOVE LONG LEFTWARDS HARPOON (equilibrium, trend to the left))

# These need to be verified -- 0x1f8d1, 0x1f8d2, and 0x1f8d3 conflict with GTM 16 (uses short arrow when really should be long)
- "🣐": [t: "1⠳⠒⠒⠒⠕⠻⠳⠒⠒⠒⠪"] # 0x1F8D0 LONG RIGHTWARDS ARROW OVER LONG LEFTWARDS ARROW
# - "🣒": [t: "1⠘⠸⠶"] # 0x1f8d2 (Long rightwards harpoon over leftwards harpoon (equilibrium))
# - "🣓": [t: "1⠸⠶"] # 0x1f8d3 (Long rightwards harpoon over leftwards harpoon (equilibrium, trend to the right))
# - "🣔": [t: "1⠈⠸⠶"] # 0x1f8d4 (Long rightwards harpoon over leftwards harpoon (equilibrium, trend to the left))
- "🣑": [t: "1⠳⠒⠒⠒⠈⠗⠕⠻⠳⠒⠒⠒⠠⠗⠪"] # 0x1F8D1 LONG RIGHTWARDS HARPOON OVER LONG LEFTWARDS HARPOON
- "🣒": [t: "1⠳⠒⠒⠒⠈⠗⠕⠻⠳⠒⠠⠗⠪"] # 0x1F8D2 LONG RIGHTWARDS HARPOON ABOVESHORT LEFTWARDS HARPOON
- "🣓": [t: "1⠳⠒⠈⠗⠕⠻⠳⠒⠒⠒⠠⠗⠪"] # 0x1F8D3 SHORT RIGHTWARDS HARPOON ABOVELONG LEFTWARDS HARPOON
- "🣔": [t: "1⠳⠒⠒⠒⠈⠗⠪⠻⠳⠒⠠⠗⠕"] # 0x1F8D4 LONG LEFTWARDS HARPOON ABOVESHORT RIGHTWARDS HARPOON
- "🣕": [t: "1⠳⠒⠈⠗⠪⠻⠳⠒⠒⠒⠠⠗⠕"] # 0x1F8D5 SHORT LEFTWARDS HARPOON ABOVELONG RIGHTWARDS HARPOON
- "🣖": [t: "1⠳⠒⠒⠒⠕⠯⠠⠭"] # 0x1F8D6 LONG RIGHTWARDS ARROW WITH THROUGH X
- "🣗": [t: "1⠳⠒⠒⠒⠕⠯⠣⠸⠌⠸⠌⠜"] # 0x1F8D7 LONG RIGHTWARDS ARROW WITH DOUBLE SLASH
Expand Down

0 comments on commit d5d92a8

Please sign in to comment.