Created
June 24, 2015 16:51
-
-
Save dardo82/face2a4c8c9fab881982 to your computer and use it in GitHub Desktop.
Kodi SiO2 Big Fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd Library/Application\ Support/Kodi/addons/skin.sio2/1080i | |
cp Font.xml Font.xml.orig | |
awk -F'<|>' '{\ | |
if($0~/<fontset id="Default">/)f=1;\ | |
if(f==1)fs=fs"\n"$0;\ | |
if($0~/<\/fontset>/)f=0;\ | |
gsub(/>[0-9]+</,"\\>"$3*2"\\<",fs);\ | |
if($0!~/<\/fonts>/)print $0;\ | |
else fs=fs"\n"$0\ | |
} END{gsub(/Default/,"Large",fs);\ | |
gsub(/\\/,"",fs);print fs\ | |
}' Font.xml.orig > Font.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
basename Kodi--Enlarge---Fonts-for-AppleTv--Interface--Completely--Automatically.sh .sh|awk '{gsub(/[a-z]+/,"",$0);gsub(/--/,"");sub(/-/," ",$0);sub(/K/,"CH",$0);sub(/$/,"!",$0);print $0}'