📄 xlabel.1t
字号:
Another menu, based on the DARPAbet symbols,is available in the file.I labelmenu.darpain the same directory..PPThe format of the label menu file is quite straightforward.The firstline of the file must contain the keyword.I "columns"or.I "rows"followed by a space and the decimal number of columns or rowswhich you would like your menu of labels to have.The first line can also additionally specify the fontto be used in the label display by including the keyword.I font,a space, and the name of the desired font.If the font is specified in the menuand also in an existing label file (see below),the menu specification overrides.Any fixed-width font in the list printed by the utility.I xlsfontsmay be specified..PPThe balance of the menu filecontains two blank-separated text items per line.The left item appears in the menu;the right item is for insertion in the label file to be created.(See.I $ESPS_BASE/lib/waves/menus/labelmenufor an example.).PPThe menu file may optionally include linescontaining some of the special items below as theirright members.The left members, which appear in the menu,can be any strings not containing space characters.The special items have the following functionswhen selected from the menu..TP.I "*INSERT*"selects the insert mode for labeling..TP.I "*MOVE*"selects the move mode for labeling..TP.I "*REPLACE*"selects the replace mode for labeling..TP.I "*DEL*"deletes the closest marker..TP.I "*SHELL*"takes the left hand entry to be a UNIX command(e.g. the name of a shell script).It tries to execute the command with three arguments:(1) the name of the label file,(2) the first field of the label closest to the mouse cursor,and (3) the time location of that label.A label menu may contain any number of.I *SHELL*entries..TP.I "*UNLOAD*"unloads the label file;i.e. it saves the current label set in the label fileand removes the labels from the screen..TP.I "*EDIT*"pops up an edit window containing the label closest to the cursor.This is useful for editing long labels..TP.I "*PRINT*"prints the contents of the label window..SS "Label files".PPLabel files are specified using the control panel or an.I xlabelcommand.I setor.I make(see.qI xlabel "commands"in the chapter.qI xlabel "reference"of \*(wR).Named label files are retrievedby the same search strategy that applies to.I xwavesoutput files.See \*(lqLabel files\*(rq in the chapter.qI xlabelof \*(wD for details;also see.I output_dirunder \*(lqGlobal symbols\*(rq in the chapter.qI xwaves "symbols reference"of \*(wR.If the namedlabel file exists, it is read and displayed;otherwise, a new file is created..PPA label file is an ordinary ASCII text file with a short headerfollowed by a section consisting of one-line records,one for each label.The two sections are separated bya line beginning with a \*(lq#\*(rq sign.Only the \*(lq#\*(rq line is mandatory;empty headers are permitted..PPA label.I headerconsists of keyword\-value pairs, which may appear in any order. Either spaces or tabs can be usedto separate the keywords and their values.Here is an example of a label file..LP.RS.nf.if t .ft Isignal speechtype 0color 121comment created using xlabel Wed Aug 20 16:58:09 1997font 12x24separator &nfields 2# 24.520303 121 now&right 25.674485 121 is&wrong 26.239576 121 the&right 24.953758 121 time&right.if t .ft P.fi.RE.PPThe.I "separator"is the character that delimits fields within a label string(see below).By default this is a semicolon,but any non-whitespace character can be used..PPThe.I "color"is an integer specifying the colormap table entry to usewhen adding labels to the file.It does not override the color specifiers in the records,but it determines the color of new labels added to the file by.I xlabel..PPThe.I "font"is the name of the character font used to create the label file.If multiple label files are displayed, each can have its own font.Although you can choose the fonts for label display windows,there is currently no way to change the fonts displayed in label menus..PPSee \*(lqThe label file header\*(rqunder \*(lqLabel file format\*(rq in the chapter.qI "xlabel"of \*(wD for the semantics of the keywords.I type,.I nfields,.I signal,and.I comment.Other header entries may also appear in files written by.I xlabel,but they are ignored.In fact the only values that are actually used by.I xlabelare the.I separator,.I color,and.I font..PPAfter the header lines, if any, and the \*(lq#\*(rq linecome the.I "label-record lines.Each label record has three entries, separated by blanks.The first is a time tag, in units of seconds.The second is an integer that specifies the colormap entryto use when plotting the label.The third, which comprises the remainder of the line, is the label string..PPThe label string can have several.I fields,separated by the field-separator character specified in the header.Blank or null fieldsare indicated by adjacent or blank-separated delimiters.The fields are numbered consecutively starting at one.Which fields.I xlabeldisplaysis determined by the list of numbers in the.B "Active fields:"item in the.I xlabelpanel..PPLabel entries need not be in chronological orderto be read and displayed correctly,but if.I xlabelchanges the file,the entries of the modified file are reordered chronologically..PPIf a label file contains only time markers (and no colors or label text),.I xlabeldisplays the markers properly but without accompanying text.This can be useful to merely indicate positions.See \*(lqThe label file body\*(rq under \*(lqLabel files\*(rq in the chapter.qI "xlabel"of \*(wD for an example..SS "D/A output".PPIf D/A support is available from.I xwaves,two D/A playbackfeatures are supported by.I xlabel.A left button press while in the label windowcauses the marked segment containing the cursor to be played.A middle button press causes the segment delimited bythe cursor and the label boundary immediately to the left of the cursorto be played.In both cases the region played is marked in the .I xwaveswaveform windowin case you want to perform additional operations on that segment(e.g., bracket markers, run an external program on it, etc.)..SS "Graphics export".PPLike.I xwavesand the other attachments,.I xlabelcan export graphicsin PostScript or PCL (HP LaserJet code).This can be used to print displays directly on the printeror to generate graphics to be imported into a documentwith a suitable text editing program.For.I xlabelthe facility is still somewhat limited in that, for example,IPA fonts are not yet accommodated.For that purpose one of the generally available X window-grab utilitiesmay be more useful..PPThere is an.I xwavescommand,.I "print_setup,"that invokes a setup windowwith which you can choose output to a file or printer,select PostScript or PCL, set output resolution and scaling,and control other aspects of the graphics-export environment.See the chapter \*(lqPrinting graphics\*(rq in \*(wD for details..PPGraphics output can be invoked by selecting the.I xlabelmenu item corresponding to.I *PRINT*or by a.I "print"command sent from.I xwaves.See the chapter.qI xlabel "reference"of \*(wR..PP.I xlabelsupports the.I xwavescommand.I print_ensemble;it can cooperate with.I xwavesto allow the contents of.I xlabelwindows to be included in.I xwavesmulti-window graphics output.See \*(lqPrinting graphics\*(rq in \*(wD for details..SS "xlabel symbols".PPBy means of the.B \-woption and a temporary file written by.I xwaves,.I xlabelreads the current set of.I xwavesglobals variables on startup.Included are a few globals that are relevant specifically to.I xlabel.See.qI xlabel "symbols"in \*(wRfor a list with explanations..SS "xlabel commands".PP.I xwavescan be controlled by a command file,by commands entered through the control panel,or by commands from the program.IR send_xwaves (1\-ESPS)or programs using the.IR SendXwaves (3\-ESPS)functions in the ESPS library.(See theprogram and function manual pagesand the chapter \*(lqThe.I waves+command language\*(rq in \*(wD.)Commands from these sources can be passed through to.I xlabelvia the.I xwavescommand.I "send"(See \*(lqGlobal.I xwavesCommands\*(rq in \*(wD.)The syntax of the commands as received by.I xlabelis:.LP.RS.nf.if t .ft Ireceiver command keyword value keyword value ....if t .ft P.fi.RE.LP(the same as for.I xwavescommands).The first item,.I receiver,is either the attachment name \*(lqxlabel\*(rqor the name of a display ensemble.The second item,.I command,is the actual command name.There may be any number, including 0, of keyword\-value pairs.See the chapter.qI xlabel "reference"in \*(wRfor discussions of the individual commands..PPThere are two illustrations of the control of.I xlabelvia.I xwavescommands under \*(lqExamples with the command language\*(rq in the chapter.qI "xlabel"of \*(wD.One is a C-shell script that attaches.I xlabelto.I xwavesand then loops through a list of data files, displaying each file,loading two related label files, pausing to let the user interact with.I xlabel,and finally removing the displays before going on to the next data file.The other example shows how to use the.I xwavescommands.I add_opand.I key_mapto allow fast invocation of an.I xlabeloperation by a single keystroke..SH "OPTIONS".PP.I xlabelis usually started as a subordinate program by.I xwaves.In this case, you need not be concerned with thecommand-line options presented below, and you may skip this section.However, it is also possible to run.I xlabel(and the other attachments) as sibling UNIX processes,in which case it may be necessaryto specify one or more of the following options..TP.BI \-c " host_X_registry"This is the name that the host program is registered underfor X server-based communications.This option is intended to be supplied by.I xwaveswhen it runs.I xlabel..TP.BI \-n " host_name"This is the name of the program object with which.I xlabelwill be communicating.When the host program is.I xwaves,this name is always the default value, \*(lqwaves\*(rq..TP.BI \-w " wave_pro"Specifies the startup profile to read.This option is always usedwhen.I xlabelis invoked by.I xwaves,in which case the specified profileis a temporary file written by.I xwavesand containing the current state of the.I xwavesglobals.If.B \-wis not used (only possible if.I xlabelis run from the shell),.I xlabelattempts to read the file.I .wave_pro.In both cases the search path.I $HOME:$ESPS_BASE/lib/wavesis used.The search path used can be overriddenby setting the UNIX environment variable WAVES_PROFILE_PATH before starting.I xwaves..SH "SEE ALSO"\*(wD,.br\*(wR,.br\*(wT,.br.IR cnvlab (1\-ESPS),.IR formant (1\-ESPS),.IR select (1\-ESPS),.br.IR xchart (1\-ESPS),.IR xcmap (1\-ESPS),.IR xmarks (1\-ESPS),.br.IR xspectrum (1\-ESPS),.IR xwaves (1\-ESPS).SH "BUGS".PPOccasionally,when the vertical size of the label display window is changed manually,.I xlabelinsists on returning it to its previous sizeor some other inappropriate height.Multiple attempts will usually yield the desired effect.This will eventually be fixed..PPThe label file does.I notautomatically adjust to time changescaused by waveform segment deletion or insertion.It is recommended that no waveform editing be performedon files being labeled..SH "AUTHOR"Program by David Talkin, AT&T Bell Laboratories.Later enhancements byDavid Burton, Rod Johnson, Alan Parker, John Shore, David Talkin,and others at Entropic.This manual page largely extracted by Rod Johnsonfrom \*(wD and earlier manual pagesderived from Talkin's original documentationwith revisions and additions byDavid Burton, Joop Jansen, Rod Johnson, John Shore, David Talkin,and others at Entropic.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -