User Tools

Site Tools


linux:remove-foreign-fonts-from-debian-ubuntu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:remove-foreign-fonts-from-debian-ubuntu [2020/12/19 17:04] riklinux:remove-foreign-fonts-from-debian-ubuntu [2023/01/02 09:16] (current) rik
Line 7: Line 7:
   * All the Firefox locales except those indicated in the variable KEEP   * All the Firefox locales except those indicated in the variable KEEP
  
-This process frees 1.4 GB and a lot of inodes, but most of all, when you have to choose a font it's a lot easier/faster.+This script frees around 1.4 GB and a lot of inodes, but most of all, when you have to choose a font it's a lot easier/faster.
  
 <WRAP center round info 60%> <WRAP center round info 60%>
 By default the script keeps en-gb + en-us + it. By default the script keeps en-gb + en-us + it.
 Set the var KEEP to change it. Set the var KEEP to change it.
 +</WRAP>
 +
 +<WRAP center round info 60%>
 +2/1/2023: v 1.1.0, the script also removes "fonts-teluguvijayam" (reported by Larator)
 </WRAP> </WRAP>
  
Line 18: Line 22:
 #!/bin/bash #!/bin/bash
  
-# purge-alien-loc.sh - V. 1.0.1 +# purge-alien-loc.sh - V. 1.1.0
-#+
 # Remove oriental/medio-oriental/african/etc. fonts # Remove oriental/medio-oriental/african/etc. fonts
 #   + Libreoffice localization not of use in IT/GB/USA #   + Libreoffice localization not of use in IT/GB/USA
Line 26: Line 29:
 # Licence: LGPL # Licence: LGPL
 # #
 +# Changelog 
 +# 1.1.0 Added fonts-teluguvijayam
  
 #--------- CONFIG ------------------------------ #--------- CONFIG ------------------------------
Line 51: Line 55:
 fonts="$fonts fonts-noto-ui-core fonts-noto-extra fonts-noto-core culmus fonts-ipafont fonts-ipafont-*" fonts="$fonts fonts-noto-ui-core fonts-noto-extra fonts-noto-core culmus fonts-ipafont fonts-ipafont-*"
 fonts="$fonts fonts-farsiweb fonts-hosny-thabit fonts-ukij-uyghur fonts-yrsa-rasa fonts-sil-scheherazade" fonts="$fonts fonts-farsiweb fonts-hosny-thabit fonts-ukij-uyghur fonts-yrsa-rasa fonts-sil-scheherazade"
-fonts="$fonts fonts-unikurdweb fonts-dzongkha fonts-deva-extra"+fonts="$fonts fonts-unikurdweb fonts-dzongkha fonts-deva-extra fonts-teluguvijayam"
  
 IFS=' ' read -ra aFonts <<< "$fonts" IFS=' ' read -ra aFonts <<< "$fonts"
Line 81: Line 85:
 /usr/share/fonts/truetype/unikurdweb \ /usr/share/fonts/truetype/unikurdweb \
 /usr/share/fonts/truetype/dzongkha \ /usr/share/fonts/truetype/dzongkha \
-/usr/share/fonts/truetype/fonts-deva-extra+/usr/share/fonts/truetype/fonts-deva-extra 
 +/usr/share/doc/fonts-teluguvijayam \ 
 +/usr/share/fonts/truetype/teluguvijayam
  
  
Line 166: Line 172:
  
 read -p "Press any key to close." read -p "Press any key to close."
- 
 </code> </code>
linux/remove-foreign-fonts-from-debian-ubuntu.txt · Last modified: 2023/01/02 09:16 by rik