Orientation-dependent processing of input files by an electronic device
First Claim
1. A method in an electronic device having a display screen, the method comprising:
- obtaining a structured document that includes a plurality of content elements;
after obtaining the structured document, the electronic device;
preparing a first rendered document having the plurality of content elements, said preparing comprising rendering the first rendered document;
computing a score for each of the plurality of content elements, the score being determined based on at least one factor selected from the group consisting of;
word count, character count, and link density, wherein the link density is based on a count of hyperlinks appearing in the content element in the obtained structured document;
selecting a subset of said plurality of content elements from the structured document having a computed score at or above a threshold, the subset excluding one or more of the content elements that are advertisements;
preparing a second rendered document having said subset of said plurality of content elements, said preparing comprising rendering the second rendered document, the second rendered document being a reader-style rendered document having fewer advertisements than the first rendered document;
outputting the first rendered document to the display screen while the display screen is in a landscape orientation, said outputting the first rendered document including outputting an indicator for display, the indicator indicating an availability of the second rendered document for display;
the indicator being actuatable to invoke display of the second rendered document while the display screen remains in the landscape orientation;
detecting a change in orientation of the display screen to a portrait orientation; and
in response to said detecting, outputting the second rendered document to the display screen,wherein said preparing the second rendered document occurs prior to said detecting.
4 Assignments
0 Petitions
Accused Products
Abstract
An electronic device may have a display screen usable in at least two orientations, such as landscape orientation and portrait orientation. Provided in this disclosure is selective rendering of a structured document according to the orientation of the display screen. A structured document such as as webpage is rendered (as a first rendered document) for display according to the document object model structure and optionally styles provided with the webpage. The same webpage is rendered (as a second rendered document) by removing or replacing selected objets in the document object model structure, or by applying different style directives than included in the originally received webpage. When the display screen is in a first orientation, the first rendered document is displayed. When a change in orientation of the display screen to the second orientation is detected, the second rendered document is displayed.
-
Citations
20 Claims
-
1. A method in an electronic device having a display screen, the method comprising:
-
obtaining a structured document that includes a plurality of content elements; after obtaining the structured document, the electronic device; preparing a first rendered document having the plurality of content elements, said preparing comprising rendering the first rendered document; computing a score for each of the plurality of content elements, the score being determined based on at least one factor selected from the group consisting of;
word count, character count, and link density, wherein the link density is based on a count of hyperlinks appearing in the content element in the obtained structured document;selecting a subset of said plurality of content elements from the structured document having a computed score at or above a threshold, the subset excluding one or more of the content elements that are advertisements; preparing a second rendered document having said subset of said plurality of content elements, said preparing comprising rendering the second rendered document, the second rendered document being a reader-style rendered document having fewer advertisements than the first rendered document; outputting the first rendered document to the display screen while the display screen is in a landscape orientation, said outputting the first rendered document including outputting an indicator for display, the indicator indicating an availability of the second rendered document for display;
the indicator being actuatable to invoke display of the second rendered document while the display screen remains in the landscape orientation;detecting a change in orientation of the display screen to a portrait orientation; and in response to said detecting, outputting the second rendered document to the display screen, wherein said preparing the second rendered document occurs prior to said detecting. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 19, 20)
-
-
9. An electronic device, comprising:
-
a display screen; and a processor in communication with the display screen and configured to execute computer readable instructions stored in a memory to; obtain a structured document that includes a plurality of content elements; after obtaining the structured document; prepare a first rendered document having the plurality of content elements; compute a score for each of the plurality of content elements; select a subset of said plurality of content elements from the structured document by selecting those ones of said plurality of content elements having a score at or above a threshold, said score being determined based on at least one factor selected from the group consisting of;
word count, character count, and link density, wherein the link density is based on a count of hyperlinks appearing in the content element in the obtained structured document, the subset excluding one or more of the content elements that are advertisements;prepare a second rendered document having said subset of said plurality of content elements, the second rendered document being a reader-style rendered document having fewer advertisements than the first rendered document; output the first rendered document to the display screen while the display screen is in a landscape orientation; detect a change in orientation of the display screen to a portrait orientation; and in response to said detecting, output the second rendered document to the display screen. - View Dependent Claims (10, 11, 12)
-
-
13. A method in portable electronic device having a display screen, the method comprising:
-
obtaining a structured document that includes an article content portion, wherein the structured document further includes at least one style directive associated with the article content portion, the at least one style directive not being associated with a particular orientation of the display screen; preparing a first rendered document based upon the article content portion in accordance with said at least one style directive included with the structured document; preparing a second rendered document based upon the article content portion in accordance with a locally configured style directive, the locally configured style directive not being included in the structured document; outputting the first rendered document to the display screen while the display screen is in a landscape orientation; detecting a change in orientation of the display screen to a portrait orientation; and in response to said detecting, outputting the second rendered document to the display screen, wherein the structured document includes a plurality of content elements, and the second rendered document is based upon only a subset of the plurality of content elements that includes the article content portion, and wherein the second rendered document is a reader-style rendered document that includes fewer advertisements than the first rendered document. - View Dependent Claims (14)
-
-
15. A method at an electronic device for rendering structured documents for display, the method comprising:
-
while a display screen of the electronic device is in a first orientation, rendering a structured document for display, the structured document including a plurality of content elements each having corresponding content, by generating a model including a hierarchical arrangement of the plurality of content elements and applying to the model said corresponding content and any style directives included with the structured document for said content elements to provide a rendered structured document, the style directives included with the structured document not being associated with a particular orientation of the display screen; outputting said rendered structured document to a display screen of the electronic device; while said rendered structured document is being displayed at the display screen, detecting a change in orientation of the display screen to a second orientation; further rendering the structured document for display by; identifying a subset of said plurality of content elements, the subset excluding one or more of the content elements that are advertisements and that were included in the structured document when the electronic device was in the first orientation; altering the model previously generated to include only those ones of the subset of said plurality of content elements; and applying to the model thus altered any corresponding content to provide a further rendered structured document, the rendered document being a reader-style document having fewer advertisements than the first rendered document; and outputting the further rendered structured document to the display screen in response to said detecting. - View Dependent Claims (16, 17, 18)
-
Specification