1634a86baSWolfram Schneider.\" $OpenBSD: gencat.1,v 1.3 1997/06/11 15:39:54 kstailey Exp $ 2634a86baSWolfram Schneider.\" 3634a86baSWolfram Schneider.\" Copyright (c) 1997 Ken Stailey 4634a86baSWolfram Schneider.\" 5634a86baSWolfram Schneider.\" Redistribution and use in source and binary forms, with or without 6634a86baSWolfram Schneider.\" modification, are permitted provided that the following conditions 7634a86baSWolfram Schneider.\" are met: 8634a86baSWolfram Schneider.\" 1. Redistributions of source code must retain the above copyright 9634a86baSWolfram Schneider.\" notice, this list of conditions and the following disclaimer. 10634a86baSWolfram Schneider.\" 2. Redistributions in binary form must reproduce the above copyright 11634a86baSWolfram Schneider.\" notice, this list of conditions and the following disclaimer in the 12634a86baSWolfram Schneider.\" documentation and/or other materials provided with the distribution. 13634a86baSWolfram Schneider.\" 3. The name of the author may not be used to endorse or promote products 14634a86baSWolfram Schneider.\" derived from this software without specific prior written permission 15634a86baSWolfram Schneider.\" 16634a86baSWolfram Schneider.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17634a86baSWolfram Schneider.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18634a86baSWolfram Schneider.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19634a86baSWolfram Schneider.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20634a86baSWolfram Schneider.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21634a86baSWolfram Schneider.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22634a86baSWolfram Schneider.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23634a86baSWolfram Schneider.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24634a86baSWolfram Schneider.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25634a86baSWolfram Schneider.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26634a86baSWolfram Schneider.\" 27634a86baSWolfram Schneider.Dd June 11, 1997 28634a86baSWolfram Schneider.Dt GENCAT 1 29634a86baSWolfram Schneider.Os 30634a86baSWolfram Schneider.Sh NAME 31634a86baSWolfram Schneider.Nm gencat 32634a86baSWolfram Schneider.Nd NLS catalog compiler 33634a86baSWolfram Schneider.Sh SYNOPSIS 34cb474aacSJoseph Koshy.Nm 35634a86baSWolfram Schneider.Ar "output-file" 36cb474aacSJoseph Koshy.Ar "input-files..." 37634a86baSWolfram Schneider.Sh DESCRIPTION 38634a86baSWolfram SchneiderThe 39cb474aacSJoseph Koshy.Nm 40cb474aacSJoseph Koshyutility merges the text NLS input files 41cb474aacSJoseph Koshy.Ar "input-files..." 42cb474aacSJoseph Koshyinto a formatted message catalog file 43cb474aacSJoseph Koshy.Ar "output-file" . 44cb474aacSJoseph KoshyThe file 45cb474aacSJoseph Koshy.Ar "output-file" 466a3e8b0aSRuslan Ermilovwill be created if it does not already exist. 476a3e8b0aSRuslan ErmilovIf 48cb474aacSJoseph Koshy.Ar "output-file" 49cb474aacSJoseph Koshydoes exist, its messages will be included in the new 50cb474aacSJoseph Koshy.Ar "output-file" . 51cb474aacSJoseph KoshyIf set and message numbers collide, the new message text defined in 52cb474aacSJoseph Koshy.Ar "input-files..." 53cb474aacSJoseph Koshywill replace the old message text currently contained in 54cb474aacSJoseph Koshy.Ar "output-file" . 55cb474aacSJoseph Koshy.Sh INPUT FILES 566a3e8b0aSRuslan ErmilovThe format of a message text source file is defined below. 576a3e8b0aSRuslan ErmilovNote that 58cb474aacSJoseph Koshythe fields of a message text source line are separated by a single space 59cb474aacSJoseph Koshycharacter: any other space characters are considered to be part of the 60cb474aacSJoseph Koshyfield contents. 61f4d874a1SRuslan Ermilov.Bl -tag -width 3n 62cb474aacSJoseph Koshy.It Li $set Ar n comment 63cb474aacSJoseph KoshyThis line specifies the set identifier of the following messages until 64cb474aacSJoseph Koshythe next 65cb474aacSJoseph Koshy.Li $set 666a3e8b0aSRuslan Ermilovor end-of-file appears. 676a3e8b0aSRuslan ErmilovThe argument 68cb474aacSJoseph Koshy.Ar n 69cb474aacSJoseph Koshyis the set identifier which is defined as a number in the range 706a3e8b0aSRuslan Ermilov[1, (NL_SETMAX)]. 716a3e8b0aSRuslan ErmilovSet identifiers must occur in ascending order within 726a3e8b0aSRuslan Ermilova single source file, but need not be contiguous. 736a3e8b0aSRuslan ErmilovAny string following 746a3e8b0aSRuslan Ermilova space following the set identifier is treated as a comment. 756a3e8b0aSRuslan ErmilovIf no 76cb474aacSJoseph Koshy.Li $set 77cb474aacSJoseph Koshydirective is specified in a given source file, all messages will 78cb474aacSJoseph Koshybe located in the default message set NL_SETD. 79cb474aacSJoseph Koshy.It Li $del Ar n comment 80cb474aacSJoseph KoshyThis line deletes messages from set 81cb474aacSJoseph Koshy.Ar n 826a3e8b0aSRuslan Ermilovfrom a message catalog. 836a3e8b0aSRuslan ErmilovThe 84cb474aacSJoseph Koshy.Ar n 856a3e8b0aSRuslan Ermilovspecifies a set number. 866a3e8b0aSRuslan ErmilovAny string following a space following the set 87cb474aacSJoseph Koshynumber is treated as a comment. 88cb474aacSJoseph Koshy.It Li $ Ar comment 89cb474aacSJoseph KoshyA line beginning with 90cb474aacSJoseph Koshy.Li $ 91cb474aacSJoseph Koshyfollowed by a space is treated as a comment. 92cb474aacSJoseph Koshy.It Ar m message-text 93cb474aacSJoseph KoshyA message line consists of a message identifier 94cb474aacSJoseph Koshy.Ar m 956a3e8b0aSRuslan Ermilovin the range [1, (NL_MSGMAX)]. 966a3e8b0aSRuslan ErmilovThe 97cb474aacSJoseph Koshy.Ar message-text 98cb474aacSJoseph Koshyis stored in the message catalog with the set identifier specified by 99cb474aacSJoseph Koshythe last 100cb474aacSJoseph Koshy.Li $set 101cb474aacSJoseph Koshydirective, and the message identifier 102cb474aacSJoseph Koshy.Ar m . 103cb474aacSJoseph KoshyIf the 104cb474aacSJoseph Koshy.Ar message-text 105cb474aacSJoseph Koshyis empty, and there is a space character following the message identifier, 1066a3e8b0aSRuslan Ermilovan empty string is stored in the message catalog. 1076a3e8b0aSRuslan ErmilovIf the 108cb474aacSJoseph Koshy.Ar message-text 109cb474aacSJoseph Koshyis empty, and if there is no space character following the message 110cb474aacSJoseph Koshyidentifier, then the existing message in the current set with the 1116a3e8b0aSRuslan Ermilovspecified message identifier is deleted from the catalog. 1126a3e8b0aSRuslan ErmilovMessage 113cb474aacSJoseph Koshyidentifiers must be in ascending order within a single set, but 1146a3e8b0aSRuslan Ermilovneed not be contiguous. 1156a3e8b0aSRuslan ErmilovThe 116cb474aacSJoseph Koshy.Ar message-text 117cb474aacSJoseph Koshylength must be in the range [0, (NL_TEXTMAX)]. 118cb474aacSJoseph Koshy.It Li $quote Ar c 119cb474aacSJoseph KoshyThis line specifies an optional quote character 120cb474aacSJoseph Koshy.Ar c 121cb474aacSJoseph Koshywhich can be used to surround 122cb474aacSJoseph Koshy.Ar message-text 123cb474aacSJoseph Koshyso that trailing space or empty messages are visible in message 1246a3e8b0aSRuslan Ermilovsource files. 1256a3e8b0aSRuslan ErmilovBy default, or if an empty 126cb474aacSJoseph Koshy.Li $quote 127cb474aacSJoseph Koshydirective is specified, no quoting of 128cb474aacSJoseph Koshy.Ar message-text 129cb474aacSJoseph Koshywill be recognized. 130cb474aacSJoseph Koshy.El 131cb474aacSJoseph Koshy.Pp 1326a3e8b0aSRuslan ErmilovEmpty lines in message source files are ignored. 1336a3e8b0aSRuslan ErmilovThe effect of lines 134cb474aacSJoseph Koshybeginning with any character other than those described above is 135cb474aacSJoseph Koshyundefined. 136cb474aacSJoseph Koshy.Pp 137cb474aacSJoseph KoshyText strings can contain the following special characters and escape 1386a3e8b0aSRuslan Ermilovsequences. 1396a3e8b0aSRuslan ErmilovIn addition, if a quote character is defined, it may be 140cb474aacSJoseph Koshyescaped as well to embed a literal quote character. 141cb474aacSJoseph Koshy.Pp 142f4d874a1SRuslan Ermilov.Bl -tag -width "\eooo" -offset indent -compact 143cb474aacSJoseph Koshy.It Li \en 144cb474aacSJoseph Koshyline feed 145cb474aacSJoseph Koshy.It Li \et 146cb474aacSJoseph Koshyhorizontal tab 147cb474aacSJoseph Koshy.It Li \ev 148cb474aacSJoseph Koshyvertical tab 149cb474aacSJoseph Koshy.It Li \eb 150cb474aacSJoseph Koshybackspace 151cb474aacSJoseph Koshy.It Li \er 152cb474aacSJoseph Koshycarriage return 153cb474aacSJoseph Koshy.It Li \ef 154cb474aacSJoseph Koshyform feed 155cb474aacSJoseph Koshy.It Li \e\e 156cb474aacSJoseph Koshybackslash 157cb474aacSJoseph Koshy.It Li \eooo 158cb474aacSJoseph Koshyoctal number in the range [000, 377] 159cb474aacSJoseph Koshy.El 160cb474aacSJoseph Koshy.Pp 161cb474aacSJoseph KoshyA backslash character immediately before the end of the line in a file 162cb474aacSJoseph Koshyis used to continue the line onto the next line, e.g.: 163cb474aacSJoseph Koshy.Pp 164cb474aacSJoseph Koshy.Dl 1 This line is continued \e 165cb474aacSJoseph Koshy.Dl on this line. 166cb474aacSJoseph Koshy.Pp 167cb474aacSJoseph KoshyIf the character following the backslash is not one of those specified, 168cb474aacSJoseph Koshythe backslash is ignored. 169a866e170SRuslan Ermilov.Sh EXIT STATUS 170d628d776SRuslan Ermilov.Ex -std 171634a86baSWolfram Schneider.Sh SEE ALSO 172634a86baSWolfram Schneider.Xr catclose 3 , 173634a86baSWolfram Schneider.Xr catgets 3 , 174634a86baSWolfram Schneider.Xr catopen 3 175634a86baSWolfram Schneider.Sh STANDARDS 176634a86baSWolfram SchneiderThe 177cb474aacSJoseph Koshy.Nm 178cb474aacSJoseph Koshyutility is compliant with the 179cb474aacSJoseph Koshy.St -xpg4 180cb474aacSJoseph Koshystandard. 181a4cab7d3SMike Pritchard.Sh AUTHORS 182f4d874a1SRuslan Ermilov.An -nosplit 1835b9380f4SDima DorfmanThis manual page was originally written by 184cb474aacSJoseph Koshy.An Ken Stailey 1855b9380f4SDima Dorfmanand later revised by 186cb474aacSJoseph Koshy.An Terry Lambert . 187cb474aacSJoseph Koshy.Sh BUGS 188cb474aacSJoseph KoshyA message catalog file created from a blank input file cannot be revised; 189cb474aacSJoseph Koshyit must be deleted and recreated. 190