Skip to content

Instantly share code, notes, and snippets.

@shelaf
Forked from LaFr4nc3/ricty_generator.patch
Last active June 22, 2020 10:16
Show Gist options
  • Save shelaf/79df60fd042be7701ee1b3ca8ad70265 to your computer and use it in GitHub Desktop.
Save shelaf/79df60fd042be7701ee1b3ca8ad70265 to your computer and use it in GitHub Desktop.
--- ricty_generator_for_nerd_fonts.sh 2018-11-06 20:40:55.693412146 +0900
+++ ricty_generator_for_nerd_fonts.sh 2018-11-08 10:18:29.953438400 +0900
@@ -251,10 +251,10 @@
exit 1
fi
# Check filename
- [ "$(basename $input_inconsolata_regular)" != "Inconsolata-Regular.ttf" ] &&
+ [ "$(basename "${input_inconsolata_regular}")" != "Inconsolata-Regular.ttf" ] &&
echo "Warning: ${input_inconsolata_regular} does not seem to be Inconsolata Regular" >&2
- [ "$(basename $input_inconsolata_bold)" != "Inconsolata-Bold.ttf" ] &&
+ [ "$(basename "${input_inconsolata_bold}")" != "Inconsolata-Bold.ttf" ] &&
- echo "Warning: ${input_inconsolata_regular} does not seem to be Inconsolata Bold" >&2
+ echo "Warning: ${input_inconsolata_bold} does not seem to be Inconsolata Bold" >&2
[ "$(basename $input_migu1m_regular)" != "migu-1m-regular.ttf" ] &&
echo "Warning: ${input_migu1m_regular} does not seem to be Migu 1M Regular" >&2
[ "$(basename $input_migu1m_bold)" != "migu-1m-bold.ttf" ] &&
@@ -451,6 +451,7 @@
Select(0u22a5); Clear()
Select(0u22bf); Clear()
Select(0u2312); Clear()
+ # 23FB-23FE: Used by IEC Power Symbols
Select(0u2460, 0u249b); Clear()
Select(0u249c, 0u24e9); Clear()
Select(0u24eb, 0u24ff); Clear()
@@ -479,11 +480,13 @@
Select(0u2640); Clear()
Select(0u2642); Clear()
Select(0u2660, 0u2661); Clear()
- Select(0u2663, 0u2665); Clear()
+ Select(0u2663, 0u2664); Clear()
+ # 2665: Used by Octicons
Select(0u2667, 0u266a); Clear()
Select(0u266c, 0u266d); Clear()
Select(0u266f); Clear()
Select(0u269e, 0u269f); Clear()
+ # 26A1: Used by Octicons
Select(0u26bf); Clear()
Select(0u26c6, 0u26cd); Clear()
Select(0u26cf, 0u26d3); Clear()
@@ -497,9 +500,40 @@
Select(0u26fe, 0u26ff); Clear()
Select(0u273d); Clear()
Select(0u2776, 0u277f); Clear()
- Select(0u2b56, 0u2b59); Clear()
+ Select(0u2b56, 0u2b57); Clear()
+ # 2B58: Used by IEC Power Symbols
+ Select(0u2b59); Clear()
Select(0u3248, 0u324f); Clear()
- Select(0ue000, 0uf8ff); Clear()
+ # E000-E00A: Used by Pomicons
+ Select(0ue00b, 0ue09f); Clear()
+ # E0A0-E0A3: Used by Powerline Extra Symbols
+ Select(0ue0a4, 0ue0af); Clear()
+ # E0B0-E0BF: Used by Powerline Extra Symbols
+ # E0C0-E0C8: Used by Powerline Extra Symbols
+ Select(0ue0c9); Clear()
+ # E0CA: Used by Powerline Extra Symbols
+ Select(0ue0cb); Clear()
+ # E0CC-E0CF: Used by Powerline Extra Symbols
+ # E0D0-E0D2: Used by Powerline Extra Symbols
+ Select(0ue0d3); Clear()
+ # E0D4: Used by Powerline Extra Symbols
+ Select(0ue0d5, 0ue1ff); Clear()
+ # E200-E2A9: Used by Font Awesome Extension
+ Select(0ue2aa, 0ue2ff); Clear()
+ # E300-E3EB: Used by Weather Icons
+ Select(0ue3ec, 0ue5f9); Clear()
+ # E5FA-E62E: Used by Seti-UI + Custom
+ Select(0ue62f, 0ue6ff); Clear()
+ # E700-E7C5: Used by Devicons
+ Select(0ue7c6, 0uefff); Clear()
+ # F000-F2E0 with holes: Used by Font Awesome
+ Select(0uf2e1, 0uf2ff); Clear()
+ # F300-F31C: Used by Font Logos (Font Linux)
+ Select(0uf31d, 0uf3ff); Clear()
+ # F400-F4A8: Used by Octicons
+ Select(0uf4a9, 0uf4ff); Clear()
+ # F500-FD46: Used by Material Design Icons
+ # F67C: Used by Octicons
Select(0ufe00, 0ufe0f); Clear()
Select(0ufffd); Clear()
endif
@@ -676,6 +676,7 @@
# Edit zenkaku brackets
Print("Edit zenkaku brackets")
+ Select(0u0060); SetGlyphClass("base")
Select(0u0028); Copy(); Select(0uff08); Paste(); Move(250, 0); SetWidth(1000) # (
Select(0u0029); Copy(); Select(0uff09); Paste(); Move(250, 0); SetWidth(1000) # )
Select(0u005b); Copy(); Select(0uff3b); Paste(); Move(250, 0); SetWidth(1000) # [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment