man.diff

来自「speech signal process tools」· DIFF 代码 · 共 260 行

DIFF
260
字号
.\" Copyright (c) 1991 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)expromptru.1	1.7 01 Apr 1997 ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH  EXPROMPTRUN 1\-ESPS 01 Apr 1997.SH "NAME"expromptrun \- run ESPS program after interactive parameter entry in a pop-up window.SH "SYNOPSIS".B expromptrun[.BI \-P.I param_file] [.B \-n] [.BI \-c.I checkfile] [.BI\-h.I help_name] [.B \-z] [ .BI \-X " x_pos"] [ .BI \-Y " y_pos"] [.BI \-x.I debug_level]command_line.SH "DESCRIPTION".PP\fIExpromptrun\fP is an X Windows program that displays an interactiveform for entering ESPS parameters, and then runs the correspondingESPS program.  It is closely related to \fIexprompt\fP(1\-\s-1ESPS\s+1), which just prompts for parameters and produces aparameter file for subsequent use..PPIt is assumed that \fIcommand_line\fP is a full command line for an ESPS program (including command line options and file names), with the exception that the standard ESPS \fB-P\fP option is \fInot\fPincluded.  A suitable \fB-P\fP option will be inserted by\fIexpromptrun\fP.  .PP\fIExpromptrun\fR processes the ESPS parameter file \fIparam_file \fPand (optionally) ESPS Common.  It then pops up a window containing anentry for each of the indefinite parameters in \fIparam_file\fP(parameters with values assigned using the "?=" operator).  Each suchentry has the name of the parameter and a space for filling in thedesired value.  Default values from the parameter file are filled ininitially.  If a prompt string was included in the parameter file, thestring is displayed above the corresponding parameter entry..PPIf the parameter definition in \fIparam_file\fP includes theoptional set of discrete choices, the window entry for the parametercontains a set of screen buttons, one for each choice \- the userselects the parameter value by clicking with the mouse on the desiredchoice.  If discrete choices were not provided in the parameter file,the window entry for the parameter contains space in which the usercan type the desired value..PPBefore displaying the interactive window, \fIexpromptrun\fP creates atemporary parameter file to record the user's parameter entries; thistemporary parameter file will be used subsequently in running\fIcommand_line\fP.  If the environment variable ESPS_TEMP_PATH isdefined, it will be used as the location for the temporary parameterfile.  Otherwise, a compiled in default (usually /usr/tmp) will beused.  When \fIexpromptrun\fP first creates the temporary parameterfile, it fills it with definitions for all of the parameters in\fIparam_file\fP and ESPS Common (if Common is processed).  Theinitial values are the default values from \fIparam_file\fP, perhapsmodified by Common processing..PPWhenever the user enters a valid new value for a parameter in the\fIexpromptrun\fP window, the temporary parameter file is updated.Note that that data entry requires that a RETURN by typed at the endof the entry string. Input parameters are checked for data typeformat.  If limits are provided for numeric parameters in theparameter file, the limits are checked..PPTwo or three screen buttons are provided in a panel at the top of the \fIexpromptrun\fP window.  The button DEFAULTS reverts all parametervalues to the defaults that were in the \fIparam_file\fP (as updated byCommon).  The button DONE causes \fIexpromptrun\fP to exit.  Use this whenyou have finished entering values.  The state of the temporary output parameterfile will correspond to the state of the window when DONE is selected(assuming that RETURNs have been typed as appropriate).  .PPIf the \fB\-h\fP option was used, a HELP button is also provided inthe parameter prompting window.  Selecting it causes a help file to bedisplayed in a text window.  If the \fIhelp_name\fP specified with\fB\-h\fP has a leading "." or "/", it is interpreted as the path to apure ASCII file containing help information.  If there is no leading"." or "/", \fIhelp_name\fP is interpreted as the name of an ESPSprogram for which the parameters are intended.  In this case, HELPpresents a copy of the corresponding ESPS manual page in a textwindow.  (To obtain it, \fIeman\fP is run and the output is strippedof format control strings.)  In both cases, the text window includes aFIND button to facilitate string searching..PPAfter the user exits the parameter prompt window (by clicking on DONE), \fIexpromptrun\fP builds a new command line from\fIcommand_line\fP by inserting a \fB-P\fP after the first item in \fIcommand_line\fP (which is assumed to be a program name).  The temporary parameter file created by \fIexpromptrun\fP is used as the argument for the new \fB-P\fP option.  The new command line is then executed via \fIsystem\fP(3).  When \fIexpromptrun\fPterminates in this case, the exit status is that of the command run.  .PPNote that \fIexpromptrun\fP does not terminate until after the command generated from \fIcommand_line\fP has completed running.  Thismakes \fIexpromptrun\fP more useful in scripts and as a command tied to\fIxwaves\fP+ menus.  The temporary parameter file is deleted before a normal exit from \fIexpromptrun\fP.  .PPIf the temporary file was not created properly, \fIexpromptrun\fPexits without attempting to run the \fIcommand_line\fP.  In this case,if there was trouble processing the input parameter file,\fIexpromptrun\fP exits with status 1.  If the user exits via the"DONE" button but the parameters were not written successfully,\fIexpromptrun\fP exits with status 2.  If the parameter prompt windowexits for other reasons, the exit status is 3; the most common reasonsare inability to create a window in the first place, a window-managerquit operation, or an explicit kill signal..SH OPTIONS.PPThe following options are supported:.TP.BI \-P " param_file" " \fR[params]\fP"Specifies the name of the ESPS parameter file to process.  If you wantto force the parameter to come only from ESPS common, use "\fB\-P\fP/dev/null".  .TP.BI \-n Do not process ESPS Common (i.e., always get the parameter value fromthe file specified by the \fB\-P\fP option).  (Within \fIexpromptrun\fP, theeffect of \fB\-n\fP is to have \fIread_params\fP (3\-\s-1ESPS\s+1)called with the SC_NOCOMMON flag.)  Note also that Common processing can also be disabled by setting the unix environment variableUSE_ESPS_COMMON to "off".  It is an error to specify both \fB\-n\fP and\fB\-c\fP.  .TP.BI \-c " checkfile"If the ESPS Common file exists, this option specifies that the Commonfile should be processed only if the \fIcheckfile\fP matches the valueof the \fIfilename\fP in the Common file.  This option will have noeffect if the unix environment variable USE_ESPS_COMMON is "off".  Itis an error to specify both \fB\-n\fP and \fB\-c\fP..TP.BI \-h " help_name"Causes a HELP button to be provided in the \fIexpromptrun\fP window.Selecting this button brings up a help file in a text window.  If\fIhelp_name\fP has a leading "." or "/", it is interpreted as thepath to a pure ASCII file containing help information.  If there is noleading "." or "/", \fIhelp_name\fP is interpreted as the name of anESPS program for which the parameters are intended.  In this case,HELP presents a copy of the corresponding ESPS manual page in a textwindow.  (To obtain it, \fIeman\fP is run and the output is strippedof format control strings.)  In both cases, the text window includes aFIND button to facilitate string searching..TP.B \-zSpecifies that \fIexpromptrun\fP operate silently; conditions such as "no parameters" or "no indefinite parameters" are not reported. .TP .BI \-X " x_pos"Specifies the x-position (in the root window) of the frame displayedby \fIexpromptrun\fP.  Both \fIx_pos\fP and \fIy_pos\fP must be specifiedand be non-negative; otherwise, the positioning will be left up to thewindow manager.  The standard XView \fB-Wp\fP and standard X11\fB-geometry\fP options can also be used to position the window.  .TP .BI \-Y " y_pos"Specifies the y-position (in the root window) of the frame displayedby \fIexpromptrun\fP.  Both \fIx_pos\fP and \fIy_pos\fP must be specifiedand be non-negative; otherwise, the positioning will be left up to thewindow manager.  The standard XView \fB-Wp\fP and standard X11\fB-geometry\fP options can also be used to position the window.  .TP.BI \-x " debug_level \fR[0]\fP"If \fIdebug_level\fP is positive,.I expromptrunoutputs debugging messages. The messages proliferate as .I debug_level increases.  For level 0, there is no output..SH "ESPS PARAMETERS".PPThe ESPS parameter file specified by the \fB\-P\fP option is processedonly to obtain parameter specifications.  In this respect,\fIxpromptrun\fP is quite different from most other ESPS programs,which use the parameter file to pass parameter values that control theoperation of the program..SH ESPS HEADERS.PPNo ESPS files are processed by \fIexpromptrun\fP..SH ESPS COMMON.PPParameter processing by \fIexpromptrun\fP follows standard ESPSconventions: Unless the parameter value is overridden by the value inESPS Common, the default value displayed by \fIexpromptrun\fP is the valuefrom the parameter file \fIparam_file\fP.  This default value will beoverridden by the value in Common (if the Common file exists andcontains a value for the parameter), provided that ESPS Commonprocessing is enabled and that the Common file is younger than theparameter file.  If a \fIcheckfile\fP is specified by means of the\fB\-c\fP option, the parameter file value for \fIparam_name\fP will beoverridden by the value in Common only if \fIcheckfile\fP is identicalto the \fIfilename\fP entry in the Common file..PPESPS Common processing is enabled unless the unix environment variableUSE_ESPS_COMMON is "off" or the \fB\-n\fP is specified.  The defaultESPS Common file is .espscom in the user's home directory.  This maybe overridden by setting the environment variable ESPSCOM to thedesired path.  User feedback from parameter and Common file processing(by the library \fIread_params\fP and \fIgetsym\fP functions) isdetermined by the environment variable ESPS_VERBOSE, with 0 causing nofeedback and increasing levels causing increasingly detailed feedback.If ESPS_VERBOSE is not defined, a default value of 3 is assumed..PPIt is an error to give both \fB\-n\fP and \fB\-c\fP..SH EXAMPLES.PPThis computes a spectrogram after prompting for all parameters but \fIstart\fP and \fInan\fP:.nf	expromptrun \-h sgram \-P$ESPS_BASE/lib/params/PWsgram \\	     sgram -r1:2000 speech.sd speech.sd.fspec.fi.SH "FUTURE CHANGES".PP.SH "SEE ALSO".PP\fIxeparam\fP (1\-\s-1ESPS\s+1), \fIeparam\fP (1\-\s-1ESPS\s+1), .br\fIexprompt\fP (1\-\s-1ESPS\s+1), \fIgetparam\fP (1\-\s-1ESPS\s+1),.br\fIespsenv\fP (1\-\s-1ESPS\s+1), \fIread_params\fP (3\-\s-1ESPS\s+1), .br\fIexv_prompt_params\fP (3\-\s-1ESPSxu\s+1).SH "REFERENCE".PP"Parameter and Common Files in ESPS",  ETM-S-86-12.SH "BUGS".PPArray parameters (float and int arrays) are not supported yet.  .PPVertical and horizontal scrollbars are provided (their use may benecessary in the case of large parameter files).  Owing to bugs in thecurrent version of the xview library, however, their behavior is not reliable.  For example, joining a split vertical scrollbar can cause a core dump.  .SH "AUTHOR".PPManual page and code by John Shore.  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?