pipetext 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/pipetext +8 -1
- data/lib/pipetext.rb +3 -0
- data/lib/substitute_emoji_names.rb +1913 -0
- metadata +35 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d97a880d1548bf135ddd5995204bb5317dd3774e8e2fab93dbb85f10fbdaddfb
|
|
4
|
+
data.tar.gz: bbd2b7e0ed511c0131c16ceeed533166623aeb3615aeabb90c8444b8e60a62aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78d2b6f653a0f464c4b781f3d74d3f2129d9d8f64b364348966c51b98d578719869b93cd323ee5353cb2e8d59cbd08db69dd73e3b521def69ddb4ebd491206bf
|
|
7
|
+
data.tar.gz: 3e96cde336b0135da5af4c5eb6a131125ca7e2f084248fa30172626722f717499095f3368dd965b6994f28ad7df99387592646a1a34485ab13a8ec1b36bd7837
|
data/bin/pipetext
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
+
# Use local file
|
|
4
|
+
#require_relative '../lib/pipetext'
|
|
5
|
+
|
|
6
|
+
# Use gem install
|
|
3
7
|
require 'pipetext'
|
|
4
8
|
|
|
5
9
|
pipe = Class.new.extend(PipeText)
|
|
@@ -22,7 +26,10 @@ pipetext_example = '|| pipe |||| && ampersand &&&& |&Toggle (&) backgr
|
|
|
22
26
|
|g&ygreen with yellow background&n |n||g&&y |.Faint|. ||.
|
|
23
27
|
|G&rbright green with red background&n |n||G&&r |xCrossed out|x ||x
|
|
24
28
|
|n&nnormal color and background ||n&&n Escape Sequence ||\\
|
|
25
|
-
|
|
29
|
+
|
|
30
|
+
Example unicode sequences: https://unicode.org/emoji/charts/full-emoji-list.html
|
|
31
|
+
||[CLDR Short Name] |[gear] ||[gear |\b] |[smiling face with heart-eyes] ||[smiling face with heart-eyes |\b] |[zzz] ||[zzz |\b]
|
|
32
|
+
|U2714 ||U2714 |U274c ||U274c |u262E ||u262E |u1f48e ||u1f48e |u1f49c ||u1f49c
|
|
26
33
|
|
|
27
34
|
Single or double line box mode with ||- or ||=
|
|
28
35
|
|
data/lib/pipetext.rb
CHANGED
|
@@ -33,6 +33,7 @@ module PipeText
|
|
|
33
33
|
'bg' => String.new # Needed to restore after foreground change
|
|
34
34
|
}
|
|
35
35
|
new_text = String.new
|
|
36
|
+
text = substitute_emoji_names(text)
|
|
36
37
|
text.chars.each do |character|
|
|
37
38
|
process_character(character, new_text, attributes)
|
|
38
39
|
end
|
|
@@ -662,4 +663,6 @@ module PipeText
|
|
|
662
663
|
character
|
|
663
664
|
end
|
|
664
665
|
end
|
|
666
|
+
|
|
667
|
+
require_relative 'substitute_emoji_names.rb'
|
|
665
668
|
end
|