Movatterモバイル変換


[0]ホーム

URL:


CN102082964A - Method, system and set top box (STB) for displaying text file - Google Patents

Method, system and set top box (STB) for displaying text file
Download PDF

Info

Publication number
CN102082964A
CN102082964ACN2009101885177ACN200910188517ACN102082964ACN 102082964 ACN102082964 ACN 102082964ACN 2009101885177 ACN2009101885177 ACN 2009101885177ACN 200910188517 ACN200910188517 ACN 200910188517ACN 102082964 ACN102082964 ACN 102082964A
Authority
CN
China
Prior art keywords
text
content
individual event
index record
file
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.)
Pending
Application number
CN2009101885177A
Other languages
Chinese (zh)
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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co LtdfiledCriticalKonka Group Co Ltd
Priority to CN2009101885177ApriorityCriticalpatent/CN102082964A/en
Publication of CN102082964ApublicationCriticalpatent/CN102082964A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention is applied to the field of set top box (STB), and provides a method, system and STB for displaying a text file. The method comprises the following steps: receiving command information for opening the text file; creating an index record file corresponding to the text file in flash; applying to a memory for reading the contents of the text file identified by single indexes in accordance with the positions of start bytes and end bytes of the indentified contents recorded by the single indexes in the text file; and displaying the contents of the text file identified by the single indexes. For the method, system and STB for displaying the text file, the index record file is created in the flash, so that corresponding single indexes can be created in sequence in accordance with the preset byte number, and the contents of the text file indentified by the single indexes can be displayed, thus the file size is not restricted any more when the text file is displayed.

Description

A kind of method of videotex file, system and set-top box
Technical field
The invention belongs to field of set-top, relate in particular to a kind of method, system and set-top box of videotex file.
Background technology
At present, common set-top box can realize reading text and show from USB device, but generally, but because the restriction of memory size, if text is all read in internal memory, the size of supporting to open text so just is subjected to the restriction of internal memory.
At present, the method for common set-top box videotex file is by reading text from USB device, showing then.Because the restriction of memory size, if text is all read in internal memory, the size of text just is restricted so but generally.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method of videotex file, is intended to solve the method for videotex file common in the prior art, the problem that the size of text is restricted.
The embodiment of the invention is achieved in that a kind of method of videotex file, said method comprising the steps of:
The command information of text is opened in reception;
In flash, create the index record file corresponding: the byte quantity that sets in advance the content of the text that the individual event index of index record file identified with text; Begin to search from first byte of text, create corresponding individual event index, the start byte of the content that described individual event index record identifies to some extent and the position of end byte in text successively according to the byte quantity that sets in advance;
According to the start byte and the position of end byte in text of the content that is identified of described individual event index record, read the content of the text of described individual event index sign to the internal memory application;
The content that shows the text of described individual event index sign.
The embodiment of the invention also provides a kind of system of videotex file, and described system comprises:
First receiver module is used to receive the command information of opening text;
Create the index record module, be used for creating the index record file corresponding with text at flash, described establishment index record module comprises: set in advance module, be used to set in advance the byte quantity of the content of the text that the individual event index of index record file identified; Search creation module, be used for beginning to search from first byte of text, create corresponding individual event index, the start byte of the content that described individual event index record identifies to some extent and the position of end byte in text successively according to the byte quantity that sets in advance;
The application read module is used for according to the start byte of the content that is identified of described individual event index record and end byte reading the content of the text of described individual event index sign to the internal memory application in the position of text;
Display module is used to show the content of the text of described individual event index sign.
The embodiment of the invention also provides a kind of set-top box, and described set-top box comprises the system of described videotex file.
The embodiment of the invention compared with prior art, beneficial effect is: by create the index record file in flash, can create corresponding individual event index successively according to the byte quantity that sets in advance, the content that shows the text of described individual event index sign, thereby when the videotex file, the size of file no longer is restricted.
Description of drawings
Fig. 1 is the flow chart of the method for the videotex file that provides of the embodiment of the invention;
Fig. 2 is the module frame chart of the system of the videotex file 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.
See also Fig. 1, the method for the videotex file that the embodiment of the invention provides said method comprising the steps of:
S101: receive the command information of opening text;
S102: in flash, create the index record file corresponding: the byte quantity that sets in advance the content of the text that the individual event index of index record file identified with text; Begin to search from first byte of text, create corresponding individual event index, the start byte of the content that described individual event index record identifies to some extent and the position of end byte in text successively according to the byte quantity that sets in advance;
S103:, read the content of the text of described individual event index sign to the internal memory application according to the start byte and the position of end byte in text of the content that is identified of described individual event index record;
S104: the content that shows the text of described individual event index sign.
Wherein, during the byte of the byte quantity that the content that last individual event index record is identified sets in advance inadequately, then show the byte content of remaining text.
The byte quantity of the content of the text that the individual event index of the index record file that wherein, sets in advance is identified can be 1024 bytes.
Such as, if a text size is 3100 bytes, when then setting up the index record file, the content that first individual event index identified is the content of 1024 bytes of the 1st byte to the of text;
The content that second individual event index identified is the content of the 1025th byte to 2048 byte of text;
The 3rd content that the individual event index is identified is the content of the 2049th byte to 3072 byte of text;
The 4th content that the individual event index is identified is the content of the 3073rd remaining byte to 3100 byte of text.
Wherein, described S103 is according to the start byte and the position of end byte in text of the content that is identified of described individual event index record, and is further comprising the steps of after the step of content of text of described individual event index sign is read in the internal memory application:
Whether the form of judging text is displayable form, if not, convert described text to displayable form.
At present, text comprises three kinds of forms, and first kind is the UNICODE form, and header byte is 0xFF0xFE; Second kind is the UTF8 coded format, and header byte is 0xEE 0xBB 0xBF; The third is the GB2312 coded format.
First kind and second kind is can not display format, but the third is a display format, in an embodiment of the present invention, if text is first kind or second kind of form, then needs first kind or second kind of format conversion are become the third form.
Wherein, further comprising the steps of after the described step S102:
Acquiescence shows the content of the text of first individual event index sign.
Wherein, described S104 shows after the step of content of text of described individual event index sign further comprising the steps of:
Receive the command information of opening text once more;
Read in the index record file of creating among the flash corresponding with text;
Whether the modification time of judging the text that writes down in the index record file is identical with the modification time of the text of opening, if it is identical, then read the content of the text of the pairing individual event index of breakpoint location sign to the internal memory application, show the content of the text of the pairing individual event index sign of breakpoint location then according to breakpoint location; If it is inequality, then remove the content of index record file, and in flash, create the index record file corresponding once more with text, start byte and the position of end byte in text according to the content that is identified of described individual event index record, read the content of the text of described individual event index sign to the internal memory application, show the content of the text of described individual event index sign then.
Wherein, described S104 shows after the step of content of text of described individual event index sign further comprising the steps of:
Display command information is withdrawed from reception;
Discharge the content of the text that reads in the internal memory.
Wherein, further comprising the steps of after the described step S103:
Internal memory reads the content of the text of described individual event index sign;
See also Fig. 2, the embodiment of the invention also provides a kind of system of videotex file, and described system comprises:
First receiver module 201 is used to receive the command information of opening text;
Createindex record module 202, be used for creating the index record file corresponding with text at flash, described establishment index record module comprises: set in advance module, be used to set in advance the byte quantity of the content of the text that the individual event index of index record file identified; Search creation module, be used for beginning to search from first byte of text, create corresponding individual event index, the start byte of the content that described individual event index record identifies to some extent and the position of end byte in text successively according to the byte quantity that sets in advance;
Application read module 203 is used for according to the start byte of the content that is identified of described individual event index record and end byte reading the content of the text of described individual event index sign to the internal memory application in the position of text;
Display module 204 is used to show the content of the text of described individual event index sign.
Wherein, described system also comprises:
First judge module is used to judge whether the form of text is displayable form;
Modular converter is used for converting described text to displayable form when described judge module judges that the form of text is not displayable form.
In addition, described system also comprises:
Read the index record file module, be used for when described receiver module receives the command information of opening text once more, read in the index record file of creating among the flash corresponding with text;
Second judge module, be used for when reading the index record file module and reading the index record file of creating at flash corresponding, judging whether the modification time of the text that writes down in the index record file is identical with the modification time of the text of opening with text when described;
When the modification time of the text that described application read module writes down in described second judge module judgement index record file is identical with the modification time of the text of opening, read the content of the text of the pairing individual event index of breakpoint location sign according to breakpoint location to the internal memory application, described display module then shows the content of the text of the pairing individual event index sign of breakpoint location;
When the modification time of the modification time of the text that described application read module writes down in described second judge module judgement index record file and the text of opening is inequality, then remove the content of index record file, and in flash, create the index record file corresponding once more with text by described establishment index record module, described application read module is according to the start byte and the position of end byte in text of the content that is identified of described individual event index record, read the content of the text of described individual event index sign to the internal memory application, show the content of the text of described individual event index sign then by display module.
Wherein, described system comprises:
Second receiver module is used for receiving the display command information that withdraws from;
Release module is used for receiving mould and receiving when withdrawing from display command information when described second, discharges the content of the text that reads in the internal memory.
In addition, described system also comprises:
Internal memory is used to read the content of the text of described individual event index sign.
The embodiment of the invention also provides a kind of set-top box, and described set-top box comprises the system of described videotex file.
Method, system and the set-top box of the videotex file that the embodiment of the invention provides, by in flash, creating the index record file, can create corresponding individual event index successively according to the byte quantity that sets in advance, the content that shows the text of described individual event index sign, thereby when the videotex file, the size of file no longer is restricted.
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 (10)

Whether the modification time of judging the text that writes down in the index record file is identical with the modification time of the text of opening, if it is identical, then read the content of the text of the pairing individual event index of breakpoint location sign to the internal memory application, show the content of the text of the pairing individual event index sign of breakpoint location then according to breakpoint location; If it is inequality, then remove the content of index record file, and in flash, create the index record file corresponding once more with text, start byte and the position of end byte in text according to the content that is identified of described individual event index record, read the content of the text of described individual event index sign to the internal memory application, show the content of the text of described individual event index sign then.
CN2009101885177A2009-11-302009-11-30Method, system and set top box (STB) for displaying text filePendingCN102082964A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2009101885177ACN102082964A (en)2009-11-302009-11-30Method, system and set top box (STB) for displaying text file

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2009101885177ACN102082964A (en)2009-11-302009-11-30Method, system and set top box (STB) for displaying text file

Publications (1)

Publication NumberPublication Date
CN102082964Atrue CN102082964A (en)2011-06-01

Family

ID=44088689

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2009101885177APendingCN102082964A (en)2009-11-302009-11-30Method, system and set top box (STB) for displaying text file

Country Status (1)

CountryLink
CN (1)CN102082964A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103186621A (en)*2011-12-302013-07-03北大方正集团有限公司Catalogue generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20030187954A1 (en)*2002-03-292003-10-02Inventec Appliances Corp.Method and apparatus for downloading e-book via WAP
CN101059800A (en)*2006-04-212007-10-24上海晨兴电子科技有限公司Method and apparatus for displaying electronic book on mobile phone
CN101075264A (en)*2007-07-202007-11-21中国建设银行股份有限公司Method and device for displaying UNIX/LINUX character terminal file
CN101430685A (en)*2007-11-062009-05-13施耐德电器工业公司Downloading method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20030187954A1 (en)*2002-03-292003-10-02Inventec Appliances Corp.Method and apparatus for downloading e-book via WAP
CN101059800A (en)*2006-04-212007-10-24上海晨兴电子科技有限公司Method and apparatus for displaying electronic book on mobile phone
CN101075264A (en)*2007-07-202007-11-21中国建设银行股份有限公司Method and device for displaying UNIX/LINUX character terminal file
CN101430685A (en)*2007-11-062009-05-13施耐德电器工业公司Downloading method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103186621A (en)*2011-12-302013-07-03北大方正集团有限公司Catalogue generation method and device
CN103186621B (en)*2011-12-302016-07-06北大方正集团有限公司A kind of catalogue generates method and apparatus

Similar Documents

PublicationPublication DateTitle
DE602008004665D1 (en) STORAGE OF SUBTITLES BY VIDEO TRANSCRIPTION
CN101404764B (en)Internal memory management method in audio/video decoding course
CN101944128A (en)Data export and import method and device
WO2009108902A3 (en)Storage system front end
CA2422252A1 (en)Reduced synchronization reservation system and method for a shared memory buffer
CN101697126B (en)ETL realization method for incremental data of Excel file
CN102857833B (en)Audio decoding system and method adapted to android stagefright multimedia framework
CN102082964A (en)Method, system and set top box (STB) for displaying text file
CN102279820A (en)Data storage device and control method based on SPI interface
CN103902529A (en)Audio-video recording and broadcasting method capable of automatically annotating with Chinese and foreign language subtitles for foreign languages
CN102148939A (en)Method, device and television for real-time displaying subtitles of television program
CN101478315B (en)Byte interleaver device and interleaving method based on CMMB standard
WO2008146483A1 (en)Metadata recording apparatus and metadata recording method
CN101425096A (en)File memory method for embedded equipment
CN105148519A (en)Character rendering method and system in game program
CN101345531B (en)Data processing method for ogg format stream
CN101827318A (en)Information forwarding method and mobile communication terminal capable of realizing information forwarding
CN202189558U (en)SPI interface-based data storage device
CN103455297A (en)Method for editing and displaying dynamic synchronous character information barcode in television system
CN102117271A (en)Method and terminal for playing falsely-encapsulated audio/video files
CN102256187B (en)Method, device and optical fiber terminal for sending PLOAM (Physical Layer Operation Administration and Maintenance) message
CN105631917A (en)Subtitle translation method in digital animation production process
CN101296045A (en)Effective service data extraction method and device
CN105320684A (en)Data exchange method of closed captions
CN100389607C (en) Method for Realizing Closed Caption Display by Screen Menu Adjustment

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C02Deemed withdrawal of patent application after publication (patent law 2001)
WD01Invention patent application deemed withdrawn after publication

Application publication date:20110601


[8]ページ先頭

©2009-2025 Movatter.jp