Tweaked svg_cleaner a bit to remove display none, add option to
strip whitespace. Stripping viewBox was too aggressive, two of our
emoji have non-default viewBox values, so emit it when x or y
are not zero.
Added script to invoke scour (now must be part of installation).
- 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.
collect_emoji_svg takes the region-flags data in third_party
and copies/renames it into a target dir, then overlays this with
the data in noto/color_emoji/svg (which also has a few flags in
it).
generate_test_html changes the html to make room for the flag glyphs,
which are a lot wider. It also adds a flag so we can skip regenerating
the .ttx file in case we want to muck with it directly and regenerate
the .woff from that.
svg_builder has a number of changes needed to deal with the much
more varied svg in the region_flags data. See comments in the file
for some of the changes that needed to be made. Some of these
changes are provisional pending clarification of the spec, which
doesn't provide enough guidance.
svg_cleaner is changed slightly to strip width and height, this step
now happens after extract this information from svg in svg_builder,
instead of before.
third_party subdir is for forks/clones of external projects. The svg code
isn't a modification to that project, but an addition to the font-building
code in noto/color_emoji.
This also fixes a slight bug in the html generation, which set the default
large glyph image but forgot to set the hex version of the text below it.