Font-udeb

From LocalizationWiki

Creating a Font udeb from an already existing debian font package

The debian font package ttf-tmuni doesnt have udeb. The following steps explains creating ttf-tmuni-udeb.

 1. Download the ttf-tmuni orig.tar and .diff files.
 2. untar the source orig.tar file with tar xzf ttf-tmuni_xxx.orig.tar. This creates the source directory.
 3. Apply the diff to the source. cd to source directory and do zcat ../ttf-tmuni_xxx.diff | patch -p1
 4. DEBIAN directory created in the source file containing the files control, rules, changlog etc.
 5. Create a udeb section in the control file by adding :
        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)
         A freely available Tibetan Machine Uni font (alpha version) from the
         THDL project (http://www.thdl.org/). The font contains around 4,000
         glyphs and can generate over 20,000 different combinations with full
         support for the Sanskrit combinations found in 'chos skad' texts.
         .
          This package provides the fonts for use with the GTK frontend of
          debian-installer.
 6. One can look into the control file of a package that has a udeb to understand adding the udeb section.
 7. Creat a file named ttf-tmuni-udeb.install in the DEBIAN folder with the following contents:
      TibetanMachineUniAlpha.ttf usr/share/fonts/truetype/ttf-tmuni
 8. The above file tells which font to use for the udeb and where it is to be placed.
    Read the man page for dh_install to understand more.
 9. cd into the source directory and do dch -i to change the changelog file. The version number will be
    automatically increased which is ok for an official release. Your name and email-add will also be added.
    Add a line saying * Generate a udeb for the Debian-Installer with TibetanMachineUniAlpha.ttf.
 10. Now do debuild to create the udeb package.
 11. The udeb, diff, and dsc file with new version will be created if everything goes allright.
 12. Check the contents of the udeb with dpkg -c <udeb file name>. It should list a file structure same as
     one mentioned in the file DEBIAN/ttf-tmuni-udeb.install.