IP Library Granted Patent US 9,317,485
Granted Patent B2
US 9,317,485 · App. 13/475,326 · Granted Apr 19, 2016

Selective rendering of electronic messages by an electronic device

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,317,485
App. No.
13/475,326
Granted
Apr 19, 2016
Kind
B2
Abstract

An electronic device or system and method are provided for selectively normalizing or modifying content element attributes that are defined using absolute values, such as absolute font sizes expressed in length measurements such as points and pixels. A document containing structured content, such as an HTML-formatted email message or webpage, is obtained. When any such content element attributes are included with the document, a determination is made whether those attributes can be changed for that document. The determination may be dependent on the complexity of the structured document. If so, the absolute values are converted to relative values, and the document is subsequently rendered for display.

Claims (48)

1. A method comprising:

obtaining a document for display at an electronic device, the document comprising a text content element having a font size specified in absolute value by an associated formatting directive, the font size being defined in either a body or a header of the document, and wherein the document comprises an email message;

determining a count of a number of structural elements in a Document Object Model (DOM) tree structure of the document;

determining that the document has a simple content layout structure based on detecting one or more indicators in the body or the header of the document, wherein one of the indicators indicates that the count of the number of structural elements in the DOM tree structure of the document is less than a threshold number;

in response to determining that the document has a simple content layout structure, converting the formatting directive from an absolute value to a corresponding relative value, the relative value referencing a base value for the font size defined for the electronic device; and

rendering the document for display at the electronic device using the formatting directive thus converted.

2. The method of claim 1 , wherein the document includes a plurality of text content elements each having a respective font size specified in absolute value by an associated formatting directive, the absolute values for each of the plurality of text content elements being different, wherein:

converting the formatting directive comprises converting each of the formatting directives from an absolute value to a corresponding relative value, each of the relative values referencing the same base value, the relative values for each of the plurality of text content elements being different; and

rendering the document for display comprises using each of the formatting directives thus converted.

3. The method of claim 1 , further comprising:

displaying the document thus rendered;

detecting an instruction to alter the base value for the font size for the document;

in response to the detected instruction, altering the base value and re-rendering the document for display using the formatting directives and the corresponding relative values.

4. The method of claim 1 , wherein the formatting directive associated with the font size is altered, while other formatting directives associated with other attributes of the same text content element are unaltered.

5. The method of claim 1 , wherein the absolute value is a font size value expressed in pixels, points or picas.

6. The method of claim 1 , wherein the email message is a multipart message, a first part of the multipart message representing HTML-formatted content comprising the text content element having the specified font size, and a second part of the multipart message representing a plaintext version of the HTML-formatted content, wherein obtaining the document comprises receiving the first part of the multipart message and not the second part from a message server.

7. The method of claim 1 , wherein the determining and converting are carried out at a server in communication with the electronic device, and the server transmits the document comprising the converted formatting directive to the electronic device.

8. The method of claim 1 , wherein the one or more indicators indicate one or more of:

presence of an alternative text caption for an image in the document; and

presence of map elements in the document.

9. The method of claim 1 , wherein the one or more indicators indicate presence of nested table structures in the document.

10. The method of claim 1 , wherein the one or more indicators indicate that a sender of the email message is a known contact of a recipient.

11. The method of claim 1 , wherein the one or more indicators indicate that the email message is addressed to one or more carbon copy (CC) recipients.

12. An electronic device, comprising:

a display interface; and

a processor in communication with the display interface, the processor being configured to:

obtain a document for display at an electronic device, the document comprising a text content element having a font size specified in absolute value by an associated formatting directive, the font size being defined in either a body or a header of the document, and wherein the document comprises an email message;

determine a count of a number of structural elements in a Document Object Model (DOM) tree structure of the document;

determine that the document has a simple content layout structure based on detecting one or more indicators in the body or the header of the document, wherein one of the indicators indicates that the count of the number of structural elements in the DOM tree structure of the document is less than a threshold number;

in response to determining that the document has a simple content layout structure, convert the formatting directive from an absolute value to a corresponding relative value, the relative value referencing a base value for the font size defined for the electronic device; and

render the document for display for the display screen using the formatting directive thus converted.

13. The electronic device of claim 12 , wherein the document includes a plurality of text content elements each having a respective font size specified in absolute value by an associated formatting directive, the absolute values for each of the plurality of text content elements being different, wherein:

converting the formatting directive comprises converting each of the formatting directives from an absolute value to a corresponding relative value, each of the relative values referencing the same base value, the relative values for each of the plurality of text content elements being different; and

rendering the document for display comprises using each of the formatting directives thus converted.

14. A non-transitory electronic device-readable medium bearing code which, when executed by a processor of an electronic device, causes the electronic device to carry out the method of:

obtaining a document for display at an electronic device, the document comprising a text content element having a font size specified in absolute value by an associated formatting directive, the font size being defined in either a body or a header of the document, and wherein the document comprises an email message;

determining a count of a number of structural elements in a Document Object Model (DOM) tree structure of the document;

determining that the document has a simple content layout structure based on detecting one or more indicators in the body or the header of the document, wherein one of the indicators indicates that the count of the number of structural elements in the DOM tree structure of the document is less than a threshold number;

in response to determining that the document has a simple content layout structure, converting the formatting directive from an absolute value to a corresponding relative value, the relative value referencing a base value for the font size defined for the electronic device; and

rendering the document for display for the display screen using the formatting directive thus converted.

15. The non-transitory electronic device-readable medium of claim 14 , wherein the document includes a plurality of text content elements each having a respective font size specified in absolute value by an associated formatting directive, the absolute values for each of the plurality of text content elements being different, wherein:

converting the formatting directive comprises converting each of the formatting directives from an absolute value to a corresponding relative value, each of the relative values referencing the same base value, the relative values for each of the plurality of content elements being different; and

rendering the document for display comprises using each of the formatting directives thus converted.

16. The non-transitory electronic device-readable medium of claim 14 , wherein the method further comprises:

displaying the document thus rendered;

detecting an instruction to alter the base value for the font size for the document;

in response to the detected instruction, altering the base value and re-rendering the document for display using the formatting directives and the corresponding relative values.

17. The non-transitory electronic device-readable medium of claim 14 , wherein the absolute value is a font size value expressed in pixels, points or picas.

Assignments (4)
NUNC PRO TUNC ASSIGNMENT Recorded Jun 19, 2023
From: BLACKBERRY LIMITED
To: MALIKIE INNOVATIONS LIMITED
Reel/Frame 064271/0199 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 16, 2023
From: BLACKBERRY LIMITED
To: MALIKIE INNOVATIONS LIMITED
Reel/Frame 064104/0103 →
CHANGE OF NAME Recorded Nov 4, 2014
From: RESEARCH IN MOTION LIMITED
To: BLACKBERRY LIMITED
Reel/Frame 034161/0056 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 18, 2012
From: DENT, TERRILL MARK; WOOD, RYAN GREGORY
To: RESEARCH IN MOTION LIMITED
Reel/Frame 028234/0813 →