pplain.1
来自「speech signal process tools」· 1 代码 · 共 167 行
1
167 行
.\" Copyright (c) 1986-1990 Entropic Speech, Inc..\" Copyright (c) 1991 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)pplain.1 3.11 9/21/98 ESI/ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH PPLAIN 1\-ESPS 9/21/98.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEpplain \- print values from ESPS file in "plain format".SH SYNOPSIS.B pplain[.BI \-r range] [.BI \-e grange] [.BI \-f field_range] [.B \-i] [.B \-n]file.SH DESCRIPTION.PP.I Pplainprints data values from an ESPS file, without headers or other extraneousinformation. ESPS files consist of a series of records; there may be multipleelements per record. By default, all data from all records are printed,excluding position tags, if any. Each line of the output contains the valuesfrom a single record, separated by spaces. \fIFile\fR must be an ESPSdata file. If \fIfile\fR is "-", then the standard input is read..PPThe.B \-roption may be used to select a subset of the records in the file for printing;all range formats accepted by the range_switch function are legal. Inparticular, a single integer or two integers separated by a colon form a legalrange..PPThe.B \-eoption may be used to select a subset of elements within each record forprinting; if the ESPS file has position tags element 0 may be specified and refers to the tag, otherwise the first elementis element 1. The range is parsed as a "generic" range. See\fIgrange_switch(3\-ESPS)\fP for more details.The programs \fIgen_element(1\-ESPS)\fR and \fIfea_element(1\-ESPS)\fRcan be used to get element number information for a file..PPThe .B \-f option can only be used with ESPS feature files. This allowsspecifying a feature file field and element range within that field.Only one \fB\-f\fR option can be used. To print more than one field(but not all), use the \fB\-e\fR option. A \fIfield_range\fR is afield name, followed by an optional generic element range in brackets.For example to print elements 1 through 5, and 7 of field\fIspec_param\fR you would use \fI\-f spec_param[1-5,7]\fR. Since thebracket has special meaning to some Unix shells, you may have to quotethe argument to the \fB\-f\fR option..PPThe.B \-noption (for native type) may only be used in conjunction with the.B \-foption. It specifies printing the specified field in it's actual typerather than converting to double and printing. Using this option willcause any element ranges you specified on the -f option to be ignored..PPThe.B \-ioption causes all printed values to be rounded to the nearest integer..SH ESPS PARAMETERS.PPThis program does not access the parameter file..SH ESPS COMMONESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off". The default ESPS Common file is .espscom in the user's home directory. This may be overidden by settingthe environment variable ESPSCOM to the desired path. User feedback ofCommon processing is determined by the environment variable ESPS_VERBOSE,with 0 causing no feedback and increasing levels causing increasinglydetailed feedback. If ESPS_VERBOSE is not defined, a default value of 3 isassumed..PPThe following items are read from the ESPS Common File provided thatstandard input isn't used. .IP.I "filename - string".IPThis is the name of the input file. If no input file is specified on the command line, \fIfilename\fP is taken to be theinput file. If an input file is specified on the command line, that input file name must match \fIfilename\fP or the other items (below) are not read from Common. .IP.I "start - integer".IPThis is the starting record in the input file to begin printing. It is not read if the \fB\-r\fP option is used. .sp.I "nan - integer".IPThis is the number of records to print from the input file. It is notread if the \fB\-r\fP option is used. A value of zero means the lastrecord in the file..sp.PPAgain, the values of \fIstart\fR and \fInan\fR are only used if theinput file on the command line is the same as \fIfilename\fP in thecommon file, or if no input file was given on the command line. If\fIstart\fR and/or \fInan\fR are not given in the common file, or ifthe common file can't be opened for reading, then \fIstart\fRdefaults to the beginning of the file and \fInan\fR defaults to thenumber of records in the file..PPThe following items are written into the ESPS Common file:.IP.I "start - integer".IPThe starting record from the input file..sp.I "nan - integer".IPThe number of records in the selected range..sp.I "prog - string".IPThis is the name of the program (\fIpplain\fP in this case)..sp.I "filename - string".IPThe name of the input file. .SH DIAGNOSTICS.PP.nfpplain: file is not an ESPS file.pplain: please specify last element explicitly.pplain: no tags in file; cannot print element 0.pplain: only %d elements per record in filepplain: only %d elements in field %s.pplain: -f option can only be used with feature files.pplain: no such field in file..PPSphere, esignal, and pc wave file formats are not supported. Use"copysps infile - | pplain -" to achieve the same effect..fi.SH BUGS.PPThe \fB-e\fR does not work corretly if the file contains fields of acomplex data type. The real and imaginary part of a complex field areconsidered separate elements in pplain, even though\fIfea_element(1\-ESPS)\fR reports a complex field as one element. Thisis a bug and will be resolved..SH EXPECTED CHANGES.SH SEE ALSO\fIpsps\fP (1\-\s-1ESPS\s+1), \fIfea_print\fP (1\-\s-1ESPS\s+1), \fIfea_element\fP (1\-\s-1ESPS\s+1).SH AUTHOROriginal program by Joseph T. Buck. Modified by Ajaipal S. Virdy.Native type printing added by Ken Nelson.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?