Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Identifying the Type of Program Integrated Information Contained in an OS/2 File

IP.com Disclosure Number: IPCOM000115565D
Original Publication Date: 1995-May-01
Included in the Prior Art Database: 2005-Mar-30
Document File: 2 page(s) / 85K

Publishing Venue

IBM

Related People

Snyder, JN: AUTHOR [+2]

Abstract

Identifying the Type of Program Integrated Information (PII) Contained in an OS/2* File

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 53% of the total text.

Identifying the Type of Program Integrated Information Contained
in an OS/2 File

      Identifying the Type of Program Integrated Information (PII)
Contained in an OS/2* File

      A program is disclosed which will determine the type of
Program Integrated Information (PII) which is contained in an OS/2
file.   Using this method, the type of translatable text (also known
as PII) can be simply and accurately determined by a language
translator without relying solely on the file extension and without
requiring a manual visual analysis of the file's content.

      The program is passed the name of a file to be analyzed.
The following is performed in order to determine the type of PII
contained in the file:
  o  The file extension value (the one to three characters following
      the period in the OS/2 file name) is analyzed.  For
      some types of files, naming conventions  are  generally
followed
      although  there  is  no requirement that these extensions must
be
      used.
     -  If the file extension is ".DLG", the file is a Presentation
         Manager* (PM) resource file; the PII type has been
determined.
     -  If the file  extension is ".IPF", the file is an Information
         Presentation Facility  (IPF)  file;  the PII type has been
         determined.
     -  If the file extension is ".NIF", the file is a Network
         Information File (NIF) file; the PII type has been
determined.
     -  If the file extension is ".PMI", the file is a Window
         Management System (WMS) message file; the PII type has been
         determined.
     -  If the file extension is ".PHI", the file is a Window
         Management System (WMS) help file; the PII type has been
         determined.
     -  If the file extension is ".RC", the file is a PM resource
         file; the PII type has been determined.
  o  A series of counters is initialized to zero.  There is one
      counter for each known PII type which this program recognizes
      and its value is incremented each time a unique, identifiable
      control word is found for that PII type.  Whenever a counter's
      value is incremented so its value is larger than a predefined
      limit (for instance, 5), the PII type has been determined and
      reading of the file is stopped.
  o  If the file contents have not been determined by the file
      extension, then  the file will be opened and each record from
      the file analyzed as follows:
     -  If the first three characters are alphanumeric, the next
         four characters are numeric and the eighth character is
         an allowable Make Message File (MKMSGF) message type, then
         the MKMSGF message file counter is incremented.
        -  If...