CN106095744A - Irregular control icons processing means and method - Google Patents

Irregular control icons processing means and method Download PDF

Info

Publication number
CN106095744A
CN106095744A CN201610363369.8A CN201610363369A CN106095744A CN 106095744 A CN106095744 A CN 106095744A CN 201610363369 A CN201610363369 A CN 201610363369A CN 106095744 A CN106095744 A CN 106095744A
Authority
CN
China
Prior art keywords
irregular
region
text
text importing
text message
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.)
Granted
Application number
CN201610363369.8A
Other languages
Chinese (zh)
Other versions
CN106095744B (en
Inventor
安占磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610363369.8A priority Critical patent/CN106095744B/en
Publication of CN106095744A publication Critical patent/CN106095744A/en
Application granted granted Critical
Publication of CN106095744B publication Critical patent/CN106095744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of irregular control icons processing means, described device includes: acquisition module, for obtaining irregular Background corresponding to text control and text message;Divide module, for described irregular Background being divided into multiple text importing region according to the dividing mode preset;Arrangement module, for the word sum according to the total of described text importing region and described text message, is sequentially arranged in described text message in described irregular Background, so that the typesetting of text message is consistent with the shape of irregular Background.The present invention processes in the irregular control icons obtained, and the typesetting of text message is consistent with irregular Background, improves the motility that irregular control icons processes.

Description

Irregular control icons processing means and method
Technical field
The present invention relates to field of mobile terminals, particularly relate to a kind of irregular control icons processing means and method.
Background technology
In terminal operating system, TextView control is most-often used UI (User Interface, user interface) One of control, wherein can show abundant text, and the displaying for information serves the effect that can not be substituted.Current control Icon includes rule control icons and irregular control icons, but two kinds control in icon, the type-setting mode of text message Excessively unification, is only that such as Fig. 1, text message is only shown at the internal square-folded display text message of icon Inside dotted line frame, to the visual effect of user bad.
Summary of the invention
Present invention is primarily targeted at a kind of irregular control icons processing means of proposition and method, it is intended to solve existing Irregular control icons in, the technical problem of text message type-setting mode unification.
For achieving the above object, a kind of irregular control icons processing means that the present invention provides, described irregular control Icon processing means includes:
Acquisition module, for obtaining irregular Background corresponding to text control and text message;
Divide module, for described irregular Background being divided into multiple text importing district according to the dividing mode preset Territory;
Arrangement module, for the word sum according to the total of described text importing region and described text message, will Described text message is sequentially arranged in described irregular Background, so that the typesetting of text message and the shape of irregular Background Shape is consistent.
Alternatively, described division module includes:
Fill up submodule, for according to the longest edge of described irregular Background and length and width, by described irregular background Figure is filled up as with described longest edge and the rectangle of the longest described a width of length of side;
Divide submodule, for according to default size, carry out gridding segmentation by filling up the described rectangle obtained, to draw It is divided into the unit area of multiple equalization;
Process submodule, for obtaining the unit region comprising irregular Background, and the unit that will obtain Region is as text importing region.
Alternatively, described arrangement module includes:
Obtain submodule, account for the ratio word more than preset ratio of text importing region area for obtaining effective area Viewing area, wherein, described effective area is the region area that in described text importing region, irregular Background is corresponding;
Arrangement submodule, for the word according to the total of the described text importing region obtained and described text message Sum, is sequentially arranged in described text message in the described text importing region of acquisition.
Alternatively, described arrangement submodule includes:
Determine unit, total more than the word of described text message for the sum in the described text importing region obtained Time, determine the described text importing region quantity beyond described word sum;
Arrangement units, in the predeterminable area of described irregular Background vacant go out described quantity text importing district Territory, and described text message is sequentially arranged in remaining text importing region.
Alternatively, described irregular control icons processing means also includes:
Determine module, for the text message in the initial text importing region or text importing region, end of every a line During for punctuation mark, determine the type of described punctuation mark, wherein, the type of described punctuation mark include left side punctuation mark, Right side punctuation mark and independent punctuation mark;
Adjusting module, for the initial text importing region of basis or text importing region, end, and described punctuation mark Type, adjust the position of punctuation mark described in described irregular Background.
Additionally, for achieving the above object, the present invention also proposes a kind of irregular control icons processing method, described irregularly Control icons processing method includes:
Obtain irregular Background corresponding to text control and text message;
According to default dividing mode, described irregular Background is divided into multiple text importing region;
Word sum according to the total of described text importing region and described text message, depends on described text message Secondary it is arranged in described irregular Background, so that the typesetting of text message is consistent with the shape of irregular Background.
Alternatively, described irregular Background is divided into multiple text importing region by the dividing mode that described basis is preset Step include:
Longest edge according to described irregular Background and length and width, described irregular Background is filled up into described Long limit and the rectangle of the longest described a width of length of side;
According to default size, carry out gridding segmentation by filling up the described rectangle obtained, to be divided into multiple equalization Unit area;
Obtain the unit region comprising irregular Background, and using the unit region of acquisition as text importing Region.
Alternatively, the described word sum according to the total of described text importing region and described text message, by institute State the step that text message is sequentially arranged in described irregular Background to include:
Obtain effective area and account for the ratio of the text importing region area text importing region more than preset ratio, wherein, Described effective area is the region area that in described text importing region, irregular Background is corresponding;
Word sum according to the total of the described text importing region obtained and described text message, by described text Information is sequentially arranged in the described text importing region of acquisition.
Alternatively, the described word according to the total of the described text importing region obtained and described text message is total Number, the step being sequentially arranged in by described text message in the described text importing region of acquisition includes:
When sum in the described text importing region obtained is more than the word sum of described text message, determine described literary composition Word viewing area is beyond the quantity of described word sum;
In the predeterminable area of described irregular Background vacant go out described quantity text importing region, and by described literary composition This information is sequentially arranged in remaining text importing region.
Alternatively, the word sum of the described quantity according to described text importing region and described text message, by institute After stating the step that text message is sequentially arranged in described irregular Background, described irregular control icons processing method is also Including:
When text message in the initial text importing region or text importing region, end of every a line is punctuation mark, Determine the type of described punctuation mark, wherein, the type of described punctuation mark include left side punctuation mark, right side punctuation mark and Independent punctuation mark;
According to initial text importing region or text importing region, end, and the type of described punctuation mark, adjust institute State the position of punctuation mark described in irregular Background.
The irregular control icons processing means of present invention proposition and method, it is corresponding not that acquisition module obtains text control Rule Background and text message, divide module and be divided into multiple according to the dividing mode preset by described irregular Background Text importing region, arrangement module, will according to the word sum of the total of described text importing region and described text message Described text message is sequentially arranged in described irregular Background, so that the typesetting of text message and the shape of irregular Background Shape is consistent, it is achieved that in the irregular control icons after process, the type-setting mode of text message and described irregular Background Shape consistent rather than in control icons square-folded display text message, the type-setting mode of Chinese version information of the present invention with Irregular Background and change, improve the motility that irregular control icons processes.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of existing irregular control icons;
Fig. 2 is the hardware architecture diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 3 is the module diagram of the present invention irregular control icons processing means first embodiment;
Fig. 4 is the schematic diagram of the irregular control icons of the present invention;
Fig. 5 is the module diagram dividing module in Fig. 3;
Fig. 6 is the schematic diagram that the irregular control icons of the present invention divides text importing region;
Fig. 7 is the module diagram arranging module in Fig. 3;
Fig. 8 is that the present invention accounts for the ratio in text importing region and reaches the text importing region of preset ratio effective area, The schematic diagram being marked;
Fig. 9 is the module diagram arranging submodule in Fig. 7;
Figure 10 is the module diagram of the present invention irregular control icons processing means the 5th embodiment;
Figure 11 is the enforcement scene schematic diagram that the present invention adjusts the position of punctuation mark;
Figure 12 is the schematic flow sheet of the present invention irregular control icons processing method first embodiment;
Figure 13 is that described irregular Background is divided into multiple text importing district according to default dividing mode by the present invention The schematic flow sheet of territory preferred embodiment;
Figure 14 is the present invention according to the total of described text importing region and the word sum of described text message, by institute State text message and be sequentially arranged in the schematic flow sheet of preferred embodiment in described irregular Background;
It is total according to the word of the total of the described text importing region obtained and described text message that Figure 15 is the present invention Number, is sequentially arranged in the schematic flow sheet of preferred embodiment in the described text importing region of acquisition by described text message;
Figure 16 is the schematic flow sheet of the present invention irregular control icons processing method the 5th embodiment.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, explain referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use For representing the suffix explanation only for the beneficially present invention of such as " module ", " parts " or " unit " of element, itself Not specific meaning.Therefore, " module " can mixedly use with " parts ".
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and consolidating of such as numeral TV, desk computer etc. Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, mobile except being used in particular for Outside the element of purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 2 is the hardware configuration signal realizing each one optional mobile terminal of embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 2 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all groups illustrated Part.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 and radio communication device Or the radio communication between network.
A/V input block 120 is used for receiving audio or video signal.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user's input Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal Orientation, the acceleration of mobile terminal 100 of 100 or speed is moved and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense This sliding-type phone opens or cuts out.It addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through.Such as, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, for connect have the port of device of identification module, audio frequency input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses each of mobile terminal 100 Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..It addition, the device (hereinafter referred to as " identification device ") with identification module can be to take the form of smart card, therefore, know Other device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 may be used for receive from The input (such as, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements or may be used between mobile terminal and external device (ED) transmit data.
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing electricity by it Power provides the path of mobile terminal 100 from base or can serve as allowing from the various command signals of base input by it It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from various command signals or the electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner Go out signal (such as, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151.
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, it is in electricity when mobile terminal 100 During words call mode, display unit 151 can show and call or other (such as, text messaging, multimedia file that communicate Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show image and/or the image of reception of capture, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least A kind of.Some in these display may be constructed such that transparence is watched from outside with permission user, and this is properly termed as transparent Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches Input pressure and touch input position and touch input area.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can Temporarily to store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And And, memorizer 160 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal Data.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 100 can be connected execution memorizer with by network The network storage device cooperation of the storage function of 160.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice call, data Control that communication, video calling etc. are relevant and process.It addition, controller 180 can include for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that with control Device 180 separates.Controller 180 can perform pattern recognition process, with the handwriting input that will perform on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Suitable electric power needed for part and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implementing for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language Implementing, software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Based on above-mentioned mobile terminal hardware configuration, the present invention irregular control icons each embodiment of processing means is proposed.
With reference to the module diagram that Fig. 3, Fig. 3 are the present invention irregular control icons processing means first embodiment.
It is emphasized that it will be apparent to those skilled in the art that module map shown in Fig. 3 is only a preferred embodiment Exemplary plot, those skilled in the art, around the module of the irregular control icons processing means shown in Fig. 3, can be carried out easily Supplementing of new module;The title of each module is self-defined title, is only used for auxiliary and understands that this irregular control icons processes dress Each program function block put, is not used in restriction technical scheme, and the core of technical solution of the present invention is, each self-defined The function that the module of title is to be reached.
The present embodiment proposes a kind of irregular control icons processing means, described irregular control icons processing means bag Include:
Acquisition module 10, for obtaining irregular Background corresponding to text control and text message;
Divide module 20, for described irregular Background being divided into multiple text importing according to the dividing mode preset Region;
Arrangement module 30, for the word sum according to the total of described text importing region and described text message, Described text message is sequentially arranged in described irregular Background, so that the typesetting of text message and irregular Background Shape is consistent.
In the present embodiment, acquisition module 10 first obtains irregular Background corresponding to text control and text message, Wherein, described text message includes word, character and punctuation mark, and therefore, word, character and punctuation mark are all counted hereinafter Word sum in.Then divide module 20, according to default dividing mode, described irregular Background is divided into multiple word Viewing area, wherein, described default dividing mode is exactly to divide described irregular Background with pre-set dimension, many to be divided into Individual text importing region, described pre-set dimension is set as the case may be, a, default;B, enter along with word sum Row change, if being as what word sum was changed, the most preferably there is individual size range to select, selecting minimum before this Size divides described irregular Background, to mark off each text importing region, if the text importing region sum divided is remote Beyond the word sum of described text message, the size bigger than current size can be selected to carry out described irregular Background drawing Point, by that analogy, the word sum until the text importing region marked off with described text message is close.
It should be appreciated that the division in the present embodiment is virtual division, it is not truly to mark off solid line, but is Convenience describes the virtual grate that the arrangement of text message is carried out.
After division obtains each text importing region, arrangement module 30 according to the sum in described text importing region with And the word sum of described text message, described text message is sequentially arranged in described irregular Background, so that text The typesetting of information is consistent with the shape of irregular Background, described according to the total of described text importing region and described text The word sum of information, is sequentially arranged in described text message described irregular Background and includes: 1, the most successively Described text message is arranged in each text importing region of described irregular Background;2, in order to improve text message row The motility of row, first determines the described text importing region quantity beyond described word sum, then in described irregular background In the predeterminable area of figure vacant go out described quantity text importing region, and described text message is sequentially arranged in remaining literary composition In word viewing area, so that the typesetting of text message is consistent with the shape of irregular Background, wherein, described predeterminable area is permissible It is the zone line in irregular Background, can be two end regions in irregular Background.
In the present embodiment, intelligent in order to improve that text message shows, the literary composition of display in each text importing region Word size can be adjusted, and can set a display size at the beginning, if detecting that character size is significantly less than or is less than During the bulk in described text importing region, then the character size in each text importing region can be adjusted.
It is understood that in irregular control icons after Chu Liing, the type-setting mode of text message with described irregularly The shape of Background is consistent, and the text message i.e. divided in irregular Background places the region that region is no longer rule, and It is that the shape according to described irregular Background carries out dividing, during follow-up placement text message, it is possible to according to irregular Place area arrangement text message, specifically can refer to Fig. 4 so that the placement of text message is more intelligent and flexible.
The irregular control icons processing means that the present embodiment proposes, acquisition module obtains corresponding irregular of text control Background and text message, divide module, according to the dividing mode preset, described irregular Background be divided into multiple word Viewing area, arrangement module is according to the word sum of the total of described text importing region and described text message, by described Text message is sequentially arranged in described irregular Background, so that the typesetting of text message and the shape one of irregular Background Cause, it is achieved that in the irregular control icons after process, the type-setting mode of text message and the shape of described irregular Background Consistent rather than in control icons square-folded display text message, the type-setting mode of Chinese version information of the present invention is not along with Rule Background and change, improve irregular control icons process motility.
Further, the module diagram of the present invention irregular control icons processing means the second embodiment is proposed.
Second embodiment of irregular control icons processing means is implemented with the first of irregular control icons processing means The difference of example is, with reference to Fig. 5, described division module 20 includes:
Fill up submodule 21, for according to the longest edge of described irregular Background and length and width, by the described irregular back of the body Scape figure is filled up as with described longest edge and the rectangle of the longest described a width of length of side;
Divide submodule 22, for according to default size, carry out gridding segmentation by filling up the described rectangle obtained, with It is divided into the unit area of multiple equalization;
Process submodule 23, for obtaining the unit region comprising irregular Background, and each list that will obtain Unit region is as text importing region.
In the present embodiment, first determine longest edge and the length and width of described irregular Background, then fill up submodule 21 Longest edge according to described irregular Background and length and width, fill up described irregular Background as with described longest edge and institute Stating the rectangle of the longest a width of length of side, specifically can refer to Fig. 6, wherein, longest edge is exactly the base in irregular Background, length and width It it is exactly the side of irregular Background.Then division submodule 22 is according to default size, enters filling up the described rectangle obtained Row gridding is segmented, and to be divided into the unit area of multiple equalization, wherein, described default size is the size arranged in advance, Such as will be sized to 5mm*5mm, naturally it is also possible to be set to other value.It should be appreciated that described gridding segmentation can So that irregular Background is divided into the tetragon of multiple equalization, pentagon, hexagon etc., in the present embodiment, preferably will not Rule Background is divided into the tetragon of multiple equalization, now referring again to Fig. 6.
After division obtains unit region, owing to being to carry out gridding by filling up the described rectangle obtained at the beginning Segmentation, to be divided into the unit area of multiple equalization, therefore, does not only exist in the unit region obtained and comprises the irregular back of the body The unit area of scape figure, there is also the unit region not comprising irregular Background, it is possible to be to exist in rectangular edges Completely include the unit area of other background, now, process submodule 23 and only obtain the unit comprising irregular Background Region, then using the unit region of acquisition as text importing region, other does not comprise each list of irregular Background Unit region is then not as text importing region.
In the present embodiment, it not the distributing position of random division text message, be not square-folded irregularly Background inside divides rectangular area, then text message is sequentially arranged in (such as Fig. 1) in the rectangular area marked off, but First described irregular Background is supplemented rectangular, then according still further to default size, carry out filling up the described rectangle obtained Gridding is segmented, and to be divided into the unit area of multiple equalization, final acquisition comprises the unit region of irregular Background, And using the unit region of acquisition as text importing region, it is achieved that the marginal position in irregular Background also can conduct Text importing region, and text message is sequentially arranged in the text importing region of described irregular Background, improve literary composition The motility of this information typesetting.
Further, the module diagram of the present invention irregular control icons processing means the 3rd embodiment is proposed.
3rd embodiment of irregular control icons processing means is implemented with the second of irregular control icons processing means The difference of example is, with reference to Fig. 7, described arrangement module 30 includes:
Obtain submodule 31, account for the ratio literary composition more than preset ratio of text importing region area for obtaining effective area Word viewing area, wherein, described effective area is the region area that in described text importing region, irregular Background is corresponding;
Arrangement submodule 32, for the literary composition according to the total of the described text importing region obtained and described text message Word sum, is sequentially arranged in described text message in the described text importing region of acquisition.
Understand from above-described embodiment, described rectangle has marked off multiple text importing region, and above-mentioned enforcement The text importing region obtained in example is the text importing region comprising irregular Background, then the text importing region of acquisition The middle background that may also include the page originally, the most not only includes irregular Background, potentially includes the blank background of the page Etc., therefore, more accurate in order to make text message show in the present embodiment, i.e. without departing from the region of irregular Background, excellent Choosing acquisition submodule 31 obtains effective area and accounts for the ratio text importing region more than preset ratio of text importing region area, It should be noted that the number in the text importing region of acquisition have to be larger than or total equal to the word of described text message, this Described preset ratio in embodiment is set as the case may be, in order to make text message can all show irregularly The inside of Background, can be set to 100% by described preset ratio, namely in described rectangle, obtains effective area and accounts for literary composition The ratio of word viewing area area reaches the text importing region of 100%, i.e. effective area and is entirely described irregular Background The text importing region in region, it is achieved that the text importing region including other background areas or page area is got rid of, Described text message is sequentially arranged in the described text importing region of acquisition by final arrangement submodule 32.
In the present embodiment, the number in the text importing region of acquisition have to be larger than or be equal to the word of described text message Sum, such guarantee text message can all be arranged in described irregular Background, if the literary composition of acquisition being detected The number of word viewing area is less than the word sum of described text message, at this time, it may be necessary to again the rectangle after filling up is carried out net Format segmentation, and, the size of segmentation is than the size point again of last time, and the unit area quantity of so division can be more, And the most first obtain the unit region comprising irregular Background, and the unit region of acquisition is shown as word Show region, obtain effective area the most again and account for the ratio text importing region more than preset ratio of text importing region area, So that the sum in the text importing region again obtained is more than or equal to the word sum of described text message, if again obtaining Text importing region sum still less than described text message word sum, then proceed segmentation, by that analogy, directly To obtain text importing region sum more than or equal to described text message word sum,
Further, account for the ratio of text importing region area and show more than the word of preset ratio getting effective area After showing region, effective area can be accounted for the ratio text importing zone marker more than preset ratio of text importing region area It is 1, can be used for representing effective text importing region, and effective area accounts for the ratio of text importing region area less than or equal to pre- If the text importing zone marker of ratio is 0, can be used for representing invalid text importing region.
Being best understood from the present embodiment, with reference to Fig. 8, the rectangle after filling up carries out gridding segmentation, is divided into each word and shows Show region, then effective area is accounted for the ratio of text importing region area reach the text importing area identification of preset ratio and be 1, and be 0 by the text importing area identification comprising other background area, wherein, the text importing region being designated 1 is exactly literary composition This information position to be written, text message write is designated in each text importing region of 1 the most at last, and can from Fig. 8 Go out, in the irregular control icons finally given, the type-setting mode of text message and described irregular Background target shape one Cause.
Further, when each text importing region is identified, if exist the mark in current character region with During the mark difference in adjacent text importing region, now it is likely to be the interference of noise, then first judge adjacent text importing Identifying whether of other text importing region that text importing region adjacent with this, region is adjacent is identical, if identical, it is believed that when There is noise interference in front character area, and mark is adjusted.As shown in Figure 8, word is had to show in first row several row reciprocal That shows region is designated 0, if three text importing area identifications in 2-4 row reciprocal are 0, and with these three text importing district In the text importing region, the right that territory is adjacent, i.e. three text importing area identifications in secondary series 2-4 row reciprocal are all 1, Judge the 3rd mark arranging three text importing regions in 2-4 row reciprocal the most further, if the 3rd row inverse The mark in three text importing regions in 2-4 row is all 1, and the text importing region of 2-4 row reciprocal in first row is described It is probably and is disturbed by noise, then the mark in these three text importing region is set to 1, can be by noise remove.
In the present embodiment, the rectangle after filling up obtains effective area account for the ratio of text importing region area and be more than The text importing region of preset ratio, is the equal of to remove noisy region, and final text message is arranged just in not having other In the text importing region of ambient interferences, improve the accuracy that text message shows.
Further, the module diagram of the present invention irregular control icons processing means the 4th embodiment is proposed.
4th embodiment of irregular control icons processing means is implemented with the 3rd of irregular control icons processing means The difference of example is, with reference to Fig. 9, described arrangement submodule 32 includes:
Determine unit 321, be more than the word of described text message for the sum in the described text importing region obtained During sum, determine the described text importing region quantity beyond described word sum;
Arrangement units 322, in the predeterminable area of described irregular Background vacant go out described quantity word show Show region, and described text message is sequentially arranged in remaining text importing region.
In the present embodiment, the sum in the described text importing region obtained is equal to the word sum of described text message Time, now can directly described text message be arranged in order in each text importing region of acquisition.At the described word obtained When the sum of viewing area is more than the word sum of described text message, determine that unit 321 first determines described text importing region Beyond described word sum quantity, in the predeterminable area of described irregular Background vacant go out described quantity text importing Region, wherein, described predeterminable area can be two ends before and after irregular Background, it is also possible to is in irregular Background Zone line, if before and after irregular Background two ends vacant go out text importing region, can limit two ends vacant go out The text importing region of same number, certainly, it is possible to be not intended to two ends vacant go out same number text importing region, if two Hold the most vacant go out the sum in text importing region equal to the described described quantity determined.Finally, arrangement units 322 will Described text message is sequentially arranged in remaining text importing region.
In the present embodiment, the sum in the described text importing region obtained is more than the word sum of described text message Time, first determine the described text importing region quantity beyond described word sum, then presetting at described irregular Background In region vacant go out described quantity text importing region, and described text message is sequentially arranged in remaining text importing district In territory, improve the motility of text message typesetting.
Further, the module diagram of the present invention irregular control icons processing means the 5th embodiment is proposed.
5th embodiment of irregular control icons processing means is implemented with the 4th of irregular control icons processing means The difference of example is, with reference to Figure 10, described irregular control icons processing means also includes:
Determine module 40, for the text envelope in the initial text importing region or text importing region, end of every a line When breath is for punctuation mark, determining the type of described punctuation mark, wherein, the type of described punctuation mark includes left side punctuate symbol Number, right side punctuation mark and independent punctuation mark;
Adjusting module 50, for the initial text importing region of basis or text importing region, end, and described punctuate symbol Number type, adjust the position of punctuation mark described in described irregular Background.
In the present embodiment, during mainly for line feed, the typesetting to text message, wherein it is mainly according to a line word The all characters of ending character and next line judges, i.e. according to the difference of punctuation character, determine how to enter a new line, and to this Style of writing between word spacing stretches or compresses.
First, punctuation mark type is enumerated:
Left side punctuate include: ", <, " etc.;
Right side punctuate includes: ", >, " etc.;
Independent punctuate includes:,.;、!、?Deng.
When single punctuate compression:
Terminate if a line is drawn, but when the beginning of next line, first character is independent punctuation mark, this feelings Under condition, the between word spacing between lastrow each two character is compressed so that it is just the punctuate that one's own profession is first can be placed on The end of line of a line.
The situation of the stretching of between word spacing:
If last character of a line is left side punctuation mark, then stretched by the between word spacing of this line character, These punctuates are made to occur in the row head of next line.
The situation of multiaspect compression:
Beginning at next line may start with right label, and single label occurs at second character, and this situation just will This line character spacing is compressed, and the two of next line punctuates is placed on the first row and shows.
Analyze based on above, for being best understood from the present embodiment, be exemplified below: last character mark now_ of one's own profession Char_end represents;Next line first character mark next_char_first represents;Second character mark of next line is used Next_char_second represents;
With reference to Figure 11, if next_char_first is left side character, the first row character normally shows;
If next_char_first is not left side character, then judge whether next_char_first is right side character, if It is, it is judged that whether next_char_second is left side character, the most then next_char_first is placed on the first row and shows, And compress the character pitch of the first row;
If next_char_second is not left side character, it is judged that whether next_char_second is non-punctuate, if so, Next_char_second is processed as independent punctuate;
If next_char_second is not non-punctuate, then next_char_first and next_char_second is put Show in the first row, and compress the character pitch of the first row;
If next_char_first is not right side character, it is judged that whether next_char_first is independent punctuate, if Next_char_first is independent punctuate, obtains the first row now_char_end, it is judged that whether now_char_end is left side mark Point, is if so, placed on next line by now_char_end and shows, and stretches the character pitch of the first row;
If now_char_end is not left side punctuate, the first row normally shows or stretches spacing.
In the present embodiment, when punctuation mark occurring in the initiation region of every a line or region, end, first determine described The type of punctuation mark, finally according to initiation region or region, end, and the type of described punctuation mark, does not advises described in adjustment The then position of punctuation mark described in Background so that irregular Background Chinese version information shows more accurately and flexible.
The present invention also provides for a kind of irregular control icons processing method.
With reference to the schematic flow sheet that Figure 12, Figure 12 are the present invention irregular control icons processing method first embodiment.
The present embodiment proposes a kind of irregular control icons processing method, described irregular control icons processing method bag Include:
Step S10, obtains irregular Background corresponding to text control and text message;
Step S20, is divided into multiple text importing region according to default dividing mode by described irregular Background;
Step S30, according to the word sum of the total of described text importing region and described text message, by described literary composition This information is sequentially arranged in described irregular Background, so that the typesetting of text message and the shape one of irregular Background Cause.
In the present embodiment, irregular Background corresponding to text control and text message, wherein, described literary composition are first obtained This information includes word, character and punctuation mark, and therefore, word, character and punctuation mark all count word sum hereinafter In.Then according to the dividing mode preset, described irregular Background is divided into multiple text importing region, wherein, described pre- If dividing mode be exactly with pre-set dimension divide described irregular Background, to be divided into multiple text importing region, described Pre-set dimension is set as the case may be, a, default;B, it is changed, if be as literary composition along with word sum Word sum is changed, and the most preferably has individual size range to select, and the size division selecting minimum before this is described irregularly Background, to mark off each text importing region, if the text importing region sum divided is far beyond described text message Word sum, can select the size bigger than current size to divide described irregular Background, by that analogy, until drawing The text importing region separated is close with the word sum of described text message.
It should be appreciated that the division in the present embodiment is virtual division, it is not truly to mark off solid line, but is Convenience describes the virtual grate that the arrangement of text message is carried out.
After division obtains each text importing region, according to the total of described text importing region and described text The word sum of information, is sequentially arranged in described text message in described irregular Background, so that the typesetting of text message Consistent with the shape of irregular Background, described according to the total of described text importing region and the word of described text message Sum, is sequentially arranged in described text message described irregular Background and includes: 1, the most successively by described text Information arrangement is in each text importing region of described irregular Background;2, in order to improve the flexible of text message arrangement Property, first determine the described text importing region quantity beyond described word sum, then presetting at described irregular Background In region vacant go out described quantity text importing region, and described text message is sequentially arranged in remaining text importing district In territory, so that the typesetting of text message is consistent with the shape of irregular Background, wherein, described predeterminable area can be irregular Zone line in Background, can be two end regions in irregular Background.
In the present embodiment, intelligent in order to improve that text message shows, the literary composition of display in each text importing region Word size can be adjusted, and can set a display size at the beginning, if detecting that character size is significantly less than or is less than During the bulk in described text importing region, then the character size in each text importing region can be adjusted.
It is understood that in irregular control icons after Chu Liing, the type-setting mode of text message with described irregularly The shape of Background is consistent, and the text message i.e. divided in irregular Background places the region that region is no longer rule, and It is that the shape according to described irregular Background carries out dividing, during follow-up placement text message, it is possible to according to irregular Place area arrangement text message, specifically can refer to Fig. 4 so that the placement of text message is more intelligent and flexible.
The irregular control icons processing method that the present embodiment proposes, first obtains the irregular Background that text control is corresponding And text message, then according to the dividing mode preset, described irregular Background is divided into multiple text importing region, Finally according to the total of described text importing region and the word sum of described text message, described text message is arranged successively It is listed in described irregular Background, so that the typesetting of text message is consistent with the shape of irregular Background, it is achieved that process After irregular control icons in, the type-setting mode of text message consistent with the shape of described irregular Background rather than Square-folded display text message in control icons, the type-setting mode of Chinese version information of the present invention becomes along with irregular Background Change, improve the motility that irregular control icons processes.
Further, the schematic flow sheet of the present invention irregular control icons processing method the second embodiment is proposed.
Second embodiment of irregular control icons processing method is implemented with the first of irregular control icons processing method The difference of example is, with reference to Figure 13, described step S20 includes:
Step S21, according to the longest edge of described irregular Background and length and width, described irregular Background is filled up into With described longest edge and the rectangle of the longest described a width of length of side;
Step S22, according to default size, carries out gridding segmentation by filling up the described rectangle obtained, many to be divided into The unit area of individual equalization;
Step S23, obtains and comprises the unit region of irregular Background, and using the unit region that obtains as Text importing region.
In the present embodiment, first determine longest edge and the length and width of described irregular Background, then do not advise according to described Then the longest edge of Background and length and width, fill up described irregular Background as with described longest edge and the longest described a width of limit Long rectangle, specifically can refer to Fig. 6, and wherein, longest edge is exactly the base in irregular Background, and length and width are exactly the irregular back of the body The side of scape figure.Then according to the size preset, carry out gridding segmentation by filling up the described rectangle obtained, multiple to be divided into Impartial unit area, wherein, described default size is the size arranged in advance, such as, will be sized to 5mm*5mm, when So it can also be provided that other value.It should be appreciated that irregular Background can be divided into multiple by described gridding segmentation The tetragon of equalization, pentagon, hexagon etc., in the present embodiment, be preferably divided into multiple equalization by irregular Background Tetragon, now referring again to Fig. 6.
After division obtains unit region, owing to being to carry out gridding by filling up the described rectangle obtained at the beginning Segmentation, to be divided into the unit area of multiple equalization, therefore, does not only exist in the unit region obtained and comprises the irregular back of the body The unit area of scape figure, there is also the unit region not comprising irregular Background, it is possible to be to exist in rectangular edges Completely include the unit area of other background, now, only obtain the unit region comprising irregular Background, then will obtain The unit region taken as text importing region, other do not comprise the unit region of irregular Background then not as Text importing region.
In the present embodiment, it not the distributing position of random division text message, be not square-folded irregularly Background inside divides rectangular area, then text message is sequentially arranged in (such as Fig. 1) in the rectangular area marked off, but First described irregular Background is supplemented rectangular, then according still further to default size, carry out filling up the described rectangle obtained Gridding is segmented, and to be divided into the unit area of multiple equalization, final acquisition comprises the unit region of irregular Background, And using the unit region of acquisition as text importing region, it is achieved that the marginal position in irregular Background also can conduct Text importing region, and text message is sequentially arranged in the text importing region of described irregular Background, improve literary composition The motility of this information typesetting.
Further, the schematic flow sheet of the present invention irregular control icons processing method the 3rd embodiment is proposed.
3rd embodiment of irregular control icons processing method is implemented with the second of irregular control icons processing method The difference of example is, with reference to Figure 14, described step S30 includes:
Step S31, obtains effective area and accounts for the ratio text importing district more than preset ratio of text importing region area Territory, wherein, described effective area is the region area that in described text importing region, irregular Background is corresponding;
Step S32, according to the word sum of the total of the described text importing region obtained and described text message, will Described text message is sequentially arranged in the described text importing region of acquisition.
Understand from above-described embodiment, described rectangle has marked off multiple text importing region, and above-mentioned enforcement The text importing region obtained in example is the text importing region comprising irregular Background, then the text importing region of acquisition The middle background that may also include the page originally, the most not only includes irregular Background, potentially includes the blank background of the page Etc., therefore, more accurate in order to make text message show in the present embodiment, i.e. without departing from the region of irregular Background, excellent Choosing obtains effective area and accounts for the ratio text importing region more than preset ratio of text importing region area, noticeable It is that the number in the text importing region of acquisition have to be larger than or total, in the present embodiment equal to the word of described text message Described preset ratio is set as the case may be, in order to make text message can all show in irregular Background Portion, can be set to 100% by described preset ratio, namely in described rectangle, obtains effective area and accounts for text importing region The ratio of area reaches the text importing region of 100%, i.e. effective area and is entirely the word in described irregular Background region Viewing area, it is achieved that the text importing region including other background areas or page area is got rid of, the most described Text message is sequentially arranged in the described text importing region of acquisition.
In the present embodiment, the number in the text importing region of acquisition have to be larger than or be equal to the word of described text message Sum, such guarantee text message can all be arranged in described irregular Background, if the literary composition of acquisition being detected The number of word viewing area is less than the word sum of described text message, at this time, it may be necessary to again the rectangle after filling up is carried out net Format segmentation, and, the size of segmentation is than the size point again of last time, and the unit area quantity of so division can be more, And the most first obtain the unit region comprising irregular Background, and the unit region of acquisition is shown as word Show region, obtain effective area the most again and account for the ratio text importing region more than preset ratio of text importing region area, So that the sum in the text importing region again obtained is more than or equal to the word sum of described text message, if again obtaining Text importing region sum still less than described text message word sum, then proceed segmentation, by that analogy, directly To obtain text importing region sum more than or equal to described text message word sum,
Further, account for the ratio of text importing region area and show more than the word of preset ratio getting effective area After showing region, effective area can be accounted for the ratio text importing zone marker more than preset ratio of text importing region area It is 1, can be used for representing effective text importing region, and effective area accounts for the ratio of text importing region area less than or equal to pre- If the text importing zone marker of ratio is 0, can be used for representing invalid text importing region.
Being best understood from the present embodiment, with reference to Fig. 8, the rectangle after filling up carries out gridding segmentation, is divided into each word and shows Show region, then effective area is accounted for the ratio of text importing region area reach the text importing area identification of preset ratio and be 1, and be 0 by the text importing area identification comprising other background area, wherein, the text importing region being designated 1 is exactly literary composition This information position to be written, text message write is designated in each text importing region of 1 the most at last, and can from Fig. 8 Go out, in the irregular control icons finally given, the type-setting mode of text message and described irregular Background target shape one Cause.
Further, when each text importing region is identified, if exist the mark in current character region with During the mark difference in adjacent text importing region, now it is likely to be the interference of noise, then first judge adjacent text importing Identifying whether of other text importing region that text importing region adjacent with this, region is adjacent is identical, if identical, it is believed that when There is noise interference in front character area, and mark is adjusted.As shown in Figure 8, word is had to show in first row several row reciprocal That shows region is designated 0, if three text importing area identifications in 2-4 row reciprocal are 0, and with these three text importing district In the text importing region, the right that territory is adjacent, i.e. three text importing area identifications in secondary series 2-4 row reciprocal are all 1, Judge the 3rd mark arranging three text importing regions in 2-4 row reciprocal the most further, if the 3rd row inverse The mark in three text importing regions in 2-4 row is all 1, and the text importing region of 2-4 row reciprocal in first row is described It is probably and is disturbed by noise, then the mark in these three text importing region is set to 1, can be by noise remove.
In the present embodiment, the rectangle after filling up obtains effective area account for the ratio of text importing region area and be more than The text importing region of preset ratio, is the equal of to remove noisy region, and final text message is arranged just in not having other In the text importing region of ambient interferences, improve the accuracy that text message shows.
Further, the schematic flow sheet of the present invention irregular control icons processing method the 4th embodiment is proposed.
4th embodiment of irregular control icons processing method is implemented with the 3rd of irregular control icons processing method The difference of example is, with reference to Figure 15, described step S32 includes:
Step S321, when the sum in the described text importing region obtained is more than the word sum of described text message, Determine the described text importing region quantity beyond described word sum;
Step S322, in the predeterminable area of described irregular Background vacant go out described quantity text importing region, And described text message is sequentially arranged in remaining text importing region.
In the present embodiment, the sum in the described text importing region obtained is equal to the word sum of described text message Time, now can directly described text message be arranged in order in each text importing region of acquisition.At the described word obtained When the sum of viewing area is more than the word sum of described text message, first determine that described text importing region is beyond described word Sum quantity, in the predeterminable area of described irregular Background vacant go out described quantity text importing region, wherein, institute Stating predeterminable area can be two ends before and after irregular Background, it is also possible to be the zone line in irregular Background, If before and after irregular Background two ends vacant go out text importing region, can limit two ends vacant go out same number literary composition Word viewing area, certainly, it is possible to be not intended to two ends vacant go out same number text importing region, as long as two ends the most vacant go out The sum in text importing region equal to the described described quantity determined.Finally, described text message is sequentially arranged in In remaining text importing region.
In the present embodiment, the sum in the described text importing region obtained is more than the word sum of described text message Time, first determine the described text importing region quantity beyond described word sum, then presetting at described irregular Background In region vacant go out described quantity text importing region, and described text message is sequentially arranged in remaining text importing district In territory, improve the motility of text message typesetting.
Further, the schematic flow sheet of the present invention irregular control icons processing method the 5th embodiment is proposed.
5th embodiment of irregular control icons processing method is implemented with the 4th of irregular control icons processing method The difference of example is, with reference to Figure 16, after described step S30, described irregular control icons processing method also includes:
Step S40, the text message in the initial text importing region or text importing region, end of every a line is mark During point symbol, determining the type of described punctuation mark, wherein, the type of described punctuation mark includes left side punctuation mark, right side Punctuation mark and independent punctuation mark;
Step S50, according to initial text importing region or text importing region, end, and the class of described punctuation mark Type, adjusts the position of punctuation mark described in described irregular Background.
In the present embodiment, during mainly for line feed, the typesetting to text message, wherein it is mainly according to a line word The all characters of ending character and next line judges, i.e. according to the difference of punctuation character, determine how to enter a new line, and to this Style of writing between word spacing stretches or compresses.
First, punctuation mark type is enumerated:
Left side punctuate include: ", <, " etc.;
Right side punctuate includes: ", >, " etc.;
Independent punctuate includes:,.;、!、?Deng.
When single punctuate compression:
Terminate if a line is drawn, but when the beginning of next line, first character is independent punctuation mark, this feelings Under condition, the between word spacing between lastrow each two character is compressed so that it is just the punctuate that one's own profession is first can be placed on The end of line of a line.
The situation of the stretching of between word spacing:
If last character of a line is left side punctuation mark, then stretched by the between word spacing of this line character, These punctuates are made to occur in the row head of next line.
The situation of multiaspect compression:
Beginning at next line may start with right label, and single label occurs at second character, and this situation just will This line character spacing is compressed, and the two of next line punctuates is placed on the first row and shows.
Analyze based on above, for being best understood from the present embodiment, be exemplified below: last character mark now_ of one's own profession Char_end represents;Next line first character mark next_char_first represents;Second character mark of next line is used Next_char_second represents;
With reference to Figure 11, if next_char_first is left side character, the first row character normally shows;
If next_char_first is not left side character, then judge whether next_char_first is right side character, if It is, it is judged that whether next_char_second is left side character, the most then next_char_first is placed on the first row and shows, And compress the character pitch of the first row;
If next_char_second is not left side character, it is judged that whether next_char_second is non-punctuate, if so, Next_char_second is processed as independent punctuate;
If next_char_second is not non-punctuate, then next_char_first and next_char_second is put Show in the first row, and compress the character pitch of the first row;
If next_char_first is not right side character, it is judged that whether next_char_first is independent punctuate, if Next_char_first is independent punctuate, obtains the first row now_char_end, it is judged that whether now_char_end is left side mark Point, is if so, placed on next line by now_char_end and shows, and stretches the character pitch of the first row;
If now_char_end is not left side punctuate, the first row normally shows or stretches spacing.
In the present embodiment, when punctuation mark occurring in the initiation region of every a line or region, end, first determine described The type of punctuation mark, finally according to initiation region or region, end, and the type of described punctuation mark, does not advises described in adjustment The then position of punctuation mark described in Background so that irregular Background Chinese version information shows more accurately and flexible.
It should be noted that in this article, term " includes ", " comprising " or its other variant any are intended to non-row Comprising of his property, so that include that the process of a series of key element, method, article or system not only include those key elements, and And also include other key element being not expressly set out, or also include intrinsic for this process, method, article or system Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this The process of key element, method, article or system there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skill Art field, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. an irregular control icons processing means, it is characterised in that described irregular control icons processing means includes:
Acquisition module, for obtaining irregular Background corresponding to text control and text message;
Divide module, for described irregular Background being divided into multiple text importing region according to the dividing mode preset;
Arrangement module, for the word sum according to the total of described text importing region and described text message, by described Text message is sequentially arranged in described irregular Background, so that the typesetting of text message and the shape one of irregular Background Cause.
2. irregular control icons processing means as claimed in claim 1, it is characterised in that described division module includes:
Fill up submodule, for according to the longest edge of described irregular Background and length and width, being filled out by described irregular Background Mend as with described longest edge and the rectangle of the longest described a width of length of side;
Divide submodule, for according to default size, carry out gridding segmentation, to be divided into by filling up the described rectangle obtained The unit area of multiple equalizations;
Process submodule, for obtaining the unit region comprising irregular Background, and the unit region that will obtain As text importing region.
3. irregular control icons processing means as claimed in claim 2, it is characterised in that described arrangement module includes:
Obtain submodule, account for the ratio text importing more than preset ratio of text importing region area for obtaining effective area Region, wherein, described effective area is the region area that in described text importing region, irregular Background is corresponding;
Arrangement submodule, total for the word according to the total of the described text importing region obtained and described text message Number, is sequentially arranged in described text message in the described text importing region of acquisition.
4. irregular control icons processing means as claimed in claim 3, it is characterised in that described arrangement submodule includes:
Determine unit, when the sum in the described text importing region obtained is more than the word sum of described text message, Determine the described text importing region quantity beyond described word sum;
Arrangement units, in the predeterminable area of described irregular Background vacant go out described quantity text importing region, And described text message is sequentially arranged in remaining text importing region.
5. the irregular control icons processing means as described in any one of claim 1-4, it is characterised in that described irregular control Part icon processing means also includes:
Determine module, be mark for the text message in the initial text importing region or text importing region, end of every a line During point symbol, determining the type of described punctuation mark, wherein, the type of described punctuation mark includes left side punctuation mark, right side Punctuation mark and independent punctuation mark;
Adjusting module, for the initial text importing region of basis or text importing region, end, and the class of described punctuation mark Type, adjusts the position of punctuation mark described in described irregular Background.
6. an irregular control icons processing method, it is characterised in that described irregular control icons processing method includes:
Obtain irregular Background corresponding to text control and text message;
According to default dividing mode, described irregular Background is divided into multiple text importing region;
Word sum according to the total of described text importing region and described text message, arranges successively by described text message It is listed in described irregular Background, so that the typesetting of text message is consistent with the shape of irregular Background.
7. irregular control icons processing method as claimed in claim 6, it is characterised in that the division side that described basis is preset The step that described irregular Background is divided into multiple text importing region is included by formula:
Longest edge according to described irregular Background and length and width, fill up described irregular Background as with described longest edge Rectangle with the longest described a width of length of side;
According to default size, carry out gridding segmentation by filling up the described rectangle obtained, to be divided into the unit of multiple equalization Region;
Obtain the unit region comprising irregular Background, and using the unit region of acquisition as text importing district Territory.
8. irregular control icons processing method as claimed in claim 7, it is characterised in that described according to described text importing The word sum of the total and described text message in region, is sequentially arranged in described irregular Background by described text message In step include:
Obtain effective area and account for the ratio text importing region more than preset ratio of text importing region area, wherein, described Effective area is the region area that in described text importing region, irregular Background is corresponding;
Word sum according to the total of the described text importing region obtained and described text message, by described text message It is sequentially arranged in the described text importing region of acquisition.
9. irregular control icons processing method as claimed in claim 8, it is characterised in that described according to the described literary composition obtained The word sum of the total and described text message of word viewing area, is sequentially arranged in described text message described in acquisition Step in text importing region includes:
When sum in the described text importing region obtained is more than the word sum of described text message, determine that described word shows Show that region exceeds the quantity of described word sum;
In the predeterminable area of described irregular Background vacant go out described quantity text importing region, and by described text envelope Breath is sequentially arranged in remaining text importing region.
10. the irregular control icons processing method as described in any one of claim 6-9, it is characterised in that described according to institute State the word sum of the quantity in text importing region and described text message, described text message is sequentially arranged in described in not After step in rule Background, described irregular control icons processing method also includes:
When text message in the initial text importing region or text importing region, end of every a line is punctuation mark, determine The type of described punctuation mark, wherein, the type of described punctuation mark includes left side punctuation mark, right side punctuation mark and independence Punctuation mark;
According to initial text importing region or text importing region, end, and the type of described punctuation mark, described in adjustment not The position of punctuation mark described in rule Background.
CN201610363369.8A 2016-05-27 2016-05-27 Irregular control icons processing unit and method Active CN106095744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610363369.8A CN106095744B (en) 2016-05-27 2016-05-27 Irregular control icons processing unit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610363369.8A CN106095744B (en) 2016-05-27 2016-05-27 Irregular control icons processing unit and method

Publications (2)

Publication Number Publication Date
CN106095744A true CN106095744A (en) 2016-11-09
CN106095744B CN106095744B (en) 2019-01-08

Family

ID=57230121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610363369.8A Active CN106095744B (en) 2016-05-27 2016-05-27 Irregular control icons processing unit and method

Country Status (1)

Country Link
CN (1) CN106095744B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264017A (en) * 2019-06-28 2019-09-20 合肥阳光新能源科技有限公司 A kind of photovoltaic component arrangement method and photovoltaic array build the method for determination
CN112140354A (en) * 2019-06-27 2020-12-29 厦门链石网络科技股份有限公司 Typesetting method for large stone slab
CN112672198A (en) * 2020-12-14 2021-04-16 海看网络科技(山东)股份有限公司 EPG (electronic program guide) special-shaped graph assembly and display method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558340A (en) * 2004-02-06 2004-12-29 珠海金山软件股份有限公司 Typesetting method
CN1828581A (en) * 2006-04-14 2006-09-06 北京北大方正电子有限公司 Layout method for word content fitting rectangular words frame
CN1920811A (en) * 2006-08-31 2007-02-28 北京北大方正电子有限公司 Character typesetting method
CN1952923A (en) * 2006-11-22 2007-04-25 北京北大方正电子有限公司 A typesetting method of character in monotonic range
CN101937569A (en) * 2009-06-30 2011-01-05 北京大学 Character laydown method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558340A (en) * 2004-02-06 2004-12-29 珠海金山软件股份有限公司 Typesetting method
CN1828581A (en) * 2006-04-14 2006-09-06 北京北大方正电子有限公司 Layout method for word content fitting rectangular words frame
CN1920811A (en) * 2006-08-31 2007-02-28 北京北大方正电子有限公司 Character typesetting method
CN1952923A (en) * 2006-11-22 2007-04-25 北京北大方正电子有限公司 A typesetting method of character in monotonic range
CN101937569A (en) * 2009-06-30 2011-01-05 北京大学 Character laydown method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHAO-LUN LEE等: "Using Genetic Algorithms to Solve Luggage Typesetting Problem", 《IEEE CONGRESS ON EVOLUTION COMPUTATION》 *
李治江等: "基于矩形Packing问题求解的页面自动排版方法", 《山东农业大学学报(自然科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112140354A (en) * 2019-06-27 2020-12-29 厦门链石网络科技股份有限公司 Typesetting method for large stone slab
CN112140354B (en) * 2019-06-27 2023-08-22 厦门链石网络科技股份有限公司 Typesetting method for stone large plate
CN110264017A (en) * 2019-06-28 2019-09-20 合肥阳光新能源科技有限公司 A kind of photovoltaic component arrangement method and photovoltaic array build the method for determination
CN110264017B (en) * 2019-06-28 2022-02-15 阳光新能源开发股份有限公司 Photovoltaic component arrangement method and photovoltaic array construction determination method
CN112672198A (en) * 2020-12-14 2021-04-16 海看网络科技(山东)股份有限公司 EPG (electronic program guide) special-shaped graph assembly and display method thereof

Also Published As

Publication number Publication date
CN106095744B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN106210307B (en) Mobile terminal and screen switching
CN105511680B (en) Terminal screen touch device and method
CN105094308B (en) Terminal and its operating method
CN109407936B (en) Screenshot method and related device
US10834424B2 (en) Method and device for compressing image, and electronic device
CN107092453B (en) Screen display control method and device and terminal
CN105719560B (en) Electronic equipment and its control method
CN106055252B (en) Mobile terminal and its split screen display available processing method
CN106155476A (en) Mobile terminal and screen content changing method
CN107132946A (en) Fingerprint recognition based reminding method, device, storage medium and computer equipment
CN102934068A (en) Method, apparatus and computer program product for joining the displays of multiple devices
WO2019085820A1 (en) Processing method, device, apparatus, and machine-readable medium
CN106598569A (en) Screen lightening method for mobile terminal and mobile terminal
CN106547446A (en) Using switching device and method
CN106775059A (en) Dual-screen electronic device visualized operation real-time display method and equipment
CN106020698A (en) Mobile terminal and realization method of single-hand mode
CN106095744A (en) Irregular control icons processing means and method
CN103246474A (en) Electronic device with touch screen and page content display method thereof
CN104765528A (en) Display method and device of virtual keyboard
CN105843379B (en) Mobile terminal edge induction zone converting means and method
CN106569689A (en) Privacy protection device and method
CN106407027A (en) An information display method for a mobile terminal and a mobile terminal
US20160154545A1 (en) Electronic device and method for managing and displaying application icons
CN105468716A (en) Picture search device and method, and terminal
CN104104781B (en) A kind of method and device showing SIM cards of mobile phones contact person

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant