发明名称 Orientation-dependent processing of input files by an electronic device
摘要 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.
申请公布号 US9311426(B2) 申请公布日期 2016.04.12
申请号 US201113218726 申请日期 2011.08.26
申请人 BlackBerry Limited 发明人 Stovicek Thomas Jan;Staikos Matthew Nicholaos;Lindsay Donald James
分类号 G09G5/00;G06F17/30;G06F17/22 主分类号 G09G5/00
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 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.
地址 Waterloo, Ontario CA