--- ttf-tmuni-1.901b.orig/debian/defoma-hints
+++ ttf-tmuni-1.901b/debian/defoma-hints
@@ -0,0 +1,17 @@
+category truetype
+begin /usr/share/fonts/truetype/ttf-tmuni/TibMachUni-1.901b.ttf
+  Family = TibetanMachineUni
+  FontName = TibetanMachineUni-Regular
+  Encoding = Unicode
+  Location = English Tibetan Dzongkha Ladakhi
+  Charset = ISO10646-1
+# Contains only Tibetan character set from GB18030
+  UniCharset = ISO8859-1 GB18030
+  GeneralFamily = Tibetan
+  Weight = Medium
+  Width = Variable
+  Shape = Normal Upright
+  Foundry = THDL
+  Priority = 20
+  X-FontName = -misc-Tibetan Machine Uni-medium-r-normal--0-0-0-0-p-0-iso10646-1
+end
--- ttf-tmuni-1.901b.orig/debian/copyright
+++ ttf-tmuni-1.901b/debian/copyright
@@ -0,0 +1,37 @@
+Format-Specification:
+    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
+Upstream-Maintainer: THDL Project, http://www.thdl.org/
+Upstream-Source: https://collab.itc.virginia.edu/access/wiki/site/26a34146-33a6-48ce-001e-f16ce7908a6a/tibetan%20machine%20uni.html
+Upstream-Name: Tibetan Machine Uni Font
+    
+Files: *
+Copyright: © 2003-2007 by Tibetan and Himalayan Digital Library (THDL).
+Portions © Copyright 1989-2001 by Tony Duff.
+Portions © Copyright by URW++.
+All Rights Reserved.
+
+The font was created by Christopher J. Fynn and Nathaniel D. Garson in 2004. 
+Tibetan glyphs are originally based on "Tibetan Machine" font by Tony Duff. 
+Modified by THDL 2003-2007. Additional portions Copyright 2003-2007 by THDL.
+
+Latin glyphs based on "Century Schoolbook L" by URW Software,
+Poppenbütteler Bogen 29A, D-22399 Hamburg. Latin glyphs also modified
+by THDL.
+License: GPL-1+
+
+Files: debian/*
+Copyright:
+© 2008, Tom Soderlund <t-om@iki.fi>
+© 2009, Davide Viti <zinosat@tiscali.it>
+© 2009, Jaldhar H. Vyas <jaldhar@debian.org>
+License: GPL-1+
+
+License: GPL-1+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 1, or (at your option)
+any later version.
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL
+                        
+
--- ttf-tmuni-1.901b.orig/debian/control
+++ ttf-tmuni-1.901b/debian/control
@@ -0,0 +1,24 @@
+Source: ttf-tmuni
+Section: x11
+Priority: optional
+Maintainer: Tom Soderlund <t-om@iki.fi>
+Uploaders: Jaldhar H. Vyas <jaldhar@debian.org>
+Build-Depends-Indep: defoma (>= 0.7.0), fontforge
+Build-Depends: debhelper (>= 4.2), cdbs (>= 0.4.23-1.1)
+Standards-Version: 3.8.1
+
+Package: ttf-tmuni
+Architecture: all
+Depends: defoma, ${misc:Depends}
+Description: font for Tibetan, Dzongkha and Ladakhi (OpenType Unicode)
+ A freely available Tibetan Machine Unicode font from the THDL project
+ (http://www.thdl.org/). The font contains around 5,100 glyphs and can
+ generate over 20,000 different combinations with full support for the
+ Sanskrit combinations found in 'chos skad' texts.
+
+Package: ttf-tmuni-udeb
+XC-Package-Type: udeb
+Section: debian-installer
+Provides: ttf-installer
+Architecture: all
+Description: font for Tibetan, Dzongkha and Ladakhi (OpenType Unicode)
--- ttf-tmuni-1.901b.orig/debian/changelog
+++ ttf-tmuni-1.901b/debian/changelog
@@ -0,0 +1,38 @@
+ttf-tmuni (1.901b-1) unstable; urgency=medium
+
+  [ Tom Soderlund ]
+  * New upstream release
+
+  [ Davide Viti ]
+  * Strip glyphs from the udeb to reduce file size (Closes: #518331) 
+
+  [ Jaldhar H. Vyas ]
+  * Uploaded for Tom by Jaldhar H. Vyas <jaldhar@debian.org>
+  * Build depend on fontforge for the glyph stripping script.
+  * updated policy version, added machine-readable copyright and fixed other
+    lintian warnings.
+
+ -- Jaldhar H. Vyas <jaldhar@debian.org>  Fri, 13 Mar 2009 03:39:16 -0400
+
+ttf-tmuni (0.0.20040806-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Generate a udeb for the Debian-Installer with TibetanMachineUniAlpha.
+    Patch by Tenzin Dendup. Closes: #397906.
+
+ -- Frans Pop <fjp@debian.org>  Fri, 10 Nov 2006 12:09:26 +0100
+
+ttf-tmuni (0.0.20040806-1.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Urgency high due to RC bug fix.
+  * debian/prerm: Removed. (Closes: #308411)
+
+ -- Luk Claes <luk@debian.org>  Fri, 13 May 2005 17:22:02 +0200
+
+ttf-tmuni (0.0.20040806-1) unstable; urgency=low
+
+  * Initial Release of Tibetan Machine Uni (alpha version). (Closes: #293688)
+
+ -- Tom Soderlund <t-om@iki.fi>  Mon,  7 Feb 2005 19:49:11 +0200
+
--- ttf-tmuni-1.901b.orig/debian/README.Debian
+++ ttf-tmuni-1.901b/debian/README.Debian
@@ -0,0 +1,63 @@
+ttf-tmuni for Debian
+--------------------
+
+Extra notes from upstream maintainers
+
+ History
+
+    Tibet Machine Uni began by taking the Tibet Machine typeface
+    originally created by Tony Duff over the course of many years, and
+    then was significantly transformed from 2004-2007 with many hours
+    of work by Chris Fynn and Nathaniel Grove to become the font it
+    now is. In this process, many glphys have been added, and many
+    changes made to the original Tibet Machine font that affect its
+    look. While THDL has tried to remain true to the original design,
+    the changes have been extensive. One rationale driving these
+    changes is that Tibetan fonts are now increasingly used for Web
+    pages, which is not a factor previous developers had to worry
+    about overly much. A few changes have been noted below.
+
+ Baseline in Tibetan Machine
+
+    We moved the baseline up in Tibetan Machine Uni to match the
+    height of the Latin glyphs. There is indeed a hanging baseline tag
+    in the OpenType spec for scripts like Tibetan so that if you
+    reduce the font size of some of the Tibetan text the glyphs should
+    move up to match the (top) baseline of the surrounding larger
+    Tibetan glyphs. Unfortunately this aspect of OpenType is not yet
+    supported anywhere (unless it is in Vista) and there are not yet
+    any are practical tools to implement this feature in a font. Of
+    course this is something which should be fixed as soon as
+    practical and the results tested to see if it works -we have
+    always been aware of it.
+
+    Previously Tibet Machine had the baseline set so that the top of
+    Tibetan characters at the position of the bottom of Latin Glyphs
+    (which is also incorrect). Though this makes it easier to format
+    Tibetan texts (pecha) it is impractical in a font which also
+    contains Latin glyphs, and impractical to use in web pages where
+    Latin and Tibetan script text is mixed. The previous design
+    appears to have focused on serving the formatting of pecha,
+    whereas with TMU we are trying to address web pages as well.
+
+ Space
+
+    Space was reduced for similar reasons - so that it would work with
+    the Latin glyphs as well. You can always insert two spaces to get
+    larger spacing for Tibetan and there are now also a number of
+    space characters of different sizes included in the font which may
+    be used. It may be possible to automatically have a larger space
+    with Tibetan than with Latin by including a contextual
+    substitution for space based on the surrounding glyphs.
+
+ Size
+
+    The size of the glyphs was initially about the same as the
+    original Tibet Machine font. We ultimately changed it so that
+    "12pt" Tibetan more or less visually matched 12pt Latin type in a
+    typical Latin font like Times New Roman after consistent feedback
+    that the glyphs were too small. This is intended to help with Web
+    pages where it is sometimes difficult to control the size of a
+    font and Tibetan would have displayed much too small.
+
+ -- Tom Soderlund <t-om@iki.fi>, Fri,  6 Jun 2008 23:27:01 +0800
--- ttf-tmuni-1.901b.orig/debian/rules
+++ ttf-tmuni-1.901b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+# let the udeb be named all.udeb and not $ARCH.udeb
+DEB_ARCH=all
+
+install/ttf-tmuni::
+	mkdir tmp
+	ln TibMachUni-1.901b.ttf tmp/TibetanMachineUni.ttf
+	chmod u+x debian/scripts/strip
+	chmod u+x debian/scripts/strip_glyphs.pe
+	# Strip fonts for the udeb used in the Debian installer
+	mkdir stripped-ttf/
+	debian/scripts/strip TibMachUni-1.901b.ttf stripped-ttf/TibMachUni-1.901b.ttf
+	dh_installdefoma
+
+
+clean::
+	rm -fr tmp/ stripped-ttf/
--- ttf-tmuni-1.901b.orig/debian/ttf-tmuni-udeb.install
+++ ttf-tmuni-1.901b/debian/ttf-tmuni-udeb.install
@@ -0,0 +1 @@
+stripped-ttf/*.ttf usr/share/fonts/truetype/ttf-tmuni
--- ttf-tmuni-1.901b.orig/debian/compat
+++ ttf-tmuni-1.901b/debian/compat
@@ -0,0 +1 @@
+5
--- ttf-tmuni-1.901b.orig/debian/docs
+++ ttf-tmuni-1.901b/debian/docs
@@ -0,0 +1 @@
+ReadMe.txt
--- ttf-tmuni-1.901b.orig/debian/install
+++ ttf-tmuni-1.901b/debian/install
@@ -0,0 +1 @@
+tmp/*.ttf usr/share/fonts/truetype/ttf-tmuni/
--- ttf-tmuni-1.901b.orig/debian/scripts/strip
+++ ttf-tmuni-1.901b/debian/scripts/strip
@@ -0,0 +1,31 @@
+#! /bin/bash
+
+2> /dev/null
+
+exepath=$(dirname $0)
+strip=$exepath/strip_glyphs.pe
+
+if [ $# -ne 2 ] ; then
+	echo "Usage: $(basename $0) fontfile_in fontfile_out"
+	exit 0
+fi
+
+if [ ! -x "$strip" ] ; then
+	echo "Script not found: $strip"
+	exit 1
+fi
+
+if [ ! -f "$1" ] ; then
+	echo "File does not exist: $1"
+	exit 1
+fi
+if [ -z "$2" ] ; then
+	echo "You need to specify the output file"
+	exit 1
+fi
+
+ranges="$ranges u2070:u209F"
+ranges="$ranges u2190:u21FF"
+ranges="$ranges uF0031:uF15B2"
+
+$strip $1 $2 $ranges
--- ttf-tmuni-1.901b.orig/debian/scripts/strip_glyphs.pe
+++ ttf-tmuni-1.901b/debian/scripts/strip_glyphs.pe
@@ -0,0 +1,81 @@
+#! /usr/bin/fontforge 
+#
+#     Copyright (C) 2005 Davide Viti <zinosat@tiscali.it>
+#
+#     This program is free software; you can redistribute it and/or modify
+#     it under the terms of the GNU General Public License as published by
+#     the Free Software Foundation; either version 2 of the License, or
+#     (at your option) any later version.
+#
+#     This program is distributed in the hope that it will be useful,
+#     but WITHOUT ANY WARRANTY; without even the implied warranty of
+#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#     GNU General Public License for more details.
+#
+#     You should have received a copy of the GNU General Public
+#     License along with this program; if not, write to the Free
+#     Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+#     MA 02111-1307 USA
+#
+# "glyphs_to_remove" argument can be a single code point
+# or a range of codepoints separated by ":"
+#
+# code points can be specified both as integers and as unicode
+# you can also mix the two formats (i.e "48:u54")
+#
+# example: 
+#
+#      "strip_glyphs in.ttf out.ttf 12 u20 100:150 u200:u230 u300:65000"
+
+if ($argc < 4)
+   Print( "Usage: strip_glyphs in out glyphs_to_remove..." )
+   Quit()
+endif
+
+
+Open($1); shift
+Reencode("unicode")
+out = $1; shift
+
+#
+# Loop through the arguments and select the glyphs
+# which need to be cleared
+#
+while ($argc > 1)
+  len = Strlen($1)
+  colon_idx = Strstr($1, ":")
+
+  #  
+  # argument is a single glyph
+  #
+  if (colon_idx == -1)
+    if(Strstr($1, "u") == -1)
+       SelectMore(Strtol($1)) ## Integer
+    else
+       SelectMore($1) ## Unicode code point (i.e "u0027")
+    endif
+
+  #  
+  # argument is a range low:high
+  #
+  else      
+     low = Strsub($1, 0, colon_idx)
+     if(Strstr($1, "u") == -1)
+        low = Strtol(low) ## Integer
+     endif
+
+     high = Strsub($1, colon_idx+1, len)
+     if(Strstr($1, "u") == -1)
+        high = Strtol(high) ## Integer
+     endif
+   
+     SelectMore(low, high);
+  endif
+
+  shift
+endloop
+
+Clear()
+
+Generate(out, "")
+Quit()
