summaryrefslogtreecommitdiff
path: root/plugins/emoji
diff options
context:
space:
mode:
authorJanosch Schwalm <janosch.schwalm@gmail.com>2018-08-07 20:42:02 +0200
committerMarc CornellΓ  <marc.cornella@live.com>2018-08-07 20:42:01 +0200
commit19b925e741fa46d2222210469a4dffc34a634ebd (patch)
tree7a426724df64bdfcbe68d1688cb08c0f51e600a7 /plugins/emoji
parente934624b32f8c370306355ab8a78667a5a6240d3 (diff)
downloadzsh-19b925e741fa46d2222210469a4dffc34a634ebd.tar.gz
zsh-19b925e741fa46d2222210469a4dffc34a634ebd.tar.bz2
zsh-19b925e741fa46d2222210469a4dffc34a634ebd.zip
use https everywhere (#6574)
* use https everywhere * use https links on the files that are left Also, removed some broken links and updated redirections.
Diffstat (limited to 'plugins/emoji')
-rw-r--r--plugins/emoji/README.md6
-rw-r--r--plugins/emoji/emoji-data.txt4
-rw-r--r--plugins/emoji/update_emoji.pl12
3 files changed, 11 insertions, 11 deletions
diff --git a/plugins/emoji/README.md b/plugins/emoji/README.md
index 889e567e6..8b8860a86 100644
--- a/plugins/emoji/README.md
+++ b/plugins/emoji/README.md
@@ -71,7 +71,7 @@ PROMPT="$surfer > "
## Technical Details
-The emoji names and codes are sourced from Unicode Technical Report \#51, which provides information on emoji support in Unicode. It can be found at http://www.unicode.org/reports/tr51/index.html.
+The emoji names and codes are sourced from Unicode Technical Report \#51, which provides information on emoji support in Unicode. It can be found at https://www.unicode.org/reports/tr51/index.html.
The group definitions are added by this OMZ plugin. They are not based on external definitions. (As far as I can tell. -apjanke)
@@ -108,7 +108,7 @@ The `$emoji_skintone` associative array maps skin tone IDs to the variation sele
echo "$emoji[smiling_face_with_open_mouth]$emoji_skintone[4]"
```
-Note that `$emoji_skintone` is an associative array, and its keys are the *names* of "Fitzpatrick Skin Type" groups, not linear indexes into a normal array. The names are `1_2`, `3`, `4`, `5`, and `6`. (Types 1 and 2 are combined into a single color.) See the [Diversity section in Unicode TR 51](http://www.unicode.org/reports/tr51/index.html#Diversity) for details.
+Note that `$emoji_skintone` is an associative array, and its keys are the *names* of "Fitzpatrick Skin Type" groups, not linear indexes into a normal array. The names are `1_2`, `3`, `4`, `5`, and `6`. (Types 1 and 2 are combined into a single color.) See the [Diversity section in Unicode TR 51](https://www.unicode.org/reports/tr51/index.html#Diversity) for details.
## TODO
@@ -130,6 +130,6 @@ This does *not* mean that it should use Gemoji at run time. None of the `zsh` pl
#### ZWJ combining function
-One of the newer features of Unicode emoji is the ability to use the "Zero-Width Joiner" character to compose multiple emoji characters in to a single "emoji ligature" glyph. For example, this is [how Apple supports "family" emoji with various genders and skin tones](http://www.unicode.org/reports/tr51/index.html#ZWJ_Sequences).
+One of the newer features of Unicode emoji is the ability to use the "Zero-Width Joiner" character to compose multiple emoji characters in to a single "emoji ligature" glyph. For example, this is [how Apple supports "family" emoji with various genders and skin tones](https://www.unicode.org/reports/tr51/index.html#ZWJ_Sequences).
These are a pain to write out (and probably worse to read), and it might be convenient to have a couple functions for concisely composing them, if wider support for them appears.
diff --git a/plugins/emoji/emoji-data.txt b/plugins/emoji/emoji-data.txt
index 7b4c015f7..2d6d64e2b 100644
--- a/plugins/emoji/emoji-data.txt
+++ b/plugins/emoji/emoji-data.txt
@@ -17,7 +17,7 @@
# none: not applicable
# Field 4 β€” Emoji_Sources:
# one or more values from {z, a, j, w, x}
-# see the key in http://www.unicode.org/draft/reports/tr51/tr51.html#Major_Sources
+# see the key in https://www.unicode.org/draft/reports/tr51/tr51.html#Major_Sources
# NA: not applicable
# Comment β€” currently contains the version where the character was first encoded,
# followed by:
@@ -1200,7 +1200,7 @@
1F1F2 1F1ED ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡­) flag for Marshall Islands
1F1F2 1F1F0 ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡°) flag for Macedonia
1F1F2 1F1F1 ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡±) flag for Mali
-1F1F2 1F1F2 ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡²) flag for Myanmar
+1F1F2 1F1F2 ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡²) flag for Myanmar
1F1F2 1F1F3 ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡³) flag for Mongolia
1F1F2 1F1F4 ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡΄) flag for Macau
1F1F2 1F1F5 ; emoji ; L2 ; none ; x # V6.0 (πŸ‡²πŸ‡΅) flag for Northern Mariana Islands
diff --git a/plugins/emoji/update_emoji.pl b/plugins/emoji/update_emoji.pl
index 04f3ce8e7..8034052b7 100644
--- a/plugins/emoji/update_emoji.pl
+++ b/plugins/emoji/update_emoji.pl
@@ -5,15 +5,15 @@
# This script generates the emoji.plugin.zsh emoji definitions from the Unicode
# character data for the emoji characters.
#
-# The data file can be found at http://unicode.org/Public/emoji/latest/emoji-data.txt
-# as referenced in Unicode TR51 (http://www.unicode.org/reports/tr51/index.html).
+# The data file can be found at https://unicode.org/Public/emoji/latest/emoji-data.txt
+# as referenced in Unicode TR51 (https://www.unicode.org/reports/tr51/index.html).
#
# This is known to work with the data file from version 1.0. It may not work with later
# versions if the format changes. In particular, this reads line comments to get the
# emoji character name and unicode version.
#
# Country names have punctuation and other non-letter characters removed from their name,
-# to avoid possible complications with having to escape the strings when using them as
+# to avoid possible complications with having to escape the strings when using them as
# array subscripts. The definition file seems to use some combining characters like accents
# that get stripped during this process.
@@ -41,7 +41,7 @@ sub process_emoji_data_file {
#
# This contains the definition for:
# \$emoji - which maps character names to Unicode characters
-# \$emoji_flags - maps country names to Unicode flag characters using region indicators
+# \$emoji_flags - maps country names to Unicode flag characters using region indicators
# Main emoji
typeset -gAH emoji
@@ -63,7 +63,7 @@ typeset -gAH emoji_mod
next if /^\s*#/ or /^\s*$/;
if (/^(\S.*?\S)\s*;\s*(\w+)\s*;\s*(\w+)\s*;\s*(\w+)\s*;\s*(\w.*?)\s*#\s*V(\S+)\s\(.*?\)\s*(\w.*\S)\s*$/) {
- my ($code, $style, $level, $modifier_status, $sources, $version, $keycap_name)
+ my ($code, $style, $level, $modifier_status, $sources, $version, $keycap_name)
= ($1, $2, $3, $4, $5, $6, $7);
#print "code=$code style=$style level=$level modifier_status=$modifier_status sources=$sources version=$version name=$keycap_name\n";
my @code_points = split /\s+/, $code;
@@ -84,7 +84,7 @@ typeset -gAH emoji_mod
if ($flag_country) {
$outfh->print("emoji_flags[$zsh_flag_country]=\$'$zsh_code'\n");
} else {
- $outfh->print("emoji[$omz_name]=\$'$zsh_code'\n");
+ $outfh->print("emoji[$omz_name]=\$'$zsh_code'\n");
}
# Modifiers are included in both the main set and their separate map,
# because they have a standalone representation as a color swatch.