Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Create GSUB entries
#!/usr/bin/python
words = ['SEM',
'MVP',
'pop',
'DRM',
'ROI',
'DNA',
'SEO',
'flat',
'ping',
'guru',
'uber',
'rich',
'sexy',
'flow',
'beta',
'lean',
'user',
'epic',
'pivot',
'green',
'scrum',
'viral',
'ninja',
'agile',
'shift',
'html5',
'maker',
'ignite',
'curate',
'sizzle',
'mashup',
'portal',
'sticky',
'iconic',
'codify',
'fusion',
'funnel',
'enable',
'funded',
'vision',
'unpack',
'fanboy',
'impact',
'wizard',
'lean in',
'organic',
'unicorn',
'empathy',
'tee off',
'gameify',
'uniques',
'startup',
'webinar',
'standup',
'homerun',
'synergy',
'innovate',
'optimize',
'monetize',
'finalize',
'ideation',
'big data',
'freemium',
'rockstar',
'engaging',
'strategy',
'emerging',
'next gen',
'leverage',
'tollgate',
'entitled',
'solution',
'seamless',
'pipeline',
'holistic',
'eyeballs',
'level up',
'crowdfund',
'reach out',
'immersive',
'fail fast',
'face time',
'real time',
'diversity',
'discovery',
'jellyfish',
'knee deep',
'deep dive',
'proactive',
'slam dunk',
'the cloud',
'blueprint',
'long tail',
'bandwidth',
'analytics',
'modernity',
'alignment',
'mindshare',
'algorithm',
'milestone',
'engagement',
'disruptive',
'enterprise',
'productize',
'brogrammer',
'strategery',
'evangelist',
'integrated',
'aggregator',
'tiger team',
'groupthink',
'downsizing',
'offshoring',
'visibility',
'next level',
'headlights',
'heads down',
'accelerate',
'netiquette',
'high level',
'actionable',
'responsive',
'sea change',
'hyperlocal',
'touch base',
'collateral',
'top of mind',
'soft launch',
'make it pop',
'credibility',
'stakeholder',
'coopetition',
'crowdsource',
'usercentric',
'opportunity',
'infographic',
'data mining',
'convergence',
'bottom line',
'outsourcing',
'scalability',
'bounce rate',
'rightsizing',
'impressions',
'reimagining',
'growth hack',
'touchpoints',
'transparent',
'trickthrough',
'gamification',
'social proof',
'social media',
'create value',
'action items',
'change agent',
'in the weeds',
'fail forward',
'clickthrough',
'herding cats',
'stealth mode',
'over the top',
'storytelling',
'rightshoring',
'game changer',
'lizard brain',
'come to Jesus',
'revolutionize',
'out of pocket',
'team building',
'exit strategy',
'first or best',
'collaboration',
'bleeding edge',
'globalization',
'best of breed',
'public facing',
'transgenerate',
'on the runway',
'digital divide',
'close the loop',
'design pattern',
'best practices',
'moving forward',
'boil the ocean',
'below the fold',
'sustainability',
'accountability',
'thought leader',
'paradigm shift',
'operationalize',
'social currency',
'qualified leads',
'digital natives',
'stealth startup',
'glamour metrics',
'take it offline',
'cross the chasm',
'open the kimono',
'outside the box',
'marketing funnel',
'proof of concept',
'pull the trigger',
'brand evangelist',
'content strategy',
'push the envelope',
'low hanging fruit',
'sweat your assets',
'do more with less',
'what is our solve',
'peeling the onion',
'bricks and clicks',
'value proposition',
'drink the Kool Aid',
'bring to the party',
'reinvent the wheel',
'bring to the table',
'social media expert',
'make the logo bigger',
'at the end of the day',
'patent pending design',
'scratch your own itch',
'eat your own dog food']
plop = {}
for word in words:
length = len(word)
yooniecode = 'uniE601'
string = ''
glue = ''
firstletter = ''
if length < 6:
yooniecode = 'uniE602'
if length > 11:
yooniecode = 'uniE600'
for i, letter in enumerate(word):
if i == 0:
firstletter = letter
else:
# TODO: 5 ---> five etc.
if letter is ' ':
letter = 'space'
string += glue + str(letter)
glue = ','
line = ' <Ligature components="' + string + '" glyph="' + yooniecode + '"/>' + "\n"
if firstletter in plop:
plop[firstletter] += line
else:
plop[ firstletter ] = line
for ltr in plop:
print '<LigatureSet glyph="' + ltr + '">' + "\n"
print plop[ltr]
print '</LigatureSet>' + "\n"

Thanks for this! Super helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment