CN101207742A - Method and device for paging of display contents and digital television receiving device - Google Patents

Method and device for paging of display contents and digital television receiving device Download PDF

Info

Publication number
CN101207742A
CN101207742A CNA2007101253873A CN200710125387A CN101207742A CN 101207742 A CN101207742 A CN 101207742A CN A2007101253873 A CNA2007101253873 A CN A2007101253873A CN 200710125387 A CN200710125387 A CN 200710125387A CN 101207742 A CN101207742 A CN 101207742A
Authority
CN
China
Prior art keywords
displaying contents
character
line number
characters
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007101253873A
Other languages
Chinese (zh)
Other versions
CN101207742B (en
Inventor
刘欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN2007101253873A priority Critical patent/CN101207742B/en
Publication of CN101207742A publication Critical patent/CN101207742A/en
Application granted granted Critical
Publication of CN101207742B publication Critical patent/CN101207742B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is applicable to the technical field of a digital television and provides a paging method for displaying the content, a paging device for displaying the content and a digital television receiving device; the method includes the following steps: the displaying content is obtained; the displaying width of each character in the displaying content is calculated; the number of the characters in the displaying content is calculated; the total displaying number of lines and the most displaying number of lines on each page are calculated according to the displaying width of each character and the number of the characters in the displaying content; the displaying content is paged according to the total displaying number of lines and the most displaying number of lines on each page. The invention ensures the display and arrangement of an interface to be compact, thereby saving the space resource of the interface display.

Description

A kind of paging method of displaying contents, device and digital television receiving apparatus
Technical field
The invention belongs to the digital television techniques field, relate in particular to a kind of paging method, device and digital television receiving apparatus of displaying contents.
Background technology
In Digital Television, there are many contents to represent, as the brief introduction of film, the issuing etc. of some documents, these contents often can not show in a screen and finish.Because the particularity of Digital Television and restricted does not have mouse and keyboard, can only operate with remote controller, thereby have certain degree of difficulty aspect the paging of content simultaneously.
A method of existing techniques in realizing paging is: at first reading needs content displayed, as a character string, calculates its width then.Next determine the number of words that every screen can show earlier, intercept according to the function of this number of words again, carry out paging after intercepting finishes, on Digital Television, show at last with the intercepting character string.But there is following shortcoming in this method:
At first, the display width of English character and punctuation mark is different, if therefore show pure English alphabet or pure punctuation mark under same screen, the number of words of its demonstration is different; Prior art basis fixedly number of words intercepts the needs content displayed, and Pagination Display tends to cause on-screen display (osd) area also to leave displayable space so then, has wasted the space of interface display.
Secondly, even if between the English character or between the punctuation mark, its display width also is different, for example: under No. 20 fonts, the display width of A, B, C, D all is 1, but the display width of Y just is 1.37;? display width be 1.18, the display width of * is 0.82.
Once more, the different display widths of languages also are different, when showing as Chinese, are 2 times of standard English character; Like this, the character string of final intercepting just can not be shown as a screen just, and the developed width of each page demonstration is all different like this, and the interface that seems is not attractive in appearance.
Another method of existing techniques in realizing paging is: at first read all the elements that need demonstration, place it in text box or the form and show, produce scroll bar in each text box or form, control to the key up and down of remote controller then.
The shortcoming of this method is that operation is very inconvenient, when the key up and down that uses a teleswitch the user rolls and checks, the content of roll display generally shows line by line, like this, just there is the inaccurate problem in location, especially in the needs content displayed more for a long time, bring great inconvenience can for user's use.
In sum, in the prior art, the interface can not all over the screenly show, thereby causes the interface resources waste, and the interface is attractive in appearance inadequately.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of paging method of displaying contents, and being intended to solve in the prior art because interface can not all over the screenly show, causes the problem of interface resources waste.
The embodiment of the invention is achieved in that a kind of paging method of displaying contents, said method comprising the steps of:
Obtain displaying contents;
Calculate the display width of each character in the described displaying contents;
Calculate the number of characters of described displaying contents;
The maximum of calculating total demonstration line number and every page according to the number of characters of the display width of described each character and described displaying contents shows line number;
According to described total demonstration line number and every page maximum demonstration line number described displaying contents is carried out paging.
Another purpose of the embodiment of the invention is to provide a kind of paging device of displaying contents, and described device comprises:
The displaying contents acquisition module is used to obtain displaying contents;
The display width computing module is used for calculating the display width of described each character of displaying contents;
Displaying contents number of characters computing module is used to calculate the number of characters of described displaying contents;
Show the line number computing module, be used for the maximum that number of characters according to the display width of described each character and described displaying contents calculates total demonstration line number and every page and show line number;
Displaying contents paging module is used for according to described total demonstration line number and every page maximum demonstration line number described displaying contents being carried out paging.
Another purpose of the embodiment of the invention is to provide a kind of digital television receiving apparatus, and described device comprises the paging device of a displaying contents, and described device comprises:
The displaying contents acquisition module is used to obtain displaying contents;
The display width computing module is used for calculating the display width of described each character of displaying contents;
Displaying contents number of characters computing module is used to calculate the number of characters of described displaying contents;
Show the line number computing module, be used for the maximum that number of characters according to the display width of described each character and described displaying contents calculates total demonstration line number and every page and show line number;
Displaying contents paging module is used for according to described total demonstration line number and every page maximum demonstration line number described displaying contents being carried out paging.
The embodiment of the invention is by obtaining displaying contents, the number of characters of the display width of each character and displaying contents in the displaying contents that calculating is obtained, the maximum of calculating total demonstration line number and every page according to the number of characters of the display width of each character and displaying contents shows line number, and show that according to the maximum of total demonstration line number and every page line number carries out paging to displaying contents, the embodiment of the invention makes the demonstration at interface arrange and gathers to the greatest extent, farthest realized demonstration all over the screen, save the space of interface display, made interface display more attractive in appearance.
Description of drawings
Fig. 1 is the flow chart of the paging method of the displaying contents that provides of the embodiment of the invention;
Fig. 2 is the structure chart of the paging device of displaying contents in the digital television receiving apparatus that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is by obtaining displaying contents, the number of characters of the display width of each character and displaying contents in the displaying contents that calculating is obtained, the maximum of calculating total demonstration line number and every page according to the number of characters of the display width of each character and displaying contents shows line number, and shows that according to the maximum of total demonstration line number and every page line number carries out paging to displaying contents.
Fig. 1 shows the flow process of the paging method of the displaying contents that the embodiment of the invention provides, and details are as follows.
In step S101, obtain displaying contents.
In concrete implementation process, can directly receive a character string of user's input, also can open database, from database, obtain displaying contents according to querying condition.
In step S102, calculate the display width of each character in the displaying contents that obtains.
In specific implementation process, be font size according to the character display width that calculates each character in the displaying contents.Specifically describe as follows:
At first discern the font size that the character in the displaying contents that obtains adopts,
Can completely go the number of characters of certain character of showing under this font size state is standard, and Display Characters Per Frame and this standard of other languages that the full down row of this font size state is shown compare, and the ratio that obtains is default character standard.Can with the Chinese character display width under this font size state 1/2nd as standard unit's width, this standard unit's width also can be made as the display width of certain English character or punctuation mark.
With 1/2nd of Chinese character display width is that standard unit's width 1 is an example, and the step of the concrete ratio of obtaining is as follows:
Earlier with the demonstration all over the screen on screen of any Chinese character, draw the displayable number of characters of every row, then with English upper and lower case letter or English symbol demonstration all over the screen in screen one by one under this font size state, draw the number of characters of displayable each English upper and lower case letter of every row or English symbol, heel displayable Chinese character number this moment compares, calculate ratio, just draw the display width of each English upper and lower case letter and English symbol.For example: under No. 20 fonts, the displayable Chinese character number of every row is X when all over the screen, under this font size state when all over the screen the number of characters of the displayable capitalization A of every row be 2X, the display width that then can obtain A is 1.In like manner can draw, under No. 20 fonts, the display width of A, B, C, D is 1, and the display width of Y is 1.37,? display width be 1.18, the display width of * is 0.82.
Certainly, the display width of other languages can calculate according to above method.
In step S103, calculate the number of characters of displaying contents.
In step S104, the maximum of calculating total demonstration line number and every page according to the number of characters of the display width of each character and displaying contents shows line number.
In specific implementation process, at first calculate the maximum Display Characters Per Frame of every row according to the display width of each character, and calculate total demonstration line number according to the maximum Display Characters Per Frame of the number of characters of the displaying contents that calculates and every row, the maximum of calculating every page at last shows line number.
In step S105, show that according to the maximum of total demonstration line number and every page line number carries out paging to displaying contents.
The embodiment of the invention also provides a kind of digital television receiving apparatus, and this device also comprises the paging device of a displaying contents, sees also Fig. 2.
Wherein, displaying contents acquisition module 11 obtains displaying contents.
Display width computing module 12 calculates the display width of each character in the displaying contents.
Wherein said display width computing module 12 further comprises font size identification module 121 and comparison module 122:
The font size that character in the displaying contents that 121 identifications of font size identification module are obtained adopts;
It is standard that the font size state that comparison module 122 identifies with font size identification module 121 descends can completely go the number of characters of certain character that shows, the Display Characters Per Frame and this standard that this font size state are expired other languages of row demonstration down compare, and the ratio that obtains is default character standard.
The process that display width computing module 12 calculates the display width of each character in the displaying contents is stated at preamble, just repeats no more herein.
Displaying contents number of characters computing module 13 calculates the number of characters of displaying contents.
Show that line number computing module 14 shows line number according to the maximum that the number of characters of the display width of each character and displaying contents calculates total demonstration line number and every page.
Wherein, this demonstration line number computing module 14 further comprises the maximum Display Characters Per Frame computing module 141 of row, always shows that line number computing module 142 and page or leaf maximum show line number computing module 143:
The maximum Display Characters Per Frame computing module 141 of row calculates the maximum Display Characters Per Frame of every row according to the display width of each character;
Total line number computing module 142 that shows calculates total demonstration line number according to the maximum Display Characters Per Frame of the number of characters that calculates and every row;
The maximum line number computing module 143 that shows of page or leaf calculates every page maximum demonstration line number.
Displaying contents paging module 15 shows that according to the maximum of total demonstration line number and every page line number carries out paging to displaying contents.
The embodiment of the invention is by obtaining displaying contents, the number of characters of the display width of each character and displaying contents in the displaying contents that calculating is obtained, the maximum of calculating total demonstration line number and every page according to the number of characters of the display width of each character and displaying contents shows line number, and show that according to the maximum of total demonstration line number and every page line number carries out paging to displaying contents, it is compact that the embodiment of the invention makes the demonstration at interface arrange, farthest realized demonstration all over the screen, save the space of interface display, made interface display more attractive in appearance.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. the paging method of a displaying contents is characterized in that, said method comprising the steps of:
Obtain displaying contents;
Calculate the display width of each character in the described displaying contents;
Calculate the number of characters of described displaying contents;
The maximum of calculating total demonstration line number and every page according to the number of characters of the display width of described each character and described displaying contents shows line number;
According to described total demonstration line number and every page maximum demonstration line number described displaying contents is carried out paging.
2. the paging method of displaying contents as claimed in claim 1, it is characterized in that described display width and the number of characters of the described displaying contents maximum of calculating total demonstration line number and every page according to described each character shows that the step of line number specifically may further comprise the steps:
Calculate the maximum Display Characters Per Frame of every row according to the display width of described each character;
Calculate total demonstration line number according to the number of characters of the described displaying contents that calculates and the maximum Display Characters Per Frame of every row;
The maximum of calculating every page shows line number.
3. the paging method of displaying contents as claimed in claim 1, it is characterized in that the step of the display width of each character is font size according to the selected character display width that calculates each character in the described displaying contents in the described displaying contents of described calculating.
4. the paging method of displaying contents as claimed in claim 3 is characterized in that, the step of the display width of each character comprises in the described displaying contents of described calculating:
The font size that character in the displaying contents that identification is obtained adopts;
With certain the character display width under this font size state as standard unit's width, with the display width of other characters therewith standard unit's width compare the display width value that obtains described other characters.
5. the paging device of a displaying contents is characterized in that, described device comprises:
The displaying contents acquisition module is used to obtain displaying contents;
The display width computing module is used for calculating the display width of described each character of displaying contents;
Displaying contents number of characters computing module is used to calculate the number of characters of described displaying contents;
Show the line number computing module, be used for the maximum that number of characters according to the display width of described each character and described displaying contents calculates total demonstration line number and every page and show line number;
Displaying contents paging module is used for according to described total demonstration line number and every page maximum demonstration line number described displaying contents being carried out paging.
6. the paging device of displaying contents as claimed in claim 5 is characterized in that, described demonstration line number computing module specifically comprises:
The maximum Display Characters Per Frame computing module of row is used for calculating according to the display width of described each character the maximum Display Characters Per Frame of every row;
Total line number computing module that shows is used for calculating total demonstration line number according to the maximum Display Characters Per Frame of the described number of characters that calculates and every row;
The maximum line number computing module that shows of page or leaf is used to calculate every page maximum demonstration line number.
7. the paging device of displaying contents as claimed in claim 5 is characterized in that, described display width computing module is the font size according to the selected character display width that calculates each character in the described displaying contents.
8. the paging device of displaying contents as claimed in claim 7 is characterized in that, described display width computing module also comprises:
The font size identification module is used for discerning the font size that the character of the displaying contents that obtains adopts;
Comparison module, it is standard that the font size state that is used for identifying with the font size identification module descends can completely go the number of characters of certain character that shows, the Display Characters Per Frame and this standard that this font size state are expired other languages of row demonstration down compare, and the ratio that obtains is default character standard.
9. a digital television receiving apparatus is characterized in that, described device also comprises the paging device of a displaying contents, and described device comprises:
The displaying contents acquisition module is used to obtain displaying contents;
The display width computing module is used for calculating the display width of described each character of displaying contents;
Displaying contents number of characters computing module is used to calculate the number of characters of described displaying contents;
Show the line number computing module, be used for the maximum that number of characters according to the display width of described each character and described displaying contents calculates total demonstration line number and every page and show line number;
Displaying contents paging module is used for according to described total demonstration line number and every page maximum demonstration line number described displaying contents being carried out paging.
10. digital television receiving apparatus as claimed in claim 9 is characterized in that, described demonstration line number computing module specifically comprises:
The maximum Display Characters Per Frame computing module of row is used for calculating according to the display width of described each character the maximum Display Characters Per Frame of every row;
Total line number computing module that shows is used for calculating total demonstration line number according to the maximum Display Characters Per Frame of the described number of characters that calculates and every row;
The maximum line number computing module that shows of page or leaf is used to calculate every page maximum demonstration line number.
11. digital television receiving apparatus as claimed in claim 9 is characterized in that, described display width computing module is the font size according to the selected character display width that calculates each character in the described displaying contents.
12. digital television receiving apparatus as claimed in claim 11 is characterized in that, described display width computing module also comprises:
The font size identification module is used for discerning the font size that the character of the displaying contents that obtains adopts;
Comparison module, it is standard that the font size state that is used for identifying with the font size identification module descends can completely go the number of characters of certain character that shows, the Display Characters Per Frame and this standard that this font size state are expired other languages of row demonstration down compare, and the ratio that obtains is default character standard.
CN2007101253873A 2007-12-25 2007-12-25 Method and device for paging of display contents and digital television receiving device Expired - Fee Related CN101207742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101253873A CN101207742B (en) 2007-12-25 2007-12-25 Method and device for paging of display contents and digital television receiving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101253873A CN101207742B (en) 2007-12-25 2007-12-25 Method and device for paging of display contents and digital television receiving device

Publications (2)

Publication Number Publication Date
CN101207742A true CN101207742A (en) 2008-06-25
CN101207742B CN101207742B (en) 2010-06-09

Family

ID=39567565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101253873A Expired - Fee Related CN101207742B (en) 2007-12-25 2007-12-25 Method and device for paging of display contents and digital television receiving device

Country Status (1)

Country Link
CN (1) CN101207742B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314292A (en) * 2010-06-30 2012-01-11 国际商业机器公司 Method for generating network service and system
CN105528362A (en) * 2014-09-30 2016-04-27 远光软件股份有限公司 A table loading and displaying method and device
CN108595396A (en) * 2018-03-28 2018-09-28 福建榕基软件工程有限公司 A kind of automatic generation method and terminal of resume
CN110135429A (en) * 2019-04-18 2019-08-16 深圳壹账通智能科技有限公司 Scan text segmentation method, device, computer equipment and storage medium
CN111984165A (en) * 2013-09-29 2020-11-24 小米科技有限责任公司 Method and device for displaying message and terminal equipment
CN113138704A (en) * 2020-01-19 2021-07-20 福建天泉教育科技有限公司 Text box display method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1118127A (en) * 1997-06-27 1999-01-22 Nec Corp Display controller for communications equipment and its method
JP4154976B2 (en) * 2002-09-24 2008-09-24 セイコーエプソン株式会社 Layout system, program
CN1725368A (en) * 2004-07-20 2006-01-25 英保达股份有限公司 Multimedia recording playing device with retrospective playback function
CN100426295C (en) * 2006-03-04 2008-10-15 李勇坚 Method for data paging display

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314292A (en) * 2010-06-30 2012-01-11 国际商业机器公司 Method for generating network service and system
US9001146B2 (en) 2010-06-30 2015-04-07 International Business Machines Corporation Automatically determining an object display mode to display objects
CN111984165A (en) * 2013-09-29 2020-11-24 小米科技有限责任公司 Method and device for displaying message and terminal equipment
CN105528362A (en) * 2014-09-30 2016-04-27 远光软件股份有限公司 A table loading and displaying method and device
CN105528362B (en) * 2014-09-30 2020-12-22 远光软件股份有限公司 Table loading display method and display device thereof
CN108595396A (en) * 2018-03-28 2018-09-28 福建榕基软件工程有限公司 A kind of automatic generation method and terminal of resume
CN108595396B (en) * 2018-03-28 2023-08-04 福建榕基软件工程有限公司 Automatic resume generation method and terminal
CN110135429A (en) * 2019-04-18 2019-08-16 深圳壹账通智能科技有限公司 Scan text segmentation method, device, computer equipment and storage medium
CN113138704A (en) * 2020-01-19 2021-07-20 福建天泉教育科技有限公司 Text box display method and terminal
CN113138704B (en) * 2020-01-19 2022-07-05 福建天泉教育科技有限公司 Text box display method and terminal

Also Published As

Publication number Publication date
CN101207742B (en) 2010-06-09

Similar Documents

Publication Publication Date Title
CN100383783C (en) Presenting html content on a small screen terminal display
CN101207742B (en) Method and device for paging of display contents and digital television receiving device
JP5983983B2 (en) Information processing apparatus and method, and program
US20210141999A1 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
CN101364216B (en) Method and device for displaying electronic book documentary on mobile terminal
KR20080042878A (en) Software key labeling on software keyboards
CN102331982B (en) Method and system for displaying PDF (Portable Document Format) document adaptively to window size and mobile terminal
US20110113318A1 (en) Information processing device, method, and computer-readable recording medium recording program
CN102053787B (en) Information processing apparatus, image enlargement processing method
CN101882055A (en) Method and device for displaying page in zoomed mode on terminal
CN103135977A (en) Information-inputting method in browser and device using the same
CN105224540A (en) Page composing method and device
EP1679614A2 (en) Method and apparatus for providing foreign language text display when encoding is not available
KR100576370B1 (en) Auto Ideal Device in Portable Display Device
CN103150293A (en) Electronic device with messy code recovery function and messy code recovery method
CN110310226B (en) Picture mosaic display method and system
US20160034178A1 (en) Virtual keyboard
US20080037051A1 (en) Document display processor, computer readable medium storing document display processing program, computer data signal and document display processing method
CN101815086A (en) Browser font optimization method for mobile communication equipment terminals
EP2370876B1 (en) Method and system for touch screen text entry
CN108874285A (en) The display methods and user terminal of handwriting on a kind of user terminal
CN106445320A (en) Method and device for manufacturing and displaying contents of electronic book
US11720740B2 (en) Reducing interference between two texts
CN103034990A (en) Method and device for checking publications
US7461341B2 (en) Structured document display processor, method for processing display of structured document, and program for displaying structured document

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENZHEN LONGSHI MEDIA CO., LTD.

Free format text: FORMER OWNER: SHENZHEN TONGZHOU ELECTRONIC CO., LTD.

Effective date: 20120418

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20120418

Address after: 518057 Nanshan District hi tech park, Guangdong, North District Rainbow science and Technology Building

Patentee after: LONGVISION MEDIA CO.,LTD.

Address before: 518057 W2-A7 building, hi tech park, Shennan Avenue, Shenzhen, Guangdong, Nanshan District

Patentee before: SHENZHEN COSHIP ELECTRONICS Co.,Ltd.

ASS Succession or assignment of patent right

Owner name: SHENZHEN TONGZHOU ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHENZHEN LONGSHI MEDIA CO., LTD.

Effective date: 20140519

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20140519

Address after: 518057 rainbow science and Technology Building (North West Road), Nanshan District hi tech Zone, Shenzhen, Guangdong

Patentee after: SHENZHEN COSHIP ELECTRONICS Co.,Ltd.

Address before: 518057 Nanshan District hi tech park, Guangdong, North District Rainbow science and Technology Building

Patentee before: LONGVISION MEDIA CO.,LTD.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100609

CF01 Termination of patent right due to non-payment of annual fee