~ubuntu-branches/ubuntu/feisty/ttf-freefont/feisty

« back to all changes in this revision

Viewing changes to debian/scripts/FreeSans-strip

  • Committer: Bazaar Package Importer
  • Author(s): Christian Perrier
  • Date: 2006-11-27 07:17:24 UTC
  • mfrom: (1.1.9 feisty)
  • Revision ID: james.westby@ubuntu.com-20061127071724-p2qucq9vfba4r2iv
Tags: 20060501cvs-10
Strip Hebrew glyphs in the udeb on request of the D-I team
Closes: #400516

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
 
 
3
exepath=$(dirname $0)
 
4
strip=$exepath/strip_glyphs.pe
 
5
 
 
6
if [ $# -ne 2 ] ; then
 
7
        echo "Usage: $(basename $0) fontfile_in fontfile_out"
 
8
        exit 0
 
9
fi
 
10
 
 
11
if [ ! -x "$strip" ] ; then
 
12
        echo "Script not found: $strip"
 
13
        exit 1
 
14
fi
 
15
 
 
16
if [ ! -f "$1" ] ; then
 
17
        echo "File does not exist: $1"
 
18
        exit 1
 
19
fi
 
20
if [ -z "$2" ] ; then
 
21
        echo "You need to specify the output file"
 
22
        exit 1
 
23
fi
 
24
 
 
25
ranges=""
 
26
ranges="$ranges u0400:u052F" # Cyrilic
 
27
ranges="$ranges u0530:u058F" # Armenian
 
28
ranges="$ranges u0590:u05FF" # Hebrew
 
29
ranges="$ranges uFB1D:uFB4F" # Hebrew 2
 
30
ranges="$ranges u0600:u06FF" # Arabic
 
31
ranges="$ranges u0700:u077F" # Syriac
 
32
ranges="$ranges u0b80:u0bff" # Tamil
 
33
#ranges="$ranges u0900:u097F" # Hindi
 
34
#ranges="$ranges u0980:u099F" # Bengali
 
35
#ranges="$ranges u0A00:u0CFF" # Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada
 
36
ranges="$ranges u0D00:u0FFF" # Malayalam, Sinhala, Thai, Lao, Tibetan
 
37
ranges="$ranges u10D0:u10FF" # Georgian
 
38
ranges="$ranges u1EA0:u1EFF" # Vietnamese
 
39
ranges="$ranges u2100:u21FF" # Letterlike, Number forms, Arrows
 
40
ranges="$ranges u2200:u24FF" # Mathematical, Techical, Control, OCR
 
41
ranges="$ranges u2580:u259F" # Block elements
 
42
ranges="$ranges u3000:u30FF" # CJK Symbols and Punctuation
 
43
#if ! echo $1 | grep -q Bold; then
 
44
#      ranges="$ranges 65536:66002"   # Bengali conjuncts
 
45
#fi
 
46
 
 
47
$strip $1 $2 $ranges