Documentation

Commentary

Vexil can convert:
- from two-letter territory code to territory flag
- from territory flag to two-letter territory code
- from subdivision code to subdivision flag
- from subdivision flag to subdivision code

A territory code can be anything from ISO 3166-1 alpha-2.
Subdivision code can be anything from ISO 3166-2.

A territory is typically a "country", with some exceptions (e.g. EU โ†’ ๐Ÿ‡ช๐Ÿ‡บ).

Strings return strings; symbols return symbols.

Examples:
  (vexil-flag "AQ")    => "๐Ÿ‡ฆ๐Ÿ‡ถ"
  (vexil-flag 'GL)     => '๐Ÿ‡ฌ๐Ÿ‡ฑ
  (vexil-flag 'GB-WLS) => '๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ
  (vexil-code '๐Ÿ‡จ๐Ÿ‡ญ)     => 'CH
  (vexil-code "๐Ÿ‡ช๐Ÿ‡บ")    => "EU"
  (vexil-code "๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ")    => "GB-ENG"

Interactive functions are also available.

Your system needs a font that can display flag emojis. Then:
- Flags of all territories are usually available.
- As for subdivisions:
  - England (๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ), Scotland (๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ), and Wales (๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ) are usually available.
  - Beyond that, it'll depend on the font.

There're no lookup tables: conversion depends solely on the input.

For all the details, please do see the README

Open it easily with:
  (find-file-read-only "README.org")   <--- C-x C-e hereยน

or from any buffer:
  M-x vexil-see-readme

or read it online:
  <https://flandrew.srht.site/listful/sw-emacs-vexil.html>

ยน or the key that โ€˜eval-last-sexpโ€™ is bound to, if not C-x C-e.

Requires

Dependencies

Consumers

Reverse Dependencies

No reverse dependencies recorded.