Skip to content

Commit 0c4b120

Browse files
committed
feat: add presets to zwj sequences
1 parent 23f9042 commit 0c4b120

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

src/generators/zwj-sequences.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,66 @@ export const zwjSequences = createLoom({
2121
return `${item.codePoints.join(" ")} ${ctx.options.separator} ${item.type} ${ctx.options.separator} ${item.description} ${ctx.options.commentPrefix} ${item.comment}`;
2222
},
2323
eof: true,
24+
presets: {
25+
familyCombinations: [
26+
{
27+
codePoints: ["1F468", "200D", "1F469", "200D", "1F467"],
28+
type: "zwj_sequence",
29+
description: "family: man, woman, girl",
30+
comment: "basic family combination",
31+
},
32+
{
33+
codePoints: ["1F469", "200D", "1F469", "200D", "1F466"],
34+
type: "zwj_sequence",
35+
description: "family: woman, woman, boy",
36+
comment: "same-sex parent family",
37+
},
38+
{
39+
codePoints: ["1F468", "200D", "1F468", "200D", "1F467", "200D", "1F466"],
40+
type: "zwj_sequence",
41+
description: "family: man, man, girl, boy",
42+
comment: "extended family combination",
43+
},
44+
],
45+
professions: [
46+
{
47+
codePoints: ["1F469", "200D", "1F3EB"],
48+
type: "zwj_sequence",
49+
description: "woman teacher",
50+
comment: "profession with female emoji",
51+
},
52+
{
53+
codePoints: ["1F468", "200D", "1F373"],
54+
type: "zwj_sequence",
55+
description: "man cook",
56+
comment: "profession with male emoji",
57+
},
58+
{
59+
codePoints: ["1F469", "200D", "1F4BB"],
60+
type: "zwj_sequence",
61+
description: "woman technologist",
62+
comment: "modern profession",
63+
},
64+
],
65+
couples: [
66+
{
67+
codePoints: ["1F469", "200D", "2764", "FE0F", "200D", "1F468"],
68+
type: "zwj_sequence",
69+
description: "couple with heart: woman, man",
70+
comment: "romantic combination with heart",
71+
},
72+
{
73+
codePoints: ["1F468", "200D", "2764", "FE0F", "200D", "1F468"],
74+
type: "zwj_sequence",
75+
description: "couple with heart: man, man",
76+
comment: "same-sex couple with heart",
77+
},
78+
{
79+
codePoints: ["1F469", "200D", "2764", "FE0F", "200D", "1F469"],
80+
type: "zwj_sequence",
81+
description: "couple with heart: woman, woman",
82+
comment: "same-sex couple with heart",
83+
},
84+
],
85+
},
2486
});

0 commit comments

Comments
 (0)