Language-sensitive whitespace adjustment in a software engineering tool
AssigneeSun Microsystems, Inc.
InventorMichael L. Van De Vanter
Life of this patent
Estimating the term…
Abstract
An editor or software engineering tool may be configured to render whitespace between adjacent tokens, wherein the amount of whitespace between any two adjacent tokens is determined according to language-specific style rules and scaled in accordance with display considerations. In some realizations, the operative scaling is selected or defined by a user according to the user's visual preferences. In some realizations, the operative scaling relates to requirements or constraints of an automated layout mechanism. For example, a particular scaling may be calculated to adjust line length in conformance with a desired margin alignment or to optimize layout when long lines are automatically wrapped (or folded) in some automatic way.
Claims19
A software engineering tool that recognizes language tokens and computes for display whitespace amounts between adjacent instances thereof according to language-specific style rules, the software engineering tool further providing, for at least a grouping of those language tokens displayed, dynamic adjustment of the computed whitespace amounts in accordance with an operative scaling factor therefor.
A method of presenting textual content that includes a sequence of tokens recognizable in accordance with a predefined language model, the method comprising:
- calculating whitespace amounts for visual presentation between adjacent pairs of recognized tokens, wherein the calculated whitespace amount for visual presentation between a first pair of the tokens differs from that between a second pair of the tokens, each in accordance with language-specific style rules;
- and
- for at least a subset of the token sequence, applying an operative scaling factor in the calculating of respective ones of the whitespace amounts.
Dependencies are inferred from the claim text.