Commit Graph

350 Commits (a9ca546689d384b0ca73ad2a476891c3caaedc20)

Author SHA1 Message Date
Doug Felt 7212bff68a Merge branch 'master' into emoji_checK 2017-01-19 10:51:35 -08:00
Doug Felt dd2244a9b8 Add check for emoji sequence coverage. 2017-01-19 10:50:40 -08:00
dougfelt 561d08a89c Merge pull request #83 from dougfelt/emoji_checK
Update emoji sequence check to be more flexible.
2017-01-19 10:48:01 -08:00
Doug Felt 2a6c35a1bd Make tool run correctly under virtualenv. 2017-01-18 14:56:16 -08:00
Doug Felt 4ec1a5fed8 Update emoji sequence check to be more flexible.
- supports checking files with other extension besides .png
- checks all files under a root directory and not just the
  files directly in a directory
- checks for duplicate files in multiple directories under a root
- reports the directory containing a file when there are problems
2017-01-18 14:48:52 -08:00
dougfelt f09b63d1ec Merge pull request #78 from dougfelt/gendered_professions
Update emoji pngs with gendered professions.
2016-10-20 11:19:56 -07:00
Doug Felt 3757e8aeed Update emoji pngs with gendered professions. 2016-10-20 11:03:44 -07:00
dougfelt 036a9e27d5 Merge pull request #77 from dougfelt/readme_update
Clarify copyright status of image data in the main README.
2016-10-20 10:51:14 -07:00
Doug Felt 51a7d28c6b Clarify copyright status of image data in the main README. 2016-10-20 10:50:18 -07:00
dougfelt 791941db84 Merge pull request #76 from dougfelt/emoji_png_fixes
Update png files with updates from designers.
2016-10-17 15:40:59 -07:00
Doug Felt 50addd12f4 Update png files with updates from designers.
(This is part of bringing svg versions into sync with png.)
2016-10-17 15:38:22 -07:00
dougfelt 86051fda51 Merge pull request #75 from dougfelt/master
Add 'standalone' option to copy image data used by html page.
2016-10-13 10:11:53 -07:00
Doug Felt 1a5925a871 Add 'standalone' option to copy image data used by html page.
The generated html references images in multiple directories that
might not be in any defined location relative to the html file.
For sharing the results it's convenient if we have the images
and html file under the same parent directory.  This option computes
the necessary images and copies them to directories under the directory
into which the html file is written, and makes the html file reference
the files in these new locations.

In addition, this removes some clutter from the generated table by
using the nth-last-of-type pseudo-class selector instead of tagging
all the cells in a column with a class name.
2016-10-12 15:54:37 -07:00
dougfelt fcc3cfed6f Merge pull request #73 from dougfelt/master
Update waveflag to upstream
2016-10-07 15:32:23 -07:00
Doug Felt 41fa8181f5 Update for new waveflag semantics.
Previously our copy of waveflag took just an input and output filename.
Upstream takes a prefix and one or more input filenames, and concatenates
the prefix to the input filename as the output.

The makefile is changed to pass a prefix and the input filename, instead
of the input filename and the output filename as it formerly did.

Unfortunately for us, our inputs have a directory prefix since they're
not in the current directory, and we don't want this prefix in the output
file path.  So we tweak our copy of waveflag.c to call basename on the
input file path before we append it to the prefix.

We also make the tool a little less noisy by putting more printfs
under the debug flag.
2016-10-07 14:31:12 -07:00
Doug Felt 741f8b92c9 Update waveflag.c to upstream version.
Also updates LDFLAGS to match upstream.
2016-10-07 14:21:32 -07:00
dougfelt a4ab161af7 Merge pull request #70 from dougfelt/master
Update copyright language in templates.
2016-09-27 11:30:45 -07:00
Doug Felt 53f860f2e2 Update copyright language in templates.
"All Rights Reserved." is not meaningful and can be confusing, so it
was removed.

The SVG template was updated to the current OFL copyright language.
2016-09-27 11:26:22 -07:00
dougfelt 5e1808fbbe Merge pull request #68 from dougfelt/master
Mention fontTools dependency in README.
2016-09-08 18:07:06 -07:00
Doug Felt decb43b8ba Mention fontTools dependency in README. 2016-09-08 18:06:31 -07:00
dougfelt 7571f88c8e Merge pull request #64 from dougfelt/master
Add ability to highlight some emoji when generating html
2016-08-24 16:19:54 -07:00
Doug Felt d1a760e5e3 Add ability to highlight some emoji when generating html
This adds an argument to generate_emoji_html that specifies
a file listing codepoint sequences.  Emoji matching one of these
codepoint sequences are highlighted in the output.
2016-08-18 16:03:32 -07:00
dougfelt 53c1b584fa Restore ability of waveflag to generate other size flags. (#63)
When waveflag.c was forked from behdad's repo one of the changes that
was made effectively removed the ability to generate different sizes
of flags, despite leaving the SIZE value in the source.  Recently we
needed to generate waved flags at a different power-of-two size, and
found it no longer functioned as the original.  These changes restore
that while leaving the other changes in this forked version (mostly
formatting changes) intact.
2016-08-15 14:05:54 -07:00
dougfelt 2c3079cf3d Merge pull request #60 from dougfelt/html_gen_2
Show codepoints for sequences in generate emoji html tool.
2016-07-14 14:38:39 -07:00
Doug Felt 2232f4df82 Show codepoints for sequences in generate emoji html tool.
It used to be difficult to find a sequence since the codepoints weren't
provided, just the images.  This provides the codepoint list as
the 'name' of the sequence.

This also makes some other changes:
- the python template system doesn't like keyword names that have have
  hyphens, so rename font-face-style to fontFaceStyle to get around this.
  Thought this had been fixed earlier, but apparently it didn't end up in
  a pushed commit.
- no longer insert emoji variation selector after some characters.
  This was done to see what difference it made in browser behavior, but
  we think now that browsers should be able to handle these sequences
  without the selectors present.
- use a flag to pass name of output html file, rather than taking it as
  a direct arg.  other flags take multiple args, and if the html file
  name comes after one of those, it gets swallowed by the other flag,
  so it has to come first.  This lets you put the file name anywhere
  in the parameter list, the flag acts as a delimiter.
2016-07-14 13:32:40 -07:00
dougfelt 4bc270adbb Merge pull request #59 from dougfelt/fitz_ordering_fix
Update handling of fitzpatrick modifiers.
2016-07-13 13:08:30 -07:00
Doug Felt e16b39e492 Bump version, specify additional chars in varsel cmap.
The additional variation chars option makes it easier to build prototype
versions of the emoji font.
2016-07-13 11:36:25 -07:00
dougfelt 84de76effd Merge pull request #58 from dougfelt/html_gen
Update emoji html generation tool to show images rendered by font.
2016-07-11 14:54:48 -07:00
Doug Felt 7c719f9166 Update emoji html generation tool to show images rendered by font.
Images are shown in LTR and RTL contexts.  Chrome currently doesn't
correctly render some emoji sequences, in part this is because it is
using Unicode 8 property data.  At any rate, these are known Chrome
issues.
2016-07-11 14:53:58 -07:00
Doug Felt be1ec4f152 Update handling of fitzpatrick modifiers.
To handle forming emoji 'ligatures' in RTL contexts we generate
reversed ligature sequences for the GSUB table.  Formerly we only did
this when there was a ZWJ in the sequence, and full reversal worked
because we had no sequences with both fitzpatrick modifiers and ZWJ.
However, now we do.  Harfbuzz treats fitzpatrick modifiers as though
they were combining marks and so we need to as well so that GSUB data
is in the order Harfbuzz expects.  So we 'unreverse' these pairs.
2016-07-11 11:31:51 -07:00
dougfelt 1da485d2be Merge pull request #57 from dougfelt/master
Update two emoji and bump version.
2016-06-30 14:00:01 -07:00
Doug Felt a5ff5e034d Update two emoji and bump version.
This aligns the face colors of 1f47f and 1f608.
2016-06-30 13:57:35 -07:00
dougfelt f94b8f3b9e Merge pull request #56 from dougfelt/fix_background
Fix a few emoji to improve visibility against light/dark gray backgro…
2016-06-16 12:58:17 -07:00
Doug Felt b73ae61a77 Fix a few emoji to improve visibility against light/dark gray backgrounds.
Also updates revision number.
2016-06-16 10:39:32 -07:00
dougfelt a964c12db8 Merge pull request #54 from dougfelt/master
Update emoji images to latest versions.
2016-05-20 14:30:25 -07:00
Doug Felt 71187500d7 Update emoji images to latest versions.
- adds remaining Unicode 9 emoji.
- updates template to new version number.
- emoji_ufe82b.png is now a symlink to unknown_flag.png
2016-05-20 14:00:48 -07:00
dougfelt 7c0d24f2f2 Merge pull request #53 from dougfelt/master
Update IC flag from upstream.
2016-04-27 13:02:43 -07:00
Doug Felt 04bde33598 Update IC flag from upstream.
The .svg had already been updated, must have missed the .png.  The new
image is the civil flag.
2016-04-27 13:00:47 -07:00
dougfelt 88747bb0e4 Merge pull request #51 from dougfelt/emoji_html_fix
Tweak emoji html to display images against darker color.
2016-04-25 14:53:18 -07:00
dougfelt bc208e5d80 Merge pull request #52 from dougfelt/emoji_tools
Add some simple tools to inspect data.
2016-04-18 14:27:27 -07:00
Doug Felt 5fd46ab136 Add limit option to generate_emoji_html.
By default the tool uses all sequences that appear in any of the image
sets. To make it easier to see just the changes between a smaller
set of images and a large one, this lets you limit the sequences
to just those in the first set being compared.
2016-04-15 15:07:58 -07:00
Doug Felt 8b2596d76a Generate file references relative to destination of output file.
Formerly, we wrote the file paths as given on the command line, the
assumption being that the output file was in the cwd and the paths
to the directories would be correct.

However if we want to generate the output file somewhere other than
the cwd the generated image paths don't work.  This takes the location
of the output file into account and either generates relative paths
if the files are under the output file directory, or absolute paths
otherwise.
2016-04-15 15:00:32 -07:00
Doug Felt b3c61ff233 Add some simple tools to inspect data.
- materialize_emoji_images is a tool that adds symlinks to an existing set
  of images to add aliases with names that match some of those that get
  are built into the ligature table.  This is for the convenience of folks
  who want to review the images and see what sequences/codepoints we support.
  I've been asked to do this enough that I might as well just build a tool
  for it.
- flag_info picks out the flag images in a directory based on two kinds of
  naming styles the data use (ASCII or emoji_u+codepoint) and presents them
  in a list similar to that in the Makefile.  It helps when tracking down
  what flags we support and what we don't by making it easier to compare
  sets of flag images with different naming.  This is another quick one-off.
2016-04-14 17:46:19 -07:00
Doug Felt 59e04933c0 Tweak emoji html to display images against darker color. 2016-04-14 17:40:13 -07:00
dougfelt 7c92c3cfdd Merge pull request #50 from dougfelt/svg_updates
Update svg emoji tools.
2016-04-13 11:39:24 -07:00
Doug Felt b1588691cd Fix direction of comparision, use symbolic constant instead of raw value. 2016-04-13 11:38:03 -07:00
Doug Felt 44568b1c93 Remove overlooked option that is not needed with change to use logging. 2016-04-13 11:34:24 -07:00
Doug Felt 83978272f5 Update svg emoji tools.
- Reformat lines to 80 columns.

- Use logging instead of verbose/quiet other options.

- A few miscellaneous small fixes/tweaks to parameters.  Removed some
  file-path-relative stuff that assumed old directory structure.

This uses some new fns in nototools.tool_utils, see nototools#220.
2016-04-12 17:07:27 -07:00
dougfelt e7a7241a92 Merge pull request #49 from dougfelt/tweaks
Tweaks to emoji build tools to deal with odds and ends.
2016-04-05 14:40:24 -07:00
Doug Felt ae1b8331ee Tweaks to emoji build tools to deal with odds and ends. 2016-04-05 13:28:40 -07:00