CN108563484A - A kind of lyric display method, device, equipment and storage medium - Google Patents
A kind of lyric display method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108563484A CN108563484A CN201810348601.XA CN201810348601A CN108563484A CN 108563484 A CN108563484 A CN 108563484A CN 201810348601 A CN201810348601 A CN 201810348601A CN 108563484 A CN108563484 A CN 108563484A
- Authority
- CN
- China
- Prior art keywords
- lyrics
- row
- width
- display window
- drawn
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The embodiment of the invention discloses a kind of lyric display method, device, equipment and storage mediums.This method includes:Obtain the lyrics information of song to be played and languages that the lyrics use;Determine that the lyrics draw direction according to the languages, wherein it is direction or from right to left direction from left to right that the lyrics, which draw direction,;The size that direction and lyrics display window are drawn according to the lyrics information, the lyrics, the lyrics are drawn in the lyrics display window.This programme enriches the display mode of the lyrics, disclosure satisfy that the reading habit from right to left using crowds such as Uighurs, disclosure satisfy that the demand of different crowd.
Description
Technical field
The present embodiments relate to song subtitling display technology field more particularly to a kind of lyric display method, device, set
Standby and storage medium.
Background technology
Current web technology is increasingly flourishing, and application program of mobile phone has covered the every field of people's Working Life.People
Living standard be gradually increased, the usage experience of application program is also gradually increased.
In music field, popular various music players are also that user oriented is experienced and given birth on the market, pass through and show song
Word can enrich listening for user and sing experience.But existing lyric display method is relatively simple, only considers making for most of crowds
With custom, the different crowd of use habit is had ignored.
Invention content
An embodiment of the present invention provides a kind of lyric display method, device, terminal and storage mediums, can enrich the lyrics
Display mode, so as to meet the needs of different crowd.
In a first aspect, an embodiment of the present invention provides a kind of lyric display methods, including:
Obtain the lyrics information of song to be played and languages that the lyrics use;
Determine that the lyrics draw direction according to the languages, wherein the lyrics draw direction for direction from left to right or by the right side
To left direction;
The size that direction and lyrics display window are drawn according to the lyrics information, the lyrics, it is aobvious in the lyrics
Show and draws the lyrics in window.
Second aspect, an embodiment of the present invention provides a kind of lyric display equipments, including:
Lyrics languages acquisition module, the languages that lyrics information and the lyrics for obtaining song to be played use;
Direction determining mould is drawn, for determining that the lyrics draw direction according to the languages, wherein the lyrics drafting side
To for direction from left to right or from right to left direction;
Lyrics drafting module, for according to the lyrics information, lyrics drafting direction and lyrics display window
Size draws the lyrics in the lyrics display window.
The third aspect, an embodiment of the present invention provides a kind of terminals, including:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing
Device realizes the lyric display method described in any embodiment of the embodiment of the present invention.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence realizes the lyric display method described in any embodiment of the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention determines that the lyrics are to carry out from left to right by the languages used according to the lyrics of song to be played
Drafting is still drawn from right to left, and the size according to lyrics information, lyrics drafting direction and lyrics display window is being sung
The lyrics are drawn in word display window, thus can not only draw the lyrics from left to right, can also draw the lyrics from right to left, are enriched
The display mode of the lyrics, disclosure satisfy that the reading habit from right to left using crowds such as Uighurs, disclosure satisfy that different people
The demand of group.
Description of the drawings
Fig. 1 is a kind of flow chart of the lyric display method provided in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the lyric display method provided in the embodiment of the present invention two;
Fig. 3 is a kind of structure chart of the lyric display equipment provided in the embodiment of the present invention four;
Fig. 4 is a kind of structure chart of the equipment provided in the embodiment of the present invention five.
Specific implementation mode
The embodiment of the present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this
The described specific embodiment in place is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.In addition also
It should be noted that illustrating only for ease of description, in attached drawing and the relevant part of the embodiment of the present invention rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the lyric display method provided in the embodiment of the present invention one, and the present embodiment is applicable to
When listening song the case where synchronously displaying lyrics, this method can be executed by lyric display equipment.With reference to figure 1, this method is specifically wrapped
Include following steps:
The languages that step 11, the lyrics information for obtaining song to be played and the lyrics use.
Wherein, lyrics information may include lyrics content and the temporal information of the lyrics.For every a line lyrics, the row lyrics
Temporal information include the row lyrics at the beginning of, the total play times of the row lyrics, and at the beginning of the row lyrics
It can be wrapped up with bracket with the total play time of the row lyrics;The temporal information of the row lyrics further includes in the row lyrics
It can be wrapped up with round bracket with residence time, the temporal information of each word at the beginning of each word, be convenient for subsequent solution
Analysis.In order to determine that user listens song to experience, the temporal information of the lyrics must be synchronous with playback of songs.
Wherein, the languages that the lyrics use include not only the majority languages such as Chinese, English, further include Uighur, Kazak
Equal dialects or rare foreign languages.
Step 12 determines that the lyrics draw direction according to the languages, wherein it is square from left to right that the lyrics, which draw direction,
To or direction from right to left.
Wherein, the lyrics draw the typographical sequences that direction refers to the lyrics.In the present embodiment, the lyrics are determined according to the languages
Before drawing direction, the incidence relation being also previously provided between each languages and lyrics drafting direction, the associated lyrics of languages are painted
Direction processed is identical as the usual reading direction of languages, such as it is square from left to right that the associated lyrics such as Chinese, English, which draw direction,
To it is from right to left that the associated lyrics such as Uighur, Arab, Thai, Kazak, which draw direction,.
Step 13, the size that direction and lyrics display window are drawn according to the lyrics information, the lyrics, described
The lyrics are drawn in lyrics display window.
Specifically, the size according to lyrics information and lyrics display window determines the lyrics in the position of lyrics display window,
And it draws direction according to the lyrics and carries out lyrics typesetting in lyrics display window.By taking a line includes the lyrics of 10 words as an example,
10 lyrics from front to back are indicated respectively with ascending digital 1-10, if it is from left to right, to sing that the lyrics, which draw direction,
Word is ranked sequentially from left to right;If it is that from right to left, the lyrics are ranked sequentially from right to left that the lyrics, which draw direction,.
The present embodiment determines that the lyrics are to be drawn from left to right by the languages used according to the lyrics of song to be played
Still it is drawn from right to left, and aobvious in the lyrics according to the size of lyrics information, lyrics drafting direction and lyrics display window
Show and draw the lyrics in window, thus can not only draw the lyrics from left to right, the lyrics can also be drawn from right to left, enrich song
The display mode of word disclosure satisfy that the reading habit from right to left using crowds such as Uighurs, disclosure satisfy that different crowd
Demand.
Embodiment two
The present embodiment on the basis of the above embodiment 1, provides a preferred embodiment of lyric display method,
The reading experience of the lyrics can further be promoted.Fig. 2 is a kind of flow of lyric display method provided by Embodiment 2 of the present invention
Figure, as shown in Fig. 2, this method includes step in detail below:
The languages that step 21, the lyrics information for obtaining song to be played and the lyrics use.
Wherein, lyrics information may include lyrics content and the temporal information of the lyrics.For every a line lyrics, the row lyrics
Temporal information include the row lyrics at the beginning of, each word in the total play time of the row lyrics and the row lyrics
Time started and residence time.
Step 22 determines that the lyrics draw direction according to the languages.
Wherein, it is direction or from right to left direction from left to right that the lyrics, which draw direction,.For the ease of statement, this implementation
It is illustrated so that lyrics drafting direction is from right to left as an example in example subsequent step.
Step 23, according to the size of the lyrics information and lyrics display window, determine the position in often row lyrics region.
Wherein, lyrics display window refers to the window for showing lyrics information, can the size of the window can unify
Definition, can also determine according to user terminal screen size.Therefore the coordinate of the right boundary of lyrics display window has determined.
Wherein, for every a line lyrics, which is rectangular area, and the position in the row lyrics region may include
The row lyrics region left margin and the first distance of lyrics display window left margin and the row lyrics region right margin and the lyrics
The second distance of display window right margin.The height in each row lyrics region it is identical can according to lyrics font high unity it is true
It is fixed.The height of lyrics font can be determined according to lyrics information.
Optionally, step 23 may include:
A, the width per a line lyrics is determined according to the lyrics information.
Wherein, for any row lyrics, the width of the row lyrics refers to the pixel wide shown needed for the row lyrics, the lyrics
The height of font refers to the pixels tall of the uniline lyrics.
B, the width according to width and the lyrics display window per a line lyrics, determines the left and right in the row lyrics region
Boundary position.
By taking any row lyrics as an example, the width with lyrics display window is width, and the width of the lyrics is ts, then the row
The distance between the left margin and lyrics display window left frame in lyrics region are shown with right margin and the lyrics in row lyrics region
The distance between the distance of window left frame is (width-ts)/2, and then can be with according to the frame coordinate of lyrics display window
Determine the right boundary coordinate in the row lyrics region.
Optionally, the width according to width and the lyrics display window per a line lyrics, determines the row lyrics region
Right boundary position before, further include:For every a line lyrics, if the width according to the row lyrics and the lyrics display window
The width of mouth determines that the row lyrics need branch, then according to the width of the row lyrics and the width of the lyrics display window to this
The row lyrics carry out branch's processing and obtain the newline lyrics.It should be noted that the raw line lyrics and the corresponding row lyrics of the newline lyrics
The method of determination in region is identical, repeats no more.
Specifically, for per a line lyrics, if the width of the row lyrics is more than the width of lyrics display window, row song
Word needs branch;Otherwise, which need not branch.Branch's process of any row lyrics may include:According to the row lyrics
Width and the width of the lyrics display window determine the new line number that the row lyrics are included.
Step 24 according to the every position in row lyrics region and draws direction, and being drawn in the often row lyrics region should
The row basis lyrics.
Specifically, due to every row lyrics region position and often the corresponding lyrics content in row lyrics region it has been determined that
For per a line lyrics if being from right to left if drafting direction, typesetting is carried out to the lyrics one by one from right to left;If drawing direction
To be then directed to from left to right per a line lyrics, then carrying out typesetting to the lyrics one by one from left to right can the drawing basics lyrics.
Step 25 draws highlighted display area according to the drafting direction in currently playing row, and in highlighted show area
The played lyrics of currently playing row are drawn in domain.
Can according to current play time and each row lyrics at the beginning of and total play time determine currently playing row.
The lyrics of the wherein highlighted display area for played in the highlighted currently playing row of displaying, it is non-with not played in currently playing row
The high bright part lyrics are contrasted, and the currently playing lyrics are read convenient for user.
Highlighted display area includes fixed boundary and movable boundary.Specifically, if it is the right side from right to left to draw direction
Boundary is fixed, and left margin is removable, and widened effect is gradually moved in highlighted display area presentation from right to left;If drawing direction is
From left to right, then left margin is fixed, and right margin is removable, and widened effect is gradually moved in highlighted display area presentation from left to right
Fruit.
Optionally, drawing highlighted display area in currently playing row according to the drafting direction may include:
A, the lyrics width that played in currently playing row is determined according to current play time and lyrics information.
Specifically, by current play time with per a line lyrics at the beginning of and match total time, it may be determined that
Currently playing row, so can according to each word in currently playing row at the beginning of and the residence time determine the played lyrics
Width.
B, according to the lyrics width, the width of currently playing row, current line lyrics region that played in currently playing row
Position and the lyrics draw direction and determine the right boundary for highlighting display area.
It is playedWidth with the lyrics width that played in currently playing row, the width of currently playing row is w, currently
For the boundary in row lyrics region is x at a distance from boundary between lyrics display window, if it is from right to left that the lyrics, which draw direction,
Direction, then it is (x+w) to highlight the distance between right margin and lyrics display window left margin of display area, highlights display area
Left margin and the distance between lyrics display window left margin be (x+w-playedWidth);If the lyrics draw direction be by
Left-to-right direction, then it is x to highlight the distance between left margin and lyrics display window left margin of display area, highlights show area
The distance between the right margin and lyrics display window left margin in domain are (x+playedWidth).
C, the width according to word to be played, the residence time of word to be played and the lyrics draw the highlighted displaying of direction controlling
The movable boundary in region is moved.
Specifically, determining the speed of word to be played according to the width of word to be played and the residence time of word to be played, control
The movable boundary of highlighted display area is drawn direction according to the lyrics and is moved with the speed of word to be played.
Illustratively, this method further includes:Currently playing row is moved to by lyrics display window by using ScrollView
At the center row position of mouth.
Specifically, the outer layer of lyrics display window is with ScrollView and upper bottom margin pandingY is arranged, it is each in this way
The row lyrics can slide at the center row position of lyrics display window.Specifically, the height y of currently playing row is got,
And offset offset=y-pandingY is calculated, by the mobile currently playing rows of smoothScrollTo (), ensure each
The highlighted lyrics are all at the center row position of lyrics display window.
Embodiment three
For the present embodiment on the basis of above-described embodiment one and embodiment two, provide lyric display method one is specific
Embodiment, in the present embodiment by taking lyrics drafting direction is from right to left as an example.This method includes step in detail below:
A), lyrics format defines, at the beginning of the starting position of the lyrics can provide the row lyrics and the row lyrics
Total time, the time can wrap up with bracket;Often each word is labeled with the time started in the row lyrics, when stop
Between, which can be wrapped up with round bracket, be convenient for subsequent parsing, and this time must be synchronous with playback of songs
, it just can guarantee user experience in this way.
B), system is initialized, obtains the lyrics of network interface, and read the lyrics, determines that the lyrics use by parameter preset
Languages, and according to languages determine the lyrics draw direction.
C), each lyrics per a line are parsed according to customized rules above, measures the pixel wide ts of the full line lyrics, surveyed
The pixels tall h for measuring lyrics font, measures the width s of each word, the residence time t of the lyrics, then every row can be calculated
The line width of the lyrics and each word width.
D), the coordinate of the lyrics calculates, and inside the lyrics setting to a self-defined window (view) of every row, obtains view
Width width, determine display window size according to user terminal screen size.If the too long line number c for calculating the lyrics of the lyrics,
The often capable width w after folds is calculated, the height height=c*h of view is set, and the data after folds are stored in memory
In.
E), the common lyrics are drawn, the coordinate and the lyrics after folds for having calculated the lyrics above, according to lyrics drafting side
To directly passing through canvas.drawText (), rendering text.
F), the lyrics are highlighted to calculate and draw, plain text has been depicted in (e) step, on this basis, calculate rect
(rectangular area) turns left increased method from the right side, according to s (width of word)=v*t equations, when according to reproduction time and the lyrics
Between calculate the lyrics width playedWidth played, move rectangle (rect rectangles) left and right value be (x+w-
PlayedWidth) changing with (x+w), removable rectangle, text is plotted in inside removable rectangle, so highlighted text
It can move from right to left.
G), the highlighted lyrics are shown in most intermediate, and outer layer ScrollView is rolled efficient and upper bottom margin is arranged
PandingY, such first lyrics and last lyrics can slide into centre, get currently playing view, obtain
The y-coordinate of the view is got, and calculates offset offset=y-pandingY, it is mobile by smoothScrollTo ()
View ensures every time the highlighted lyrics in centre.
H), it is set dynamically and highlights direction, setDirectionLTR () left side to the right, setDirectionRTL (), the right side
Side to the left side.
Lyrics method for drafting provided in this embodiment, compared to the common word for word lyrics, the more flexible processing of the present invention
The display of the lyrics, the highlighted direction of the lyrics can be practically applicable to display and the use habit of various crowds of various language, fill up
The gaps in market of single display pattern, covering surface is more extensive, and performance is more preferable, and experience is more preferable.
Example IV
Fig. 3 is a kind of structural schematic diagram for lyric display equipment that the embodiment of the present invention four provides, and the present embodiment is applicable
In utilizing the case where showing the lyrics, which can realize the lyric display method described in any embodiment of the embodiment of the present invention.It should
Device specifically includes:
Lyrics languages acquisition module 41, the language that lyrics information and the lyrics for obtaining song to be played use
Kind;
Direction determining mould 42 is drawn, for determining that the lyrics draw direction according to the languages, wherein the lyrics are drawn
Direction is direction or from right to left direction from left to right;
Lyrics drafting module 43, for drawing direction and lyrics display window according to the lyrics information, the lyrics
Size, draw the lyrics in the lyrics display window.
Optionally, the lyrics drafting module 43 includes:
Lyrics position units determine the often row lyrics for the size according to the lyrics information and lyrics display window
The position in region;
Basic lyrics unit is used for according to the often position in row lyrics region and draws direction, in the often row lyrics area
The row basis lyrics are drawn in domain;
Highlighted lyrics unit highlights display area for being drawn in currently playing row according to the drafting direction, and
The played lyrics of currently playing row are drawn in highlighted display area.
Optionally, the lyrics drafting module 43 further includes:
Branch's unit, in the width according to width and the lyrics display window per a line lyrics, determining the row
Before the right boundary position in lyrics region, for every a line lyrics, if being shown according to the width of the row lyrics and the lyrics
The width of window determines that the row lyrics need branch, then the width pair according to the width and the lyrics display window of the row lyrics
The row lyrics carry out branch's processing and obtain the newline lyrics.
Optionally, lyrics unit is highlighted to be specifically used for:
The lyrics width that played in currently playing row is determined according to current play time and lyrics information;
According to played in currently playing row lyrics width, the width of currently playing row, current line lyrics region position
It sets and the lyrics draws direction and determine the right boundary for highlighting display area;
According to the width of word to be played, the residence time of word to be played and the lyrics draw direction controlling and highlight show area
The movable boundary in domain is moved.
Optionally, further include:
Lyrics mobile module, for currently playing row to be moved in lyrics display window by using ScrollView
Between line position set place.
Embodiment five
Fig. 4 is a kind of structural schematic diagram for equipment that the embodiment of the present invention four provides, and Fig. 4 is shown suitable for being used for realizing this
The block diagram of the example devices of inventive embodiments embodiment.The equipment that Fig. 4 is shown is only an example, should not be to the present invention
The function and use scope of embodiment bring any restrictions.
The equipment 12 that Fig. 4 is shown is only an example, should not be brought to the function and use scope of the embodiment of the present invention
Any restrictions.
As shown in figure 4, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited
In:One or more processor or processing unit 16, system storage 28, connection different system component (including system is deposited
Reservoir 28 and processing unit 16) bus 18.
Bus 18 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12
The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable,
Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable
, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").Although not shown in fig 4, use can be provided
In the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to moving anonvolatile optical disk
The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can
To be connected with bus 18 by one or more data media interfaces.Memory 28 may include at least one program product,
There is the program product one group of (for example, at least one) program module, these program modules to be configured to perform the embodiment of the present invention
The function of each embodiment.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as memory 28
In, such program module 42 include but not limited to operating system, one or more application program, other program modules and
Program data may include the realization of network environment in each or certain combination in these examples.Program module 42 is usual
Execute the function and/or method in described embodiment of the embodiment of the present invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.),
Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with
Any equipment (such as network interface card, modem etc.) communication that one or more of the other computing device is communicated.It is this logical
Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or
The multiple networks of person (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as Fig. 4 institutes
Show, network adapter 20 is communicated by bus 18 with other modules of equipment 12.It, can be with it should be understood that although not shown in fig 4
Bonding apparatus 12 uses other hardware and/or software module, including but not limited to:Microcode, device driver, redundancy processing are single
Member, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, to perform various functions application and
Data processing, such as realize the lyric display method that the embodiment of the present invention is provided.
Embodiment six
The embodiment of the present invention five also provides a kind of computer readable storage medium, be stored thereon with computer program (or
For computer executable instructions), for executing a kind of lyric display method when which is executed by processor, this method includes:
Obtain the lyrics information of song to be played and languages that the lyrics use;
Determine that the lyrics draw direction according to the languages, wherein the lyrics draw direction for direction from left to right or by the right side
To left direction;
The size that direction and lyrics display window are drawn according to the lyrics information, the lyrics, it is aobvious in the lyrics
Show and draws the lyrics in window.
The arbitrary of one or more computer-readable media may be used in the computer storage media of the embodiment of the present invention
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or the arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool
There are one or the electrical connection of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium, which can be any, includes or the tangible medium of storage program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the embodiment of the present invention operation
Computer program code, described program design language include object oriented program language-such as Java,
Smalltalk, C++, further include conventional procedural programming language-such as " C " language or similar program design language
Speech.Program code can be executed fully, partly be executed on the user computer, as an independence on the user computer
Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or
It is executed in equipment.In situations involving remote computers, remote computer can pass through the network of any kind --- including
LAN (LAN) or wide area network (WAN)-are connected to subscriber computer, or, it may be connected to outer computer (such as using
ISP is connected by internet).
Note that above are only preferred embodiment and the institute's application technology principle of the embodiment of the present invention.Those skilled in the art
It will be appreciated that the embodiment of the present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art each
The protection domain that kind significantly changes, readjusts and substitutes without departing from the embodiment of the present invention.Therefore, although more than passing through
Embodiment is described in further detail the embodiment of the present invention, but the embodiment of the present invention is not limited only to the above implementation
Example can also include other more equivalent embodiments in the case where not departing from design of the embodiment of the present invention, and the present invention is implemented
The range of example is determined by scope of the appended claims.
Claims (10)
1. a kind of lyric display method, which is characterized in that including:
Obtain the lyrics information of song to be played and languages that the lyrics use;
Determine that the lyrics draw direction according to the languages, wherein lyrics drafting direction is for direction from left to right or from right to left
Direction;
The size that direction and lyrics display window are drawn according to the lyrics information, the lyrics, in the lyrics display window
The lyrics are drawn in mouthful.
2. according to the method described in claim 1, it is characterized in that, according to the lyrics information, the lyrics draw direction with
And the size of lyrics display window, the lyrics are drawn in the lyrics display window, including:
According to the lyrics information and the size of lyrics display window, the position in often row lyrics region is determined;
According to the often position in row lyrics region and direction is drawn, the row basis lyrics are drawn in the often row lyrics region;
Highlighted display area is drawn in currently playing row according to the drafting direction, and is drawn currently in highlighted display area
Play the played lyrics of row.
3. according to the method described in claim 2, it is characterized in that, ruler according to the lyrics information and lyrics display window
It is very little, determine the position in often row lyrics region, including:
The width per a line lyrics is determined according to the lyrics information;
According to the width of width and the lyrics display window per a line lyrics, the right boundary position in the row lyrics region is determined
It sets.
4. according to the method described in claim 3, it is characterized in that, the width according to every a line lyrics and the lyrics display window
Mouthful width, before the right boundary position for determining the row lyrics region, further include:
For every a line lyrics, if determining that the row lyrics need according to the width of the row lyrics and the width of the lyrics display window
Branch's processing then is carried out to the row lyrics according to the width of the row lyrics and the width of the lyrics display window and is obtained in lines
The newline lyrics.
5. according to the method described in claim 2, it is characterized in that, height is drawn in currently playing row according to the drafting direction
Bright display area, including:
The lyrics width that played in currently playing row is determined according to current play time and lyrics information;
According to played in currently playing row lyrics width, the width of currently playing row, current line lyrics region position with
And the lyrics draw direction and determine the right boundary for highlighting display area;
According to the width of word to be played, the residence time of word to be played and the lyrics draw direction controlling and highlight display area
Movable boundary is moved.
6. according to the method described in claim 2, it is characterized in that, further including:
Currently playing row is moved at the center row position of lyrics display window by using ScrollView.
7. a kind of lyric display equipment, which is characterized in that including:
Lyrics languages acquisition module, the languages that lyrics information and the lyrics for obtaining song to be played use;
Direction determining mould is drawn, for determining that the lyrics draw direction according to the languages, wherein lyrics drafting direction is
Direction or from right to left direction from left to right;
Lyrics drafting module, the size for drawing direction and lyrics display window according to the lyrics information, the lyrics,
The lyrics are drawn in the lyrics display window.
8. device according to claim 7, which is characterized in that the lyrics drafting module includes:
Lyrics position units determine often row lyrics region for the size according to the lyrics information and lyrics display window
Position;
Basic lyrics unit is used for according to the often position in row lyrics region and draws direction, in the often row lyrics region
Draw the row basis lyrics;
Highlighted lyrics unit, for drawing highlighted display area in currently playing row according to the drafting direction, and highlighted
The played lyrics of currently playing row are drawn in display area.
9. a kind of equipment, which is characterized in that including:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real
Now such as lyric display method according to any one of claims 1 to 6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Such as lyric display method according to any one of claims 1 to 6 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810348601.XA CN108563484A (en) | 2018-04-18 | 2018-04-18 | A kind of lyric display method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810348601.XA CN108563484A (en) | 2018-04-18 | 2018-04-18 | A kind of lyric display method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108563484A true CN108563484A (en) | 2018-09-21 |
Family
ID=63535415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810348601.XA Pending CN108563484A (en) | 2018-04-18 | 2018-04-18 | A kind of lyric display method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108563484A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109977130A (en) * | 2019-03-29 | 2019-07-05 | 珠海豹好玩科技有限公司 | A kind of hot word methods of exhibiting and system |
CN113297824A (en) * | 2021-05-11 | 2021-08-24 | 北京字跳网络技术有限公司 | Text display method and device, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010037720A1 (en) * | 2000-04-25 | 2001-11-08 | Tomoyuki Funaki | Aid for composing words of song |
CN1819015A (en) * | 2005-02-07 | 2006-08-16 | 乐金电子(惠州)有限公司 | Caraok device by multi-language supporting and method thereof |
CN101083675A (en) * | 2007-06-12 | 2007-12-05 | 无敌科技(西安)有限公司 | Dynamic display information interface for portable electronic device and its reminding method |
CN101840727A (en) * | 2010-04-28 | 2010-09-22 | 深圳市五巨科技有限公司 | Mobile terminal music playing method and device for synchronously displaying lyrics |
CN101867656A (en) * | 2010-06-23 | 2010-10-20 | 深圳市五巨科技有限公司 | Song playing method and device for mobile terminal |
CN102436838A (en) * | 2011-08-30 | 2012-05-02 | 北京瑞信在线系统技术有限公司 | Lyric displaying method and device executed by computer |
CN102820027A (en) * | 2012-06-21 | 2012-12-12 | 福建星网视易信息系统有限公司 | Accompaniment subtitle display system and method |
JP2013073091A (en) * | 2011-09-28 | 2013-04-22 | Brother Ind Ltd | Lyric telop display device and program |
CN106653071A (en) * | 2016-12-30 | 2017-05-10 | 腾讯音乐娱乐(深圳)有限公司 | Lyric display method and apparatus |
CN107221348A (en) * | 2017-05-26 | 2017-09-29 | 北京酷我科技有限公司 | A kind of lyric display method |
-
2018
- 2018-04-18 CN CN201810348601.XA patent/CN108563484A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010037720A1 (en) * | 2000-04-25 | 2001-11-08 | Tomoyuki Funaki | Aid for composing words of song |
CN1819015A (en) * | 2005-02-07 | 2006-08-16 | 乐金电子(惠州)有限公司 | Caraok device by multi-language supporting and method thereof |
CN101083675A (en) * | 2007-06-12 | 2007-12-05 | 无敌科技(西安)有限公司 | Dynamic display information interface for portable electronic device and its reminding method |
CN101840727A (en) * | 2010-04-28 | 2010-09-22 | 深圳市五巨科技有限公司 | Mobile terminal music playing method and device for synchronously displaying lyrics |
CN101867656A (en) * | 2010-06-23 | 2010-10-20 | 深圳市五巨科技有限公司 | Song playing method and device for mobile terminal |
CN102436838A (en) * | 2011-08-30 | 2012-05-02 | 北京瑞信在线系统技术有限公司 | Lyric displaying method and device executed by computer |
JP2013073091A (en) * | 2011-09-28 | 2013-04-22 | Brother Ind Ltd | Lyric telop display device and program |
CN102820027A (en) * | 2012-06-21 | 2012-12-12 | 福建星网视易信息系统有限公司 | Accompaniment subtitle display system and method |
CN106653071A (en) * | 2016-12-30 | 2017-05-10 | 腾讯音乐娱乐(深圳)有限公司 | Lyric display method and apparatus |
CN107221348A (en) * | 2017-05-26 | 2017-09-29 | 北京酷我科技有限公司 | A kind of lyric display method |
Non-Patent Citations (1)
Title |
---|
马文刚等: "《PC时尚总动员》", 30 November 2001, 电脑报社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109977130A (en) * | 2019-03-29 | 2019-07-05 | 珠海豹好玩科技有限公司 | A kind of hot word methods of exhibiting and system |
CN113297824A (en) * | 2021-05-11 | 2021-08-24 | 北京字跳网络技术有限公司 | Text display method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8271872B2 (en) | Composite audio waveforms with precision alignment guides | |
EP4336846A1 (en) | Audio sharing method and apparatus, device, and medium | |
CN109120950A (en) | Video splicing method and device, terminal equipment and storage medium | |
CN109032470A (en) | Screenshot method, device, terminal and computer readable storage medium | |
CN108109636B (en) | Text-based voice playing method and device, computer equipment and storage medium | |
CN110321054A (en) | Writing brush person's handwriting method for drafting, device, equipment and readable storage medium storing program for executing | |
US20220406311A1 (en) | Audio information processing method, apparatus, electronic device and storage medium | |
CN108012173A (en) | A kind of content identification method, device, equipment and computer-readable storage medium | |
CN112017650B (en) | Voice control method and device of electronic equipment, computer equipment and storage medium | |
CN110309475A (en) | A kind of webpage representation method, apparatus, terminal device and storage medium | |
CN108845741A (en) | A kind of generation method, client, terminal and the storage medium of AR expression | |
CN113778419B (en) | Method and device for generating multimedia data, readable medium and electronic equipment | |
CN114023301A (en) | Audio editing method, electronic device and storage medium | |
CN108762715A (en) | Electronic equipment audio control method, device and equipment | |
CN108665764A (en) | A kind of method and apparatus read by arrangement for reading | |
CN108563484A (en) | A kind of lyric display method, device, equipment and storage medium | |
US20240007718A1 (en) | Multimedia browsing method and apparatus, device and mediuim | |
CN108491178A (en) | Information browsing method, browser and server | |
CN108153904A (en) | Language material collection method, device and computer equipment | |
CN110087122A (en) | For handling system, the method and apparatus of information | |
CN111726696B (en) | Application method, device and equipment of sound barrage and readable storage medium | |
KR20200138643A (en) | Methods and apparatuses for controlling voice of electronic devices, computer device and storage media | |
CN115619897A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN114495941A (en) | Method and device for converting single-channel audio into text, electronic equipment and storage medium | |
CN112289298A (en) | Processing method and device for synthesized voice, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180921 |
|
RJ01 | Rejection of invention patent application after publication |