pipetext 0.0.5 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6392f89db4bfd5ba49f14368118a69e518ba8977a6f33107388beb7c9c0e586
4
- data.tar.gz: a43d6f3095053170b85f7838ec63999c9fff7b1a63fcd7a63b99f142d89f2699
3
+ metadata.gz: d97a880d1548bf135ddd5995204bb5317dd3774e8e2fab93dbb85f10fbdaddfb
4
+ data.tar.gz: bbd2b7e0ed511c0131c16ceeed533166623aeb3615aeabb90c8444b8e60a62aa
5
5
  SHA512:
6
- metadata.gz: f487c7a6b1a554eae986a1ac53bf6acbc6c443a524b7a57486fc3b644c9f8c7161accaf9603b992bd31a35f77dea9eccd5aa5bd30a9246c805912b6c9fd16b37
7
- data.tar.gz: be8bb30d38ee21fa304b2e68e0834df9a93bbf30a0f1f70139e8f2fc652f616d1a47a9b0f17ba96e9cefb8dcaad106de98ec1b42b1021908c4c6bdda3517fbee
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
- Example unicode sequences: |U2714 ||U2714 |U274c ||U274c |u262E ||u262E |u1f48e ||u1f48e |u1f49c ||u1f49c
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