Commit Graph

331 Commits (7b180af3a60968383bba60e7384a246ab42d380b)

Author SHA1 Message Date
dougfelt 6197b23cda Merge pull request #166 from Upgrade-to-Python3/modernize-python2-code
Modernize Python 2 code to get ready for Python 3
2017-09-15 09:03:34 -07:00
cclauss 4607d55e4c Modernize Python 2 code to get ready for Python 3 2017-09-14 22:18:24 +02:00
dougfelt 7159f45c58 Merge pull request #165 from dougfelt/emoji_svg_fixes
Fixed svgs to remove embedded raster data.
2017-09-13 13:20:25 -07:00
Doug Felt b4967d8f84 Fixed svgs to remove embedded raster data.
Fixes were applied to upstream .ai files and the svg regenerated.
2017-09-13 13:17:45 -07:00
dougfelt a4ddd5b44f Merge pull request #159 from cclauss/patch-2
Add collect_glyphstr_file_pairs(verbosity=1) param
2017-08-27 12:53:40 -07:00
dougfelt d97777d183 Merge pull request #162 from dougfelt/master
Regenerate emoji font with fixed PNGs.
2017-08-27 12:25:47 -07:00
Doug Felt 474505eeaf Regenerate emoji font with fixed PNGs.
The previous release of the font used some incorrect sequences due to
the presence of old png image data in the sources.
2017-08-27 12:23:43 -07:00
dougfelt be7dd29d44 Merge pull request #160 from dougfelt/master
Re-add PNGS which were accidentally deleted.
2017-08-27 10:39:55 -07:00
Doug Felt fe2ced8501 Re-add PNGS which were accidentally deleted.
A previous commit intended to remove the old PNGS and just leave the
new ones, but neglected to add the new ones resulting in the deletion
of all the PNGs.  Um... oops.
2017-08-27 10:37:06 -07:00
dougfelt 3625797463 Merge pull request #158 from cclauss/patch-1
flag_dir --> flags_dir
2017-08-27 10:32:10 -07:00
cclauss a40f35525f Add collect_glyphstr_file_pairs(verbosity=1) param
Currently `verbosity` is an undefined name and line 201 will raise a `NameError` when executed.  The only other place in this repo where `verbosity` is defined is as a function parameter to [do_generate_test_html()](5e1808fbbe/generate_test_html.py (L28)) with a default value of `verbosity=1`.

Someone who really understands the functioning of this code should __carefully review this change before merging it__.  My sense is that this approach is better than raising a NameError but perhaps I am all wet.
2017-08-26 20:44:39 +02:00
cclauss ef5cd135ed flag_dir --> flags_dir
In some places `build_svg_dir()` the variable is `flag_dir` (singular) and in others `flags_dir` (plural).  Settled on plural everywhere to match the function parameter name.
2017-08-26 20:21:46 +02:00
dougfelt 8a6530b7b2 Merge pull request #157 from dougfelt/release_png
Update SVG and PNG images
2017-08-25 17:15:12 -07:00
Doug Felt e2a1cbe3c4 Remove 'aliased' PNG images that were in the previous style.
The update to the new design accidentally left some old images.  The new
design doesn't include resources for images we alias, and when the
directory was updated I forgot to remove the images corresponding to the
aliases.
2017-08-25 17:09:09 -07:00
Doug Felt f931bea0ef Update svgs to new design.
This also deletes the svg images that are 'aliases' of existing images
according to our alias table, and the few flags (the flag data is not
sourced in the same way).
2017-08-25 16:59:06 -07:00
dougfelt d5fd60d976 Merge pull request #156 from dougfelt/release_font
Update color emoji font to version 2.001, new design.
2017-08-25 15:57:36 -07:00
Doug Felt 91dc393ca4 Update color emoji font to version 2.001, new design. 2017-08-25 15:56:00 -07:00
dougfelt 2d38dc4158 Merge pull request #155 from dougfelt/release_pngs
Update PNG resources to the new design.
2017-08-25 15:23:51 -07:00
Doug Felt 69b0092a76 Update PNG resources to the new design. 2017-08-25 13:55:18 -07:00
dougfelt e456654119 Merge pull request #149 from dougfelt/master
Update README to reflect that NotoColorEmoji is checked in.
2017-07-17 11:33:43 -07:00
Doug Felt 36125c20f8 Update README to reflect that NotoColorEmoji is checked in.
Formerly we included a statement that it had to be built first.
2017-07-17 11:31:45 -07:00
dougfelt 8692845322 Merge pull request #144 from dougfelt/thumb_crop
Crop emoji images to square before scaling.
2017-06-01 13:01:34 -07:00
Doug Felt 567b23e171 Crop emoji images to square before scaling.
When building the font, images are composited onto a slightly
rectangular canvas that's 4 pixels wider on the left and right.
The thumbnails though are required to be 72x72, i.e. square.
In order that they look the intended size we need to crop off
the margins that were added earlier.
2017-06-01 11:24:27 -07:00
dougfelt 80b052875b Merge pull request #139 from dougfelt/emoji_name_skip_misc
Provide option to skip groups when generating emoji name data.
2017-05-26 09:38:35 -07:00
dougfelt 379fcaf955 Merge pull request #140 from dougfelt/thumb_bw_fix
Fix emoji thumbnail generation to prevent grayscale pngs.
2017-05-25 11:18:07 -07:00
Doug Felt 518294f018 Fix emoji thumbnail generation to prevent grayscale pngs.
Same problem that we ran into previously with the emoji font--
imagemagick takes RGBA that contain only grayscale and converts
to grayscale with alpha, but although it can display these ok,
chrome can't.  So force it to generate RGBA output.
2017-05-25 11:14:09 -07:00
Doug Felt faba60f158 Provide option to skip groups when generating emoji name data.
In particular, default to skipping Misc.  These images don't display
well (white/transparent, so disappear against white) and are of
limited interest.
2017-05-25 11:12:05 -07:00
dougfelt d4c0fbb9f5 Merge pull request #135 from dougfelt/emoji_svg
Emoji svg
2017-05-23 16:57:54 -07:00
Doug Felt f2a4f72bff Add missing SVGs, and clean.
This adds the 50-odd missing SVGs that were not added earlier.
Note that we are still missing the rainbow flag (we don't seem to
have a vector source) and most of the regional flags.  The ~10
regional flags we do have do not match the png images, since they
were sourced differently.  Currently we do not provide the flags
since we cannot rely on support for the svg operations necessary
to implement the 'wave' transform (nor do we have the code to
apply it...)

This also aligns naming between the svg and png.  In particular, it
strips fe0f (emoji variation selector) from the names, and omits
1f48f (kiss) and 1f491 (couple with heart) as these alias.  Those
images are now used for the respective heterosexual couples.

All the files were processed with the revised svg_cleaner tool, and
so are a bit smaller as a result.  Other than some formatting
changes the main changes are removal of the xml doc header, removal
of the application comment, and removal of / changes to some
attributes of the svg tag.
2017-05-23 11:31:41 -07:00
Doug Felt 0d603f5af5 Update svg_cleaner.
Some of the SVGs we're getting aren't clean, so tweak the cleaner
to handle this.
2017-05-23 11:29:15 -07:00
dougfelt ca22132c45 Merge pull request #132 from dougfelt/master
Update Noto Color Emoji font to 1.39.
2017-05-18 18:02:11 -07:00
Doug Felt 98fe0a9ed4 Update Noto Color Emoji font to 1.39.
This fixes the skin tones of the light/medium light male cook emoji,
which had been swapped.
2017-05-18 17:52:21 -07:00
dougfelt 009916646e Merge pull request #130 from dougfelt/gen_version
Add tool for updating the version info in the color emoji template.
2017-05-18 14:14:35 -07:00
Doug Felt c853b95987 Add tool for updating the version info in the color emoji template.
Right now we do this by hand.  This makes it possible to do this
automatically.  It also adds information to the nametable version
string about the commit the font was built from.
2017-05-17 17:59:21 -07:00
dougfelt aedda3111b Merge pull request #129 from dougfelt/emoji_name_limit
Let user control error limit parameter in generate_emoji_name_data.
2017-05-17 10:23:10 -07:00
dougfelt d7a04a95ee Merge pull request #128 from dougfelt/fix_find_python
Fix scripts that auto-invoke python to find it correctly.
2017-05-17 10:21:32 -07:00
Doug Felt 4685eb2cc8 Let user control error limit parameter in generate_emoji_name_data.
The alias/unicode data is ahead of the current image data, which means
a lot of images appear to be 'missing' when generating names for the
current data set.  Make it possible to set/ignore the limit on the
number of missing images before an exception is thrown.
2017-05-17 10:08:49 -07:00
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 1337f85e94 Merge pull request #127 from dougfelt/alias_mod
Update add_aliases to optionally create copies.
2017-05-17 08:45:12 -07:00
Doug Felt 029f65ee98 Update add_aliases to optionally create copies.
Once again we need to create aliases, slightly differently.  In this
case we want to generate new copies of files, not symlinks, and
generate the copies in a new location.  So add these options.
2017-05-16 13:04:53 -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