Add unicode emoji features
e.g.
5 š š EMOIMG EMOIMG
g=smileys_&_emotion|s=face_smiling|q=fully_qualified|v=E0.6|n=face_with_tears_of_joy
_ _ _ _
Change-Id: I96abc0b1933e86ab9a9ae015da919a4dc10a22b4
diff --git a/test/test.js b/test/test.js
index b935c19..aefc5f4 100644
--- a/test/test.js
+++ b/test/test.js
@@ -86,4 +86,26 @@
expect(emowiki_count).toBe(2); // 2 templates × 1 column = 2
done();
});
+
+ test('Test emoji metadata in FEATS column', (done) => {
+ // Test that EMOIMG tokens have populated FEATS column
+ const testInput = `# foundry = base
+# text_id = test-feats
+# text = š
+1 š _ _ _ _ _ _ _ _
+
+`;
+ const { execSync } = require('child_process');
+ const stdout = execSync('node src/index.js', { input: testInput }).toString();
+
+ // Check that š has correct metadata
+ // g=smileys_and_emotion|s=face_smiling|q=fully_qualified|v=E1.0|n=smiling_face_with_halo
+ // Note: spaces in data are replaced by _ in our script
+ expect(stdout).toContain('g=smileys_&_emotion|s=face_smiling|q=fully_qualified|v=E1.0|n=smiling_face_with_halo');
+
+ // Also check for the base emoji lemma and tags
+ expect(stdout).toContain('š\tš\tEMOIMG\tEMOIMG');
+
+ done();
+ });
});