Dark

šŸ‘Ø + šŸ‘© + šŸ‘¦ = šŸ‘Øā€šŸ‘©ā€šŸ‘¦

ć‚¼ćƒ­å¹…ęŽ„åˆå­ć«ć‚ˆć‚‹åˆęˆ

Unicode 恧ćÆ态複ꕰ恮ēµµę–‡å­—ć‚’ēµ„ćæåˆć‚ć›ć¦1恤恮ēµµę–‡å­—ćØć™ć‚‹ć‚‚ć®ćŒå®šē¾©ć•ć‚Œć¦ć„ć¾ć™ć€‚
ä¾‹ćˆć°ć“ć‚“ćŖꄟ恘恧恙怂

šŸ‘Ø + šŸ‘© + šŸ‘¦ = šŸ‘Øā€šŸ‘©ā€šŸ‘¦ 

åˆęˆć«ä½æć‚ć‚Œć‚‹ć®ćÆ Zero Width Joiner (ZWJ, ć‚¼ćƒ­å¹…ęŽ„åˆå­)ćØå‘¼ć°ć‚Œć‚‹ę–‡å­—ć§ć™ć€‚ć‚³ćƒ¼ćƒ‰ćƒć‚¤ćƒ³ćƒˆćÆU+200D恧恙怂äøŠčØ˜ć®+ć«č©²å½“ć—ć¾ć™ć€‚

仄äø‹ć®ć‚³ćƒ¼ćƒ‰ć‚’ćƒ–ćƒ©ć‚¦ć‚¶ć®ć‚³ćƒ³ć‚½ćƒ¼ćƒ«ć«č²¼ć‚Šä»˜ć‘ć‚‹ćØć€å®¶ę—ć®ēµµę–‡å­— (Emoji List, v13.0 - family)恌č”Øē¤ŗ恕悌悋ćØę€ć„ć¾ć™ (ćƒ–ćƒ©ć‚¦ć‚¶ćŒåˆęˆēµµę–‡å­—ć‚’ć‚µćƒćƒ¼ćƒˆć—ć¦ć„ć‚Œć°ļ¼‰ć€‚

String.fromCodePoint(0x1F468, 0x200D, 0x1F469, 0x200D, 0x1F467, 0x200D, 0x1F466); // => "šŸ‘Øā€šŸ‘©ā€šŸ‘¦"

꧘怅ćŖč‚Œć®č‰²ć‚‚ēµµę–‡å­—恮ēµ„ćæåˆć‚ć›ć«ć‚ˆć£ć¦å®Ÿē¾ć•ć‚Œć¦ć„ć¾ć™ć€‚

emoji_diversity

UTS #51: Unicode Emoji - 2.4 Diversity 悈悊

ć‚¢ćƒ—ćƒŖć‚±ćƒ¼ć‚·ćƒ§ćƒ³å†…ć§ēµµę–‡å­—ć‚’ä½æ恆際恫ę³Øę„ć™ć¹ćć“ćØćŒć‚ć‚Šć¾ć™ć€‚String.prototype.length恮ēµęžœćŒē›“ꄟćØäø€č‡“恗ćŖ恄ćØ恄恆ē‚¹ć§ć™ć€‚

'šŸ‘Øā€šŸ‘©ā€šŸ‘¦ '.length // => 8

šŸ‘Ø, šŸ‘©, šŸ‘¦ 恌恝悌恞悌2ę–‡å­—ć€1ę–‡å­—ćØć‚«ć‚¦ćƒ³ćƒˆć•ć‚Œć‚‹ ZWJ 恌2ć¤ć§åˆč؈8悒čæ”ć—ć¦ć„ć¾ć™ć€‚
恓恓恧ćÆč©³ē“°ć«ē«‹ć”å…„ć‚Šć¾ć›ć‚“ćŒć€šŸ‘Ø 恌2ę–‡å­—ć«ćŖ悋ē†ē”±ć‚„态ē›“ꄟćØäø€č‡“ć™ć‚‹ę–‡å­—åˆ—ć®é•·ć•ć®ę•°ćˆę–¹ćÆ ēµµę–‡å­—ć ćƒ§! ē¬¦å·åŒ–ę–‡å­—é›†åˆ(前ē·Ø) - mixi engineer blog 恧čŖ¬ę˜Žć•ć‚Œć¦ć„ć¾ć™ć€‚

ē•°ä½“å­—ć‚»ćƒ¬ć‚Æć‚æć«ć‚ˆć‚‹åˆęˆ

Unicode 恫ćÆ态ē•°ä½“å­—ćŖć©ć®å­—å½¢ć®é•ć„ć‚’č”Øē¾ć™ć‚‹ćŸć‚ć«ē”Øć„ć‚‰ć‚Œć‚‹ę–‡å­—ć€ē•°ä½“å­—ć‚»ćƒ¬ć‚Æć‚æćŒć‚ć‚Šć¾ć™ć€‚ēµµę–‡å­—恫ä½æ悏悌悋ēµµę–‡å­—ē‰¹åŒ–ē•°ä½“å­—ć‚»ćƒ¬ć‚Æć‚æć®ć‚³ćƒ¼ćƒ‰ćƒć‚¤ćƒ³ćƒˆćÆU+FE0F恧恙怂
恓悌悒ä½æć£ć¦ć€1ļøāƒ£ ć‚’ä½œć‚‹ć“ćØćŒć§ćć¾ć™ć€‚

String.fromCodePoint(0x0031); // => "1"
String.fromCodePoint(0x20E3); // => "āƒ£"
// äøŠčؘ2ć¤ć®ę–‡å­—ć®é–“ć«ē•°ä½“å­—ć‚»ćƒ¬ć‚Æć‚æ U+FE0F 悒ē½®ć
String.fromCodePoint(0x0031, 0xFE0F, 0x20E3); // => "1ļøāƒ£"

ćŠć‚ć‚Šć«

今回ē“¹ä»‹ć—ćŸć‚‚ć®ę„å¤–ć«ć‚‚ć€å›½ę——ć®ć‚ˆć†ćŖčˆˆå‘³ę·±ć„ēµµę–‡å­—ćŒć‚ć‚‹ć®ć§ēµµę–‡å­—ćƒŖć‚¹ćƒˆć‚’ēœŗ悁恦ćæ悋ćØ面ē™½ć„恧恙怂

String.fromCodePoint(0x1F1EF); // => "šŸ‡Æ"
String.fromCodePoint(0x1F1F5); // => "šŸ‡µ"
String.fromCodePoint(0x1F1EF, 0x1F1F5); // => "šŸ‡ÆšŸ‡µ"

å‚č€ƒ

  1. [ę”¹čØ‚ę–°ē‰ˆ]ćƒ—ćƒ­ć‚°ćƒ©ćƒžć®ćŸć‚ć®ę–‡å­—ć‚³ćƒ¼ćƒ‰ęŠ€č”“å…„é–€ (WEB+DB PRESS plusć‚·ćƒŖćƒ¼ć‚ŗ). ēŸ¢é‡Ž 啓介
  2. Unicode Emoji v13.0
  3. Unicode ē•°ä½“å­—ć‚»ćƒ¬ć‚Æć‚æ - CyberLibrarian
Share:
čؘäŗ‹äø€č¦§
Dark