Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:docs:tk:tools:mkmsgf [2024/01/19 16:10] – prokushev | en:docs:tk:tools:mkmsgf [2024/03/26 13:06] – prokushev | ||
---|---|---|---|
Line 9: | Line 9: | ||
< | < | ||
- | |v|-|-|-|v|v|-|-|-|v|MKMSGF|v|-|-|-|v|v|-|-|-|v|infile|v|-|-|-|v|v|-|-|-|v|outfile|-@2| | + | |-|v|-|-|-|v|v|-|-|-|v|MKMSGF|-@2| |
- | |`|drive|' | + | | |`|drive|' |
- | |-@2|v|-|-|-|v|(| | + | |-@2|v|-|-|-|v|v|-|-|-|v|infile|-@2| |
- | | | + | | |`|drive|' |
- | | | + | |
- | | | + | |-@2|v|-|-|-|v|v|-|-|-|v|outfile|-@2| |
- | | | + | | |`|drive|' |
- | | | + | |
- | | | + | | |, |
- | | | + | |-@2|^@1f|v|-|-|-|v|^|(| |
- | | | + | | | |)|/?|(| |
- | | | + | | | |!| | | |!| |
- | | | + | | | |)|/V|(| |
- | | | + | | | |!| | | |!| |
- | | | + | | | |)|/D <DBCS range or country> |
- | | | + | | | |!| | | |!| |
- | | | + | | | |)|/P <code page> |
- | | | + | | | |!| | | |!| |
+ | | | |)|/L < | ||
+ | | | |!| | | |!| | ||
+ | | | |)|/I < | ||
+ | | | |!| | | |!| | ||
+ | | | |)|/A|(| | ||
+ | | | |!| | | |!| | ||
+ | | | |`|/ | ||
Line 82: | Line 89: | ||
RMS | RMS | ||
ROM | ROM | ||
- | RUS | + | RUS |
SHL | SHL | ||
SHC | SHC | ||
Line 94: | Line 101: | ||
SLO | SLO | ||
- | For a complete list of code pages and country codes, see the code page table under COUNTRYCODE in the online book Control Program Programming Guide and Reference. | + | For a complete list of code pages and country codes, see the code page table under [[https:// |
+ | ===== Output File ===== | ||
- | Output File | ||
The output file contains the indexed message file that DosGetMessage will use. The output-file name can be any valid OS/2 file name, optionally preceded by a drive letter and a path. The output file cannot have the same name as the input file. | The output file contains the indexed message file that DosGetMessage will use. The output-file name can be any valid OS/2 file name, optionally preceded by a drive letter and a path. The output file cannot have the same name as the input file. | ||
Line 108: | Line 115: | ||
Help-message file names begin with the component identifier, followed by H.MSG. For example, the help file associated with the component identifier DOS would be DOSH.MSG. | Help-message file names begin with the component identifier, followed by H.MSG. For example, the help file associated with the component identifier DOS would be DOSH.MSG. | ||
- | Options | + | ===== Options |
Text-based messages in different code pages can be created using MKMSGF to display errors, help information, | Text-based messages in different code pages can be created using MKMSGF to display errors, help information, | ||
Line 122: | Line 130: | ||
Infile is the ASCII-text source file. | Infile is the ASCII-text source file. | ||
- | |||
- | Example: | ||
- | |||
- | MSG | ||
- | MSG0001I: (mm%4dd%4yy) %2%4%1%4%3 | ||
- | MSG0002I: (dd%4mm%4yy) %1%4%2%4%3 | ||
- | MSG0003I: Current date is: %0 | ||
- | |||
- | %0 is a special argument that displays a prompt for user input. | ||
- | %1 - %9 are the arguments the user can use to insert text in a message. | ||
- | |||
Outfile is the binary output message file. | Outfile is the binary output message file. | ||
@controlfile is the message definition file. | @controlfile is the message definition file. | ||
- | Options Summary | + | ===== Options Summary |
Type Meaning | Type Meaning | ||
/P Code-page ID for the input message file. | /P Code-page ID for the input message file. | ||
Line 190: | Line 188: | ||
A valid language family with invalid or undefined language version id will cause a default value of 1 to be set for language version. | A valid language family with invalid or undefined language version id will cause a default value of 1 to be set for language version. | ||
- | /A /C /I Options | ||
- | I saw these and documented them as existing years ago, but never really looked at them in depth. I made some notes on a separate page: The A, C, and I Options. | ||
/E | /E | ||
See the The Extended Structure page for more information. This tacks on what I call a fake extended header at the end of the file and updates the header offset. | See the The Extended Structure page for more information. This tacks on what I call a fake extended header at the end of the file and updates the header offset. | ||
+ | |||
Control Files | Control Files | ||