CN104598497A - Method and device for forming Chinese characters in electronic device - Google Patents

Method and device for forming Chinese characters in electronic device Download PDF

Info

Publication number
CN104598497A
CN104598497A CN201310539816.7A CN201310539816A CN104598497A CN 104598497 A CN104598497 A CN 104598497A CN 201310539816 A CN201310539816 A CN 201310539816A CN 104598497 A CN104598497 A CN 104598497A
Authority
CN
China
Prior art keywords
block
chinese character
call number
information
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310539816.7A
Other languages
Chinese (zh)
Inventor
郑晟
郭禹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nokia Technologies Oy
Original Assignee
Nokia Oyj
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 Nokia Oyj filed Critical Nokia Oyj
Priority to CN201310539816.7A priority Critical patent/CN104598497A/en
Publication of CN104598497A publication Critical patent/CN104598497A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The implementation mode of the invention provides a method for forming Chinese characters in an electronic device and a device for forming the Chinese characters. In one implementation mode, the method for forming the Chinese characters in the electronic device comprises the steps of receiving codes of Chinese characters to be formed, obtaining combined information of the Chinese characters and respective index numbers of one or more blocks of the Chinese characters from a word stock memorizer based on the codes, obtaining respective dot matrix information of one or more blocks from one of a block memorizer and the word stock memorizer according to the index numbers, and forming the Chinese characters based on the combined information and the dot matrix information. Due to the fact that the Chinese characters are divided into the blocks, multiple Chinese characters have the same blocks, accordingly the repeated utilization rate of cached blocks is higher, the dot matrix information of the required blocks can be obtained from the block memorizer at higher probability when the Chinese characters are formed, and convenience and speed of the Chinese charactering forming process are improved.

Description

For forming the method and apparatus of Chinese character in the electronic device
Technical field
The embodiments of the present invention relate to character framing, and more specifically, relate to the method and apparatus for forming Chinese character in the electronic device.
Background technology
In order to the display of word or the convenience of printing, usually can set up character library storer in advance, wherein store the lattice information of a large amount of specific character.When display or printing character, the lattice information of the character that can store according to character library forms word.Wherein lattice information is the dot matrix pictorial information of a character, by playing up the lattice information of character, can show or print this character.
Chinese character has unique feature, and the word be different from the family of languages such as Romance or Hebrew's family of languages can with limited character representation, and Chinese character has characters different in a large number.This feature is that the storage of Chinese character and formation bring a difficult problem.
The character library storer of prior art, when storing Chinese character, is generally Chinese character allocation of codes to be stored; And store lattice information and its code of this whole Chinese character.In order to form Chinese character, first need to obtain the code waiting to form Chinese character; According to the lattice information of this code to this Chinese character of character library device request; Receive the lattice information of the Chinese character that character library equipment returns; Lattice information according to Chinese character can form Chinese character.
Whole Chinese character stores when storing by said method, and because the quantity of Chinese character is very huge, required storage space is also very large.Further, be also that each Chinese character is lower by the probability used, and substantially Chinese character cannot be buffered in local caches, because the probability that the Chinese character of buffer memory is used again is very low because the quantity of Chinese character is too large.Thus when forming Chinese character, all needing to character library memory requests Chinese character to be formed at every turn, making the process forming Chinese character comparatively slow and complicated.
Summary of the invention
For the technical matters existed in prior art, numerous embodiments of the present invention provides the method for forming Chinese character in the electronic device and the device for forming Chinese character.
According to a first aspect of the invention, providing a kind of method for forming Chinese character in the electronic device, comprising: receive the code waiting to form Chinese character.The method also comprises based on code, obtains the respective call number of the combined information of Chinese character and one or more blocks of Chinese character from character library storer.The method also comprises according to call number, obtains the respective lattice information of one or more block from least one block buffer and character library storer; And based on combined information and lattice array information structure Chinese character.
According to Alternate embodiments of the present invention, wherein according to call number, the respective lattice information obtaining one or more block from least one block buffer and character library storer comprises: each call number mated with the call number of buffer memory in block buffer; If coupling, then obtain the lattice information of the block corresponding to call number of coupling from block buffer; If do not mated, then obtain the lattice information of block corresponding to the call number of not mating from character library storer.
According to Alternate embodiments of the present invention, the lattice information wherein obtaining block corresponding to the call number of not mating from character library storer comprises: if character library storer stores is the lattice information of block, then obtain the lattice information of block corresponding to the call number of not mating from character library storer; And if character library storer stores is the Vector Message of block, then obtain the Vector Message of block corresponding to the call number of not mating from character library storer; And rasterizing is carried out to obtain the lattice information of block corresponding to the call number of not mating to the Vector Message of block corresponding to the call number of not mating.
According to Alternate embodiments of the present invention, in block buffer the following block of buffer memory lattice information in any one: for forming the lattice information of frequency higher than the block of predetermined threshold of Chinese character; Or recently by the lattice information of the block of predetermined quantity used.
According to Alternate embodiments of the present invention, wherein combined information comprise one or more block form Chinese character time display size and display position; Wherein comprise based on combined information and lattice array information structure Chinese character: the lattice information adjusting each block according to the display size of block each in combined information; And combine the lattice information of the block after each adjustment according to the display position of block each in combined information, to form the lattice information of Chinese character.
According to Alternate embodiments of the present invention, the method comprises further: the lattice information of the block that the call number of not mating according to predetermined cache rule cache is corresponding and the call number of not mating.
According to Alternate embodiments of the present invention, wherein block comprises or their combination in the radical of Chinese character, radical, radicals by which characters are arranged in traditional Chinese dictionaries.
According to Alternate embodiments of the present invention, the method comprises further: according to the font number of the Chinese character received, and selects a corresponding character library storer as character library storer from multiple character library storer.
According to a second aspect of the invention, additionally provide a kind of device for forming Chinese character, this device comprises receiver module, is arranged to the code receiving and wait to form Chinese character.This device also comprises acquisition module, is arranged to based on code, obtains the respective call number of the combined information of Chinese character and one or more blocks of Chinese character from character library storer.This device also comprises acquisition module, is arranged to according to call number, obtains the respective lattice information of one or more block from least one block buffer and character library storer; And composite module, be arranged to based on combined information and lattice array information structure Chinese character.
According to Alternate embodiments of the present invention, wherein obtaining means comprises: matching unit, is arranged to and each call number is mated with the call number of buffer memory in block buffer; Acquiring unit, for obtaining the lattice information of the block corresponding to call number of coupling from block buffer when mating; Obtain unit, for obtaining the lattice information of block corresponding to the call number of not mating from character library storer when not mating.
According to Alternate embodiments of the present invention, wherein obtain unit and be arranged to: character library storer store be the lattice information of block time, obtain the lattice information of block corresponding to the call number of not mating from character library storer; And character library storer store be the Vector Message of block time, obtain the Vector Message of block corresponding to the call number of not mating from character library storer; And rasterizing is carried out to obtain the lattice information of block corresponding to the call number of not mating to the Vector Message of block corresponding to the call number of not mating.
According to Alternate embodiments of the present invention, in block buffer the following block of buffer memory lattice information in any one: for forming the lattice information of frequency higher than the block of predetermined threshold of Chinese character; Or recently by the lattice information of the block of predetermined quantity used.
According to Alternate embodiments of the present invention, wherein combined information comprise one or more block form Chinese character time display size and display position; Wherein composite module comprises: adjustment unit, is arranged to the lattice information adjusting each block according to the display size of block each in combined information; And assembled unit, be arranged to the lattice information combining the block after each adjustment according to the display position of block each in combined information, to form the lattice information of Chinese character.
According to Alternate embodiments of the present invention, this device comprises further: cache module, the lattice information being arranged to block corresponding to the call number of not mating according to predetermined cache rule cache and the call number of not mating.
According to Alternate embodiments of the present invention, wherein block comprises or their combination in the radical of Chinese character, radical, radicals by which characters are arranged in traditional Chinese dictionaries.
According to Alternate embodiments of the present invention, this device comprises further: select module, is arranged to the font number according to the Chinese character received, and selects a corresponding character library storer as character library storer from multiple character library storer.
According to a third aspect of the invention we, additionally provide a kind of computer-readable recording medium of stored program instruction, programmed instruction makes at least one processor perform as either method above.
According to a forth aspect of the invention, additionally providing the device for forming Chinese character, comprising: at least one processor; And comprising at least one storer of computer program code, at least one storer wherein said and described computer program code are configured for and utilize at least one processor described that described device is performed as either method above.
Adopt the technical scheme of each embodiment of the present invention, owing to Chinese character being divided into block and multiple Chinese character can have identical block, thus make the recycling rate of waterused of block buffer memory higher.When forming Chinese character, the lattice information of required block can be got with larger probability from block buffer, improve convenience and the speed of the process forming Chinese character, thus be convenient in the handheld device that resource is relatively limited, show, print, transmit or carry out other process more quickly to Chinese character.
Accompanying drawing explanation
By reference to accompanying drawing reading detailed description hereafter, above-mentioned and other objects of embodiment of the present invention, feature and advantage will become easy to understand.In the accompanying drawings, show some embodiments of the present invention by way of example, and not by way of limitation, wherein:
Fig. 1 shows the example electronic device be suitable for for realizing embodiment of the present invention;
Fig. 2 shows the process flow diagram of the method for forming Chinese character in the electronic device according to an embodiment of the invention;
Fig. 3 shows the interaction figure in formation Chinese character process between multiple device according to an embodiment of the invention; And
Fig. 4 shows the block diagram of the device for forming Chinese character according to an embodiment of the invention.
In various figures, identical or corresponding label represents identical or corresponding part.
Embodiment
Below with reference to accompanying drawings preferred implementation of the present disclosure is described in more detail.Although show preferred implementation of the present disclosure in accompanying drawing, but should be appreciated that, the disclosure can be realized in a variety of manners and not should limit by the embodiment of setting forth here.On the contrary, provide these embodiments to be to make the disclosure more thorough and complete, and the scope of the present disclosure intactly can be conveyed to those skilled in the art.
Person of ordinary skill in the field knows, the present invention can be implemented as system, method or computer program.Therefore, the disclosure can be implemented as following form, that is: can be completely hardware, also can be software (comprising firmware, resident software, microcode etc.) completely, can also be the form that hardware and software combines, be commonly referred to as " circuit ", " module " or " system " herein.In addition, in some embodiments, the present invention can also be embodied as the form of the computer program in one or more computer-readable medium, comprises computer-readable program code in this computer-readable medium.
The combination in any of one or more computer-readable medium can be adopted.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium such as may be-but not limited to-the system of electricity, magnetic, optical, electrical magnetic, infrared ray or semiconductor, device or device, or combination above arbitrarily.The example more specifically (non exhaustive list) of computer-readable recording medium comprises: the combination with the electrical connection of one or more wire, portable computer diskette, hard disk, random access memory (RAM), ROM (read-only memory) (ROM), erasable type programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact disk ROM (read-only memory) (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate.In this document, computer-readable recording medium can be any comprising or stored program tangible medium, and this program can be used by instruction execution system, device or device or be combined with it.
The data-signal that computer-readable signal media can comprise in a base band or propagate as a carrier wave part, wherein carries computer-readable program code.The data-signal of this propagation can adopt various ways, comprises the combination of---but being not limited to---electromagnetic signal, light signal or above-mentioned any appropriate.Computer-readable signal media can also be any computer-readable medium beyond computer-readable recording medium, and this computer-readable medium can send, propagates or transmit the program for being used by instruction execution system, device or device or be combined with it.
The program code that computer-readable medium comprises can with any suitable medium transmission, comprises that---but being not limited to---is wireless, electric wire, optical cable, RF etc., or the combination of above-mentioned any appropriate.
The computer program code operated for performing the present invention can be write with one or more programming languages or its combination, described programming language comprises object oriented program language-such as Java, Smalltalk, C++, also comprises conventional process type programming language-such as " C " language or similar programming language.Program code can fully perform on the user computer, partly perform on the user computer, as one, independently software package performs, partly part performs on the remote computer or performs on remote computer or server completely on the user computer.In the situation relating to remote computer, remote computer can by the network of any kind---comprise LAN (Local Area Network) (LAN) or wide area network (WAN)-be connected to subscriber computer, or, outer computer (such as utilizing ISP to pass through Internet connection) can be connected to.
Below with reference to the process flow diagram of the method for embodiment of the present invention, device (system) and computer program and/or block diagram, the present invention is described.Should be appreciated that the combination of each square frame in each square frame of process flow diagram and/or block diagram and process flow diagram and/or block diagram, can be realized by computer program instructions.These computer program instructions can be supplied to the processor of multi-purpose computer, special purpose computer or other programmable data treating apparatus, thus produce a kind of machine, these computer program instructions are performed by computing machine or other programmable data treating apparatus, create the device of the function/operation specified in the square frame in realization flow figure and/or block diagram.
Also can these computer program instructions be stored in the computer-readable medium that computing machine or other programmable data treating apparatus can be made to work in a specific way, like this, the instruction be stored in computer-readable medium just produces the manufacture of the command device of the function/operation specified in a square frame comprising in realization flow figure and/or block diagram.
Also can computer program instructions be loaded on computing machine, other programmable data treating apparatus or other equipment, make to perform sequence of operations step on computing machine, other programmable data treating apparatus or other equipment, to produce computer implemented process, thus make the instruction performed on the computer or other programmable apparatus can provide the process of the function/operation specified in the square frame in realization flow figure and/or block diagram.
Fig. 1 shows the block diagram of the example electronic device 12 be suitable for for realizing embodiment of the present invention.The electronic equipment 12 of Fig. 1 display is only an example, should not bring any restriction to the function of embodiment of the present invention and usable range.
As shown in Figure 1, electronic equipment 12 shows with the form of universal computing device.Electronic equipment can include but not limited to: mobile phone, notebook computer, desk-top computer, portable computer, personal digital assistant (PDA), panel computer etc.The assembly of electronic equipment 12 can include but not limited to: one or more processor or processing unit 16, connects the bus 18 of different system assembly (comprising system storage 28 and processing unit 16).
Bus 18 represent in a few class bus structure one or more, comprise memory bus or Memory Controller, peripheral bus, AGP, processor or use any bus-structured local bus in multiple bus structure.For example, these architectures include but not limited to industry standard architecture (ISA) bus, MCA (MAC) bus, enhancement mode isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Electronic equipment 12 typically comprises various computing systems computer-readable recording medium.These media can be any usable mediums can accessed by electronic equipment 12, comprise volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can comprise the computer system-readable medium of volatile memory form, such as storer 30 and/or buffer 32.Electronic equipment 12 may further include that other are removable/immovable, volatile/non-volatile computer system storage medium.Although not shown in Fig. 1, the disc driver that removable non-volatile magnetic disk (such as " floppy disk ") is read and write can be provided for, and to the CD drive that removable anonvolatile optical disk (such as CD-ROM, DVD-ROM or other light media) is read and write.In these cases, each driver can be connected with bus 18 by one or more data media interfaces.Storer 28 can comprise at least one program product, and this program product has one group of (such as at least one) program module, and these program modules are configured to the function performing each embodiment of the present invention.
There is the program/utility 40 of one group of (at least one) program module 42, can be stored in such as storer 28, such program module 42 comprises---but being not limited to---operating system, one or more application program, other program modules and routine data, may comprise the realization of network environment in each or certain combination in these examples.Function in program module 42 embodiment that execution is described in the invention usually and/or method.
As required, electronic equipment 12 also can communicate with one or more external unit (such as display device 24, memory device 14 etc.), also can make with one or more devices communicating that user can be mutual with this electronic equipment 12, and/or communicate with any equipment (such as network interface card, modulator-demodular unit etc.) making this electronic equipment 12 can carry out communicating with other computing equipments one or more.This communication can be passed through I/O (I/O) interface 22 and carry out.Further, electronic equipment 12 can also such as, be communicated by network adapter 20 and one or more network (such as LAN (Local Area Network) (LAN), wide area network (WAN) and/or public network, the Internet).As shown in the figure, network adapter 20 is by bus 18 other module communications with electronic equipment 12.Be understood that, although not shown, other hardware and/or software module can be used in conjunction with electronic equipment 12, include but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc.
It should be noted that in Fig. 1 the block diagram that show schematically only and can realize electronic equipment 12 of the present invention, those skilled in the art can also adopt other portable electric appts to realize each embodiment of the present invention.
Fig. 2 shows the process flow diagram of the method 200 for forming Chinese character according to an embodiment of the invention.It should be understood that each step recorded in method 200 can perform according to different orders, and/or executed in parallel.Method 200 can also comprise additional step and/or omit the step shown in performing.Scope of the present invention is unrestricted in this regard.Can adopt the method 200 of Fig. 2 in the device for forming Chinese character, this device can be independent computing equipment, also can be integrated on other equipment.
After method 200 starts, in step 201, the code waiting to form Chinese character is received.Wherein, according to an embodiment of the invention, other devices can be received, such as play up the Chinese character formation request of (render) service unit transmission, in this request, carry the code waiting to form Chinese character.The code of Chinese character can be the discernible character code of computing machine of current specification, such as unicode (unicode), in addition, the code of Chinese character can also be other identifier, only needs the code that different Chinese characters can be made a distinction.
In step 202., for forming the device of Chinese character based on this code, obtain the respective call number of the combined information of Chinese character and one or more blocks of Chinese character from character library storer.
Wherein, according to an embodiment of the invention, character library storer can be the external unit of the device for forming Chinese character, by communication interface (such as, I/O interface) be interconnected for the device forming Chinese character.In other embodiment, character library storer also can be on a single device integrated with the device for forming Chinese character.
Character library storer normally pre-sets, different from the character library storer of the lattice information wherein storing whole Chinese character, and the character library storer in the present invention, according to the unique construction of Chinese character, stores lattice information or the Vector Message of the block forming Chinese character.Wherein, the lattice information of block be this block with the information of graphic form, comprise the size etc. of each numerical point and picture in this picture.Lattice information according to block can show, prints or export this block, or carries out other process according to the lattice information of block.The Vector Message of block can obtain the lattice information of block through rasterizing process.
Character library storer of the present invention has obvious advantage.Because for each Chinese character, all can be divided into one or more block, the block of division can be one or any combination in the radical of this Chinese character, radical, radicals by which characters are arranged in traditional Chinese dictionaries; Further, because a lot of Chinese character will comprise identical block, for the block that multiple Chinese character is total, in character library storer, the lattice information storing their common blocks is also only needed.Thus, by storing by this way, saved storage space greatly.
Such as, for Chinese character " ripple ", " Rui " and " skin " two blocks can be divided into.Thus the character library storer of embodiments of the present invention is when storing Chinese character " ripple " word, storage will be " Rui " block and the lattice information of " skin " block.And other being comprised to the Chinese character of radical " Rui ", such as " great waves ", " river ", " stream ", " sea ", " lake " etc., the block " Rui " that these Chinese characters mark off will no longer need to store, but store the other block do not stored.
When Chinese character according to block divide store after, according to the embodiment of the present invention, in order to each block can be indexed, can also be each block distribute correspondence call number.The call number of block can be not limited to numeral, character or their combination etc., as long as can index corresponding block by call number.
According to the further embodiment of the present invention, in order to Chinese character can be constructed by the block stored, also need the combined information storing each Chinese character in character library storer, this combined information instruction form Chinese character one or more blocks form this Chinese character time display size and display position.Such as, in the character library storer of lattice information storing block, for the combined information of Chinese character " ripple ", comprise respective width when forming " ripple " of block " Rui " and " skin " and height and display position (such as, the starting point coordinate of each block in Chinese character " ripple ") separately.
According to the embodiment of the present invention, the quantity of the Chinese character stored in this character library storer can be different.Such as, only can store a conventional such as 2500-3500 Chinese character, all Chinese characters that current dictionary is included can also be stored.
Due to the different fonts for Chinese character, the information when forming Chinese character is different, thus arranges the character library storer corresponding from different fonts.Such as, for font " Song typeface ", " regular script ", " lishu ", corresponding Song typeface storehouse memorizer, regular script character library storer and lishu character library storer are set respectively.
On the basis with such character library storer, when manner of execution 200, in step 202., the device for forming Chinese character can also comprise the font number according to the Chinese character received, from multiple character library storer, select a corresponding character library storer.This font is number for identifying the font of Chinese character.According to an embodiment of the invention, the font of Chinese character number can send to device for forming Chinese character by playing up service unit together with the code of Chinese character.According to other embodiment, the font of Chinese character number can send to separately device for forming Chinese character by playing up service unit.
According to an embodiment of the invention, after selected character library storer, Chinese character information request can be sent to block storer for the device forming Chinese character, in this request, carry the code waiting to form Chinese character.Character library storer is according to after the code carried in the request received, identify the one or more blocks waiting to form Chinese character and comprise according to this code, thus the combined information of this Chinese character self stored and the respective call number of one or more blocks of this Chinese character are sent to the device for forming Chinese character.
Such as, after device for forming Chinese character receives the code 0x6CE2 waiting to form Chinese character " ripple ", the code 0x6CE2 of Chinese character " ripple " is sent to character library storer, two blocks " Rui " that character library storer comprises according to this marking code Chinese character " ripple " of this code identification and Chinese character " ripple " and " skin ", thus by the combined information of Chinese character " ripple ", and the call number Index2 of the call number Index1 of " Rui " and " skin " sends to the device for forming Chinese character, thus get the combined information of Chinese character " ripple " and the call number of block " Rui " and " skin ".
Next, method 200 advances to step S203.In step S203, according to call number, obtain the respective lattice information of one or more block from least one block buffer and character library storer.
According to the embodiment of the present invention, device for forming Chinese character has block buffer, for the lattice information of the block of buffer some amount, and the lattice information of block for the ease of follow-up index institute buffer memory, the call number of the block of institute's buffer memory can also be stored.
Because the lattice information that obtains block from block buffer is simpler than operation the lattice information obtaining block from character library storer and speed is faster, thus according to the embodiment of the present invention, expect in block buffer, first search the lattice information whether being cached with required block, if be not cached with the lattice information of required block in block buffer, then to the lattice information of this block of character library memory requests.According to wherein a kind of implementation, each call number is mated with the call number of buffer memory in block buffer; If coupling, then obtain the lattice information of the block corresponding to call number of coupling from block buffer; If do not mated, then obtain the lattice information of block corresponding to the call number of not mating from character library storer.
Because block in Chinese character can have higher recurrence probability, such as block " Rui ", block " Ren ", block " Rolling " etc. are all the blocks that may be used for forming many Chinese characters.Therefore, the lattice information of buffer memory block in block buffer, its recycling rate of waterused is higher, thus can improve the speed of the lattice information of the block obtaining Chinese character well, and then improves the speed of follow-up formation Chinese character.
According to the further embodiment of the present invention, in block buffer, the lattice information of buffer memory block can be: for forming the lattice information of frequency higher than the block of predetermined threshold of Chinese character; Or recently by the lattice information of the block of predetermined quantity used.If spatial cache is comparatively limited, supposing can the N number of block information of buffer memory, the lattice information buffer memory of N number of block that then can be the highest by the frequency being used for forming Chinese character in both the buffers, or can by recently by buffer in the lattice information buffer memory of N number of block that uses.The embodiment other according to the present invention, can also be arranged the lattice information of the block needing buffer memory voluntarily by user according to the use habit of user; Or by the use habit of counting user, targetedly for each user, the lattice information of the block that this user the most often uses is set.In addition, can also according to the lattice information of other standards buffer memory block in both the buffers, embodiments of the present invention do not limit this.
But the spatial cache of usual buffer is comparatively limited, cannot the block of all Chinese characters of buffer memory.Thus when mating the call number of block, if call number cannot mate the call number of institute's buffer memory in buffer, then the lattice information obtaining block corresponding to the call number of not mating from character library storer is needed.Particularly, block request can be sent to character library storer, in this request, carry the call number of not mating, to obtain the lattice information of block corresponding to the call number of not mating from character library storer.According to an embodiment of the invention, the lattice information obtaining block corresponding to the call number of not mating from character library storer comprises: if character library storer stores is the lattice information of block, then obtain the lattice information of block corresponding to the call number of not mating from character library storer.If what character library storer stored is the Vector Message of block, then obtain the Vector Message of block corresponding to the call number of not mating from character library storer; And rasterizing is carried out to obtain the lattice information of block corresponding to the call number of not mating to the Vector Message of block corresponding to the call number of not mating.
Still for Chinese character " ripple ", after the call number Index1 of block " Rui " getting Chinese character " ripple " and the call number Index2 of block " skin ", call number Index1 and Index2 is mated with the call number of buffer memory in block buffer; Wherein, call number Index1 mates, then obtain the lattice information of block " Rui " corresponding to the call number Index1 of institute's buffer memory in block buffer; And call number Index2 does not mate, then the call number Index2 do not mated is sent to character library storer, and receive the lattice information of block " skin " corresponding to call number Index2 that character library storer returns.
Due to when forming Chinese character, it is desirable that the lattice information of each block of this Chinese character, the Vector Message of the block that the call number that what if character library storer returned is does not mate is corresponding, then need to carry out rasterizing process to this Vector Message, so that the lattice information of block corresponding to the call number of not mated.Wherein the Vector Message grid of block is turned to the lattice information of block, can adopt the scheme provided in prior art, the present invention does not repeat at this.
In addition, according to another embodiment of the present invention, if what character library storer stored is the Vector Message of block, then can carry out rasterizing by the Vector Message of character library storer to block corresponding to the call number of not mating, thus the lattice information of block corresponding for the call number of not mating obtained after rasterizing is returned to the device for forming Chinese character.
For the concrete reciprocal process of lattice information obtaining block corresponding to the call number of not mating from character library storer, according to an implementation, can comprise: the device for forming Chinese character sends block request to character library storer, wherein carries the call number of not mating; Character library storer after the requests have been received, sends the lattice information/Vector Message of block corresponding to the call number of not mating to the device for forming Chinese character.If what send is Vector Message, rasterizing can also be carried out to this Vector Message for the device forming Chinese character, to obtain the lattice information of block corresponding to the call number of not mating.
Next, method 200 advances to step S204.In step S204, based on combined information and lattice array information structure Chinese character.
Owing to having got the lattice information treating the block that the combined information of formation Chinese character comprises with this Chinese character in the step above, Chinese character can be formed based on these information.According to an embodiment of the invention, comprise based on combined information and lattice array information structure Chinese character: the lattice information adjusting each block according to the display size of block each in combined information; And combine the lattice information of the block after each adjustment according to the display position of block each in combined information, to form the lattice information of Chinese character.
Due in character library storer or block buffer, effective utilization for storage space is considered, usually block identical in all Chinese characters is stored as a block, this block has the size of standard when storing, i.e. the dot matrix picture showed in the lattice information of this block has the size of standard.But the size of identical block shown by different Chinese characters may be different with the position of display.Such as, for Chinese character " ripple " and " mother-in-law ", include block " Rui " and " skin ", but these two blocks " Rui " and " skin " are not identical with display position with the display size in " mother-in-law " at " ripple " respectively.Thus, for the lattice information of each block, also need the display size of each block in the combined information according to this Chinese character to adjust the lattice information of each block.Lattice information due to block can be equivalent to the dot matrix picture of each block, after the dot matrix picture of each block is adjusted to the display size in this Chinese character, carried out combining by the dot matrix picture of each block after adjustment and obtain the dot matrix picture of this Chinese character, namely this Chinese character is configured.The Chinese character formed has the lattice information after combination.
According to the embodiment of the present invention, after the lattice information forming Chinese character, can also be further processed the lattice information of Chinese character as required for the device forming Chinese character.Such as, bulk processing, italic process, the process of font size convergent-divergent etc. are added.
Through above-mentioned steps, for forming the device of Chinese character after formation Chinese character, the lattice information of this Chinese character can be sent to and playing up service unit, showing according to the lattice information of Chinese character by playing up service unit, print, export this Chinese character etc.
According to the further embodiment of the present invention, if in the process forming this Chinese character, obtain the lattice information of block corresponding to the call number of not mating for the device that forms Chinese character from character library storer, then can also upgrade block buffer with the lattice information got.Particularly, the lattice information of the block that the call number of can not mate according to predetermined cache rule cache is corresponding and the call number of not mating.
Wherein, predetermined cache rule can be above-mentioned mentioned, such as, this block for forming the probability of Chinese character higher than predetermined threshold, or due to the lattice information of this block be just use recently, then the lattice information of direct this block of buffer memory.In addition, the embodiment other according to the present invention, when the lattice information of this block is returned to the device for forming Chinese character by character library storer, can carry indication information wherein, and this indication information is used to indicate the lattice information of this block the need of buffer memory.If the device for forming Chinese character judges that the instruction of this indication information needs the lattice information of this block of buffer memory, then the lattice information of this block is cached in block buffer.
In addition, because the spatial cache of block buffer is limited, according to the embodiment of the present invention, when the lattice information of this block is cached in block buffer, if the spatial cache in block buffer is full, then the lattice information of the block of one or more buffer memory can be deleted, this to be needed the lattice information of the block of buffer memory to add in block buffer.
In superincumbent description, according to an embodiment in multiple embodiment above, what give the device for forming Chinese character, character library storer or play up between service unit is mutual.The interaction figure that Fig. 3 shows device for forming Chinese character, character library storer or plays up between service unit.
It should be noted that, although it is mutual to give between various device in superincumbent description, these devices are unnecessary is all independently, but wherein two or more all can be on a single device integrated.Illustrate spirit of the present invention and principle in conjunction with some embodiments above.
By the numerous embodiments of the invention described above, owing to Chinese character being divided into block and multiple Chinese character can have identical block, thus make the recycling rate of waterused of block buffer memory higher.When forming Chinese character, the lattice information of required block can be got with larger probability from block buffer, improve convenience and the speed of the process forming Chinese character, thus be convenient in the handheld device that resource is relatively limited, show, print, transmit or carry out other process more quickly to Chinese character.Further, owing to storing according to block in font memory, block identical in multiple Chinese character is stored as a block, thus avoids and need to store a large amount of Chinese character and take larger storage space.
Suppose to need use 3000 Chinese characters altogether, storage mode conventionally, need in character library storer, store 3000 Chinese characters lattice information or Vector Message, and according to method of the present invention, stored by the block of 3000 Chinese characters, the storage space shared by each block is less than the storage space of whole Chinese character, and wherein has many blocks to repeat in multiple Chinese character, then only need to be stored as a block, thus reduce the storage space requirement to character library storer.In addition, for buffer memory, if want buffer memory Chinese character, then the recycling rate of waterused of each Chinese character is only 1/3000.But method buffer memory block according to the embodiment of the present invention, can count about 2800 blocks and can reuse more than 5 times, and about 1200 blocks can reuse more than 10 times.Therefore, according to the embodiment of the present invention, the advantage of block buffer memory in the process forming Chinese character is embodied.
Fig. 4 shows the block diagram of the device 400 for forming Chinese character according to the embodiment of the present invention.As shown in Figure 4, this device 400 comprises receiver module 401, is arranged to the code receiving and wait to form Chinese character; Acquisition module 402, is arranged to based on code, obtains the respective call number of the combined information of Chinese character and one or more blocks of Chinese character from character library storer; Obtain module 403, be arranged to according to call number, obtain the respective lattice information of one or more block from least one block buffer and character library storer; And composite module 404, be arranged to based on combined information and lattice array information structure Chinese character.
According to another embodiment of the present invention, wherein obtaining means 403 comprises: matching unit, is arranged to and each call number is mated with the call number of buffer memory in block buffer; Acquiring unit, for obtaining the lattice information of the block corresponding to call number of coupling from block buffer when mating; Obtain unit, for obtaining the lattice information of block corresponding to the call number of not mating from character library storer when not mating.
According to another embodiment of the present invention, wherein obtain unit and be arranged to: character library storer store be the lattice information of block time, obtain the lattice information of block corresponding to the call number of not mating from character library storer; And character library storer store be the Vector Message of block time, obtain the Vector Message of block corresponding to the call number of not mating from character library storer; And rasterizing is carried out to obtain the lattice information of block corresponding to the call number of not mating to the Vector Message of block corresponding to the call number of not mating.
According to another embodiment of the present invention, in block buffer the following block of buffer memory lattice information in any one: for forming the lattice information of frequency higher than the block of predetermined threshold of Chinese character; Or recently by the lattice information of the block of predetermined quantity used.
According to another embodiment of the present invention, wherein combined information comprise one or more block form Chinese character time display size and display position; Wherein composite module 404 comprises: adjustment unit, is arranged to the lattice information adjusting each block according to the display size of block each in combined information; And assembled unit, be arranged to the lattice information combining the block after each adjustment according to the display position of block each in combined information, to form the lattice information of Chinese character.
According to another embodiment of the present invention, this device comprises further: cache module, the lattice information being arranged to block corresponding to the call number of not mating according to predetermined cache rule cache and the call number of not mating.
According to another embodiment of the present invention, wherein block comprises or their combination in the radical of Chinese character, radical, radicals by which characters are arranged in traditional Chinese dictionaries.
According to another embodiment of the present invention, this device comprises further: select module, is arranged to the font number according to the Chinese character received, and selects a corresponding character library storer as character library storer from multiple character library storer.
According to another embodiment of the present invention, provide a kind of computer-readable recording medium of stored program instruction, programmed instruction makes at least one processor execution either method as described above.
Can find out, the method that can realize as shown in Figures 2 and 3 for the device 400 forming Chinese character of Fig. 4, although and do not illustrate further, device 400 can comprise more functional unit with the multiple embodiments described by the method realizing composition graphs 2 and 3.Further, owing to Chinese character being divided into block and multiple Chinese character has identical block, device 400 can make the recycling rate of waterused of block buffer memory higher, when forming Chinese character, the lattice information of required block can be got with larger probability from block buffer, improve convenience and the speed of the process forming Chinese character, thus be convenient in the handheld device that resource is relatively limited, show, print, transmit or carry out other process more quickly to Chinese character.
It should be noted that embodiments of the present invention can be realized by the combination of hardware, software or software and hardware.Hardware components can utilize special logic to realize; Software section can store in memory, and by suitable instruction execution system, such as microprocessor or special designs hardware perform.Those having ordinary skill in the art will appreciate that above-mentioned equipment and method can use computer executable instructions and/or be included in processor control routine to realize, such as, on the programmable memory of mounting medium, such as ROM (read-only memory) (firmware) or the data carrier of such as optics or electrical signal carrier of such as disk, CD or DVD-ROM, obtain such code.Equipment of the present invention and device thereof can be realized by the hardware circuit of the programmable hardware device of the semiconductor of such as VLSI (very large scale integrated circuit) or gate array, such as logic chip, transistor etc. or such as field programmable gate array, programmable logic device etc., also with the software simulating performed by various types of processor, also can be realized by the combination such as firmware of above-mentioned hardware circuit and software.
Although it should be noted that the some devices or sub-device that are referred to equipment in above-detailed, this division is only not enforceable.In fact, according to the embodiment of the present invention, the Characteristic and function of two or more devices above-described can be specialized in one apparatus.Otherwise, the Characteristic and function of an above-described device can Further Division for be specialized by multiple device.
In addition, although describe the operation of the inventive method in the accompanying drawings with particular order, this is not that requirement or hint must perform these operations according to this particular order, or must perform the result that all shown operation could realize expectation.On the contrary, the step described in process flow diagram can change execution sequence.Additionally or alternatively, can omit some step, be that a step performs by multiple step stipulations, and/or a step is decomposed into multiple step and performs.
Be described above the embodiments of the present invention, above-mentioned explanation is exemplary, and non-exclusive, and be also not limited to disclosed each embodiment.When not departing from the scope and spirit of illustrated each embodiment, many modifications and changes are all apparent for those skilled in the art.The selection of term used herein, is intended to explain best the principle of each embodiment, practical application or the improvement to the technology in market, or makes other those of ordinary skill of the art can understand each embodiment disclosed herein.

Claims (18)

1., for forming a method for Chinese character in the electronic device, comprising:
Receive the code waiting to form Chinese character;
Based on described code, obtain the respective call number of the combined information of described Chinese character and one or more blocks of described Chinese character from character library storer;
According to described call number, obtain the respective lattice information of described one or more block from least one block buffer and described character library storer; And
Based on Chinese character described in described combined information and described lattice array information structure.
2. method according to claim 1, wherein according to described call number, the respective lattice information obtaining described one or more block from least one block buffer and described character library storer comprises:
Each call number is mated with the call number of buffer memory in described block buffer;
If coupling, then the lattice information of the block that the call number obtaining described coupling from described block buffer is corresponding;
If do not mated, then the lattice information of the block that the call number of not mating described in obtaining from described character library storer is corresponding.
3. method according to claim 2, the lattice information of the block that the call number of not mating described in wherein obtaining from described character library storer is corresponding comprises:
The lattice information of what if described character library storer stored is block, then the lattice information of the block that the call number of not mating described in obtaining from described character library storer is corresponding; And
The Vector Message of what if described character library storer stored is block, then the Vector Message of the block that the call number of not mating described in obtaining from described character library storer is corresponding; And rasterizing is carried out with the lattice information of block corresponding to the call number of not mating described in obtaining to the Vector Message of block corresponding to described call number of not mating.
4. method according to claim 2, in described block buffer the following block of buffer memory lattice information in any one:
For forming the lattice information of frequency higher than the block of predetermined threshold of Chinese character; Or
Recently by the lattice information of the block of predetermined quantity used.
5. the method according to any one of claim 1-4, wherein said combined information comprise described one or more block form described Chinese character time display size and display position; Wherein comprise based on Chinese character described in described combined information and described lattice array information structure:
The lattice information of each block is adjusted according to the display size of block each in described combined information; And
The lattice information of the block after each adjustment is combined, to form the lattice information of described Chinese character according to the display position of block each in described combined information.
6. the method according to any one of claim 2-4, comprises further:
The lattice information of the block that the call number of not mating according to predetermined cache rule cache is corresponding and described call number of not mating.
7. method according to claim 1, wherein said block comprises one or their combination in the radical of described Chinese character, radical, radicals by which characters are arranged in traditional Chinese dictionaries.
8. method according to claim 1, comprises further:
According to the font number of the described Chinese character received, from multiple character library storer, select a corresponding character library storer as described character library storer.
9., for forming a device for Chinese character, comprising:
Receiver module, is arranged to the code receiving and wait to form Chinese character;
Acquisition module, is arranged to based on described code, obtains the respective call number of the combined information of described Chinese character and one or more blocks of described Chinese character from character library storer;
Obtain module, be arranged to according to described call number, obtain the respective lattice information of described one or more block from least one block buffer and described character library storer; And
Composite module, is arranged to based on Chinese character described in described combined information and described lattice array information structure.
10. device according to claim 9, wherein said obtaining means comprises:
Matching unit, is arranged to and each call number is mated with the call number of buffer memory in described block buffer;
Acquiring unit, the lattice information of the block that the call number for obtaining described coupling when mating from described block buffer is corresponding;
Obtain unit, the lattice information of the block that the call number for not mating described in obtaining from described character library storer when not mating is corresponding.
11. devices according to claim 10, wherein said acquisition unit is arranged to: described character library storer store be the lattice information of block time, the lattice information of the block that the call number of not mating described in obtaining from described character library storer is corresponding; And described character library storer store be the Vector Message of block time, the Vector Message of the block that the call number of not mating described in obtaining from described character library storer is corresponding; And rasterizing is carried out with the lattice information of block corresponding to the call number of not mating described in obtaining to the Vector Message of block corresponding to described call number of not mating.
12. devices according to claim 10, in described block buffer the following block of buffer memory lattice information in any one:
For forming the lattice information of frequency higher than the block of predetermined threshold of Chinese character; Or
Recently by the lattice information of the block of predetermined quantity used.
13. devices according to any one of claim 9-12, wherein said combined information comprises the display size of described one or more block when forming described Chinese character and display position; Wherein said composite module comprises:
Adjustment unit, is arranged to the lattice information adjusting each block according to the display size of block each in described combined information; And
Assembled unit, is arranged to the lattice information combining the block after each adjustment according to the display position of block each in described combined information, to form the lattice information of described Chinese character.
14. devices according to any one of claim 10-12, comprise further:
Cache module, is arranged to the lattice information of block corresponding to the call number of not mating according to predetermined cache rule cache and described call number of not mating.
15. devices according to claim 9, wherein said block comprises one or their combination in the radical of described Chinese character, radical, radicals by which characters are arranged in traditional Chinese dictionaries.
16. devices according to claim 9, comprise further:
Select module, be arranged to the font number according to the described Chinese character received, from multiple character library storer, select a corresponding character library storer as described character library storer.
The computer-readable recording medium of 17. 1 kinds of stored program instructions, described programmed instruction makes the method for at least one processor execution according to any one of claim 1-8.
18. 1 kinds, for forming the device of Chinese character, comprising:
At least one processor; And
Comprise at least one storer of computer program code, at least one storer wherein said and described computer program code are configured for and utilize at least one processor described to make the method for described device execution according to any one of claim 1-8.
CN201310539816.7A 2013-10-31 2013-10-31 Method and device for forming Chinese characters in electronic device Pending CN104598497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310539816.7A CN104598497A (en) 2013-10-31 2013-10-31 Method and device for forming Chinese characters in electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310539816.7A CN104598497A (en) 2013-10-31 2013-10-31 Method and device for forming Chinese characters in electronic device

Publications (1)

Publication Number Publication Date
CN104598497A true CN104598497A (en) 2015-05-06

Family

ID=53124287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310539816.7A Pending CN104598497A (en) 2013-10-31 2013-10-31 Method and device for forming Chinese characters in electronic device

Country Status (1)

Country Link
CN (1) CN104598497A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022393A (en) * 2016-05-25 2016-10-12 华中科技大学 Block letter Chinese character identification method based on stroke codes

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85108434A (en) * 1985-11-11 1986-07-02 韶山无线电厂 Method of superposition Hanzi information condensed technology Chinese card
JPH0844728A (en) * 1994-07-29 1996-02-16 Sanyo Electric Co Ltd Method for setting chinese character constitution information and device therefor
CN1236916A (en) * 1998-03-26 1999-12-01 精工爱普生株式会社 Printer, printing method and information recording medium
CN102214174A (en) * 2010-04-08 2011-10-12 上海市浦东科技信息中心 Information retrieval system and information retrieval method for mass data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85108434A (en) * 1985-11-11 1986-07-02 韶山无线电厂 Method of superposition Hanzi information condensed technology Chinese card
JPH0844728A (en) * 1994-07-29 1996-02-16 Sanyo Electric Co Ltd Method for setting chinese character constitution information and device therefor
CN1236916A (en) * 1998-03-26 1999-12-01 精工爱普生株式会社 Printer, printing method and information recording medium
CN102214174A (en) * 2010-04-08 2011-10-12 上海市浦东科技信息中心 Information retrieval system and information retrieval method for mass data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王智慧等: "面向中文移动通讯产品的点阵汉字压缩新技术及其压缩字形数据结构设计", 《中文信息学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022393A (en) * 2016-05-25 2016-10-12 华中科技大学 Block letter Chinese character identification method based on stroke codes

Similar Documents

Publication Publication Date Title
CN107808670A (en) Voice data processing method, device, equipment and storage medium
CN106991154A (en) Webpage rendering intent, device, terminal and server
CN109690512A (en) GPU telecommunication with trigger action
CN105786796A (en) Segmenting words using scaled probabilities
CN103546158A (en) Compressed depth cache
CN103907095A (en) Mobile memory cache read optimization
CN106201474A (en) A kind of notification message display packing and terminal
CN111291882A (en) Model conversion method, device, equipment and computer storage medium
CN106528638A (en) Method for deleting backup data, and mobile terminal
CN109614622A (en) Valid data extracting method, device, storage medium and terminal
CN107783946A (en) Text display method and text display
CN114303152A (en) Efficient storage and retrieval of resource data
CN107451070B (en) Data processing method and server
CN107478243A (en) Air navigation aid, device, equipment and computer-readable recording medium
CN104077077A (en) Method and device for adjusting prompt characters in input method
CN111221827B (en) Database table connection method and device based on graphic processor, computer equipment and storage medium
CN104598497A (en) Method and device for forming Chinese characters in electronic device
CN113763514B (en) Method, device and system for generating stroke order animation and electronic equipment
CN108694631A (en) Method, apparatus, equipment and the storage medium of adjust automatically keyword bid
CN106031296B (en) Message processing method and electronic device supporting same
US10423703B1 (en) Detection and rendering of endnotes in digital content
CN101847050A (en) Simple Chinese input and display method in embedded product
CN109558387A (en) Processing method, device, storage medium and the terminal of identification card number
CN111198614A (en) Method and apparatus for processing input content of human interface device
CN114428594B (en) Image display method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160104

Address after: Espoo, Finland

Applicant after: Technology Co., Ltd. of Nokia

Address before: Espoo, Finland

Applicant before: Nokia Oyj

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150506