diff -uNr emiclock-1.0.4-orig/INSTALL.en emiclock-1.0.4/INSTALL.en
--- emiclock-1.0.4-orig/INSTALL.en	Thu Jan  1 08:00:00 1970
+++ emiclock-1.0.4/INSTALL.en	Tue Feb 17 05:54:18 1998
@@ -0,0 +1,238 @@
+
+                                Emi Clock
+                      for X Window System, Version 11
+
+			- Installation procedure -
+
+
+					Koba Masayuki
+                                          E-mail: masa-k@sag.hitachi-sk.co.jp
+
+
+1. Preface
+
+	This document contains the installation procedure. For how to
+	use Emi Clock, please read README.en (English) or README.ja
+	(Japanese).
+
+2. Compilation Settings
+
+
+	(1) Modify the following options in config.h for your system:
+
+	    [GUI settings]
+
+             USE_XAW3D		Emi Clock uses X11 Athena Widget (Xaw) as
+				the default. Define this will use the
+				Xaw3d (3D Athena Widget). If you have 
+				Xaw3d you can try this.
+
+             USE_XAWI18N	If you have Xaw I18N (the Internationalized
+				X11R5 Xaw), you can define this.
+
+
+	    [Sound settings]
+
+	     USE_SOUND		To enable playing of sound in Emi Clock,
+				define this. (Note: If Emi Clock does not
+				have sound support for your OS, don't
+				define this. To know which OS is supported,
+				please read Appendix 1)
+
+	     USE_NETAUDIO 	To use netaudio 1.1 (NCDaudio), define
+				this and at the same time define
+				USE_SOUND. (Note: this option has only
+				been tested on SunOS 4.1.3)
+
+	    [Others]
+
+             USE_SMALL_CURSOR	Some X servers use hardware to draw the
+				mouse cursors. The "Cat's hand" (32x32)
+				mouse cursor may not be able to draw
+				properly when such X servers are being
+				used. If this is the case, you have to
+				define USE_SMALL_CURSOR and compile
+				the program again. What it does is,
+				instead of using a 32x32 pixels cursor,
+				a 16x16 one is used.
+
+	     DEBUG		define it to compile Emi Clock for
+				debugging. (this should not be needed)
+
+
+	(2) If you are using X11R6, you can try the following resource
+	    files instead of the standard EmiClock.ad (resources/Xaw/
+	    EmiClock.ad). Try them by copying them to where you compile
+	    Emi Clock.
+	    
+            resources/R6/EUC/EmiClock.ad
+			The Japanese resource file for systems using
+			the EUC locale.
+
+            resources/R6/SJIS/EmiClock.ad
+			The Japanese resource file for systems using
+			the SJIS locale.
+
+	    Moreover, for those who have Xaw I18N, the resource file
+	    resources/XawI18N/EmiClock.ad can be used.
+
+
+3. Compiling Emi Clock
+
+	To compile Emi Clock, you must have the programs 'xmkmf' and 'imake'.
+	Xmkmf is a shell script that calls imake, while imake is used to
+	generate a Makefile from a machine-independent file called Imakefile.
+	Since imake is necessary when compiling X11 software, if you don't
+	have it, I think this is a good chance for you to install it now.
+
+	(1) Type 'xmkmf'. After that, a Makefile will be generated from the
+	    Imakefile.
+
+	(2) Type 'make depend' to create the dependencies between files. Note
+	    that a program of the X11 system called 'makedepend' is needed.
+	    (if you do not have makedepend, you can leave this step, however)
+
+	(3) Type 'make', Emi Clock will then be compiled and linked.
+
+	Note: During compilation, the error message "Virtual memory
+              exhausted" may appear. If you are using shells like csh, type
+              these commands before compiling:
+
+	             limit  datasize   unlimited
+       		     limit  stacksize  unlimited
+
+
+4. Installing Emi Clock
+
+    4.1 Quick Install
+
+	If you want to install straight away without thinking about
+	anything, follow the following steps:
+
+	(1) su root.
+
+	(2) type 'make install' to install 'emiclock' to $(BINDIR), and the
+	    application's default resource file 'EmiClock' to $(XAPPLOADDIR).
+
+	Usually $(BINDIR) is /usr/bin/X11 or /usr/X11R6/bin, $(XAPPLOADDIR)
+	is /usr/lib/X11/app-defaults or /usr/X11R6/lib/X11/app-defaults.
+
+	If sound is configured, the file of the startup sound "myu!" will
+	be installed to $(LIBDIR)/EmiClock (e.g. /usr/X11R6/lib/X11/EmiClock).
+
+	(3) type 'make install.man' to install the man page 'emiclock.man'
+	    as $(MANDIR)/emiclock.$(MANSUFFIX)
+
+
+    4.2 Custom Install
+
+	In case you cannot become root, or you don't want to install to the
+	default X11 directories for any reason, follow the steps below:
+
+	4.2.1 Install emiclock
+
+	     After emiclock is linked by 'make', put it to a directory
+	     which is in your search path (e.g. $HOME/bin,
+	     /usr/local/bin/X11).
+
+	4.2.2 Resources
+
+	     EmiClock.ad (EmiClock Application Default resources) stores the
+	     default values of Emi Clock's application resources. Emi Clock
+	     will not run properly if the resources inside this file are not
+	     set.
+
+	     Methods to configure Emi Clock are mentioned below, you can
+	     choose a suitable one, and use the EmiClock.ad file (under
+	     the resources directory) that corresponds to the GUI of the
+	     compiled Emi Clock.
+
+	     (1) Use .Xdefaults
+
+		 Create a file called $HOME/.Xdefaults or 
+		 $HOME/.Xdefault-hostname, and add the content of
+		 EmiClock.ad into it. After doing that, emiclock will
+	         read .Xdefaults and set the necessary resources.
+
+	     (2) Use the environment variable XAPPLRESDIR
+
+		 Set the environment variable XAPPLRESDIR to a directory like
+		 /usr/local/lib/X11/app-defaults. Then copy EmiClock.ad to
+		 the directory specified by XAPPLRESDIR as 'EmiClock'. When
+		 emiclock starts up, the file $XAPPLRESDIR/EmiClock will
+		 be read and the necessary resources will be set.
+
+	4.2.3 Sound
+
+	     If you want Emi Clock to play sound, put a sound file of the
+	     start up sound "myu!" into $(LIBDIR)/EmiClock.
+
+	4.2.4 Online Manual
+
+	      Copy 'emiclock.man' as 'emiclock.1' to the man1/ directory
+	      under the standard man page directory, under a directory in
+	      the MANPATH (like /usr/local/man), or under /usr/share/man,
+	      etc.
+
+
+5. Add Sound Files
+
+	Emi Clock assumes all files in $(LIBDIR)/EmiClock (like /usr/X11R6/
+	lib/X11/EmiClock) to be sound files. If your Emi Clock can play
+	sound, install the chime and alarm sound files into that directory.
+
+
+6. How to use Emi Clock...
+
+	For the instructions on how to use Emi Clock, please consult
+	README.en (English) or README.ja (Japanese). Bye!
+
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+[ Appendix 1: Table of OS that have Emi Clock's sound support ]
+
+    Emi Clock 1.0.2 for X11 has sound support for the following OS.
+
+      OS                      Hardware                "myu"
+      ===                     ========                ======
+      NEWS-OS 4.x      (*1)   SONY NEWS               myu.snd
+      IRIX 5.2         (*2)   SGI Iris                myu.aiff
+      HP-UX 8.07       (*3)   HP9000/710              myu.au
+      SunOS 4.1.x             Sun                     myu.au
+      Solaris 2.x             Sun                     myu.au
+      BSDI BSD/OS 1.1  (*4)   IBM-PC/AT compatible    myu.sbdsp
+      Linux                   IBM-PC/AT compatible    myu.au
+      FreeBSD                 IBM-PC/AT compatible    myu.au
+      SunOS 4.1.3             Sun                     myu.au
+        + netaudio 1.1 (*5)
+
+    *1: If you are using NEWS-OS, and your machine is CISC NEWS, then don't
+	enable Emi Clock's sound support if a sound card is not installed.
+	(in most cases CISC NEWS don't have libraries of sounds. RISC NEWS
+	don't have this problem)
+
+    *2: If you are using IRIX, you need audiodev for IRIX 4.0.5 and
+	dmedia_dev for IRIX 5.2.
+
+    *3: For HP-UX users, since AAPI (Audio Application Program Interface)
+	is used for handling sound, Aserver must be running.
+
+    *4: For BSD/OS 1.1 users, if sound support is enabled, the one who
+	compiles Emi Clock must be included in the 'sys' group in the file
+	/etc/group.
+
+    *5: (1) The header file of netaudio have to be installed in a suitable
+	    place (where #include <audio/xyz.h> is ok)
+        (2) libaudio.a, the netaudio's library, must be in the path of
+            libraries. If there are other libraries that are also called
+	    libaudio.a, please customize Imakefile so that netaudio's
+	    library will be used for installation.
+        (3) Before running Emi Clock, remember to set up the netaudio server.
+        (4) Due to the caching mechanism of netaudio, caching is done by the
+	    server but not the application. Please pay attention to the size
+	    of the sound file.
+
+
+Translated by: Anthony Y.P. Wong (ypwong@poboxes.com, ypwong@cse.cuhk.edu.hk)
+
diff -uNr emiclock-1.0.4-orig/README.en emiclock-1.0.4/README.en
--- emiclock-1.0.4-orig/README.en	Thu Jan  1 08:00:00 1970
+++ emiclock-1.0.4/README.en	Tue Feb 17 05:54:24 1998
@@ -0,0 +1,387 @@
+
+                                Emi Clock
+                      for X Window System, Version 11
+
+                            - Documentation -
+
+
+                                          Koba Masayuki
+                                          E-mail: masa-k@sag.hitachi-sk.co.jp
+
+1. Preface
+
+	This document illustrates the usage of Emi Clock for X11.
+	For installation procedures please consult INSTALL.en
+        (English) or INSTALL.ja (Japanese).
+
+2. Start up
+
+	Start Emi Clock up by typing emiclock at the command prompt.
+	If you don't want to type the command every time you run Emi
+	Clock, you can add the following line 
+
+		emiclock [option] &
+
+	to a file that is read every time when X11 starts up, like
+	$HOME/.xinitrc or $HOME/.xsession (or others, according to
+	the documentation of your X11 environment).
+
+3. Usage
+
+	Emi Clock is a simple analog clock, so it's very easy to use.
+	Below are some common operations of Emi Clock.
+
+	(1) Left mouse button
+
+		When the mouse cursor is over Emi Clock, it will
+	change to a shape of a cat's hand. Click the left mouse button,
+	and the main menu will appear. While you are still pressing
+	the button, you can choose a menu item by dragging the mouse.
+	For choosing the items "About Emi Clock" or "Exit", move the
+	cursor over them and then release the button.
+
+		For the two-level menus, while you are pressing the
+	button, move the cursor to the right of the '>' mark (or to the
+	left of the menu), a new menu will then appear. Select an item
+	by moving the cursor over a menu item and release the button.
+
+		If you want to cancel the action, move the cursor
+	away from the popup menu and release the button.
+
+	(2) Middle/Right mouse button
+
+		If you click the middle or the right mouse button on
+	Emi Clock, it will be raised to be the front. At the same
+	time, Emi Clock will examine the color map, find the best
+	colour for Emi Clock and then redraw. (applicable only to
+	256-colour displays)
+
+
+	The above mouse operations are only Emi Clock's basic setting.
+	Due to the configuration of your X11 environment, the Window
+	Manager may interfere some of the above operations.
+
+	(3) Time zone setting
+
+		By setting the time zone, you can use Emi Clock as an
+	international clock. For example, if you type in the following
+	line (for csh),
+
+        % (setenv TZ GMT; emiclock -title 'Emi Clock (GMT)')
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+	Emi Clock will display the Greenwich time.
+
+4. Options of Emi Clock
+
+	You can use these options when starting up Emi Clock.
+
+	-nosound	Disable the "myu!" (Meow) sound (default is
+			enabled, but only if audio output is supported)
+
+	-nosave		Do not save the configuration file 
+			$HOME/.emiclockrc (default is save)
+
+	-noscache	Disable sound cache (default is to use sound
+			cache, as long as audio output is supported)
+
+	-noshape	Use rectangular window even your server has X11
+			Shape Extension (protocol for displaying
+			non-rectangular windows) (default is to use non-
+			rectangular window, except that you don't have
+			X11 Shape Extension)
+
+	-prefect	If Emi Clock cannot allocate enough color-cells,
+			the closest color from the colormap will be
+			allocated instead. (This becomes obvious when
+			you choose another costume in a color display)
+			As a result the original colors will not be
+			displayed. To overcome this problem you can use
+			the -perfect option to ensure that all required
+			color-cells will be allocated. (not a default
+			option)
+
+	-grayscale	Use grayscales. (not a default option)
+
+	-gray4		Use 4 grayscales. (not a default option, however,
+			if your display is only 4 or 16 colours, this
+			option will be used automatically)
+
+	-mono		Use monochrome display. (not a default option,
+			however, if your display is monochrome, this
+			option will be used automatically)
+
+	-help		Show all the available options
+
+	-version	Show the version of this software
+
+
+	X Toolkit options-
+
+	Emi Clock for X11 uses the Xt Intrinsics, so you can use the X
+	Toolkit's options. But since it depends on the version of the
+	Xt Intrinsics during linking, only the typical options are
+	listed below.
+
+	-geometry geometry	Where to display Emi Clock
+				(Ex: emiclock -geometry -0+0)
+
+	-display display	Which X server Emi Clock is going to use
+				(Ex: emiclock -display host:0.0)
+
+	-iconic			Start Emi Clock as iconified
+
+	-name name		Specify the application's name
+				(Ex: emiclock -name 'emi_nosec')
+
+	-title title		Specify the name of the title
+				(Ex: emiclock -title 'Emi Clock for X11')
+
+
+5. Saving Emi Clock settings
+
+	When Emi Clock quits, a file called $HOME/.emiclockrc will be
+	created and the Emi Clock settings will be saved in it. Next
+	time when Emi Clock runs again, this file will be read so the
+	previous settings will be used.
+
+	Besides, if Emi Clock receives a SIGINT or SIGTERM signal, or
+	there is an X11 I/O error, $HOME/.emiclockrc will be saved
+	before the program exits.
+
+
+6. Sound
+
+ 	If Emi Clock can play sound in your machine, you can use your
+	favorable sound files as the sounds for the chimes and alarm.
+
+	Emi Clock assumes that all files inside $(LIBDIR)/EmiClock
+	(e.g. /usr/X11R6/lib/X11/EmiClock) are sound files. If audio
+	output is supported, then you can place the sound files
+	for the chimes and alarm in this directory. Through Emi Clock's
+	menu you can choose which file you want to be used.
+
+	At the present, Emi Clock's sound support includes the
+	following OSes:
+
+	OS		   Hardware		Background playback
+	===========	   ======== 		===================
+        NEWS-OS 4.x        SONY NEWS			N
+        IRIX 5.2           SGI Iris			N
+        HP-UX 8.07         HP     			N
+        SunOS 4.1.x        Sun   			Y
+        Solaris 2.x        Sun  			Y
+        BSDI BSD/OS 1.1    IBM-PC/AT compatible		N
+        Linux              IBM-PC/AT compatible		N
+        FreeBSD            IBM-PC/AT compatible		N
+        SunOS 4.1.3        Sun     			Y
+            + netaudio 1.1
+
+	Besides, Emi Clock doesn't handle the volume of the sounds.
+	Therefore, you have to use the volumn control of the speaker/
+	amplifier, or use programs for your OS (like gaintool of SunOS
+	or apanel of IRIX).
+
+
+7. Customizing the Window Manager
+
+	Emi Clock for X11 uses "EmiClock" as the application's
+	class name. If this class name is used, the X11 Window Manager
+	can automatically remove the title bar. Follow the steps below
+	to configure your window manager to do that.
+
+	(1) if you are using twm...
+
+	    Add these lines in $HOME/.twmrc:
+
+            NoTitle
+            {
+                    "EmiClock"
+    		    Other X11 clients settings (if any)
+                            :
+            }
+
+	(2) if you are using mwm...
+
+	    Add this line in the resource file of mwm:
+
+              Mwm*EmiClock*clientDecoration: -menu -maximize -resize -title -minimize
+
+	(3) if you are using fvwm...
+
+	    Add these lines in $HOME/.fvwmrc:
+
+              NoTitle  EmiClock
+              NoBorder EmiClock
+
+	    Besides, you can make Emi Clock to be displayed at the
+	    same place in every desktop by adding this line:
+
+	      Sticky EmiClock
+
+	    For fvwm 1.2x, use this line instead:
+
+	      Style   "EmiClock"      NoTitle, NoHandles, Sticky
+
+
+8. Application resources of Emi Clock
+
+	Emi Clock for X11 has the following resources:
+
+        noSave (class NoSave)
+	      - Resource about preservation of settings. TRUE means not to
+		preserve settings, FALSE means preserve settings.
+		(Default: FALSE)
+
+        noSoundCache (class NoSoundCache)
+	      - Resource about sound cache. TRUE means not to use sound
+		cache, FALSE means use sound cache. (Default: FALSE)
+
+        noShape (class NoShape)
+	      - Resource about using of X11 Shape Extension. TRUE means
+		not to use X11 Shape Extension, FALSE means use X11 Shape
+		Extension. (Default: FALSE)
+
+        perfect (class Perfect)
+	      - Resource about allocation of color-cells. TRUE means all
+		the colors needed will be allocated, FALSE otherwise
+		(Default: FALSE)
+
+        grayscale (class Grayscale)
+	      - Resource for displaying in grayscales. TRUE means display
+		in grayscales, FALSE means using colour. (Default: FALSE)
+
+        gray4 (class Gray4)
+	      - Resource for using 4 grayscales. TRUE means using 4
+		grayscales, FALSE means using colour. (Default: FALSE)
+
+        mono (class Mono)
+	      - Resource for using monochrome. TRUE means using monochrome,
+		FALSE means using colour. (Default: FALSE)
+
+
+	Moreover, Emi Clock also uses the following widget resources in
+	the EmiClock Widget. Except the resources for the hands' colours,
+	all resources are only examined at the first time when Emi Clock is
+	run. Once the environment settings file
+		$HOME/.emiclockrc
+	is created, it will be consulted first and thus has a higher
+	priority.
+
+
+        handBorder (class Foreground)
+	      - Color of outline of minute's hand. (Default: "black")
+
+        handColor (class Foreground)
+	      - Color of body of minute's hand. (Default: "white")
+
+        secondHand (class Foreground)
+	      - Color of hour's hand. (Default: "red")
+
+        noSecond (class NoSecond)
+	      - Whether the second's hand is displayed or not. TRUE means
+		no second's hand, FALSE otherwise (Default: FALSE)
+
+        hourlyCharacterChange (class HourlyCharacterChange)
+	      - Whether costume is changed every hour or not. TRUE means
+		costume is changed in every hour. FALSE means no costume
+		change.  (Default: FALSE)
+
+        hourlyChime (class HourlyChime)
+	      - Whether there is a hourly chime or not. TRUE means chime at
+		0 minute every hour. FALSE means no 0 minute chime.
+		(Default: FALSE)
+
+        halfHourChime (class HalfHourChime)
+	      - Whether there is a half-hourly chime. TRUE means chime at
+		30 minute every hour. FALSE means no 30-minute chime.
+		(Default: FALSE)
+
+        playAlarm (class PlayAlarm)
+	      - Whether there is alarm. TRUE means alarm will be rung, FALSE
+		otherwise. (Default: FALSE)
+
+  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+
+	The default application name of Emi Clock is emiclock. You can use
+	this name to override the default settings of Emi Clock. For example,
+	if you want to display Emi Clock as grayscales and use "hourly
+	chime", you can add these lines in $HOME/.Xdefaults (or other 
+	similar files):
+
+	        emiclock*grayscale:     TRUE
+      		emiclock*hourlyChime:   TRUE
+
+	(the latter setting only has effect at the first time you start
+	Emi Clock)
+
+	After you have made the changes, Emi Clock will use grayscales
+	display even if -grayscale is not used in the command line (and
+	enables the hourly chime at the first time Emi Clock is run).
+
+	Moreover, you can use the X toolkit's option -name to specify what
+	resources to use.
+	For instance, after adding the following line in $HOME/.Xdefaults:
+
+	        emi_mono*mono: TRUE
+
+	then a monochrome Emi Clock will be started up whenever you type:
+
+		emiclock -name 'emi_mono'
+
+9. Restrictions
+
+	The followings are restrictions of Emi Clock 1.0.2 for X11:
+
+	(1) The X Window System that this software is designed for is
+	    Version 11 Release 5 and later. X11R4 maybe able to run it, but
+	    it is not guaranteed.
+
+	(2) When there's no second's hand, the minute's and hour's hand does
+	    not move in real-time, that is, the minute's and hour's hand
+	    moves for every minute just like there is a second's hand.
+
+	(3) The time is taken for every 1000ms after Emi Clock is started
+	    up.  So if you compare it with your clock, the greatest error
+            will be 999ms.
+
+	(4) Depends on how sound is played on your system, the second's
+	    hand may stop moving when sound is playing.
+
+	(5) If sound files can be cached, the whole file of the chime's
+	    sound will be cached in the heap. So if you are going to use
+	    a sound for the chime, please don't use a very large file.
+	
+	(6) You cannot give an absolute path for the sound files of chime
+	    and alarm.
+
+	(7) There is no file browser in choosing a sound file from these
+	    submenu (under the "Chime" menu):
+            	"Hourly chime..."
+	        "Half hour chime..."
+		"Note Alarm..."
+
+10. Final words
+
+	Thank you very much for using the X11 version of Emi Clock.
+	Finally, if you have any...
+
+            - fan letter
+            - bug report
+            - upgrade patch
+            - advice on programming
+            - suggestions
+
+	don't hesitate to send an e-mail to me at this address:
+
+        Internet E-mail: masa-k@sag.hitachi-sk.co.jp
+
+	You can send me English e-mail, but I will only answer in
+	Japanese. Sorry for that.
+
+11. Acknowledgements
+
+    (not translated)
+
+Translation: Wong Yin-pong (Anthony Wong, ypwong@poboxes.com)
+
diff -uNr emiclock-1.0.4-orig/config.h emiclock-1.0.4/config.h
--- emiclock-1.0.4-orig/config.h	Sat Jan 11 10:35:43 1997
+++ emiclock-1.0.4/config.h	Tue Feb 17 06:38:56 1998
@@ -43,7 +43,7 @@
  *  $B#G#U#I$N@_Dj(B
  */
 
-#undef	USE_XAW3D			/* Xaw3d $B$r;H$&!)(B */
+#define	USE_XAW3D			/* Xaw3d $B$r;H$&!)(B */
 #undef	USE_XAWI18N			/* X11R5 $B$N(B Xaw I18N $B$r;H$&!)(B */
 
 
@@ -51,7 +51,7 @@
  *  $B%5%&%s%I4X78$N@_Dj(B
  */
 
-#undef	USE_SOUND			/* $B%5%&%s%I$r;H$&!)(B */
+#define	USE_SOUND			/* $B%5%&%s%I$r;H$&!)(B */
 
 /* #define	EmiClockLib	/usr/local/lib/X11/EmiClock */
 /* $(LIBDIR)/EmiClock $B0J30$N>l=j$K%5%&%s%I%U%!%$%k$r%$%s%9%H!<%k(B */
