1 # This script just lists Emoji that contain multiple characters joined
2 # with a Zero Width Joiner (jwz) because these can be troublesome.
3 #
4 # Usage: check_for_zwj.rb <emoji-list.json>
5 #
6 # Output includes HTML to aid in making a contact sheet to test with.
7
8 require 'json'
9 json_in = ARGF.read
10 list = JSON.parse(json_in)
11
12 list.each do |emoj|
13 if emoj['emoji'].include? "\u200D"
14 puts "<div>'#{emoj['label']}': <span>#{emoj['emoji']}</span></div>"
15 end
16 end