<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>flags &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/flags/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sun, 22 Oct 2023 08:34:30 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>flags &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Quirks and Limitations of Emoji Flags]]></title>
		<link>https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/</link>
					<comments>https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 26 Jun 2019 11:32:26 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[emoji]]></category>
		<category><![CDATA[flags]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[🏳️‍⚧️]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=32374</guid>

					<description><![CDATA[This blog post contains emoji which your system may not be able to display.  You may see broken text, weird symbols, or other buggy rendering.  The Transgender Flag is a draft candidate for Emoji 13.0 under the name Blue, Pink, and White Flag. A number of platforms include an image for this emoji, but do not show it on the emoji keyboard. As of June 2019 this is now supported on Twitter platforms …]]></description>
										<content:encoded><![CDATA[<p>This blog post contains emoji which your system may not be able to display.  You may see broken text, weird symbols, or other buggy rendering.</p>

<blockquote><p>The Transgender Flag is a draft candidate for Emoji 13.0 under the name Blue, Pink, and White Flag.
A number of platforms include an image for this emoji, but do not show it on the emoji keyboard. As of June 2019 this is now supported on Twitter platforms that use Twemoji.
<a href="https://emojipedia.org/transgender-flag/">Emojipedia</a></p></blockquote>

<p>The (proposed) Transgender Flag looks like this <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style="width: 2em; border-radius:0;"><path fill="#5BCEFA" d="M0 27c0 2.209 1.791 4 4 4h28c2.209 0 4-1.791 4-4v-1.2H0V27zM36 9c0-2.209-1.791-4-4-4H4C1.791 5 0 6.791 0 9v1.2h36V9z"></path><path fill="#F5A9B8" d="M.026 10.1L0 15.4h36v-5.2l-20.5-.1zm0 10.4L0 25.8h36v-5.2l-20.5-.1z"></path><path fill="#EEE" d="M.026 15.3L0 20.6h36v-5.2l-20.5-.1z"></path></svg> (image) or like this <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏳️‍⚧️</span> (emoji).  It is a composite character consisting of four elements:</p>

<ul>
<li><span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏳️</span>  waving white flag (U+1F3F3)</li>
<li>Variation selector-16  (U+FE0F)</li>
<li><span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">⚧️</span>  male with stroke and male and female sign (U+26A7)</li>
<li>Variation selector-16  (U+FE0F)</li>
</ul>

<p>The Variation Selector basically says, "treat the preceding character as a colourful emoji rather than a normal character."</p>

<p>So, how do emoji flags work? There are, broadly speaking, 4 types of emoji flags.</p>

<h2 id="natural-flags"><a href="https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/#natural-flags">Natural Flags</a></h2>

<p>There are seven flag characters in Unicode:</p>

<p><span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏁🎌🏳️🏴⛳🚩</span><span style="font-size:2em;border-radius: 0;line-height: 2em; padding: .1em;">⛿</span></p>

<p>They are independent characters. Use them however you like.</p>

<h2 id="country-flags"><a href="https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/#country-flags">Country Flags</a></h2>

<p>(Almost) every country has an emoji flag in Unicode.  Here's the UK's <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🇬🇧</span>
Rather than take up loads of space in the spec with each flag, Unicode uses "Regional Identifier Letters."  Take the country's two letter ISO 3166-1 alpha-2 code, place them next to each other with no spaces, and a flag will magically appear.</p>

<p>The flag of "United Kingdom of Great Britain and Northern Ireland" is the symbol 🇬 and 🇧 placed together. Not 🇺 and 🇰 - because that would make life too easy!</p>

<h2 id="regional-flags"><a href="https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/#regional-flags">Regional Flags</a></h2>

<p>Wales is a country within the UK. It has its own flag <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏴󠁧󠁢󠁷󠁬󠁳󠁿</span>.
Texas is a state within the USA. It has its own flag <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏴󠁵󠁳󠁴󠁸󠁿</span>.</p>

<p>The way these flags are constructed is different from the country flags.</p>

<p>Wales is 🏴 (Waving Black Flag) then the "Tag Latin Small" letters G, B, W, L, S, then the "Cancel Tag" symbol.</p>

<p>Texas uses Tag Latin Small Letters U, S, T, X, and then the Cancel Tag.</p>

<p>The "Tag Latin" block was <a href="https://en.wikipedia.org/wiki/Tags_(Unicode_block)">originally intended for the invisible mark-up of documents</a> - that's no longer recommended. They are now only used for modifying emoji.</p>

<p>Most systems do not support regional flags other than England, Scotland, and Wales.</p>

<h2 id="symbolic-flags"><a href="https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/#symbolic-flags">Symbolic Flags</a></h2>

<p>Finally, we get on to flags which are in widespread use, but don't belong to geographical or regional identities.</p>

<ul>
<li>The Pirate Flag <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏴‍☠️</span> is <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏴</span>, variation selector-16, and <span style="font-size:2em;">☠</span> (Skull and Crossbones)</li>
<li>The Pride / Rainbow Flag is <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🏳️‍🌈</span> - this uses the white <span style="font-size:2em;border-radius: 0;line-height: 2em; padding: .1em;">🏳</span> flag, variation selector-16, and <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🌈</span> (Rainbow).</li>
</ul>

<p>So, there are <strong>six</strong> possible ways to write a flag in Unicode:</p>

<ol>
<li>a unique character,</li>
<li>a pair of letters,</li>
<li>a black flag and tag characters,</li>
<li>a black flag with a variation and an emoji</li>
<li>a white flag with a variation and an emoji</li>
<li>a white flag with a variation and a character with a variation</li>
</ol>

<h2 id="limitations"><a href="https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/#limitations">Limitations</a></h2>

<p>No historic flags.  The flag of the USA has changed several times over the country's history - more recently <a href="https://en.wikipedia.org/wiki/Flag_of_Afghanistan#Historical_flags">the flag of Afghanistan has changed</a>. The emoji flag is always the most recent version.</p>

<p>Flags of countries which no longer exist. Countries change, merge, and collapse. There's <a href="https://github.com/Crissov/unicode-proposals/issues/204">no flag for the Soviet Union</a> or Yugoslavia for example.</p>

<p>Contentious flags. The <a href="https://www.taiwannews.com.tw/en/news/3404781">emoji flag of Taiwan <span style="font-size:2em;background:#fff;border-radius: 0;line-height: 2em; padding: .1em;">🇹🇼</span> is banned in China</a>.  There are regions around the world which have their own flag, but aren't always recognised as distinct countries.</p>

<p>Counting is hard. To a human, a single flag looks like one character 🇬🇧. But to a computer, it could look like several. On a service like Twitter which has a 280 character limitation that can cause confusion for the user. The number of characters a user thinks they've written may be at odds with what the computer says.</p>

<p>The biggest limitation is the time it takes for emoji to filter their way down to every computer.  Hopefully you'll soon see 🏳️‍⚧️ as a flag, rather than an odd looking emoji sequence.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=32374&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2019/06/quirks-and-limitations-of-emoji-flags/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Falsehoods programmers believe about flags]]></title>
		<link>https://shkspr.mobi/blog/2019/06/falsehoods-programmers-believe-about-flags/</link>
					<comments>https://shkspr.mobi/blog/2019/06/falsehoods-programmers-believe-about-flags/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sat, 01 Jun 2019 11:04:50 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[falsehoods]]></category>
		<category><![CDATA[flags]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[usability]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=32239</guid>

					<description><![CDATA[(For more about the &#34;Falsehoods&#34; meme - read the big list of falsehoods programmers believe.)  Do You Want To Phone A Friend?  A popular website asked me to confirm my phone number.  It &#34;helpfully&#34; pre-filled the country-code with +1.  And proudly displayed the Stars and Stripes.    Except, of course, the USA isn&#039;t the only country to use +1 - our friends in the Great White North also use +1.   …]]></description>
										<content:encoded><![CDATA[<p>(For more about the "Falsehoods" meme - read the <a href="https://github.com/kdeldycke/awesome-falsehood">big list of falsehoods programmers believe</a>.)</p>

<h2 id="do-you-want-to-phone-a-friend"><a href="https://shkspr.mobi/blog/2019/06/falsehoods-programmers-believe-about-flags/#do-you-want-to-phone-a-friend">Do You Want To Phone A Friend?</a></h2>

<p>A popular website asked me to confirm my phone number.  It "helpfully" pre-filled the country-code with <code>+1</code>.  And proudly displayed the Stars and Stripes.</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2019/05/USA-Flag.png" alt="A dropdown box showing the flag of the USA next to a plus 1." width="683" height="285" class="aligncenter size-full wp-image-32241">

<p>Except, of course, the USA isn't the only country to use <code>+1</code> - our friends in the Great White North also use <code>+1</code>.</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2019/05/Canada-Flag.png" alt="A dropdown box showing the flag of Canada next to a plus 1." width="683" height="285" class="aligncenter size-full wp-image-32240">

<p>Thanks to the <a href="https://en.wikipedia.org/wiki/North_American_Numbering_Plan">North American Numbering Plan</a>, a full 25 countries or territories use <code>+1</code>.  From  Anguilla 🇦🇮 to Turks and Caicos Islands 🇹🇨.  OK… their flags look pretty similar! But they're obviously different from 🇺🇸!</p>

<p>Canada 🇨🇦 and Jamaica 🇯🇲 have very different flags - and climates - but they both use <code>+1</code>.</p>

<p>I <em>suspect</em> that the website designers were expecting people to look at the flag and realise that it didn't represent their home country, and then change it.  However, for the majority of <code>+1</code> countries which aren't part of the United States, it looks a little crass.</p>

<p>My home country, the United Kingdom 🇬🇧, uses the <code>+44</code> code. As do Guernsey 🇬🇬, Jersey 🇯🇪, and the Isle of Man 🇮🇲.</p>

<p>The UK is comprised of Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿, England 🏴󠁧󠁢󠁥󠁮󠁧󠁿, Wales 🏴󠁧󠁢󠁷󠁬󠁳󠁿, and N.I. (with a more <a href="https://en.wikipedia.org/wiki/Flag_of_Northern_Ireland">complicated flag status</a>!)</p>

<p>People can have a complicated relationship with flags. Your glorious banner of home might be my symbol of a conquering despot.</p>

<p>Flags change. <a href="https://en.wikipedia.org/wiki/Flag_of_Afghanistan#Historical_flags">Afghanistan's</a> flag has changed 4 times since the year 2000.</p>

<p>Some <a href="https://commons.wikimedia.org/wiki/Flags_of_unrecognized_states">flags are not recognised</a> by other countries.</p>

<p>Flags represent countries, states, territories, and pirate ships 🏴‍☠️ - but they do not represent international dialling codes!</p>

<h2 id="lingua-franca"><a href="https://shkspr.mobi/blog/2019/06/falsehoods-programmers-believe-about-flags/#lingua-franca">Lingua Franca</a></h2>

<p>Lots of countries speak English. But the majority of them don't have 🇬🇧 as their flag.</p>

<p>Indeed, lots of people in the UK don't speak English. So using a 🇬🇧 to indicate language choice may be confusing.</p>

<p>If you are in South Africa, there are <a href="https://southcoastherald.co.za/242725/what-are-the-11-official-languages-of-south-africa-how-many-do-you-know-2/">11 official languages</a>. Does 🇿🇦 represent Xhosa, Zulu, Afrikaans, English…?</p>

<p>Flags are for golf courses ⛳, motor-sports 🏁, and for Pride 🏳️‍🌈 - not for representing languages.</p>

<h2 id="do-you-have-a-flag"><a href="https://shkspr.mobi/blog/2019/06/falsehoods-programmers-believe-about-flags/#do-you-have-a-flag">Do You Have A Flag</a></h2>

<p>I'm pretty sure the law requires me to share this video…</p>

<iframe title="Eddie Izzard &quot;Do You Have a Flag?&quot; Sketch From &quot;Dress to Kill&quot;" width="620" height="465" src="https://www.youtube.com/embed/_9W1zTEuKLY?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=32239&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2019/06/falsehoods-programmers-believe-about-flags/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
