Skip to content

Instantly share code, notes, and snippets.

@mischw
mischw / convert_unicode_nerdfont3.py
Last active December 29, 2023 01:07
Converts the unicode characters to the new range introduced in nerdfont 3. Conversion based on this table: https://github.com/ryanoasis/nerd-fonts/issues/1059#issuecomment-1404891287
#!/usr/bin/env python3
trans_dict = {
'\U0000f500': '\U000f0001', # vector_square
'\U0000f501': '\U000f0003', # access_point
'\U0000f502': '\U000f0002', # access_point_network
'\U0000f503': '\U000f0004', # account
'\U0000f504': '\U000f0005', # account_alert
'\U0000f505': '\U000f0006', # account_box
'\U0000f506': '\U000f0007', # account_box_outline