Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strmerge(1int) — Ultrix-32 3.1D RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ed(1)

extract(1int)

gencat(1int)

strextract(1int)

trans(1int)

patterns(5int)

strmerge(1int)

NAME

strmerge − batch string replacement

SYNTAX

strmerge [ −m prefix ] [ −p patternfile ] [ −s string ] file.. 

DESCRIPTION

Use the command strmerge to merge message files produced by strextract into a new source file with a nl_ prefix.  The text strings located by strextract are replaced by calls to a function which retrieve localized strings from a message catalog.  In addition, strmerge produces a catalog file with a .cat suffix. You can use this catalog file as direct input to gencat or it can be translated before being passed to gencat.

OPTIONS

−mSpecifies a prefix to message numbers in the nl_ file and the .msf file. This prefix can be a useful mnemonic and must be processed using the −h option of gencat.

−pSpecifies a new pattern file to be used.  The REWRITE directive in this file instructs strmerge how message text strings are to be rewritten. The syntax is described in patterns. The default value is to search for the file pattern in the current directory, the home directory and finally /usr/lib/intnl.

−sSpecifies a string to be output at the start of the .msf file. The default string is $quote ". 

EXAMPLES

The following produces a message file prog.cat for a program called prog.c.

strextract −p c_patterns prog.c
vi prog.msg
strmerge −p c_patterns prog.c
gencat prog.cat prog.msf
cc nl_prog.c

RESTRICTIONS

Only one rewrite string can be specified for all classes of pattern matches. 

A verification is not conducted to determine if the messagee text file matches the source file being rewritten. 

The program does not recurse through #include files; these have to be worked on separately.

SEE ALSO

ed(1), extract(1int), gencat(1int), strextract(1int), trans(1int), patterns(5int)

Commands

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026