CN102082922B - Method and device for updating subtitles in subtitle templates - Google Patents

Method and device for updating subtitles in subtitle templates Download PDF

Info

Publication number
CN102082922B
CN102082922B CN200910241647.2A CN200910241647A CN102082922B CN 102082922 B CN102082922 B CN 102082922B CN 200910241647 A CN200910241647 A CN 200910241647A CN 102082922 B CN102082922 B CN 102082922B
Authority
CN
China
Prior art keywords
captions
character
subtitle template
subtitle
updating block
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
Application number
CN200910241647.2A
Other languages
Chinese (zh)
Other versions
CN102082922A (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN200910241647.2A priority Critical patent/CN102082922B/en
Publication of CN102082922A publication Critical patent/CN102082922A/en
Application granted granted Critical
Publication of CN102082922B publication Critical patent/CN102082922B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for updating subtitles in subtitle templates. The method comprises the following steps: obtaining the subtitle templates and target texts; and taking the same class of continuous characters in the target texts as subtitle updating units and mapping the continuous characters to the positions of the corresponding class of characters in the subtitle templates so as to generate correlation between each subtitle updating unit and the corresponding text object attribute, wherein the subtitle templates comprise various text object attributes; and the target texts comprise various classes of characters. The invention has the following advantages: the workload of subtitle template making is reduced and the complexity of text data and subtitle template mapping is reduced.

Description

Method and the device of captions is upgraded in subtitle template
Technical field
The present invention relates to the technical field that captions make, particularly relate to and a kind ofly in subtitle template, upgrade the method for captions and in subtitle template, upgrade the device of captions.
Background technology
In television program designing, each shelves program has the picture and text template of the distinct style irregularly changed, and within one period, each issue program upgrades graph-text content in identical picture and text template, and in graph-text content renewal process, the replacement of captions is particularly important.
Usually, the text object in subtitle template is provided with the text attributes such as identical font, font size, word be wide, the identical renderer property such as character face, limit, shadow, and the dynamic effect attribute entering, stop, go out.When content update, new text data replaces text data old in subtitle template, and the text of captions, play up, dynamic effect attribute is constant.This is alternative patterns the most conventional at present, simple and fast.But adopt in this way, in the program making process of reality, obviously need to make more subtitle template, cause too much committed memory space.
For this problem, prior art it is also proposed and arranges different texts for text object, play up and the subtitle template of dynamic effect attribute, when adopting this multiattribute subtitle template to carry out captions replacement, all text objects still can be arranged by certain characters' property of head/tail in subtitle template is unified.If replace the multiple attribute of text object, then need a multiattribute template when subtitle template makes, split into the template of multiple unified attribute, namely its essence remains the mode adopting same alike result to upgrade captions in subtitle template, this adds the workload that subtitle template makes undoubtedly, also add the complexity that text data and subtitle template map.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method upgrading captions in subtitle template, in order to reduce the workload that subtitle template makes, and reduces the complexity that text data and subtitle template map.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses a kind of method upgrading captions in subtitle template, comprising:
Obtain subtitle template and target text, described subtitle template comprises multiple text object attribute, and described target text comprises the character of plurality of classes;
Using other continuation character of same class in target text as captions updating block, the corresponding position mapping to corresponding classification character in subtitle template, to generate associating of each captions updating block and corresponding text object attribute.
Preferably, described method, also comprises:
If described captions updating block is longer than the length of corresponding classification character in subtitle template, then the captions updating block will exceeded, associates according to the text object attribute of this classification most end character in subtitle template.
Preferably, described method, also comprises:
If do not have the text object attribute definition of corresponding classification character in described subtitle template, then by such other captions updating block, the text object attribute of the last captions updating block connected according to it associates.
Preferably, described subtitle template is the template that character class is determined.
Preferably, described character class comprises Chinese, western language, numbers and symbols.
The embodiment of the invention also discloses a kind of device upgrading captions in subtitle template, comprising:
Acquisition module, for obtaining subtitle template and target text, described subtitle template comprises multiple text object attribute, and described target text comprises the character of plurality of classes;
Update module, for using other continuation character of same class in target text as captions updating block, the corresponding position mapping to corresponding classification character in subtitle template, to generate associating of each captions updating block and corresponding text object attribute.
Preferably, described device, also comprises:
First relating module, for when described captions updating block is longer than the length of corresponding classification character in subtitle template, by the captions updating block exceeded, associates according to the text object attribute of this classification most end character in subtitle template.
Preferably, described device, also comprises:
Second relating module, during for not having the text object attribute definition of corresponding classification character in described subtitle template, by such other captions updating block, the text object attribute of the last captions updating block connected according to it associates.
Preferably, described subtitle template is the template that character class is determined; Described character class comprises Chinese, western language, numbers and symbols.
Preferably, described device is arranged in film titler.
Compared with prior art, the present invention has the following advantages:
The present invention proposes a kind of mechanism of carrying out caption content renewal in graph-text content upgrades for subtitle template, in the present invention, target text is divided into multiple captions updating block according to character class, when replacing, the old captions of respective classes character that each captions updating block will be replaced in subtitle template one by one, subtitle template without the need to a multiattribute subtitle template being split into multiple unified attribute is replaced, thus greatly reduce the workload of subtitle template making, and, owing to adopting the mode by word coupling, effectively reduce the complexity that text data and subtitle template map.
Accompanying drawing explanation
Fig. 1 is a kind of flow chart upgrading the embodiment of the method for captions in subtitle template of the present invention;
Fig. 2 is a kind of structured flowchart upgrading the device embodiment of captions in subtitle template 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.
One of core idea of the embodiment of the present invention is, by automatically identifying character class in captioned test to be mapped, using other continuation character of same class as the corresponding position mapping to corresponding classification character in subtitle template of captions updating block, namely in units of captions updating block, replace the old captions of the corresponding classification character in subtitle template one by one, thus generate associating of each group of new captions and corresponding text object attribute.
With reference to figure 1, show a kind of flow chart upgrading the embodiment of the method for captions in subtitle template, specifically can comprise the following steps:
Step 101, acquisition subtitle template and target text, described subtitle template comprises multiple text object attribute, and described target text comprises the character of plurality of classes;
Step 102, using other continuation character of same class in target text as captions updating block, the corresponding position mapping to corresponding classification character in subtitle template, to generate associating of each captions updating block and corresponding text object attribute.
In embodiments of the present invention, described character class refers to the classification comprising Chinese, western language, numeral and other symbol, but not classifies through the character attibute of complicated calculations.
In caption making process, one grade of program often comprises multiple subtitle template, can define a kind of text object attribute in each subtitle template, also can define multiple text object attribute, such as: for the clock template of " Chinese+numeral+English ", a kind of display example is:
Beijing time 10:10am
Suppose that the target text content of current importing is: American time 08:10pm, then system can automatically identify the continuation character " American time " being all Chinese, mapped to the position of the character " Beijing time " of corresponding classification, thus generate this fresh character association text object attribute for " font: regular script; Font size: 14; Color: red "; And, continue to identify the continuation character " 08:10 " being all numeral, mapped to the position of the character " 10:10 " of corresponding classification, thus generate the text object attribute of this fresh character association for " font: Times New Roman; Font size: 14; Color: blue "; And, continue to identify the continuation character " pm " being all English, mapped to the position of the character " am " of corresponding classification, thus the text object attribute generating the association of this fresh character is " font: Times New Roman; Font size: 14; Color: black "; Namely the display completed after replacement is illustrated as:
American time 08:10pm
As another kind of preferred embodiment of the present invention, the described method upgrading captions in subtitle template can also comprise the steps:
If described captions updating block is longer than the length of corresponding classification character in subtitle template, then the captions updating block will exceeded, associates according to the text object attribute of this classification most end character in subtitle template.
For what may occur in reality, the length of certain captions updating block is longer than the preseting length of classification character corresponding in subtitle template, or, the situation longer than the length of front such malapropism symbol once mapped, no longer again subtitle template is made to the character had more, but directly adopt the text object attribute of this classification most end character in subtitle template, as the relating attribute of this captions updating block.With ensure further the present invention carry out captions replace time rapidity and validity.
Such as, based on the clock template of above-mentioned " Chinese+numeral+English ", suppose that the target text content of current importing is: U.S. mountain region time 08:10pm, then the display completed after replacement is illustrated as:
U.S. mountain region time 08:10pm
As another preferred embodiment of the present invention, the described method upgrading captions in subtitle template can also comprise the steps:
If do not have the text object attribute definition of corresponding classification character in described subtitle template, then by such other captions updating block, the text object attribute of the last captions updating block connected according to it associates.
For what may occur in reality, certain kind character is not carried out to the situation of correlation attribute definition in subtitle template, the present invention is equally without the need to again making subtitle template to the character of newly-increased classification, but direct text object attribute that connect according to such malapropism curtain updating block, last captions updating block associates.
Such as, a kind of display example of clock template is:
Beijing time 10:10
The target text content of current importing is: U.S. mountain region time 08:10pm, then the display completed after replacement is illustrated as:
U.S. mountain region time 08:10pm
Namely for the situation of attribute definition not having corresponding English character in subtitle template, directly associated by the text object attribute of English subtitles updating block " pm " according to last digit captions updating block " 08:10 ", namely the relating attribute of this English subtitles updating block " pm " is also: font: Times New Roman; Font size: 14; Color: blue.
In a particular application, the present invention is applicable to character class and compares the template determined.
In practice, the making of captions is generally completed by corresponding subtitle making system on film titler, non-volume machine or PC, subtitle making system is by the mode of man-machine interaction, corresponding text object attribute (text attribute, renderer property, dynamic effect attribute etc.) is distributed to each captioned test, namely during film titler, non-volume machine or PC can within it deposit, can its corresponding attribute of corresponding preservation for each captioned test, when broadcasting, to broadcast this captions according to this attribute.In subtitle making system, user is by choosing current required subtitle template, and import corresponding target text, after triggering replacement operation, rapidly old captions original in subtitle template can be replaced with new captions, namely new captions associate with the respective attributes in subtitle template, when broadcasting, namely can associating respectively according to each attribute and captions, broadcast this new captions.
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 specification 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 subtitle template of the present invention, specifically can comprise:
Acquisition module 201, for obtaining subtitle template and target text, described subtitle template comprises multiple text object attribute, and described target text comprises the character of plurality of classes;
Mapping block 202, for using other continuation character of same class in target text as captions updating block, the corresponding position mapping to corresponding classification character in subtitle template, to generate associating of each captions updating block and corresponding text object attribute.
As another kind of preferred embodiment, the present invention can also comprise with lower module:
First relating module, for when described captions updating block is longer than the length of corresponding classification character in subtitle template, by the captions updating block exceeded, associates according to the text object attribute of this classification most end character in subtitle template.
As another preferred embodiment, the present invention can also comprise with lower module:
Second relating module, during for not having the text object attribute definition of corresponding classification character in described subtitle template, by such other captions updating block, the text object attribute of the last captions updating block connected according to it associates.
As a kind of advantageous applications, described device can be arranged in film titler.Be well known that, film titler is a kind of special equipment of television program designing, and along with the fast development of computer technology, film titler makes field at television set and more and more popularized, and fabrication techniques index is also more and more higher, and function also constantly strengthens.Generally speaking, by PC, film titler adds that the subtitle superposition card of specialty and corresponding captions Software for producing form, be used for stacking chart's word curtain in vision signal.Captions Software for producing controls captions exactly and is added in which way on background frame, with the instrument that user is mutual; After having had computer and captions software, need one and background frame can be allowed to input, and after overlapping text, the final equipment exported with credit video.Want receiver, video to enter, then video frequency output, be need other optional equipments in addition, subtitle superposition card is exactly such equipment.
When application the present invention makes captions in film titler, by with user interactions, selected current required subtitle template, and after importing corresponding target text, according to the triggering of replacement operation, rapidly old captions original in subtitle template can be replaced with new captions, namely new captions associate with the respective attributes in subtitle template, when broadcasting, namely can associating respectively according to each attribute and captions, broadcast this new captions.
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 specification stressed is all the difference with other embodiments, between each embodiment identical similar part mutually see.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.
Above a kind of method upgrading captions in subtitle template provided by the present invention and the device upgrading captions in subtitle template are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, 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 (8)

1. in subtitle template, upgrade a method for captions, it is characterized in that, comprising:
Obtain subtitle template and target text, described subtitle template comprises multiple text object attribute, and described target text comprises the character of plurality of classes;
Using other continuation character of same class in target text as captions updating block, the corresponding position mapping to corresponding classification character in subtitle template, to generate associating of each captions updating block and corresponding text object attribute;
Wherein, if described captions updating block is longer than the length of corresponding classification character in subtitle template, then the captions updating block will exceeded, associates according to the text object attribute of this classification most end character in subtitle template.
2. the method for claim 1, is characterized in that, also comprises:
If do not have the text object attribute definition of corresponding classification character in described subtitle template, then by such other captions updating block, the text object attribute of the last captions updating block connected according to it associates.
3. method as claimed in claim 1 or 2, it is characterized in that, described subtitle template is the template that character class is determined.
4. the method for claim 1, is characterized in that, described character class comprises Chinese, western language, numbers and symbols.
5. in subtitle template, upgrade a device for captions, it is characterized in that, comprising:
Acquisition module, for obtaining subtitle template and target text, described subtitle template comprises multiple text object attribute, and described target text comprises the character of plurality of classes;
Update module, for using other continuation character of same class in target text as captions updating block, the corresponding position mapping to corresponding classification character in subtitle template, to generate associating of each captions updating block and corresponding text object attribute;
First relating module, for when described captions updating block is longer than the length of corresponding classification character in subtitle template, by the captions updating block exceeded, associates according to the text object attribute of this classification most end character in subtitle template.
6. device as claimed in claim 5, is characterized in that, also comprise:
Second relating module, during for not having the text object attribute definition of corresponding classification character in described subtitle template, by such other captions updating block, the text object attribute of the last captions updating block connected according to it associates.
7. the device as described in claim 5 or 6, is characterized in that, described subtitle template is the template that character class is determined; Described character class comprises Chinese, western language, numbers and symbols.
8. device as claimed in claim 7, it is characterized in that, described device is arranged in film titler.
CN200910241647.2A 2009-11-30 2009-11-30 Method and device for updating subtitles in subtitle templates Expired - Fee Related CN102082922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910241647.2A CN102082922B (en) 2009-11-30 2009-11-30 Method and device for updating subtitles in subtitle templates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910241647.2A CN102082922B (en) 2009-11-30 2009-11-30 Method and device for updating subtitles in subtitle templates

Publications (2)

Publication Number Publication Date
CN102082922A CN102082922A (en) 2011-06-01
CN102082922B true CN102082922B (en) 2015-06-17

Family

ID=44088657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910241647.2A Expired - Fee Related CN102082922B (en) 2009-11-30 2009-11-30 Method and device for updating subtitles in subtitle templates

Country Status (1)

Country Link
CN (1) CN102082922B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170115853A1 (en) * 2015-10-21 2017-04-27 Google Inc. Determining Image Captions
CN108989876B (en) * 2018-07-27 2021-07-30 青岛海信传媒网络技术有限公司 Subtitle display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188697A (en) * 2007-11-19 2008-05-28 新奥特(北京)视频技术有限公司 A method for importing caption in manuscript in non editing status
CN101296325A (en) * 2007-04-27 2008-10-29 新奥特硅谷视频技术有限责任公司 Subtitle generator, subtitle broadcasting system and method
CN101388969A (en) * 2008-09-10 2009-03-18 新奥特(北京)视频技术有限公司 On-line playbill driven multiple channel subtitle editing and playing method
CN101472093A (en) * 2007-12-27 2009-07-01 新奥特(北京)视频技术有限公司 Method and system for implementing configurable replacement of television graphics context subtitling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296325A (en) * 2007-04-27 2008-10-29 新奥特硅谷视频技术有限责任公司 Subtitle generator, subtitle broadcasting system and method
CN101188697A (en) * 2007-11-19 2008-05-28 新奥特(北京)视频技术有限公司 A method for importing caption in manuscript in non editing status
CN101472093A (en) * 2007-12-27 2009-07-01 新奥特(北京)视频技术有限公司 Method and system for implementing configurable replacement of television graphics context subtitling
CN101388969A (en) * 2008-09-10 2009-03-18 新奥特(北京)视频技术有限公司 On-line playbill driven multiple channel subtitle editing and playing method

Also Published As

Publication number Publication date
CN102082922A (en) 2011-06-01

Similar Documents

Publication Publication Date Title
CN110442822B (en) Method, device, equipment and storage medium for displaying small program content
CN101122899B (en) Report generation method and device
CN102065234B (en) Caption producing and broadcasting method and system based on distributive type caption processing system
US20080155519A1 (en) Code translator
CN102662926B (en) The storage and inquire method of character library
US20140013211A1 (en) Content providing apparatus compatible with various terminal devices
CN103259919A (en) Method for overlapping scrolling subtitles on mobile phone real-time monitoring videos
CN111880813B (en) Method for realizing android card UI (user interface) and storage medium
CN109714627A (en) A kind of rendering method of comment information, device and equipment
CN102082922B (en) Method and device for updating subtitles in subtitle templates
CN102082934B (en) Caption object updating method and device
CN112988142A (en) Attribute table generation method and device
CN104572593A (en) Method, system and electronic device for processing letters
CN113535177A (en) Form generation method, device and equipment
CN104536947A (en) Layout document processing method and device
CN102103586A (en) Multi-language bidirectionally mixed-arranged caption edition system
CN102082928B (en) Method and device for associating title properties
CN102082933B (en) Subtitle making system
CN102082925B (en) A kind of fill method of subtitle template and device
KR20210071519A (en) Method and Apparatus for Constructing Library construction for standardization of drawing creation and drawing creation using the Library
CN114237795B (en) Terminal interface display method and device, electronic equipment and readable storage medium
CN102082929B (en) Method and device for indiscriminately applying caption template
CN102104743B (en) Method and device for editing multi-language hybrid arranged captions
US20080275903A1 (en) Flexible interface using scalable vector graphics with metalevel palette
CN101432735A (en) Method, device and system for managing structure data in a graphic scene

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

Granted publication date: 20150617

Termination date: 20161130

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