Method and device for determining a display mode of electronic documents
AssigneesPeking University Founder Group Co., Ltd., Beijing Founder Apabi Technology Ltd.
InventorsWei Guo, Zhan Li
Life of this patent
Estimating the term…
Abstract
A method and a device for determining a display mode of an electronic document on a screen are provided. The method may comprise: obtaining the size of the screen and the original layout size of the electronic document; determining, from the obtained original layout size, a document layout length in a layout direction of the original layout of the electronic document; determining, from the obtained size of the screen, a screen reading length in a reading direction of the screen; and comparing the document layout length with the screen reading length to determine whether a fixed-layout display mode or a flow display mode shall be selected to display the electronic document.
Claims14
A computer-implemented method for determining a display mode of an electronic document on a screen of an equipment, the method comprising:
- obtaining a size of the screen and an original layout size of the electronic document;
- determining, from the obtained original layout size of the electronic document, a document layout length in a layout direction of the original layout of the electronic document;
- determining, from the obtained size of the screen, a screen reading length in a reading direction of the screen;
- comparing the document layout length with the screen reading length to determine whether a fixed-layout display mode or a flow display mode is to be selected to display the electronic document,
- wherein the comparing the document layout length with the screen reading length comprises:
- determining a scale factor for the original layout size of the electronic document;
- determining a scaled layout size by multiplying the document layout length by the scale factor;
- and
- determining whether the scaled layout size is smaller than the screen reading length, and if yes, selecting the fixed-layout display mode to display the electronic document with the scaled layout size;
- otherwise selecting the flow display mode to display the electronic document.
A device for determining a display mode of an electronic document on a screen of an equipment, the device comprising a processor configured for:
- obtaining a size of the screen and an original layout size of the electronic document;
- determining, from the obtained original layout size of the electronic document, a document layout length in a layout direction of the original layout of the electronic document;
- determining, from the obtained size of the screen, a screen reading length in a reading direction of the screen;
- and
- comparing the document layout length with the screen reading length to determine whether a fixed-layout display mode or a flow display mode is to be selected to display the electronic document,
- wherein the comparing the document length with the screen reading length comprises:
- determining a scale factor for the original layout size of the electronic document,
- determining a scaled layout size by multiplying the document layout length by the scale factor;
- and
- determining whether the scaled layout size is smaller than the screen reading length, and if yes, the fixed-layout display mode is selected to display the electronic document with the scaled layout size;
- otherwise the flow display mode is selected to display the electronic document.
Dependencies are inferred from the claim text.