f48d989
diff -u --recursive festival-vanilla/examples/benchmark festival/examples/benchmark
f48d989
--- festival-vanilla/examples/benchmark	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/benchmark	2018-09-06 20:37:22.855868107 -0400
f48d989
@@ -1,6 +1,7 @@
f48d989
 #!/bin/sh
f48d989
 
f48d989
-default_libdir="/projects/festival/lib"
f48d989
+default_libdir="/usr/share/festival"
f48d989
+default_datadir="/usr/share/festival"
f48d989
 
f48d989
 while true
f48d989
 	do
f48d989
@@ -11,13 +12,17 @@
f48d989
 	-l ) libdir="$2"
f48d989
 		shift 2
f48d989
 		;;
f48d989
+	-d ) datadir="$2"
f48d989
+		shift 2
f48d989
+		;;
f48d989
+	-- ) shift; break ;;
f48d989
 	* ) break;;
f48d989
 	esac
f48d989
 done
f48d989
 
f48d989
-text=${1-"$HOME/projects/festival/examples/benchmark.text"}
f48d989
+text=${1-"/usr/share/doc/festival/examples/benchmark.text"}
f48d989
 
f48d989
-for i in . src/main ../src/main $HOME/projects/festival/src/main /cstr/bin
f48d989
+for i in /usr/bin . src/main ../src/main $HOME/projects/festival/src/main /cstr/bin
f48d989
 	do
f48d989
 	if [ -n "$festival" ]
f48d989
 		then
f48d989
@@ -39,7 +44,15 @@
f48d989
 	then
f48d989
 	case $festival in 
f48d989
 	*main/festival )	libdir=`dirname $festival`/../../lib;;
f48d989
-	* ) libdir=$default_libdir;;
f48d989
+	* ) libdir=$default_libdir;
f48d989
+	esac
f48d989
+fi
f48d989
+
f48d989
+if [ -z "$datadir" ]
f48d989
+	then
f48d989
+	case $festival in 
f48d989
+	*main/festival )   datadir=`dirname $festival`/../../share;;
f48d989
+	* ) datadir=$default_datadir;;
f48d989
 	esac
f48d989
 fi
f48d989
 
f48d989
@@ -54,10 +67,11 @@
f48d989
 cat > $script <<__END__
f48d989
 
f48d989
 (set! libdir "$libdir/")
f48d989
-(set! lexdir "$default_libdir/dicts/")
f48d989
-(set! voiced_dir "$default_libdir/voices/")
f48d989
+(set! datadir "$datadir/")
f48d989
+(set! lexdir "$default_datadir/dicts/")
f48d989
+(set! voiced_dir "$default_datadir/voices/")
f48d989
 
f48d989
-(load (string-append libdir "init.scm"))
f48d989
+(load (string-append datadir "init.scm"))
f48d989
 (if (probe_file (format nil "%s/.festivalrc" (getenv "HOME")))
f48d989
     (load (format nil "%s/.festivalrc" (getenv "HOME"))))
f48d989
 
f48d989
diff -u --recursive festival-vanilla/examples/benchmark.text festival/examples/benchmark.text
f48d989
--- festival-vanilla/examples/benchmark.text	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/benchmark.text	2018-09-06 20:37:22.855868107 -0400
f48d989
@@ -32,8 +32,13 @@
f48d989
 
f48d989
      --libdir PATH
f48d989
 	     Specify alternate to default library directory (used
f48d989
-	     in	 initializing  the  variable  load-path,  and for
f48d989
-	     loading most intinialisation files)
f48d989
+	     for architecture-specific libraries and programs)
f48d989
+
f48d989
+     --datadir PATH
f48d989
+	     Specify alternate to default shared-data directory (used
f48d989
+	     in	 initializing the  variable  load-path,  and for
f48d989
+	     loading most initialisation files). Typically, the voice and
f48d989
+		 dictionary files reside here.
f48d989
 
f48d989
      -b	or --batch
f48d989
 	     Run in batch mode.	 In batch mode no input	 is  read
f48d989
diff -u --recursive festival-vanilla/examples/dumpfeats.sh festival/examples/dumpfeats.sh
f48d989
--- festival-vanilla/examples/dumpfeats.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/dumpfeats.sh	2018-09-06 20:37:22.855868107 -0400
f48d989
@@ -39,7 +39,7 @@
f48d989
 
f48d989
 ;;; Because this is a --script type file it has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
-(load (path-append libdir "init.scm"))
f48d989
+(load (path-append datadir "init.scm"))
f48d989
 
f48d989
 (define (dumpfeats_help)
f48d989
   (format t "%s\n"
f48d989
diff -u --recursive festival-vanilla/examples/durmeanstd.sh festival/examples/durmeanstd.sh
f48d989
--- festival-vanilla/examples/durmeanstd.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/durmeanstd.sh	2018-09-06 20:37:22.856868112 -0400
f48d989
@@ -40,7 +40,7 @@
f48d989
 
f48d989
 ;;; Because this is a --script type file it has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
-(load (path-append libdir "init.scm"))
f48d989
+(load (path-append datadir "init.scm"))
f48d989
 
f48d989
 (define (durmeanstd_help)
f48d989
   (format t "%s\n"
f48d989
diff -u --recursive festival-vanilla/examples/latest.sh festival/examples/latest.sh
f48d989
--- festival-vanilla/examples/latest.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/latest.sh	2018-09-06 20:37:22.854868102 -0400
f48d989
@@ -50,7 +50,7 @@
f48d989
 
f48d989
 ;;; Because this is a --script type file I has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
-(load (path-append libdir "init.scm"))
f48d989
+(load (path-append datadir "init.scm"))
f48d989
 
f48d989
 (audio_mode 'async)  ;; play waves while continuing synthesis
f48d989
 
f48d989
diff -u --recursive festival-vanilla/examples/Makefile festival/examples/Makefile
f48d989
--- festival-vanilla/examples/Makefile	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/Makefile	2018-09-06 20:37:22.860868131 -0400
f48d989
@@ -54,8 +54,9 @@
f48d989
 
f48d989
 $(ALL) : % : %.sh
f48d989
 	rm -f $@
f48d989
-	@echo "#!/bin/sh" >$@
f48d989
-	@echo "\"true\" ; exec "$(FESTIVAL_HOME)/bin/festival --script '$$0 $$*' >>$@
f48d989
+	@echo "#!/usr/bin/festival --script" >$@
f48d989
+#	@echo "#!/bin/sh" >$@
f48d989
+#	@echo "\"true\" ; exec "/usr/bin/festival --script '$$0 $$*' >>$@
f48d989
 	cat $< >>$@
f48d989
 	chmod +x $@
f48d989
 
f48d989
diff -u --recursive festival-vanilla/examples/make_utts.sh festival/examples/make_utts.sh
f48d989
--- festival-vanilla/examples/make_utts.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/make_utts.sh	2018-09-06 20:37:22.854868102 -0400
f48d989
@@ -44,7 +44,7 @@
f48d989
 ;;; Because this is a --script type file it has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
 (if (not (symbol-bound? 'caar))
f48d989
-    (load (path-append libdir "init.scm")))
f48d989
+    (load (path-append datadir "init.scm")))
f48d989
 
f48d989
 ;;;  Some parts are potentially editable
f48d989
 (defvar basic_relations '((Phrase segmental ())
f48d989
diff -u --recursive festival-vanilla/examples/saytime.sh festival/examples/saytime.sh
f48d989
--- festival-vanilla/examples/saytime.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/saytime.sh	2018-09-06 20:37:22.856868112 -0400
f48d989
@@ -44,7 +44,7 @@
f48d989
 
f48d989
 ;;; Because this is a --script type file I has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
-(load (path-append libdir "init.scm"))
f48d989
+(load (path-append datadir "init.scm"))
f48d989
 
f48d989
 (define (get-the-time)
f48d989
 "Returns a list of hour and minute and second, for later processing"
f48d989
diff -u --recursive festival-vanilla/examples/scfg_parse_text.sh festival/examples/scfg_parse_text.sh
f48d989
--- festival-vanilla/examples/scfg_parse_text.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/scfg_parse_text.sh	2018-09-06 20:37:22.856868112 -0400
f48d989
@@ -45,7 +45,7 @@
f48d989
 
f48d989
 ;;; Because this is a --script type file I has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
-(load (path-append libdir "init.scm"))
f48d989
+(load (path-append datadir "init.scm"))
f48d989
 
f48d989
 (require 'scfg)
f48d989
 
f48d989
@@ -66,7 +66,7 @@
f48d989
 (gc-status nil)
f48d989
 
f48d989
 ;;; Default argument values
f48d989
-(defvar grammarfile (path-append libdir "scfg_wsj_wp20.gram"))
f48d989
+(defvar grammarfile (path-append datadir "scfg_wsj_wp20.gram"))
f48d989
 (defvar outfile "-")
f48d989
 (defvar outfd t)
f48d989
 (defvar parse_type 'brackets_only)
f48d989
diff -u --recursive festival-vanilla/examples/text2pos.sh festival/examples/text2pos.sh
f48d989
--- festival-vanilla/examples/text2pos.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/text2pos.sh	2018-09-06 20:37:22.856868112 -0400
f48d989
@@ -50,7 +50,7 @@
f48d989
 
f48d989
 ;;; Because this is a --script type file I has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
-(load (path-append libdir "init.scm"))
f48d989
+(load (path-append datadir "init.scm"))
f48d989
 
f48d989
 (define (find-pos utt)
f48d989
 "Main function for processing TTS utterances.  Predicts POS and
f48d989
diff -u --recursive festival-vanilla/examples/text2wave.sh festival/examples/text2wave.sh
f48d989
--- festival-vanilla/examples/text2wave.sh	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/examples/text2wave.sh	2018-09-06 20:37:22.857868117 -0400
f48d989
@@ -40,7 +40,7 @@
f48d989
 
f48d989
 ;;; Because this is a --script type file I has to explicitly
f48d989
 ;;; load the initfiles: init.scm and user's .festivalrc
f48d989
-(load (path-append libdir "init.scm"))
f48d989
+(load (path-append datadir "init.scm"))
f48d989
 
f48d989
 ;;; Process command line arguments
f48d989
 (define (text2wave_help)
f48d989
diff -u --recursive festival-vanilla/lib/festival.scm festival/lib/festival.scm
f48d989
--- festival-vanilla/lib/festival.scm	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/lib/festival.scm	2018-09-06 20:37:22.858868122 -0400
f48d989
@@ -552,13 +552,13 @@
f48d989
 (define (intro)
f48d989
 "(intro)
f48d989
  Synthesize an introduction to the Festival Speech Synthesis System."
f48d989
-  (tts (path-append libdir "../examples/intro.text") nil))
f48d989
+  (tts (path-append datadir "/usr/share/doc/festival/examples/intro.text") nil))
f48d989
 
f48d989
 (define (intro-spanish)
f48d989
 "(intro-spanish)
f48d989
  Synthesize an introduction to the Festival Speech Synthesis System
f48d989
  in spanish.  Spanish voice must already be selected for this."
f48d989
-  (tts (path-append libdir "../examples/spintro.text") nil))
f48d989
+  (tts (path-append datadir "/usr/share/doc/festival/examples/spintro.text") nil))
f48d989
 
f48d989
 (define (na_play FILENAME)
f48d989
 "(play_wave FILENAME)
f48d989
diff -u --recursive festival-vanilla/lib/init.scm festival/lib/init.scm
f48d989
--- festival-vanilla/lib/init.scm	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/lib/init.scm	2018-09-06 20:37:22.852868092 -0400
f48d989
@@ -36,7 +36,7 @@
f48d989
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
f48d989
 
f48d989
 ;;;  Basic siod library (need this before load_library or require works)
f48d989
-(load (path-append libdir "siod.scm"))
f48d989
+(load (path-append datadir "siod.scm"))
f48d989
 
f48d989
 (defvar home-directory (or (getenv "HOME") "/")
f48d989
   "home-directory
f48d989
diff -u --recursive festival-vanilla/lib/lexicons.scm festival/lib/lexicons.scm
f48d989
--- festival-vanilla/lib/lexicons.scm	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/lib/lexicons.scm	2018-09-06 20:37:22.858868122 -0400
f48d989
@@ -42,10 +42,10 @@
f48d989
 ;;;  you should set lexdir in sitevars.scm
f48d989
 
f48d989
 (defvar lexdir 
f48d989
-  (if (probe_file (path-append libdir "dicts"))
f48d989
-      (path-append libdir "dicts/")
f48d989
+  (if (probe_file (path-append datadir "dicts"))
f48d989
+      (path-append datadir "dicts/")
f48d989
       ;; else we'll guess we're in the CSTR filespace
f48d989
-      (path-as-directory "/projects/festival/lib/dicts/"))
f48d989
+      (path-as-directory "/usr/share/festival/dicts/"))
f48d989
   "lexdir
f48d989
   The directory where the lexicon(s) are, by default.")
f48d989
 
f48d989
diff -u --recursive festival-vanilla/lib/phrase.scm festival/lib/phrase.scm
f48d989
--- festival-vanilla/lib/phrase.scm	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/lib/phrase.scm	2018-09-06 20:37:22.857868117 -0400
f48d989
@@ -93,7 +93,7 @@
f48d989
 
f48d989
 (require 'pos)   ;; for part of speech map
f48d989
 
f48d989
-(defvar pbreak_ngram_dir libdir
f48d989
+(defvar pbreak_ngram_dir datadir
f48d989
   "pbreak_ngram_dir
f48d989
   The directory containing the ngram models for predicting phrase
f48d989
   breaks.  By default this is the standard library directory.")
f48d989
diff -u --recursive festival-vanilla/lib/soleml-mode.scm festival/lib/soleml-mode.scm
f48d989
--- festival-vanilla/lib/soleml-mode.scm	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/lib/soleml-mode.scm	2018-09-06 20:37:22.857868117 -0400
f48d989
@@ -330,7 +330,7 @@
f48d989
        (list 'exit_func soleml_exit_func)
f48d989
        '(analysis_type xxml)
f48d989
        (list 'filter 
f48d989
-	     (format nil "%s -D %s " sgml_parse_progname libdir))))
f48d989
+	     (format nil "%s -D %s " sgml_parse_progname datadir))))
f48d989
     tts_text_modes))
f48d989
 
f48d989
 (provide 'soleml-mode)
f48d989
diff -u --recursive festival-vanilla/lib/voices.scm festival/lib/voices.scm
f48d989
--- festival-vanilla/lib/voices.scm	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/lib/voices.scm	2018-09-06 20:37:22.853868097 -0400
f48d989
@@ -42,7 +42,7 @@
f48d989
 ;; The path to search for voices is created from the load-path with
f48d989
 ;; an extra list of directories appended.
f48d989
 
f48d989
-(defvar system-voice-path '( )
f48d989
+(defvar system-voice-path '("/usr/share/festival/voices/")
f48d989
   "system-voice-path
f48d989
    Additional directory not near the load path where voices can be
f48d989
    found, this can be redefined in lib/sitevars.scm if desired.")
f48d989
diff -u --recursive festival-vanilla/src/arch/festival/audspio.cc festival/src/arch/festival/audspio.cc
f48d989
--- festival-vanilla/src/arch/festival/audspio.cc	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/src/arch/festival/audspio.cc	2018-09-06 20:37:22.859868126 -0400
f48d989
@@ -108,7 +108,7 @@
f48d989
 	{
f48d989
 	    audio = ft_get_param("Audio_Method");
f48d989
 	    command = ft_get_param("Audio_Command");
f48d989
-	    audfds = pipe_open("audsp");
f48d989
+	    audfds = pipe_open("/usr/libexec/festival/audsp");
f48d989
 	    if (audio != NIL)
f48d989
 		audsp_send(EST_String("method ")+get_c_string(audio));
f48d989
 	    if (command != NIL)
f48d989
diff -u --recursive festival-vanilla/src/arch/festival/festival.cc festival/src/arch/festival/festival.cc
f48d989
--- festival-vanilla/src/arch/festival/festival.cc	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/src/arch/festival/festival.cc	2018-09-06 20:37:22.859868126 -0400
f48d989
@@ -60,6 +60,9 @@
f48d989
 #define STRINGIZE(S) _S_S_S(S)
f48d989
 
f48d989
 const char *festival_version =  STRINGIZE(FTVERSION) ":" STRINGIZE(FTSTATE) " " STRINGIZE(FTDATE);
f48d989
+const char *festival_libdir = "/usr/share/festival";
f48d989
+const char *festival_datadir = "/usr/share/festival";
f48d989
+const char *festival_sysconfdir = "/etc";
f48d989
 
f48d989
 // Allow the path to be passed in without quotes because Windoze command line
f48d989
 // is stupid
f48d989
@@ -79,7 +82,6 @@
f48d989
 #define FTOSTYPE ""
f48d989
 #endif
f48d989
 
f48d989
-const char *festival_libdir = FTLIBDIR;
f48d989
 ostream *cdebug;
f48d989
 static int festival_server_port = 1314;
f48d989
 static EST_StrList sub_copyrights;
f48d989
@@ -308,7 +310,7 @@
f48d989
     EST_String userinitfile, home_str, initfile;
f48d989
 
f48d989
     // Load library init first
f48d989
-    initfile = (EST_String)EST_Pathname(festival_libdir).as_directory() + 
f48d989
+    initfile = (EST_String)EST_Pathname(festival_datadir).as_directory() +
f48d989
 	"init.scm";
f48d989
     if (access((const char *)initfile,R_OK) == 0)
f48d989
 	vload(initfile,FALSE);
f48d989
@@ -324,6 +326,8 @@
f48d989
     int major,minor,subminor;
f48d989
     
f48d989
     siod_set_lval("libdir",strintern(festival_libdir));
f48d989
+    siod_set_lval("datadir",strintern(festival_datadir));
f48d989
+    siod_set_lval("sysconfdir",strintern(festival_sysconfdir));
f48d989
     if (!streq(FTOSTYPE,""))
f48d989
 	siod_set_lval("*ostype*",cintern(FTOSTYPE));
f48d989
     siod_set_lval("festival_version",
f48d989
@@ -357,6 +361,7 @@
f48d989
     if (mplayer_supported)
f48d989
 	proclaim_module("mplayeraudio");
f48d989
     
f48d989
+#if 0 /* /usr/lib/festival/etc/machine -- ??? */
f48d989
     // Add etc-dir path and machine specific directory etc/$OSTYPE
f48d989
     char *etcdir = walloc(char,strlen(festival_libdir)+strlen("etc/")+
f48d989
 			  strlen(FTOSTYPE)+3);
f48d989
@@ -377,6 +382,7 @@
f48d989
     
f48d989
     wfree(etcdir);
f48d989
     wfree(etcdircommon);
f48d989
+#endif
f48d989
     return;
f48d989
 }
f48d989
 
f48d989
Only in festival/src/arch/festival: festival.cc.orig
f48d989
diff -u --recursive festival-vanilla/src/arch/festival/Makefile festival/src/arch/festival/Makefile
f48d989
--- festival-vanilla/src/arch/festival/Makefile	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/src/arch/festival/Makefile	2018-09-06 20:37:22.858868122 -0400
f48d989
@@ -62,6 +62,6 @@
f48d989
 LOCAL_INCLUDES += $(FESTIVAL_INCLUDES)
f48d989
 
f48d989
 festival.o: festival.cc
f48d989
-	$(CXX_COMMAND_TEMPLATES) -DFTNAME='$(PROJECT_NAME)' -DFTLIBDIRC='$(FTLIBDIR)' -DFTVERSION='$(PROJECT_VERSION)' -DFTSTATE='$(PROJECT_STATE)'  -DFTDATE='$(PROJECT_DATE)' -DFTOSTYPE=\"$(SYSTEM_TYPE)\" festival.cc
f48d989
+	$(CXX_COMMAND_TEMPLATES) -DFTNAME='$(PROJECT_NAME)' -DFTVERSION='$(PROJECT_VERSION)' -DFTSTATE='$(PROJECT_STATE)'  -DFTDATE='$(PROJECT_DATE)' -DFTOSTYPEC='$(SYSTEM_TYPE)' festival.cc
f48d989
 
f48d989
 
f48d989
diff -u --recursive festival-vanilla/src/include/festival.h festival/src/include/festival.h
f48d989
--- festival-vanilla/src/include/festival.h	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/src/include/festival.h	2018-09-06 20:37:22.854868102 -0400
f48d989
@@ -138,6 +138,7 @@
f48d989
 void add_item_features(EST_Item *s,LISP features);
f48d989
 
f48d989
 extern const char *festival_libdir;
f48d989
+extern const char *festival_datadir;
f48d989
 
f48d989
 //  Module specific LISP/etc definitions
f48d989
 void festival_init_modules(void);
f48d989
diff -u --recursive festival-vanilla/src/main/festival_main.cc festival/src/main/festival_main.cc
f48d989
--- festival-vanilla/src/main/festival_main.cc	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/src/main/festival_main.cc	2018-09-06 20:37:22.853868097 -0400
f48d989
@@ -88,6 +88,8 @@
f48d989
         "In evaluation mode \"filenames\" starting with ( are evaluated inline\n"+
f48d989
 	"Festival Speech Synthesis System: "+ festival_version +"\n"+
f48d989
 	"-q            Load no default setup files\n"+
f48d989
+	"--datadir <string>\n"+
f48d989
+	"              Set data directory pathname\n"+
f48d989
 	"--libdir <string>\n"+
f48d989
         "              Set library directory pathname\n"+
f48d989
         "-b            Run in batch mode (no interaction)\n"+
f48d989
@@ -127,6 +129,12 @@
f48d989
 	festival_libdir = wstrdup(al.val("--libdir"));
f48d989
     else if (getenv("FESTLIBDIR") != 0)
f48d989
 	festival_libdir = getenv("FESTLIBDIR");
f48d989
+
f48d989
+    if (al.present("--datadir"))
f48d989
+	festival_datadir = wstrdup(al.val("--datadir"));
f48d989
+    else if (getenv("FESTDATADIR") != 0)
f48d989
+	festival_datadir = getenv("FESTDATADIR");
f48d989
+
f48d989
     if (al.present("--heap"))
f48d989
 	heap_size = al.ival("--heap");
f48d989
 
f48d989
diff -u --recursive festival-vanilla/testsuite/data/modes.scm festival/testsuite/data/modes.scm
f48d989
--- festival-vanilla/testsuite/data/modes.scm	2017-09-04 11:54:08.000000000 -0400
f48d989
+++ festival/testsuite/data/modes.scm	2018-09-06 20:37:22.853868097 -0400
f48d989
@@ -42,13 +42,13 @@
f48d989
 
f48d989
 (format t "\n\nSABLE mode\n")
f48d989
 (unwind-protect
f48d989
- (tts (string-append libdir "/../examples/example2.sable") nil))
f48d989
+ (tts "/usr/share/doc/festival/examples/example2.sable" 'sable))
f48d989
 (format t "\n\nOGI's mark up mode\n")
f48d989
 (unwind-protect 
f48d989
- (tts (string-append libdir "/../examples/ex1.ogi") 'ogimarkup))
f48d989
+ (tts "/usr/share/doc/festival/examples/ex1.ogi" 'ogimarkup))
f48d989
 (format t "\n\nAn email mode\n")
f48d989
 (unwind-protect
f48d989
- (tts (string-append libdir "/../examples/ex1.email") nil))
f48d989
+ (tts "/usr/share/doc/festival/examples/ex1.email" nil))
f48d989
 
f48d989
 (voice_kal_diphone)
f48d989
 (format t "\n\nA singing mode\n")