Abstract: The disclosure relates to a system and method of selecting a layout for a user interface for generation on a display of an electronic device. The method comprises the steps of: a) obtaining a representation of the interface; b) generating a plurality of parses of the interface; c) measuring the suitability of each parse; and d) choosing a parse with high suitability.
Abstract: A method of displaying a user interface, comprising the steps of first obtaining a representation of the user interface. The representation includes conceptual components representing multi-dimensional arrays of elements of the user interface. The conceptual components include a vector parameter related to a multi-dimensional size of the array, and matrices having dimensions related to those of the array. The method proceeds by executing a device-specific rendering algorithm on the representation of the user interface and displaying the user interface on the device.