Updates scripts in preparation for Weather Icons (WIP issue #226)

This commit is contained in:
Ryan L McIntyre 2018-02-15 17:46:19 -05:00
parent 780abd4432
commit 6955ac2bdb
3 changed files with 243 additions and 1 deletions

View file

@ -0,0 +1,235 @@
#!/bin/bash
# Weather Icons (228 icons)
# Codepoints: F000, F0EB, Nerd Fonts moved F328-F413
# Script Version 1.0.0
# @todo names
test -n "$__i_weather_loaded" && return || __i_weather_loaded=1
i='' i_weather_uniF000=$i
i='' i_weather_uniF001=$i
i='' i_weather_uniF002=$i
i='' i_weather_uniF003=$i
i='' i_weather_uniF004=$i
i='' i_weather_uniF005=$i
i='' i_weather_uniF006=$i
i='' i_weather_uniF007=$i
i='' i_weather_uniF008=$i
i='' i_weather_uniF009=$i
i='' i_weather_uniF00A=$i
i='' i_weather_uniF00B=$i
i='' i_weather_uniF00C=$i
i='' i_weather_uniF00D=$i
i='' i_weather_uniF00E=$i
i='' i_weather_uniF010=$i
i='' i_weather_uniF011=$i
i='' i_weather_uniF012=$i
i='' i_weather_uniF013=$i
i='' i_weather_uniF014=$i
i='' i_weather_uniF015=$i
i='' i_weather_uniF016=$i
i='' i_weather_uniF017=$i
i='' i_weather_uniF018=$i
i='' i_weather_uniF019=$i
i='' i_weather_uniF01A=$i
i='' i_weather_uniF01B=$i
i='' i_weather_uniF01C=$i
i='' i_weather_uniF01D=$i
i='' i_weather_uniF01E=$i
i='' i_weather_uniF021=$i
i='' i_weather_uniF022=$i
i='' i_weather_uniF023=$i
i='' i_weather_uniF024=$i
i='' i_weather_uniF025=$i
i='' i_weather_uniF026=$i
i='' i_weather_uniF027=$i
i='' i_weather_uniF028=$i
i='' i_weather_uniF029=$i
i='' i_weather_uniF02A=$i
i='' i_weather_uniF02B=$i
i='' i_weather_uniF02C=$i
i='' i_weather_uniF02D=$i
i='' i_weather_uniF02E=$i
i='' i_weather_uniF02F=$i
i='' i_weather_uniF030=$i
i='' i_weather_uniF031=$i
i='' i_weather_uniF032=$i
i='' i_weather_uniF033=$i
i='' i_weather_uniF034=$i
i='' i_weather_uniF035=$i
i='' i_weather_uniF036=$i
i='' i_weather_uniF037=$i
i='' i_weather_uniF038=$i
i='' i_weather_uniF039=$i
i='' i_weather_uniF03A=$i
i='' i_weather_uniF03B=$i
i='' i_weather_uniF03C=$i
i='' i_weather_uniF03D=$i
i='' i_weather_uniF03E=$i
i='' i_weather_uniF040=$i
i='' i_weather_uniF041=$i
i='' i_weather_uniF042=$i
i='' i_weather_uniF043=$i
i='' i_weather_uniF044=$i
i='' i_weather_uniF045=$i
i='' i_weather_uniF046=$i
i='' i_weather_uniF047=$i
i='' i_weather_uniF048=$i
i='' i_weather_uniF049=$i
i='' i_weather_uniF04A=$i
i='' i_weather_uniF04B=$i
i='' i_weather_uniF04C=$i
i='' i_weather_uniF04D=$i
i='' i_weather_uniF04E=$i
i='' i_weather_uniF050=$i
i='' i_weather_uniF051=$i
i='' i_weather_uniF052=$i
i='' i_weather_uniF053=$i
i='' i_weather_uniF054=$i
i='' i_weather_uniF055=$i
i='' i_weather_uniF056=$i
i='' i_weather_uniF057=$i
i='' i_weather_uniF058=$i
i='' i_weather_uniF059=$i
i='' i_weather_uniF05A=$i
i='' i_weather_uniF05B=$i
i='' i_weather_uniF05C=$i
i='' i_weather_uniF05D=$i
i='' i_weather_uniF05E=$i
i='' i_weather_uniF060=$i
i='' i_weather_uniF061=$i
i='' i_weather_uniF062=$i
i='' i_weather_uniF063=$i
i='' i_weather_uniF064=$i
i='' i_weather_uniF065=$i
i='' i_weather_uniF066=$i
i='' i_weather_uniF067=$i
i='' i_weather_uniF068=$i
i='' i_weather_uniF069=$i
i='' i_weather_uniF06A=$i
i='' i_weather_uniF06B=$i
i='' i_weather_uniF06C=$i
i='' i_weather_uniF06D=$i
i='' i_weather_uniF06E=$i
i='' i_weather_uniF070=$i
i='' i_weather_uniF071=$i
i='' i_weather_uniF072=$i
i='' i_weather_uniF073=$i
i='' i_weather_uniF074=$i
i='' i_weather_uniF075=$i
i='' i_weather_uniF076=$i
i='' i_weather_uniF077=$i
i='' i_weather_uniF078=$i
i='' i_weather_uniF079=$i
i='' i_weather_uniF07A=$i
i='' i_weather_uniF07B=$i
i='' i_weather_uniF07C=$i
i='' i_weather_uniF07D=$i
i='' i_weather_uniF07E=$i
i='' i_weather_uniF080=$i
i='' i_weather_uniF081=$i
i='' i_weather_uniF082=$i
i='' i_weather_uniF083=$i
i='' i_weather_uniF084=$i
i='' i_weather_uniF085=$i
i='' i_weather_uniF086=$i
i='' i_weather_uniF087=$i
i='' i_weather_uniF088=$i
i='' i_weather_uniF089=$i
i='' i_weather_uniF08A=$i
i='' i_weather_uniF08B=$i
i='' i_weather_uniF08C=$i
i='' i_weather_uniF08D=$i
i='' i_weather_uniF08E=$i
i='' i_weather_uniF08F=$i
i='' i_weather_uniF090=$i
i='' i_weather_uniF091=$i
i='' i_weather_uniF092=$i
i='' i_weather_uniF093=$i
i='' i_weather_uniF094=$i
i='' i_weather_uniF095=$i
i='' i_weather_uniF096=$i
i='' i_weather_uniF097=$i
i='' i_weather_uniF098=$i
i='' i_weather_uniF099=$i
i='' i_weather_uniF09A=$i
i='' i_weather_uniF09B=$i
i='' i_weather_uniF09C=$i
i='' i_weather_uniF09D=$i
i='' i_weather_uniF09E=$i
i='' i_weather_uniF09F=$i
i='' i_weather_uniF0A0=$i
i='' i_weather_uniF0A1=$i
i='' i_weather_uniF0A2=$i
i='' i_weather_uniF0A3=$i
i='' i_weather_uniF0A4=$i
i='' i_weather_uniF0A5=$i
i='' i_weather_uniF0A6=$i
i='' i_weather_uniF0A7=$i
i='' i_weather_uniF0A8=$i
i='' i_weather_uniF0A9=$i
i='' i_weather_uniF0AA=$i
i='' i_weather_uniF0AB=$i
i='' i_weather_uniF0AC=$i
i='' i_weather_uniF0AD=$i
i='' i_weather_uniF0AE=$i
i='' i_weather_uniF0AF=$i
i='' i_weather_uniF0B0=$i
i='' i_weather_uniF0B1=$i
i='' i_weather_uniF0B2=$i
i='' i_weather_uniF0B3=$i
i='' i_weather_uniF0B4=$i
i='' i_weather_uniF0B5=$i
i='' i_weather_uniF0B6=$i
i='' i_weather_uniF0B7=$i
i='' i_weather_uniF0B8=$i
i='' i_weather_uniF0B9=$i
i='' i_weather_uniF0BA=$i
i='' i_weather_uniF0BB=$i
i='' i_weather_uniF0BC=$i
i='' i_weather_uniF0BD=$i
i='' i_weather_uniF0BE=$i
i='' i_weather_uniF0BF=$i
i='' i_weather_uniF0C0=$i
i='' i_weather_uniF0C1=$i
i='' i_weather_uniF0C2=$i
i='' i_weather_uniF0C3=$i
i='' i_weather_uniF0C4=$i
i='' i_weather_uniF0C5=$i
i='' i_weather_uniF0C6=$i
i='' i_weather_uniF0C7=$i
i='' i_weather_uniF0C8=$i
i='' i_weather_uniF0C9=$i
i='' i_weather_uniF0CA=$i
i='' i_weather_uniF0CB=$i
i='' i_weather_uniF0CC=$i
i='' i_weather_uniF0CD=$i
i='' i_weather_uniF0CE=$i
i='' i_weather_uniF0CF=$i
i='' i_weather_uniF0D0=$i
i='' i_weather_uniF0D1=$i
i='' i_weather_uniF0D2=$i
i='' i_weather_uniF0D3=$i
i='' i_weather_uniF0D4=$i
i='' i_weather_uniF0D5=$i
i='' i_weather_uniF0D6=$i
i='' i_weather_uniF0D7=$i
i='' i_weather_uniF0D8=$i
i='' i_weather_uniF0D9=$i
i='' i_weather_uniF0DA=$i
i='' i_weather_uniF0DB=$i
i='' i_weather_uniF0DC=$i
i='' i_weather_uniF0DD=$i
i='' i_weather_uniF0DE=$i
i='' i_weather_uniF0DF=$i
i='' i_weather_uniF0E0=$i
i='' i_weather_uniF0E1=$i
i='' i_weather_uniF0E2=$i
i='' i_weather_uniF0E3=$i
i='' i_weather_uniF0E4=$i
i='' i_weather_uniF0E5=$i
i='' i_weather_uniF0E6=$i
i='' i_weather_uniF0E7=$i
i='' i_weather_uniF0E8=$i
i='' i_weather_uniF0E9=$i
i='' i_weather_uniF0EA=$i
i='' i_weather_uniF0EB=$i

View file

@ -49,6 +49,7 @@ parser.add_argument('--pomicons', dest='pomicons', action='store_true', help='Ad
parser.add_argument('--powerline', dest='powerline', action='store_true', help='Add Powerline Glyphs', default=False)
parser.add_argument('--powerlineextra', dest='powerlineextra', action='store_true', help='Add Powerline Glyphs (https://github.com/ryanoasis/powerline-extra-symbols)', default=False)
parser.add_argument('--material', '--materialdesignicons', '--mdi', dest='material', action='store_true', help='Add Material Design Icons (https://github.com/templarian/MaterialDesign)', default=False)
parser.add_argument('--weather', '--weathericons', dest='weather', action='store_true', help='Add Weather Icons (https://github.com/erikflowers/weather-icons)', default=False)
parser.add_argument('--custom', type=str, nargs='?', dest='custom', help='Specify a custom symbol font. All new glyphs will be copied, with no scaling applied.', default=False)
parser.add_argument('--postprocess', type=str, nargs='?', dest='postprocess', help='Specify a Script for Post Processing', default=False)
@ -87,6 +88,7 @@ if args.complete:
args.powerline = True
args.powerlineextra = True
args.material = True
args.weather = True
if args.windows:
# attempt to shorten here on the additional name BEFORE trimming later
@ -122,8 +124,12 @@ if args.material:
additionalFontNameSuffix += " MDI"
verboseAdditionalFontNameSuffix += " Plus Material Design Icons"
if args.weather:
additionalFontNameSuffix += " WEA"
verboseAdditionalFontNameSuffix += " Plus Weather Icons"
# if all source glyphs included simplify the name
if args.fontawesome and args.fontawesomeextension and args.octicons and args.powersymbols and args.pomicons and args.powerlineextra and args.fontlinux and args.material:
if args.fontawesome and args.fontawesomeextension and args.octicons and args.powersymbols and args.pomicons and args.powerlineextra and args.fontlinux and args.material and args.weather:
additionalFontNameSuffix = " " + projectNameSingular + " C"
verboseAdditionalFontNameSuffix = " " + projectNameSingular + " Complete"
@ -381,6 +387,7 @@ PATCH_SET = [
{ 'Enabled': args.octicons, 'Name': "Octicons", 'Filename': "octicons.ttf", 'Exact': octiconsExactEncodingPosition, 'SymStart': 0X26A1, 'SymEnd': 0X26A1, 'SrcStart': None, 'SrcEnd': None, 'ScaleGlyph': OCTI_SCALE_LIST, 'Attributes': SYM_ATTR_DEFAULT }, # Zap
{ 'Enabled': args.octicons, 'Name': "Octicons", 'Filename': "octicons.ttf", 'Exact': octiconsExactEncodingPosition, 'SymStart': 0xF27C, 'SymEnd': 0xF27C, 'SrcStart': 0xF4A9, 'SrcEnd': 0xF4A9, 'ScaleGlyph': OCTI_SCALE_LIST, 'Attributes': SYM_ATTR_DEFAULT }, # Desktop
{ 'Enabled': args.material, 'Name': "Material", 'Filename': "materialdesignicons-webfont.ttf", 'Exact': False, 'SymStart': 0xF001, 'SymEnd': 0xF847, 'SrcStart': 0xF500, 'SrcEnd': 0xFD46, 'ScaleGlyph': None, 'Attributes': SYM_ATTR_DEFAULT },
{ 'Enabled': args.weather, 'Name': "Weather Icons", 'Filename': "weathericons-regular-webfont.ttf", 'Exact': False, 'SymStart': 0xF000, 'SymEnd': 0xF0EB, 'SrcStart': 0xF328, 'SrcEnd': 0xF413, 'ScaleGlyph': None, 'Attributes': SYM_ATTR_DEFAULT },
{ 'Enabled': args.custom, 'Name': "Custom", 'Filename': args.custom, 'Exact': True, 'SymStart': 0x0000, 'SymEnd': 0x0000, 'SrcStart': 0x0000, 'SrcEnd': 0x0000, 'ScaleGlyph': None, 'Attributes': CUSTOM_ATTR },
]

Binary file not shown.