Jump to content

Module:Make emoji zwj table/doc

From Wikipedia, the free encyclopedia

This module creates a new version of emoji_t for use in Module:Citation/CS1/Configuration.

To use this module:

  1. locate a copy of the new version of the Unicode file emoji-zwj-sequences.txt. This file might be found in https://unicode.org/Public/emoji/VV.V/ (where VV.V is the new Unicode version number).
  2. copy the whole content of emoji-zwj-sequences.txt to your clipboard
  3. edit this page (the module's documentation page)
  4. paste your clipboard into this page overwriting any previous version of the Unicode data; do not disturb the html comment tags.
  5. replace the url in the {{#invoke:}} with the url of the new emoji-zwj-sequences.txt file
  6. preview this page; if nothing wrong with the rendering, save.
  7. copy emoji_t to your clipboard and paste it over emoji_t in Module:Citation/CS1/Configuration/sandbox (always update the live module suite from its sandboxen)

emoji_t

[edit]

use this table to overwrite same-named table in Module:Citation/CS1/Configuration/sandbox

-- list of emoji that use a zwj character (U+200D) to combine with another emoji
-- from: https://unicode.org/Public/emoji/16.0/emoji-zwj-sequences.txt; version: 16.0; 2024-08-14
-- table created by: [[:en:Module:Make emoji zwj table]]
local emoji_t = {																-- indexes are decimal forms of the hex values in U+xxxx
	[8596] = true,																-- U+2194 ↔ left right arrow
	[8597] = true,																-- U+2195 ↕ up down arrow
	[9760] = true,																-- U+2620 ☠ skull and crossbones
	[9792] = true,																-- U+2640 ♀ female sign
	[9794] = true,																-- U+2642 ♂ male sign
	[9877] = true,																-- U+2695 ⚕ staff of aesculapius
	[9878] = true,																-- U+2696 ⚖ scales
	[9895] = true,																-- U+26A7 ⚧ male with stroke and male and female sign
	[9992] = true,																-- U+2708 ✈ airplane
	[10052] = true,																-- U+2744 ❄ snowflake
	[10084] = true,																-- U+2764 ❤ heavy black heart
	[10145] = true,																-- U+27A1 ➡ black rightwards arrow
	[11035] = true,																-- U+2B1B ⬛ black large square
	[127752] = true,															-- U+1F308 🌈 rainbow
	[127787] = true,															-- U+1F32B 🌫 fog
	[127806] = true,															-- U+1F33E 🌾 ear of rice
	[127859] = true,															-- U+1F373 🍳 cooking
	[127868] = true,															-- U+1F37C 🍼 baby bottle
	[127876] = true,															-- U+1F384 🎄 christmas tree
	[127891] = true,															-- U+1F393 🎓 graduation cap
	[127908] = true,															-- U+1F3A4 🎤 microphone
	[127912] = true,															-- U+1F3A8 🎨 artist palette
	[127979] = true,															-- U+1F3EB 🏫 school
	[127981] = true,															-- U+1F3ED 🏭 factory
	[128102] = true,															-- U+1F466 👦 boy
	[128103] = true,															-- U+1F467 👧 girl
	[128104] = true,															-- U+1F468 👨 man
	[128105] = true,															-- U+1F469 👩 woman
	[128139] = true,															-- U+1F48B 💋 kiss mark
	[128165] = true,															-- U+1F4A5 💥 collision symbol
	[128168] = true,															-- U+1F4A8 💨 dash symbol
	[128171] = true,															-- U+1F4AB 💫 dizzy symbol
	[128187] = true,															-- U+1F4BB 💻 personal computer
	[128188] = true,															-- U+1F4BC 💼 brief case
	[128293] = true,															-- U+1F525 🔥 fire
	[128295] = true,															-- U+1F527 🔧 wrench
	[128300] = true,															-- U+1F52C 🔬 microscope
	[128488] = true,															-- U+1F5E8 🗨 left speech bubble
	[128640] = true,															-- U+1F680 🚀 rocket
	[128658] = true,															-- U+1F692 🚒 fire engine
	[129001] = true,															-- U+1F7E9 🟩 large green square
	[129003] = true,															-- U+1F7EB 🟫 large brown square
	[129309] = true,															-- U+1F91D 🤝 handshake
	[129455] = true,															-- U+1F9AF 🦯 probing cane
	[129456] = true,															-- U+1F9B0 🦰 emoji component red hair
	[129457] = true,															-- U+1F9B1 🦱 emoji component curly hair
	[129458] = true,															-- U+1F9B2 🦲 emoji component bald
	[129459] = true,															-- U+1F9B3 🦳 emoji component white hair
	[129466] = true,															-- U+1F9BA 🦺 safety vest
	[129468] = true,															-- U+1F9BC 🦼 motorized wheelchair
	[129469] = true,															-- U+1F9BD 🦽 manual wheelchair
	[129489] = true,															-- U+1F9D1 🧑 adult
	[129490] = true,															-- U+1F9D2 🧒 child
	[129657] = true,															-- U+1FA79 🩹 adhesive bandage
	[129778] = true,															-- U+1FAF2 🫲 leftwards hand
	}

emoji_names_t

[edit]

use this table to overwrite same-named table in :en:Module:Make emoji zwj table; add missing names.

local emoji_names_t = {															-- keys are hex values from U+xxxx code points
	['2194'] = 'left right arrow',
	['2195'] = 'up down arrow',
	['2620'] = 'skull and crossbones',
	['2640'] = 'female sign',
	['2642'] = 'male sign',
	['2695'] = 'staff of aesculapius',
	['2696'] = 'scales',
	['26A7'] = 'male with stroke and male and female sign',
	['2708'] = 'airplane',
	['2744'] = 'snowflake',
	['2764'] = 'heavy black heart',
	['27A1'] = 'black rightwards arrow',
	['2B1B'] = 'black large square',
	['1F308'] = 'rainbow',
	['1F32B'] = 'fog',
	['1F33E'] = 'ear of rice',
	['1F373'] = 'cooking',
	['1F37C'] = 'baby bottle',
	['1F384'] = 'christmas tree',
	['1F393'] = 'graduation cap',
	['1F3A4'] = 'microphone',
	['1F3A8'] = 'artist palette',
	['1F3EB'] = 'school',
	['1F3ED'] = 'factory',
	['1F466'] = 'boy',
	['1F467'] = 'girl',
	['1F468'] = 'man',
	['1F469'] = 'woman',
	['1F48B'] = 'kiss mark',
	['1F4A5'] = 'collision symbol',
	['1F4A8'] = 'dash symbol',
	['1F4AB'] = 'dizzy symbol',
	['1F4BB'] = 'personal computer',
	['1F4BC'] = 'brief case',
	['1F525'] = 'fire',
	['1F527'] = 'wrench',
	['1F52C'] = 'microscope',
	['1F5E8'] = 'left speech bubble',
	['1F680'] = 'rocket',
	['1F692'] = 'fire engine',
	['1F7E9'] = 'large green square',
	['1F7EB'] = 'large brown square',
	['1F91D'] = 'handshake',
	['1F9AF'] = 'probing cane',
	['1F9B0'] = 'emoji component red hair',
	['1F9B1'] = 'emoji component curly hair',
	['1F9B2'] = 'emoji component bald',
	['1F9B3'] = 'emoji component white hair',
	['1F9BA'] = 'safety vest',
	['1F9BC'] = 'motorized wheelchair',
	['1F9BD'] = 'manual wheelchair',
	['1F9D1'] = 'adult',
	['1F9D2'] = 'child',
	['1FA79'] = 'adhesive bandage',
	['1FAF2'] = 'leftwards hand',
	}