CN102082932B - Method and device for updating subtitle in secondary software - Google Patents
Method and device for updating subtitle in secondary software Download PDFInfo
- Publication number
- CN102082932B CN102082932B CN200910241661.2A CN200910241661A CN102082932B CN 102082932 B CN102082932 B CN 102082932B CN 200910241661 A CN200910241661 A CN 200910241661A CN 102082932 B CN102082932 B CN 102082932B
- Authority
- CN
- China
- Prior art keywords
- size
- attribute
- test object
- captioned test
- text
- 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.)
- Expired - Fee Related
Links
Abstract
The invention discloses a method for updating a subtitle in secondary software. The method comprises the following steps: leading in a subtitle template, namely, writing text object attributes defined by the subtitle template into a memory; presenting a subtitle text object in the subtitle template in a quick edit window according to the text object attribute information; receiving the editing operation of a user on the subtitle text object in the quick edit window, wherein, the editing operation comprises separation of text blocks corresponding to different text object attributes by utilizing separators and modification of the text object attributes; updating the text object attributes in the memory according to the editing operation of the user; and determining the text blocks according to the separators, and associating the text blocks with the corresponding text object attributes in the memory for playback. By means of the method, the subtitle editing speed in the secondary software is improved, the system stability is ensured and the user experience is increased.
Description
Technical field
The present invention relates to the technical field that captions make, particularly relate to and a kind ofly in secondary software, upgrade the method for captions and in secondary software, upgrade the device of captions.
Background technology
For some existing soft ware platforms, usually according to different client's needs, carry out second time on the platform to develop targetedly, namely develop secondary software for bottom software, secondary software expands the function of bottom software product or combines expanded function etc. according to special requirement.In a lot of situation, on secondary software, the result of bottom software need be applied.
Such as, to the process of certain video caption, on a diagram text manufacture software, first editing the object for showing, such as, making figure, captions etc., concrete as needed to arrange its size, position, color etc.Then on this basis, by secondary software, such as picture and text compile broadcast system, studio system, caption broadcasting system etc., are dynamically broadcasted by these captions.
But, when video needs to broadcast, if user finds that the captions in video need simple modification, as only needed size and the position of crawl, zoom in or out font size etc.The way of prior art turns back in bottom software and revises.Now, just need again to start bottom software, its respective attributes is modified, but in practice, start bottom software and will spend the regular hour, to load the various functions that it carries, but because this video will broadcast at once, the time spent is not often that user can bear.In addition, switch between secondary software and bottom software continually, system stability also can be caused to be deteriorated.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method upgrading captions in secondary software, in order to improve the speed at secondary software inediting captions, ensures the stability of system, and improves the experience of user.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses a kind of method upgrading captions in secondary software, comprising:
Import subtitle template, the text object attribute write memory described subtitle template defined;
According to described text object attribute information, the captioned test object in subtitle template is presented in quick editor;
Receive user to the editing operation that described captioned test object carries out in quick editor, described editing operation comprises by text block corresponding to the different text object attribute of separators, and, to the retouching operation of text object attribute;
Editing operation according to user upgrades the text object attribute in internal memory;
According to described separator determination text block, and corresponding text object attribute in each text block association internal memory is broadcasted.
Preferably, described separator has the attribute do not shown.
Preferably, described text object attribute comprises: position, size, color, font and/or font size; The described step presenting captions in quick editor comprises:
Obtain the size of subtitle template background, the size of captioned test object and the position of captioned test object in background;
Quick editor is created according to the size of subtitle template background according to preset proportion relation;
With reference to described preset proportion relation according to the size of captioned test object and captioned test object the position in background, captioned test object is presented in quick editor.
Preferably, the step of described renewal internal memory textual object attribute comprises:
Obtain user edit after the size of captioned test object in quick editor and/or position;
According to described preset proportion relation, and the size of captioned test object and/or position, calculate size in subtitle template background of captioned test object and/position;
By described size and/location updating is in the attribute information of internal memory.
Preferably, described subtitle template is created by bottom software.
The embodiment of the invention also discloses a kind of device upgrading captions in secondary software, comprising:
Import module, for importing subtitle template, the text object attribute write memory that described subtitle template is defined;
Present module, for being presented in quick editor according to described text object attribute information by the captioned test object in subtitle template;
Editor module, for receiving user to the editing operation that described captioned test object carries out in quick editor, described editing operation comprises by text block corresponding to the different text object attribute of separators, and, to the retouching operation of text object attribute;
Memory refreshing module, for upgrading the text object attribute in internal memory according to the editing operation of user;
Represent module, for according to described separator determination text block, and corresponding text object attribute in each text block association internal memory is broadcasted.
Preferably, described separator has the attribute do not shown.
Preferably, described text object attribute comprises: position, size, color, font and/or font size; The described module that presents comprises:
First attribute obtains submodule, for obtaining the size of subtitle template background, the size of captioned test object and the position of captioned test object in background;
Window creation submodule, for creating quick editor according to preset proportion relation according to the size of subtitle template background;
Object presents submodule, for reference to described preset proportion relation according to the size of captioned test object and captioned test object the position in background, captioned test object is presented in quick editor.
Preferably, described memory refreshing module comprises:
Second attribute obtains subelement, for obtain user edit after the size of captioned test object in quick editor and/or position;
Property calculation subelement, for according to described preset proportion relation, and the size of captioned test object and/or position, calculate the size of captioned test object in subtitle template background and/position;
Attribute upgrades subelement, for by described size and/location updating is in the attribute information of internal memory.
Preferably, described subtitle template is created by bottom software.
Compared with prior art, the present invention has the following advantages:
The present invention does not need to start bottom software, on corresponding secondary software, just can realize the quick editor of the subtitle template to bottom software creation, without the need to starting bottom software, when not only reducing startup bottom software, the time that the various sophisticated functionss loading object editing expend, improve the speed of editor, the system performance that the continuous conversion of the system that also avoid between two programs causes reduces, and improves system stability.
Moreover, the present invention is by when editing captions text object, separators text block and corresponding attribute can be adopted, make subtitle template can have the definition of multiple text object attribute concurrently, and pass through separator, simply can set up the mapping of text block and corresponding attribute, thus facilitate user's simple operations under various complex environment, further improve caption editing efficiency and user's experience.
Accompanying drawing explanation
Fig. 1 is a kind of process flow diagram upgrading the embodiment of the method for captions in secondary software of the present invention;
Fig. 2 is a kind of structured flowchart upgrading the device embodiment of captions in secondary software of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to figure 1, show a kind of process flow diagram upgrading the embodiment of the method for captions in secondary software of the present invention, specifically can comprise:
Step 101, importing subtitle template, the text object attribute write memory that described subtitle template is defined;
Step 102, according to described text object attribute information, the captioned test object in subtitle template is presented in quick editor;
Step 103, reception user are to the editing operation that described captioned test object carries out in quick editor, and described editing operation comprises by text block corresponding to the different text object attribute of separators, and, to the retouching operation of text object attribute;
The editing operation of step 104, foundation user upgrades the text object attribute in internal memory;
Step 105, according to described separator determination text block, and corresponding text object attribute in each text block association internal memory to be broadcasted.
The embodiment of the present invention be applied to be directed to bottom software exploitation secondary software on, by carrying out the quick editor of object on secondary software, without the need to starting bottom software.The former software systems of general support software secondary development all provide corresponding SDK (Software develop kit).Secondary development personnel can visit the more original basic functions of software according to API (application programming interfaces) disclosed in providing in SDK, and will combine according to these basic functions, expand and then form more professional or new function with completing user special demand.
It should be noted that, described subtitle template is the making result of bottom software.In specific implementation, import the subtitle template of bottom software establishment in secondary software after, obtain the text object attribute of its definition.The embodiment of the present invention is mainly used in the quick editor realizing simple text attribute, as position, size, color, font size and/or font etc.These attribute informations will be written in internal memory, and its form can be: captioned test object; Position; Size; Color ...,
Such as, captioned test object A being recorded as in internal memory:
Object A; (100,300); (70,30); (255,255,0).
The coordinate in the background lower left corner, suppose object A place is (0,0), so, the coordinate position that above-mentioned (100,300) are the object A lower left corner, unit is pixel; The size that (70,30) are object A, wide is 70, and height is 30; The RGB color attribute value that (255,255,0) is object A.
For carrying out the editor of subtitle template on the basis of not opening bottom software, the present invention creates a quick editor on the operation interface of secondary software, in one preferred embodiment of the invention, specifically can create this window by following sub-step:
Sub-step A1, the size of acquisition subtitle template background, the size of captioned test object and the position of captioned test object in background;
Sub-step A2, create quick editor according to preset proportion relation according to the size of subtitle template background;
Sub-step A3, with reference to described preset proportion relation according to the size of captioned test object and captioned test object the position in background, captioned test object is presented in quick editor.
Described quick editor is equivalent to the preview of object in bottom software editor, and this window wide and high needs and the wide and elevation ratio of background in template file, and the quick editor of generation like this can present preview editor accurately.Further, the position of this object and size also need being presented in this window of equal proportion.
In practice, user can according to oneself need different proportionate relationships is set, if wish that quick editor can show object clearly, the ratio of amplification can be set, or, the background formed objects fast in the window of editor and original template file; General, owing to only carrying out the function editor of simple attributes fast, the ratio reduced is set.
The captioned test object that described quick editor presents can for the full text object in subtitle template, then user carries out edit-modify again to all objects, or needs with other objects for reference the amendment of certain several object; Described captioned test object can also be one of them object of subtitle template, then user selects single object to carry out corresponding modify successively; Or the several objects can also selected for user, then user once completes the edit-modify of certain several captioned test object.
The editing operation that user carries out described captioned test object in quick editor relates generally to by text block corresponding to the different text object attribute of separators, and, to the retouching operation of text object attribute; Described separator can by user's sets itself pattern, for demarcating the spaced-apart locations of different attribute in captioned test object.
Such as, being illustrated as of a kind of different attribute text block separated by separator " ~ ":
It should be noted that, in practice, separator can not show on quick editor, also can not the display when broadcasting, and above-mentioned mark is only be convenient to those skilled in the art to understand the text block how separator to separate different attribute intuitively.
In addition, the attribute modification operation of user in quick editor, can comprise the conversion to captioned test object's position, size, color, font size and/or font.Such as, moved to the intended target position in quick editor by this object of mouse drag; This object that zooms in or out is pulled by mouse; The change change of color can also be carried out, change its font or font size etc.
After user edits, corresponding text object attribute there occurs change, and this change can be updated in internal memory.Such as, for above-mentioned object A, by the amendment of user, its color from yellow is become redness, then in internal memory, finds color attribute in the attribute information of object A, attribute record is changed to:
Object A; (100,300); (20,70); (255,0,0).
The present invention, under the quick editting function of multiple attribute, as the editor of position, size and color, only can upgrade the attribute of amendment, also all can cover according to the attribute of existing object and be updated in internal memory.
In a particular application, by text object attribute corresponding in separator associated text block and internal memory, the renewal of captions can be completed at secondary software.
It should be noted that, for aforesaid embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
With reference to figure 2, show a kind of structured flowchart upgrading the device embodiment of captions in secondary software of the present invention, specifically can comprise:
Import module 201, for importing subtitle template, the text object attribute write memory that described subtitle template is defined;
Present module 202, for being presented in quick editor according to described text object attribute information by the captioned test object in subtitle template;
Editor module 203, for receiving user in quick editor to the editing operation that described captioned test object carries out, described editing operation comprises by text block corresponding to the different text object attribute of separators, and, to the retouching operation of text object attribute;
Memory refreshing module 204, for upgrading the text object attribute in internal memory according to the editing operation of user;
Represent module 205, for according to described separator determination text block, and corresponding text object attribute in each text block association internal memory is broadcasted.
In specific implementation, described subtitle template is created by bottom software, and described separator has the attribute do not shown.
In one preferred embodiment of the invention, described text object attribute can comprise: position, size, color, font and/or font size; The described module that presents can comprise following submodule:
First attribute obtains submodule, for obtaining the size of subtitle template background, the size of captioned test object and the position of captioned test object in background;
Window creation submodule, for creating quick editor according to preset proportion relation according to the size of subtitle template background;
Object presents submodule, for reference to described preset proportion relation according to the size of captioned test object and captioned test object the position in background, captioned test object is presented in quick editor.
More preferred, described memory refreshing module can comprise following submodule:
Second attribute obtains subelement, for obtain user edit after the size of captioned test object in quick editor and/or position;
Property calculation subelement, for according to described preset proportion relation, and the size of captioned test object and/or position, calculate the size of captioned test object in subtitle template background and/position;
Attribute upgrades subelement, for by described size and/location updating is in the attribute information of internal memory.
Because the present embodiment is substantially corresponding to preceding method embodiment, therefore not detailed part in the description of the present embodiment, see the related description in previous embodiment, just can not repeat at this.What each embodiment in this instructions stressed is all the difference with other embodiments, between each embodiment identical similar part mutually see.
Above a kind of method upgrading captions in secondary software provided by the present invention and the device upgrading captions in secondary software are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (6)
1. in secondary software, upgrade a method for captions, it is characterized in that, comprising:
Import subtitle template, the text object attribute write memory described subtitle template defined; Described subtitle template is created by bottom software;
According to described text object attribute information, the captioned test object in subtitle template is presented in quick editor;
Receive user to the editing operation that described captioned test object carries out in quick editor, described editing operation comprises by text block corresponding to the different text object attribute of separators, and, to the retouching operation of text object attribute; Described separator has the attribute do not shown;
Editing operation according to user upgrades the text object attribute in internal memory;
According to described separator determination text block, and corresponding text object attribute in each text block association internal memory is broadcasted.
2. the method for claim 1, is characterized in that, described text object attribute comprises: position, size, color, font and/or font size; The described step presenting captions in quick editor comprises:
Obtain the size of subtitle template background, the size of captioned test object and the position of captioned test object in background;
Quick editor is created according to the size of subtitle template background according to preset proportion relation;
With reference to described preset proportion relation according to the size of captioned test object and captioned test object the position in background, captioned test object is presented in quick editor.
3. method as claimed in claim 2, it is characterized in that, the step of described renewal internal memory textual object attribute comprises:
Obtain user edit after the size of captioned test object in quick editor and/or position;
According to described preset proportion relation, and the size of captioned test object and/or position, calculate size in subtitle template background of captioned test object and/or position;
By described size and/or location updating in the attribute information of internal memory.
4. in secondary software, upgrade a device for captions, it is characterized in that, comprising:
Import module, for importing subtitle template, the text object attribute write memory that described subtitle template is defined; Described subtitle template is created by bottom software;
Present module, for being presented in quick editor according to described text object attribute information by the captioned test object in subtitle template;
Editor module, for receiving user to the editing operation that described captioned test object carries out in quick editor, described editing operation comprises by text block corresponding to the different text object attribute of separators, and, to the retouching operation of text object attribute; Described separator has the attribute do not shown;
Memory refreshing module, for upgrading the text object attribute in internal memory according to the editing operation of user;
Represent module, for according to described separator determination text block, and corresponding text object attribute in each text block association internal memory is broadcasted.
5. device as claimed in claim 4, it is characterized in that, described text object attribute comprises: position, size, color, font and/or font size; The described module that presents comprises:
First attribute obtains submodule, for obtaining the size of subtitle template background, the size of captioned test object and the position of captioned test object in background;
Window creation submodule, for creating quick editor according to preset proportion relation according to the size of subtitle template background;
Object presents submodule, for reference to described preset proportion relation according to the size of captioned test object and captioned test object the position in background, captioned test object is presented in quick editor.
6. device as claimed in claim 5, it is characterized in that, described memory refreshing module comprises:
Second attribute obtains subelement, for obtain user edit after the size of captioned test object in quick editor and/or position;
Property calculation subelement, for according to described preset proportion relation, and the size of captioned test object and/or position, calculate the size of captioned test object in subtitle template background and/or position;
Attribute upgrades subelement, for by described size and/or location updating in the attribute information of internal memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910241661.2A CN102082932B (en) | 2009-11-30 | 2009-11-30 | Method and device for updating subtitle in secondary software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910241661.2A CN102082932B (en) | 2009-11-30 | 2009-11-30 | Method and device for updating subtitle in secondary software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102082932A CN102082932A (en) | 2011-06-01 |
CN102082932B true CN102082932B (en) | 2015-03-25 |
Family
ID=44088667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910241661.2A Expired - Fee Related CN102082932B (en) | 2009-11-30 | 2009-11-30 | Method and device for updating subtitle in secondary software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102082932B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102740000A (en) * | 2011-08-29 | 2012-10-17 | 新奥特(北京)视频技术有限公司 | Method and system for previewing broadcasting effect in process of editing image-text playlist |
CN107085202A (en) * | 2017-04-07 | 2017-08-22 | 广东精点数据科技股份有限公司 | A kind of Capon robust adaptive beamforming method and system for mutual coupling error |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1748216A (en) * | 2003-02-14 | 2006-03-15 | 株式会社爱可信 | Browser program for performing table-layout |
CN101086834A (en) * | 2006-06-06 | 2007-12-12 | 华为技术有限公司 | A method for controlling display effect of caption and control device |
CN101188698A (en) * | 2007-11-19 | 2008-05-28 | 新奥特(北京)视频技术有限公司 | A device for importing caption in manuscript in non editing status |
CN101227566A (en) * | 2008-01-31 | 2008-07-23 | 中兴通讯股份有限公司 | Subtitle display method and system |
CN101489052A (en) * | 2008-01-14 | 2009-07-22 | 中国网通集团宽带业务应用国家工程实验室有限公司 | Subtitle data processing method and apparatus |
CN101540847A (en) * | 2008-03-21 | 2009-09-23 | 株式会社康巴思 | Caption producing system and caption producing method |
-
2009
- 2009-11-30 CN CN200910241661.2A patent/CN102082932B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1748216A (en) * | 2003-02-14 | 2006-03-15 | 株式会社爱可信 | Browser program for performing table-layout |
CN101086834A (en) * | 2006-06-06 | 2007-12-12 | 华为技术有限公司 | A method for controlling display effect of caption and control device |
CN101188698A (en) * | 2007-11-19 | 2008-05-28 | 新奥特(北京)视频技术有限公司 | A device for importing caption in manuscript in non editing status |
CN101489052A (en) * | 2008-01-14 | 2009-07-22 | 中国网通集团宽带业务应用国家工程实验室有限公司 | Subtitle data processing method and apparatus |
CN101227566A (en) * | 2008-01-31 | 2008-07-23 | 中兴通讯股份有限公司 | Subtitle display method and system |
CN101540847A (en) * | 2008-03-21 | 2009-09-23 | 株式会社康巴思 | Caption producing system and caption producing method |
Also Published As
Publication number | Publication date |
---|---|
CN102082932A (en) | 2011-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8161452B2 (en) | Software cinema | |
US20080123897A1 (en) | Apparatus for simultaneously storing area selected in image and apparatus for creating an image file by automatically recording image information | |
US20100156893A1 (en) | Information visualization device and information visualization method | |
CN104079652B (en) | A kind of making of HTML promotional literatures and player method | |
CN101542587A (en) | Display device | |
KR20140043359A (en) | Information processing device, information processing method and computer program product | |
CN105653284A (en) | Method and device for generating scene file of android platform | |
CN103648043B (en) | Search control method and control device to intelligent television | |
JP5838791B2 (en) | Program, image processing apparatus and image processing method | |
JP5046694B2 (en) | Display control program and display control apparatus | |
CN102082932B (en) | Method and device for updating subtitle in secondary software | |
CN101689207B (en) | Providing access to a collection of content items | |
KR101709186B1 (en) | Interactive multimedia E-book authoring apparatus and method | |
US7528983B2 (en) | Image processing system, information processing apparatus and method, image processing apparatus and method, recording medium, and program | |
CN102082926B (en) | Making method and device of scene subtitles | |
CN101309399B (en) | Television station mark display method for digital television system | |
JP2012256172A (en) | Information processing device, information processing method and program | |
JP2012256173A (en) | Information processing device, information processing method and program | |
CN102073486B (en) | A kind of quick editor's method and apparatus of object | |
CN103137163B (en) | The electronic installation of film delay edit methods and application the method | |
KR102005243B1 (en) | System and method for authoring service of advertisement, and apparatus applied to the same | |
CN112329384A (en) | Method, device and equipment for realizing character shadow effect and storage medium | |
CN102088574B (en) | Method and device for making caption | |
KR101827863B1 (en) | System and method for providing multimedia contents | |
CN103618913A (en) | Method and device for playing 3D film source in intelligent television |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150325 Termination date: 20161130 |