--- nabi-0.99.7.orig/debian/nabi.xinput
+++ nabi-0.99.7/debian/nabi.xinput
@@ -0,0 +1,4 @@
+XIM=nabi
+XIM_PROGRAM=/usr/bin/nabi
+XIM_ARGS=
+GTK_IM_MODULE=xim
--- nabi-0.99.7.orig/debian/rules
+++ nabi-0.99.7/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+DEB_CONFIGURE_EXTRA_FLAGS := --with-default-keyboard=2
+DEB_INSTALL_MANPAGES_nabi := debian/nabi.1
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+XP=xsltproc -''-nonet
+
+install/nabi::
+	$(XP) -o debian/nabi.1 $(DB2MAN) debian/nabi.dbk
+
+binary-install/nabi::
+	install -m644 debian/nabi.xinput debian/nabi/etc/X11/xinit/xinput.d/nabi
+clean::
+	rm -f debian/nabi.1
--- nabi-0.99.7.orig/debian/nabi.dbk
+++ nabi-0.99.7/debian/nabi.dbk
@@ -0,0 +1,171 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+
+<!--
+
+Process this file with an XSLT processor: `xsltproc \
+-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl manpage.dbk'.  A manual page
+<package>.<section> will be generated.  You may view the
+manual page with: nroff -man <package>.<section> | less'.  A
+typical entry in a Makefile or Makefile.am is:
+
+DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl
+XP=xsltproc -''-nonet
+
+manpage.1: manpage.dbk
+        $(XP) $(DB2MAN) $<
+    
+The xsltproc binary is found in the xsltproc package.  The
+XSL files are in docbook-xsl.  Please remember that if you
+create the nroff version in one of the debian/rules file
+targets (such as build), you will need to include xsltproc
+and docbook-xsl in your Build-Depends control field.
+
+-->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Changwoo</firstname>">
+  <!ENTITY dhsurname   "<surname>Ryu</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>September 13, 2003</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>cwryu@debian.org</email>">
+  <!ENTITY dhusername  "Changwoo Ryu">
+  <!ENTITY dhucpackage "<refentrytitle>NABI</refentrytitle>">
+  <!ENTITY dhpackage   "nabi">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>X Input Method Server for Korean text input</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg><option>OPTIONS</option></arg>
+<!--
+      <command>&dhpackage; <option><replaceable>options</replaceable></option></command>
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>- -example
+      <replaceable>that</replaceable></option></arg>
+-->
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>nabi</command> command.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.</para>
+
+    <para><command>&dhpackage;</command> is an X Input Method (XIM)
+      server for Korean text (Hangul) input.  Additionally it shows
+      the status of "imhangul" GTK+ input module in the notification
+      area.</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+<!--
+    <para>This program doesn't have any command line options.</para>
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-').  A summary of
+      options is included below.  For a complete description, see the
+      <application>Info</application> files.</para>
+-->
+    <variablelist>
+      <varlistentry>
+        <term><option>-s</option>
+          <option>--status-only</option>
+        </term>
+        <listitem>
+          <para>Doesn't be an input method.  Just display the Hangul
+          input status in the system tray.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--sm-client-id=ID</option>
+        </term>
+        <listitem>
+          <para>Specifies the session management ID.  This option is
+          for session manager softwares, not for user typing.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--xim-name=NAME</option>
+        </term>
+        <listitem>
+          <para>Specifies the name of nabi's XIM service ("nabi" when
+          it's not specified).  Useful for debugging.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-d LEVEL</option>
+        </term>
+        <listitem>
+          <para>Set the debugging verborsity level.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+<!--
+-->
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>See /usr/share/doc/nabi/README file for more
+    information</para>
+<!--
+    <para>bar (1), baz (1).</para>
+    <para>The programs are documented fully by <citetitle>The Rise and
+      Fall of a Fooish Bar</citetitle> available via the
+      <application>Info</application> system.</para>
+-->
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; Free Documentation
+      License, Version 1.1 or any later version published by the Free
+      Software Foundation; with no Invariant Sections, no Front-Cover
+      Texts and no Back-Cover Texts.</para>
+
+  </refsect1>
+</refentry>
--- nabi-0.99.7.orig/debian/nabi.postinst
+++ nabi-0.99.7/debian/nabi.postinst
@@ -0,0 +1,28 @@
+#! /bin/sh
+
+set -e
+
+PRIORITY=50
+
+case "$1" in
+    configure)
+        update-alternatives \
+	--install /etc/X11/xinit/xinput.d/ko_KR xinput-ko_KR \
+	/etc/X11/xinit/xinput.d/nabi $PRIORITY
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
--- nabi-0.99.7.orig/debian/dirs
+++ nabi-0.99.7/debian/dirs
@@ -0,0 +1 @@
+etc/X11/xinit/xinput.d
--- nabi-0.99.7.orig/debian/docs
+++ nabi-0.99.7/debian/docs
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
--- nabi-0.99.7.orig/debian/README.Debian.ko
+++ nabi-0.99.7/debian/README.Debian.ko
@@ -0,0 +1,23 @@
+nabi for Debian
+---------------
+
+* 버전 0.15-2부터 im-switch를 이용합니다. 다른 한국어 XIM 입력기가
+  설치되어 있지 않다면 한국어 로케일에서 기본적으로 동작하게 됩니다.
+  다른 한국어 XIM이 설치되어 nabi보다 우선순위가 높은 경우에도
+  im-switch 명령을 이용하면 강제로 nabi를 쓰도록 설정할 수 있습니다.
+
+  다음 명령으로 현재 사용 중인 IM을 알 수 있습니다.
+
+  # im-switch -l
+
+  시스템의 XIM 입력기를 nabi로 고정하려면 루트 사용자로 다음 명령을
+  이용하십시오.
+
+  # im-switch -s nabi
+
+  사용자의 XIM 입력기를 바꾸려면 마찬가지로 해당 사용자로 다음 명령을
+  이용하십시오.  
+
+  $ im-switch -s nabi
+
+ -- Changwoo Ryu <cwryu@debian.org>, Mon Apr 18 17:06:48 2005
--- nabi-0.99.7.orig/debian/control
+++ nabi-0.99.7/debian/control
@@ -0,0 +1,22 @@
+Source: nabi
+Section: x11
+Priority: optional
+Maintainer: Changwoo Ryu <cwryu@debian.org>
+Homepage: http://nabi.kldp.net/
+Vcs-Browser: http://git.debian.org/?p=l10n-korean/nabi.git
+Vcs-Git: git://git.debian.org/git/l10n-korean/nabi.git
+Standards-Version: 3.8.3
+Build-Depends: cdbs, debhelper (>> 7.0.0), autotools-dev, xsltproc, docbook-xsl,
+	       libxt-dev,
+	       libgtk2.0-dev,
+	       libhangul-dev (>= 0.0.10)
+
+Package: nabi
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: imhangul
+Description: Korean X input method server plus imhangul status monitor
+ Nabi is an X input method server for Korean text input.
+ .
+ In addition, it shows the status of imhangul (GTK+ 2 input module) in
+ System Tray (i.e. Notification Area).
--- nabi-0.99.7.orig/debian/watch
+++ nabi-0.99.7/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=filenamemangle=s/.*filename=(.*)/$1/,downloadurlmangle=s/\/projects\/nabi\/download\/([0-9]+).*/\/frs\/download\.php\/$1/ \
+  http://kldp.net/projects/nabi/download \
+  /projects/nabi/download/[0-9]+\?filename=nabi-(.*)\.tar\.gz
--- nabi-0.99.7.orig/debian/copyright
+++ nabi-0.99.7/debian/copyright
@@ -0,0 +1,65 @@
+This package was debianized by Changwoo Ryu <cwryu@debian.org> on
+Sat, 13 Sep 2003 18:51:52 +0900.
+
+It was downloaded from <http://nabi.kldp.net>.
+
+Upstream Author:
+
+    Choe Hwanjin <krisna@kldp.org>
+
+Copyright:
+
+    Copyright (C) 2003-2008 Choe Hwanjin
+
+License:
+
+    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., 51 Franklin St, Fifth Floor, Boston,
+    MA 02110-1301, USA.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2003-2008, Changwoo Ryu <cwryu@debian.org> and
+is licensed under the GPL, see above.
+
+
+For symbol.txt:
+
+    Copyright (c) 2005,2006 Choe Hwanjin
+    All rights reserved.
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions are met:
+
+    1. Redistributions of source code must retain the above copyright notice,
+       this list of conditions and the following disclaimer.
+    2. Redistributions in binary form must reproduce the above copyright notice,
+       this list of conditions and the following disclaimer in the documentation
+       and/or other materials provided with the distribution.
+    3. Neither the name of the author nor the names of its contributors
+       may be used to endorse or promote products derived from this software
+       without specific prior written permission.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+    POSSIBILITY OF SUCH DAMAGE.
--- nabi-0.99.7.orig/debian/changelog
+++ nabi-0.99.7/debian/changelog
@@ -0,0 +1,177 @@
+nabi (0.99.7-1) unstable; urgency=low
+
+  * New upstream release
+  * Fix debian/watch for the new KLDP.net site
+
+ -- Changwoo Ryu <cwryu@debian.org>  Thu, 18 Feb 2010 04:02:41 +0900
+
+nabi (0.99.6-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sat, 07 Nov 2009 15:43:29 +0900
+
+nabi (0.99.5-1) unstable; urgency=low
+
+  * New upstream release
+  * Build-Depends on the newer libhangul-dev 0.0.10
+  * Standard-Version: 3.8.3
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sun, 01 Nov 2009 00:50:49 +0900
+
+nabi (0.99.4-1) unstable; urgency=low
+
+  * New Upstream Version
+  * Standard-Version: 3.8.2
+  * Fix miscellaneous lintian warnings
+  * Use the upstream default icon theme, "Jini" instead of "SimplyRed"
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sun, 05 Jul 2009 15:55:00 +0900
+
+nabi (0.99.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Switched to patch system.
+  * Specify the BSD like license of symbol.txt.
+  * Standard-Version: 3.8.0
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sun, 14 Dec 2008 13:40:46 +0900
+
+nabi (0.99.2-2) unstable; urgency=low
+
+  * Requires libhangul (>= 0.0.8) to build (Closes: #477187)
+
+ -- Changwoo Ryu <cwryu@debian.org>  Tue, 22 Apr 2008 02:24:10 +0900
+
+nabi (0.99.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Switched to Docbook XML for man page.
+
+ -- Changwoo Ryu <cwryu@debian.org>  Mon, 21 Apr 2008 15:45:00 +0900
+
+nabi (0.99.1-3) unstable; urgency=low
+
+  * Added new Homepage: field to the control file. Removed the homepage
+    URL from the description.
+  * Cleaned up debian/rules.
+  * Added Vcs-Browser and Vcs-Git fields.
+  * Updated the manpage.
+  * Removed the beginning "A" article from the short description,
+    according to Developer Reference 6.2.2.
+  * Fixed a lintian error in the old debian/copyright file.
+
+ -- Changwoo Ryu <cwryu@debian.org>  Thu, 28 Feb 2008 06:16:30 +0900
+
+nabi (0.99.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Set the default theme as "SimplyRed".
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sun, 06 Jan 2008 06:46:27 +0900
+
+nabi (0.99.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Standard-Version: 3.7.3
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sun, 23 Dec 2007 23:49:31 +0900
+
+nabi (0.19-1) unstable; urgency=low
+
+  * New upstream release
+  * Removed menu which is not very useful with im-switch.
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sun, 07 Oct 2007 17:18:46 +0900
+
+nabi (0.18-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Thu, 12 Jul 2007 16:15:46 +0900
+
+nabi (0.17-1) unstable; urgency=low
+
+  * New upstream release (Closes: #367047)
+  * Switched to CDBS.
+  * Added debian/watch file.
+  * Wrote more manpage stuff about command line options.
+
+ -- Changwoo Ryu <cwryu@debian.org>  Mon, 12 Mar 2007 01:14:00 +0900
+
+nabi (0.15-2) unstable; urgency=low
+
+  * Used im-switch.  Wrote im-switch info in debian/README.Debian and
+    debian/README.Debian.ko
+
+ -- Changwoo Ryu <cwryu@debian.org>  Fri, 10 Dec 2004 10:59:21 +0900
+
+nabi (0.15-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Fri, 10 Dec 2004 10:44:10 +0900
+
+nabi (0.14-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sat, 28 Aug 2004 23:02:09 +0900
+
+nabi (0.13-2) unstable; urgency=low
+
+  * Added Build-Depends on libxt-dev (Closes: #251589).  Thanks to Goswin
+    von Brederlow.
+
+    RATIONALE: The ./configure script couldn't detect the -lX11 path
+    without installing libxt-dev, while Xt is never required for
+    compiling or linking.
+
+  * debian/menu: Made the command in the menu an absolute path.
+
+ -- Changwoo Ryu <cwryu@debian.org>  Tue,  1 Jun 2004 11:43:38 +0900
+
+nabi (0.13-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Raised the Standard-Version to 3.6.1.
+  * debian/menu: Quoted strings in menu items.
+
+ -- Changwoo Ryu <cwryu@debian.org>  Mon, 15 Mar 2004 21:59:52 +0900
+
+nabi (0.12-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sat, 20 Dec 2003 06:41:22 +0900
+
+nabi (0.11-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sun, 30 Nov 2003 01:58:16 +0900
+
+nabi (0.10-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sat,  8 Nov 2003 00:12:39 +0900
+
+nabi (0.9-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Tue, 14 Oct 2003 22:26:22 +0900
+
+nabi (0.8-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Changwoo Ryu <cwryu@debian.org>  Sat, 11 Oct 2003 23:05:42 +0900
+
+nabi (0.7-1) unstable; urgency=low
+
+  * Initial Release (Closes: #212757).
+
+ -- Changwoo Ryu <cwryu@debian.org>  Wed, 17 Sep 2003 00:40:19 +0900
+
--- nabi-0.99.7.orig/debian/README.Debian
+++ nabi-0.99.7/debian/README.Debian
@@ -0,0 +1,23 @@
+nabi for Debian
+---------------
+
+* Nabi version 0.15-2 or later uses im-switch.  Nabi will be used as the
+  default input method when it's installed and there's no other input
+  methods installed.  Even when other high-priority input methods are
+  installed, you can override this with im-switch command.
+
+  This command lists the available input methods:
+
+  # im-switch -l
+
+  And if you want nabi to be the system default input method, run this
+  command as the root:
+
+  # im-switch -s nabi
+
+  If you just want to override user setting without change the system
+  default, run the same command as your user account.
+
+  $ im-switch -s nabi
+
+ -- Changwoo Ryu <cwryu@debian.org>, Sat, 13 Jan 2007 16:05:47 +0900
--- nabi-0.99.7.orig/debian/nabi.prerm
+++ nabi-0.99.7/debian/nabi.prerm
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+    remove|upgrade|deconfigure)
+        update-alternatives --remove xinput-ko_KR /etc/X11/xinit/xinput.d/nabi
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
--- nabi-0.99.7.orig/debian/compat
+++ nabi-0.99.7/debian/compat
@@ -0,0 +1 @@
+7
