Browse Prior Art Database

Text Wrapping on a Dialog Panel

IP.com Disclosure Number: IPCOM000106928D
Original Publication Date: 1992-Jan-01
Included in the Prior Art Database: 2005-Mar-21
Document File: 3 page(s) / 112K

Publishing Venue

IBM

Related People

Malcolm, JW: AUTHOR

Abstract

The designer or translator of a panel needs an easy way to specify how and where text wrapping (splitting onto multiple lines) should occur for text strings that appear on the panel. The location in the string where wrapping should occur and the number of resulting lines should not require modification of the panel definition.

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

Text Wrapping on a Dialog Panel

       The designer or translator of a panel needs an easy way
to specify how and where text wrapping (splitting onto multiple
lines) should occur for text strings that appear on the panel.  The
location in the string where wrapping should occur and the number of
resulting lines should not require modification of the panel
definition.

      This invention relates to the presentation and managing of
dialog panels and windows in a Graphical User Interface (GUI)
environment.

      Often when a text string on a panel is translated from English
into another language, the string becomes much longer.  This may mean
that the line needs to be wrapped into two lines on the displayed
panel in some languages where one line is sufficient for other
languages.

      Translators for panels have access only to the text strings
being translated; therefore, they need some method of specifying, in
the text strings, when line wraps are desired and how the wrapping
should occur.

      Versatility is required to ensure that usability of the panel
is not compromised and the translators are able to achieve the
desired appearance of the panel.

      This should all be accomplished without the translator changing
the actual panel definition.
DESCRIPTION OF INVENTION

      A character is chosen that will be used as a control character
to be inserted in the string to control word wrapping.  This
character is selectable by the translator for each language.  The
following rules apply to text wrapping.  (The " " character is used
as the example control character.)
      o    Text will wrap at any point specified using the " "
character in the text string or on word boundaries at the edge of the
control.
      o    If multiline text is desired, the width and number of
lines required for the control is specified in the following way:
                -    If only one " " is found, the width will be the
amount of space required to display the text up to the " ".
                -    If two " "s are found in the string, the width
will be the amount of space required to display the greater of (1)
the text up to the " ", or (2) the text between the first and
second " ".
                -    If more than two " "s are found in the string,
the width will be the maximum of the widths required to display the
text up to the " " and each of the strings between " "s.
                -    A " " is required at the very end of the string
if the last part of the text string is to be used in the control
width calculation.
                -    If a " " is not found at the end of the string,
the remaining text from the last " " until the end of the string will
be 'flowed' to the required number of lines.
                -    If a word or a phrase that cannot be wrapped
(because it contains non-wordwrap...