主权项 |
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; andin 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. |