# This script just lists Emoji that contain multiple characters joined
# with a Zero Width Joiner (jwz) because these can be troublesome.
#
# Usage: check_for_zwj.rb <emoji-list.json>
#
# Output includes HTML to aid in making a contact sheet to test with.

require 'json'
json_in = ARGF.read
list = JSON.parse(json_in)

list.each do |emoj|
  if emoj['emoji'].include? "\u200D"
    puts "<div>'#{emoj['label']}': <span>#{emoj['emoji']}</span></div>"
  end
end
