Commit Graph

242 Commits (94e2cde27fdb70db5f239feed4188ca657ffc26d)

Author SHA1 Message Date
Doug Felt 94e2cde27f Fix scripts that auto-invoke python to find it correctly.
Some of our environments use python from /usr/local/bin. In these
environments using /usr/bin/python can cause unexpected behavior
since the python module search path is different.  So use env
to find python using the PATH instead.
2017-05-17 09:28:52 -07:00
dougfelt 3fb9bf6158 Merge pull request #124 from dougfelt/emoji_names
Move emoji name tool from nototools to here, and change a bit.
2017-05-16 13:01:51 -07:00
Doug Felt 8a26752e49 Move emoji name tool from nototools to here, and change a bit.
The emoji name tool is used to generate titles of emoji images in
pages on the get/noto web site, and group them into related sets.

The original emoji name tool in nototools was based on various
informal emoji name data files plus additional tweaks.  Now there
is a standard source of this data and it is parsed by unicode_data
in nototools.  So we start with that data.

The name data from there is designed for Unicode use and it not
quite appropriate for titles in this format.  This tool tweaked
those names.  This operates in much the same way, except the names
are a bit different when coming from the unicode_data source
and so require somewhat different tweaks.

The emoji alias data/code resides in noto-emoji, but the client for
this tool is in nototools, so it's a bit unclear where to put this.
To avoid circular dependencies, formerly we duplicated some flag
aliasing information in the nototools version.  Now we're trying
the opposite approach, putting the tool in noto-emoji instead...
2017-05-16 11:34:44 -07:00
dougfelt 8fe55cab0d Merge pull request #126 from dougfelt/cook_skin_swap
Fix noto-emoji#125
2017-05-16 11:03:01 -07:00
Doug Felt 788396cd00 Fix noto-emoji#125
Male cook light/medium light images were swapped, both png and svg.
2017-05-16 10:03:43 -07:00
dougfelt 563fa14298 Merge pull request #123 from DeeDeeG/add-sign_of_the_horns-generic-skintone
Add sign of the horns w/ generic skin tone (1f918)
2017-05-05 14:49:27 -07:00
DeeDeeG 417f21b6c6 Add sign of the horns w/ generic skin tone (1f918)
This is a simple recolor, starting from one of the non-generic sign of
the horns SVGs.

For programs that need both the base and the skin-tone modifier glyph,
this enables both the base (generic) sign of the horns emoji,
and also enables all the emoji versions with specific skin tones.
2017-05-05 16:48:46 -04:00
dougfelt 8056f381ac Merge pull request #120 from asturur/patch-1
remove white background from eyes
2017-05-02 11:31:38 -07:00
Andrea Bogazzi 6dea8e015b remove white background from eyes 2017-05-02 17:05:04 +02:00
dougfelt 191f7be364 Merge pull request #117 from dougfelt/current_svg
Add/update svg for most images in current design.
2017-05-01 15:55:32 -07:00
Doug Felt 9da2857552 Add/update svg for most images in current design.
SVG conversion issues prevented 54 images from being updated:
emoji_u2648.svg
emoji_u1f321.svg
emoji_u1f34c.svg
emoji_u1f35b.svg
emoji_u1f377.svg
emoji_u1f3f5.svg
emoji_u1f468_1f3fb_200d_1f680.svg
emoji_u1f468_1f3fc_200d_1f680.svg
emoji_u1f468_1f3fd_200d_1f680.svg
emoji_u1f468_1f3fe_200d_1f680.svg
emoji_u1f468_1f3ff_200d_1f680.svg
emoji_u1f468_200d_1f680.svg
emoji_u1f469_1f3fb_200d_1f680.svg
emoji_u1f469_1f3fc_200d_1f680.svg
emoji_u1f469_1f3fd_200d_1f680.svg
emoji_u1f469_1f3fe_200d_1f680.svg
emoji_u1f469_1f3ff_200d_1f680.svg
emoji_u1f469_200d_1f680.svg
emoji_u1f47c_1f3fb.svg
emoji_u1f47c_1f3fc.svg
emoji_u1f47c_1f3fd.svg
emoji_u1f47c_1f3fe.svg
emoji_u1f47c_1f3ff.svg
emoji_u1f47c.svg
emoji_u1f4f8.svg
emoji_u1f4ff.svg
emoji_u1f5c2.svg
emoji_u1f5de.svg
emoji_u1f644.svg
emoji_u1f6eb.svg
emoji_u1f6ec.svg
emoji_u1f6f0.svg
emoji_u1f6f4.svg
emoji_u1f6f5.svg
emoji_u1f6f6.svg
emoji_u1f911.svg
emoji_u1f912.svg
emoji_u1f914.svg
emoji_u1f915.svg
emoji_u1f917.svg
emoji_u1f918.svg
emoji_u1f922.svg
emoji_u1f923.svg
emoji_u1f924.svg
emoji_u1f942.svg
emoji_u1f943.svg
emoji_u1f94a.svg
emoji_u1f952.svg
emoji_u1f953.svg
emoji_u1f981.svg
emoji_u1f989.svg
emoji_u1f98a.svg
emoji_u1f98f.svg
emoji_u1f991.svg
2017-05-01 13:51:59 -07:00
dougfelt 8f0a65b1ae Merge pull request #116 from dougfelt/waveflag
Waveflag
2017-04-27 17:51:31 -07:00
Doug Felt 3ae82ce23d Equally lighten and darken flags.
Apply patch from upstream 9c4f5f11802c 'Adjust shadow to equally
darken and lighten'.  The waved flags were noticeably darker than
the source image, for example the blue of the Russian flag was too
dark.
2017-04-27 15:06:55 -07:00
Doug Felt 46418225ff Quiet warning caused by const argument to basename.
The cases in which this warning is legitimate are failing cases
for us anyway, so just cast away const to silence this warning.
2017-04-27 15:02:41 -07:00
Doug Felt 7a38f23a17 Merge remote-tracking branch 'upstream/master' 2017-04-25 13:03:10 -07:00
dougfelt ff566b2c16 Merge pull request #114 from dougfelt/legacy_android
Legacy android
2017-04-25 13:02:45 -07:00
Doug Felt 040f82bb2b Update version. 2017-04-23 20:31:11 -07:00
Doug Felt 1e09374c16 Identify excluded images explicitly.
Formerly when we were missing an image in the standard emoji sequence
we always labeled it as 'missing'.  However, android excludes some
region flags, so we expect those to be missing and labeling them
implies an error.  Add a new category 'exclude' and populate it
using the unknown-flag alias keys.
2017-04-13 14:34:20 -07:00
Doug Felt 612d1a7589 Add aliases for legacy android sequences.
Standard Unicode (emoji v5) does not define skin tones for wrestlers,
but android does.  Alias the skin tone variants of the non-gender-
specific emoji to the corresponding male emoji, as we do for the
non-skin-tone version.
2017-04-13 14:32:15 -07:00
dougfelt 8f0ab6079e Merge pull request #112 from dougfelt/emoji_html_template
Use standard string.Template mechanism.
2017-04-12 11:02:23 -07:00
dougfelt 2b48e7d5d7 Merge pull request #113 from dougfelt/fix_image_resize
Fix image resize, use quality arg to pngquant, quiet Makefile
2017-04-12 11:02:03 -07:00
Doug Felt fe67fac240 Use quality param with optipng.
When images are not processed due to not being able to meet the
minimum quality setting, error 99 is returned, so catch this too
so we still copy the file.

Might still want to tweak these settings.
2017-04-12 09:00:01 -07:00
Doug Felt 2afcb05d16 Quiet makefile output. 2017-04-12 08:59:16 -07:00
Doug Felt ee81bf8043 Fix resize of grayscale images.
When imagemagick 6.7.7-10 is processing the '-extent' operator and
discovers an image is grayscale, it turns the 32-bit truecolor sRGB
image into a grayscale image, but does so incorrectly-- the gray
levels and alpha are wrong.  Get around this by using composition
to copy the source image over a slightly larger transparent image.
2017-04-12 08:53:18 -07:00
Doug Felt fabd80e194 Use standard string.Template mechanism. 2017-04-12 08:47:24 -07:00
dougfelt 2b65d032c4 Merge pull request #111 from dougfelt/emoji_thumbnail
Emoji thumbnail
2017-04-10 16:21:00 -07:00
Doug Felt 7ce8ee5d73 Update thumbnail generation and add unknown flag sequences.
Thumbnail generation for Unicode requires some changes:
- 72x72 images (exact, not just fit within that frame)
- custom prefix ending in underscore
- images for unsupported flags

The default build doesn't support some flags by default, since they
are not wanted by Android.  For the thumbnail list these images need
to be provided, so we alias them to the unknown flag images as that's
what would show for them.  It's probably a good idea to list these
explicitly anyway, other tools could use this information.
2017-04-10 13:43:00 -07:00
Doug Felt f89867eab6 Merge branch 'master' into emoji_thumbnail 2017-04-07 13:51:05 -07:00
dougfelt ff93f20f66 Merge pull request #110 from dougfelt/emoji_data_update
Emoji data update
2017-04-06 09:51:37 -07:00
Doug Felt 294308f913 Add tool to generate emoji thumbnails.
To generate the Unicode comparison page of various vendor emoji,
Unicode prefers to use 72x72 images for all the supported emoji
without aliasing.  This tool will generate these from the
directory of cleaned images produced by the emoji build, using
the aliases defined in emoji_aliases.txt.
2017-04-05 15:32:59 -07:00
Doug Felt 893db190d7 Add aliases for new version 5 emoji. 2017-04-05 14:47:36 -07:00
Doug Felt 511f1096dc Rebuild of NotoColorEmoji font. Images should be the same. 2017-04-03 14:42:22 -07:00
dougfelt 0e73244b3f Merge pull request #107 from dougfelt/readme3
Fix README, Windows 10 itself supports COLO/CPAL, not just Edge.
2017-03-17 09:48:37 -07:00
Doug Felt 41a1f62fc0 Fix README, Windows 10 itself supports COLO/CPAL, not just Edge. 2017-03-17 09:45:26 -07:00
dougfelt 47b8f7f07e Merge pull request #106 from dougfelt/readme_again
Use official name of Chromium OS.
2017-03-16 17:00:57 -07:00
Doug Felt f8cfda51f8 Use official name of Chromium OS. 2017-03-16 16:59:42 -07:00
dougfelt c7cf9d3a2d Merge pull request #105 from dougfelt/readme
Add note on NotoColorEmoji support on various OSs/web browsers.
2017-03-16 16:39:15 -07:00
Doug Felt b4a58a3487 Add note on NotoColorEmoji support on various OSs/web browsers. 2017-03-16 15:19:44 -07:00
dougfelt 09e5d14766 Merge pull request #103 from dougfelt/emoji_font_binary
Add NotoColorEmoji.ttf binary.
2017-03-10 17:27:43 -08:00
Doug Felt 733a622129 Add NotoColorEmoji.ttf binary.
Previously we haven't put the binary into the repo itself, since it's
built using the tooling.  But people who fetch fonts from the get/noto
website want to know more about the version history of the fonts they
find there.  Checking the binary into the noto-emoji site will facilitate
this.

This was built locally from the public images using the standard makefile
and zopflipng.
2017-03-10 16:34:14 -08:00
dougfelt 732cb454ac Merge pull request #101 from dougfelt/emoji_html_title
Emoji html title
2017-03-08 14:29:33 -08:00
Doug Felt 0d36d125aa Fix display of 'parts' of sequences in the sequence column.
When relying on aliasing, a number of single character emoji can be
replaced by sequence emoji (in particular, gendered variants).  If
these images aren't present, the current code that displays a sequence
'visually' fails to find an image for one of the parts, so bails and
there's no visual presentation for those sequences.

To fix this, we first canonicalize the part we're looking for, and try
to find an image for that, and if we fail we check for an alias and
try to find an image for that.
2017-03-07 17:54:41 -08:00
Doug Felt d4da27eef8 Canonicalize aliases.
Forgot to canonicalize the aliases, so most of them wouldn't get used
because the keys against which they're compared are canonical.  Fixed
that.

Also report unused aliases.
2017-03-07 16:59:50 -08:00
Doug Felt ed190c7060 Merge branch 'master' into emoji_html_title 2017-03-07 14:39:57 -08:00
dougfelt 07d4c025a4 Merge pull request #100 from dougfelt/fix_aliased_couples
Use full sequences to name images for mixed-gender couples.
2017-03-07 14:39:07 -08:00
dougfelt 77c99fd5f4 Merge pull request #99 from dougfelt/no_fe0f
Remove 'fe0f' from emoji asset names.
2017-03-07 14:38:50 -08:00
Doug Felt 0d0db39af0 Update emoji html page generation.
- Support --ignore_missing flag to skip missing data on output.
  When all_images is set, this skips sequences for which we have
  no image files.  When all_images is not set, this skips sequences
  for which we have image files but are not in the canonical
  sequence list (e.g. older sequences for which we included skin
  tone variants but which later versions of unicode decided there
  shouldn't be).
- Use alias information to add alias sequences when not using
  all_images and we have an image for the target sequence.
- Use alias information to mark missing images with '-alias-' when
  we expect an alias (note, not only when we actually have one)
- Embed tool name, date, and arguments in a comment in the generated
  html.
2017-03-07 14:28:21 -08:00
Doug Felt b9cbe2324c Use full sequences to name images for mixed-gender couples.
We currently name the mixed-gender 'kiss' and 'couple with heart'
images after the single-codepoint sequences.  But aliasing maps
the single codepoint sequence to the gendered sequence, not the
reverse.  As a result the build doesn't create ligatures for the
gendered sequences, since it thinks the image doesn't exist.

Fix this to use the gendered-sequence-names for these images, and
let aliasing work as intended.  This follows the convention we've
adopted of letting the name more completely describe the image
contents, and defining how to represent less-specific sequences
using aliasing rather than baking these decisions into each image
name.
2017-03-06 16:02:24 -08:00
Doug Felt 1165ab005c Remove 'fe0f' from emoji asset names.
We've been inconsistent about use of the variation selector in image names,
and it's cleaner if we just consistently drop it.  We use the unicode data
for the full unicode strings for these names now so we don't need it in
the image data.
2017-03-06 15:05:21 -08:00
dougfelt 700c7fb76f Merge pull request #98 from dougfelt/master
Get back in sync, init lookup table.
2017-03-02 11:03:32 -08:00