Skip to content

WIP: List all the single-codepoint unicode emojis

Haelwenn requested to merge features/emoji_reactions_list into develop

Source: https://unicode.org/Public/13.0.0/ucdxml/ucd.nounihan.flat.zip

XSLT used to generate the JSON:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.unicode.org/ns/2003/ucd/1.0" version="1.0">
  <xsl:output omit-xml-declaration="yes" indent="yes"/>

  <xsl:template match="/">
{<xsl:apply-templates select="/ucd/repertoire/char[@Emoji='Y']"/>}
  </xsl:template>

  <xsl:template match="char">   "<xsl:value-of select="@na" />": "<xsl:value-of select="@cp" />"<xsl:if test="not(position()=last())">,</xsl:if>
</xsl:template>
</xsl:stylesheet>

then: xsltproc ucd.nounihan.flat.xsl ucd.nounihan.flat.xml | jq . > emoji.json

Merge request reports