CN104899184B - Literal processing method, apparatus and system - Google Patents
Literal processing method, apparatus and system Download PDFInfo
- Publication number
- CN104899184B CN104899184B CN201410075737.XA CN201410075737A CN104899184B CN 104899184 B CN104899184 B CN 104899184B CN 201410075737 A CN201410075737 A CN 201410075737A CN 104899184 B CN104899184 B CN 104899184B
- Authority
- CN
- China
- Prior art keywords
- text
- information
- processed
- style
- word processing
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 53
- 238000012545 processing Methods 0.000 claims abstract description 237
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000011218 segmentation Effects 0.000 claims description 30
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000013507 mapping Methods 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 8
- 235000013399 edible fruits Nutrition 0.000 claims description 7
- 230000001960 triggered effect Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 28
- 230000015654 memory Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 23
- 239000000463 material Substances 0.000 description 11
- 230000003321 amplification Effects 0.000 description 9
- 238000003199 nucleic acid amplification method Methods 0.000 description 9
- 241000083869 Polyommatus dorylas Species 0.000 description 3
- 229910000831 Steel Inorganic materials 0.000 description 3
- 239000003086 colorant Substances 0.000 description 3
- 239000010959 steel Substances 0.000 description 3
- 239000010981 turquoise Substances 0.000 description 3
- YXZRCLVVNRLPTP-UHFFFAOYSA-J turquoise blue Chemical compound [Na+].[Na+].[Na+].[Na+].[Cu+2].NC1=NC(Cl)=NC(NC=2C=C(NS(=O)(=O)C3=CC=4C(=C5NC=4NC=4[N-]C(=C6C=CC(=CC6=4)S([O-])(=O)=O)NC=4NC(=C6C=C(C=CC6=4)S([O-])(=O)=O)NC=4[N-]C(=C6C=CC(=CC6=4)S([O-])(=O)=O)N5)C=C3)C(=CC=2)S([O-])(=O)=O)=N1 YXZRCLVVNRLPTP-UHFFFAOYSA-J 0.000 description 3
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 2
- 238000004040 coloring Methods 0.000 description 2
- 239000002184 metal Substances 0.000 description 2
- 229910052751 metal Inorganic materials 0.000 description 2
- 239000004576 sand Substances 0.000 description 2
- 239000002436 steel type Substances 0.000 description 2
- 240000000233 Melia azedarach Species 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000002224 dissection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 229910052742 iron Inorganic materials 0.000 description 1
- 125000006850 spacer group Chemical group 0.000 description 1
- 239000002023 wood Substances 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of literal processing methods, apparatus and system, text picture is generated after being patterned processing by the text in the word processing that sends to terminal request, and return to terminal, so that terminal also can correctly show the text with the text effects after server process without having corresponding terminal versions and fontlib identical with server.Also, since terminal is without handling text, if the server side in resource relative abundance carries out word processing, efficiency is relatively high, and terminal is without having the resources such as more memories.In this way, not only increasing the diversity and flexibility of word processing, and improve the efficiency of word processing.
Description
Technical field
The present invention relates to word processing technology more particularly to a kind of literal processing methods, apparatus and system.
Background technique
It is generally carried out in terminal in general, carrying out editing and processing to the image in photo, picture.If user attempts editing
Text is added during photo or picture, so that treated photo or picture effect are more ideal, then in addition text
When word, it is also necessary to effect process is carried out to text, so that text is more lively, to be superimposed effect with the photo of editor or picture
Fruit reaches best.
In the prior art, the processing of text is completed in terminal.When needing to handle text in a certain terminal, needed in the terminal
Has corresponding fontlib.If the terminal does not have corresponding fontlib, need to download from network side or from other
It is obtained in equipment.When the terminal has corresponding fontlib, terminal instructs depending on the user's operation calls corresponding fontlib
Text is performed corresponding processing.Later, by treated, text is folded with photo or picture for instruction depending on the user's operation
Add, completes the editing and processing to photo or picture.
But complete word processing in terminal and limited by the resources such as terminal versions and fontlib are not complete, cause existing
Technology Chinese word processor is limited, and inefficiency.
Summary of the invention
It is an object of the invention to propose a kind of literal processing method, apparatus and system, so that literal processing method is more
Multiplicity, and improve word processing efficiency.
To achieve this purpose, the present invention adopts the following technical scheme:
A kind of literal processing method, comprising:
The word processing request that terminal is sent is received, carries pending text in the word processing request;
The word processing request is patterned processing to the text to be processed based on the received, obtains text figure
Piece;
The text picture is returned into the terminal.
A kind of literal processing method, comprising:
Word processing request is sent to server, so that the server is requested to described according to the word processing wait locate
The text of reason is patterned processing, obtains text picture, wherein carries pending text in the word processing request
Word;
Receive the text picture that the server is requested according to the word processing.
A kind of character processor, comprising:
Receiving module carries in the word processing request wait locate for receiving the word processing request of terminal transmission
The text of reason;
Graphical module, for being requested according to the received word processing of the receiving module to the text to be processed
Word is patterned processing, obtains text picture;
Sending module, the text picture for obtaining the graphical module return to the terminal.
A kind of character processor, comprising:
Sending module, for sending word processing request to server, so that the server is according to the word processing
Request is patterned processing to the text to be processed, obtains text picture, wherein carries in the word processing request
Pending text;
Receiving module, the text picture requested for receiving the server according to the word processing.
A kind of word processor, including above two character processor.
Literal processing method, the apparatus and system of above-mentioned technical proposal offer, by being asked to the word processing that terminal is sent
The text asked generates text picture after being patterned processing, and returns to terminal, so that terminal is without having corresponding end
Version and fontlib identical with server are held, also can correctly show the text with the text effects after server process.
Also, since terminal is not necessarily to handle text, the load of terminal is alleviated, and in the smooth situation of network, if
The server side of resource relative abundance carries out word processing, then efficiency is relatively high, and terminal is more interior without having
The resources such as deposit.In this way, not only increasing the diversity and flexibility of word processing, and improve the efficiency of word processing.
Detailed description of the invention
Fig. 1 is a kind of flow chart of literal processing method provided in an embodiment of the present invention;
Fig. 2 is the data structure schematic diagram of literal processing method Chinese characters formula provided in an embodiment of the present invention;
Fig. 3 is one of literal processing method provided in an embodiment of the present invention text effects schematic diagram;
Fig. 4 is another text effects schematic diagram in literal processing method provided in an embodiment of the present invention;
Fig. 5 is another text effects schematic diagram in literal processing method provided in an embodiment of the present invention;
Fig. 6 is another text effects schematic diagram in literal processing method provided in an embodiment of the present invention;
Fig. 7 is another text effects schematic diagram in literal processing method provided in an embodiment of the present invention;
Fig. 8 is another text effects schematic diagram in literal processing method provided in an embodiment of the present invention;
Fig. 9 is the flow chart of another literal processing method provided in an embodiment of the present invention;
Figure 10 is the flow chart of another literal processing method provided in an embodiment of the present invention;
Figure 11 is that terminal side is interacted with server side at progress text in literal processing method provided in an embodiment of the present invention
The schematic diagram of reason;
Figure 12 is a kind of structural schematic diagram of character processor provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of another character processor provided in an embodiment of the present invention;
Figure 14 is a kind of structural schematic diagram of word processor provided in an embodiment of the present invention.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a kind of flow chart of literal processing method provided in an embodiment of the present invention.Method shown in FIG. 1 is by network side
Equipment such as server or other resources network side equipment more abundant are realized, are specifically included:
Step 11 receives the word processing request that terminal is sent, and carries pending text in the word processing request
Word.
For example, can be logged in by the browser installed in a certain terminal corresponding when client needs to handle text
Website, input text to be processed in the dialog interface that the Website server provides, click send button and carry out sending text
Word processing request.The text to be processed of user's input is carried in word processing request.Word processing request passes through network
Transmission reaches the Website server.The Website server receives word processing request, knows that the terminal has to the word processing
The request that text to be processed in request is handled.
Step 12, the word processing request is patterned processing to the text to be processed based on the received, obtains
To text picture.
For example, above-mentioned Website server is patterned processing to text to be processed according to above-mentioned word processing request
Afterwards, the file of picture format is generated.Content in picture is treated text, it is believed that the picture is text picture.
When graphical treatment, server can call setting of the drawing tools to text progress font, size and color to be processed etc.
And adjusting, eventually form picture.
The text picture is returned to the terminal by step 13.
For example, above-mentioned Website server, which will handle obtained text picture by above-mentioned steps 12, returns to above-mentioned terminal.
Due to server return to terminal be picture format file, terminal is without having corresponding terminal version
Sheet and fontlib identical with server also can correctly show the text with the text effects after server process.Also,
Due to handling in the server side of resource relative abundance text, terminal alleviates terminal without handling text
Load, and in the smooth situation of network, the efficiency of word processing is relatively high, and terminal is without having in more
The resources such as deposit.In short, literal processing method provided in an embodiment of the present invention not only increase word processing diversity and flexibly
Property, and improve the efficiency of word processing.
In literal processing method provided in an embodiment of the present invention, server can be under the manipulation of website staff to text
Word is patterned processing, generates text picture, can also entirely autonomous realization word processing, generate text picture, can be with
Word processing is realized according to the user of terminal is specified, generates text picture.
When server can be patterned processing, generation text picture to text under the manipulation of website staff
When, the operation of server is similar to the word processing of terminal side, and the operational order that server receives website personnel input executes phase
Text to be processed is patterned processing, generates text picture by the operation answered.
When the entirely autonomous realization word processing of server, when generating text picture, at text provided in an embodiment of the present invention
In reason method, the word processing request is patterned processing to the text to be processed based on the received, it may include:
Text to be processed in word processing request is segmented;
Matched text style information is obtained according to word segmentation result, the matched text style information includes fontlib letter
Breath, font size information and font special-effect information;
According to the text style information of acquisition by the word processing to be processed be corresponding figure.
Wherein, the data structure of text style can be as shown in Fig. 2, can to place fontlib, font in text style catalogue big
Small and three catalogues of font special efficacy can place the mesh such as Chinese font library, english font library and symbol font library in font library directory
Record.Regular script, imitation Song-Dynasty-style typeface, the Song typeface, running hand, Chinese carefully black etc. character font data, english font library can be placed in Chinese font library directory
In can place Times New Roman, Arial Unicode MS, Batang, BatangChe etc., can be put in symbol font library
Set Latin language, punctuate, digital form, operator, currency symbol etc..Wherein, regular script, imitation Song-Dynasty-style typeface, the Song typeface, running hand, Chinese are thin black
Times New Roman, Arial Unicode MS, Batang, BatangChe, Latin language, punctuate, digital form, operation
Symbol, currency symbol etc. belong to fontlib information, just call word corresponding with fontlib information when specifically used from fontlib
Volume data handles text to be processed.
The catalogues such as Chinese font size, english font size and symbol font size can be placed in font size catalogue.
First number, small first, No.1, one, No. two small, small two etc. font sizes number can be placed in Chinese font size catalogue
According to may include 5,5.5,6.5,7.5,8,9,10 etc. font sizes in english font size catalogue and symbol font size catalogue
Data.First number, it is small just, it is No.1, one, No. two small, small two, 5,5.5,6.5,7.5,8,9,10 etc. be font size information, tool
Just call font size data corresponding with font size information to text to be processed from font size catalogue when body uses
It is handled.
It can be placed in font special efficacy catalogue: font style, base map configuration, part of speech special efficacy, font color configuration, crisperding, screening
It covers, interlock up and down, the catalogues such as shade.
Unit data file can be placed in pattern unit directory.Unit data file is to be with word for providing text style
Unit sets pattern, or sets pattern as unit of word or sentence.For example, placing the data of word unit in pattern unit directory
The data of file (assuming that the entitled word unit of file), the data file of word unit (assuming that the entitled word unit of file) and sentence unit
File (assuming that the entitled sentence unit of file), then when setting text style, in the text style information that provides, font special efficacy letter
Breath may include filename such as word unit, word unit or the sentence unit of these data files.It, can be according to font spy when specifically used
Effect information transfers corresponding unit data file from pattern unit directory, thus to be processed as unit of word, word or sentence
Text be patterned processing.By taking " happy New Year " as an example, it is assumed that wrapped in font special-effect information in matched text style information
Pattern unit information and crisperding base map configuration information are included, if pattern unit information is word unit, is carrying out special effect processing
When, base map is separately provided to " new ", " year " and " good " three words respectively;If pattern unit information be word unit, into
When row special effect processing, base map is separately provided to " New Year " and " good " respectively;If pattern unit information is sentence unit,
When carrying out special effect processing, to " happy New Year " whole installation base map.
The catalogues such as base map picture list and base map preferred order can be placed in base map config directory.Base map picture list catalogue
In may include various picture data files, for for character graph processing background picture material is provided.Base map preferred order mesh
Record may include various base map preferred order data files, and base map preferred order data file gives the base map picture list mesh
The priority data of various picture data files in record.For example, be placed in base map picture list catalogue picture A1, A2 ... and
An, then placed in base map preferred order catalogue picture A1, A2 ... and An different preferred order data file B1, B2 ... and
Bm.In preferred order data file B1, picture A2's is selected highest priority;In preferred order data file B2, picture An
Be selected highest priority;In preferred order data file Bm, picture A2's is selected highest priority, etc..Base map figure
It may also comprise plurality of picture catalogue in piece list directory, multiple pictures may be placed under picture directory not of the same race.Such as steel class
It placed different steel pictures in the picture directory of type, placed different fruit pictures in the picture directory of fruit type.
In this case, the preferred order file placed in base map preferred order catalogue can provide different steel in steel type picture
The preferred order of iron picture, the preferred order of different fruit pictures, can also further provide selection not in fruit type picture
The sequence of picture of the same race, such as the preferred order of steel type picture and fruit type picture.It is with " the changeable text of intention camera "
Example, it is assumed that font special-effect information includes pattern unit information and base map configuration information, sample in matched text style information
Formula unit information is word unit, and base map configuration information is picture ink stick, then is patterned place to " the changeable text of intention camera "
When reason, the data file of word unit is transferred from pattern unit directory according to pattern unit information, according to base map configuration information from
The data file of picture ink stick is transferred in base map picture list catalogue, respectively to " wound ", " meaning ", " phase ", " machine ", " hundred ", " change ",
Base map is arranged in " text " and " word ", obtains text effects as shown in Figure 3.By taking " the changeable combination of intention camera " as an example, it is assumed that with it
Font special-effect information includes pattern unit information and base map configuration information in matched text style information, and pattern unit information is
Sentence unit, base map configuration information is picture gradual change grid, then when being patterned processing to " the changeable text of intention camera ", root
The data file for transferring sentence unit from pattern unit directory according to pattern unit information, according to base map configuration information from base map figure
A bottom is arranged to " the changeable combination of intention camera " entire sentence in the data file that picture gradual change grid is transferred in piece list directory
Figure, obtains text effects as shown in Figure 4.
Font amplification/number of revolutions and part of speech priority arrangement catalogue can be placed in part of speech special efficacy catalogue.Font amplification/rotation
Turn amplification/number of revolutions data file that various parts of speech can be placed in number catalogue and part of speech priority arrangement data file.
For example, placed amplification/number of revolutions data file of verb in font amplification/number of revolutions catalogue (assuming that file is entitled
It is dynamic to put rotation), the amplification/rotation of amplification/number of revolutions data file (assuming that filename, which is run after fame, puts rotation) and conjunction of noun
Data file (assuming that the entitled Lian Fangxuan of file) of number, etc..With " the changeable text of intention camera " and " changeable group of intention camera
Close " for, it is assumed that it include pattern unit information and font amplification/number of revolutions information in font special-effect information, if style sheet
Position information is word unit, and font amplification/number of revolutions information is that adjective and verb amplify twice, and noun, which is put, to be twice, then " wound
Anticipate the changeable text of camera " and " the changeable combination of intention camera " graphical treatment after it is as shown in Figure 5 and Figure 6, adjective " intention " and
Verb " changeable " is all twice than noun " camera " and " combination ".Part of speech priority row can be placed in part of speech priority arrangement catalogue
Column data file, to provide the priority arrangement sequence of noun, verb, adjective, conjunction etc. part of speech.
Color group and color preferred order catalogue can be placed in font color config directory, can be placed not in color group catalogue
With the data file of color, the data file of different color preferred orders can be placed in color preferred order catalogue.For example, face
Can be placed in colour cell catalogue red data file, the data file of green, the data file of purple, the data file of blue,
The data file of orange data file etc. color, the color naming of data file data available file description, e.g., red,
Green, purple, blue, orange etc..Font special-effect information may include the filename of the data file of these colors, specifically used
When, corresponding data file can be called according to the filename of the data file of these colors, to text to be processed
Reason.By taking " the changeable text of intention camera " as an example, it is assumed that font special-effect information includes pattern in matched text style information
Unit information and font color configuration information, if pattern unit information is sentence unit, font color configuration information is white,
When being then patterned processing to " the changeable text of intention camera ", the data text of sentence unit is transferred according to pattern unit information
Part is transferred the data file of white according to font color configuration information, is obtained after processing, text effects as shown in Figure 3.If
Pattern unit information is word unit, and in font color configuration information, color group information is turquoise, turquoise blue, navy blue and green
Color, color preferred order are arranged as sequence n: turquoise blue, green, turquoise and navy blue, then to " the changeable text of intention camera "
When being patterned processing, the data file of word unit is transferred according to pattern unit information, according to font color configuration information tune
The data file of turquoise, turquoise blue, navy blue and green and the data file of sequence n are taken, is obtained after processing, such as Fig. 5 institute
The text effects shown.By taking " the changeable combination of intention camera " as an example, it is assumed that font special efficacy is believed in matched text style information
Breath includes pattern unit information and font color configuration information, if pattern unit information is sentence unit, font color configuration
Information is black, then when being patterned processing to " the changeable combination of intention camera ", transfers sentence list according to pattern unit information
The data file of position, the data file of black is transferred according to font color configuration information, is obtained after processing, as shown in Figure 4 and Figure 6
Text effects.
Crisperding width catalogue, crisperding color group catalogue and crisperding color preferred order catalogue can be placed in crisperding catalogue.It hooks
The data file that different in width can be placed in hem width degree catalogue, such as the width data file of 0.5mm, the width data file of 1mm,
Width data file of 1.5mm etc.;Crisperding color group catalogue is similar with font color config directory, wherein different face can be placed
The data file of color;Crisperding color preferred order catalogue is similar with the color preferred order catalogue in font color config directory,
The data file of different color preferred orders can wherein be placed.By taking " the changeable combination of intention camera " as an example, if matched text
Crisperding information gives width information -- 1mm and crisperding colouring information -- white in word style information, then to " intention camera is changeable
Combination " transfers the width data file of 1mm and the data file of white when being handled from crisperding catalogue, to " wound ",
" meaning ", " phase ", " machine ", " hundred ", " change ", " group " and " conjunction " carries out width respectively and handles into the white crisperding of 1mm, obtains such as Fig. 6
Shown in text effects.If crisperding information gives width information in matched text style information -- 1mm, crisperding color letter
Ceasing -- red, orange, blue, purple and green and crisperding color preferred order information -- color to select sequence is m: purple,
It is green, red, blue, orange, then when handling " the changeable combination of intention camera ", the width of 1mm is transferred from crisperding catalogue
The data file for spending data file and white, carries out " wound ", " meaning ", " phase ", " machine ", " hundred ", " change ", " group " and " conjunction " respectively
Width is the crisperding processing of the different colours of 1mm, obtains text effects as shown in Figure 7.
The material picture data files that unlike material can be placed in mask catalogue, such as the picture materials data text of wood texture
Part, the picture materials data file of metal-like, picture materials data file of grains of sand texture etc..The data text of different materials
Part can be used the information of corresponding texture to name such as timber quality, metal quality, grains of sand quality, and the filename of these data files can
Different text styles is defined as the mask information in font special-effect information.It, can be according to mask information from screening when specifically used
Corresponding picture materials data file is transferred in cover catalogue, and quality processing is carried out to text.It is with " the changeable combination of intention camera "
Example, it is assumed that the mask information of font special-effect information is metal quality in matched text style information, then according to the mask information
The picture materials data file that metal-like is chosen from mask catalogue carries out quality processing to " the changeable combination of intention camera ", obtains
To text effects as shown in Figure 8.
Staggered spacer unit data file up and down can be placed in upper and lower staggered schedule, carry out handing over up and down such as unit of word
It is misplaced to set, or carry out being staggeredly placed up and down as unit of word, or every several words, one or more words are raised or drawn
It is low, the size without changing text.By taking " the changeable text of intention camera " as an example, it is assumed that handed over up and down in matched text style information
Wrong information is interlocked up and down between two neighboring word, then information of being interlocked up and down according to this is in " the changeable text of intention camera "
" wound " and " meaning ", " meaning " and " phase ", " phase " and " machine ", " machine " and " hundred ", " hundred " and " change ", " change " and " text ", " text " and
" word " carries out staggered position processing up and down, obtains text effects as shown in Figure 7.
The length data file of shade can be placed in shadow directory, the bearing data file such as shade of shade is on a left side for text
The data file of side, the right or front etc. information.The Shadows Processing in the softwares such as word, visio is specifically referred to, here
It repeats no more.
It should be noted that text style data structure is not limited in literal processing method provided in an embodiment of the present invention
Text style shown in Fig. 2 is according to structure, depending on actual needs.For example, can be also placed in font library directory Japanese fontlib,
The font library directory of other language such as Korean fontlib.Also, the word of different parts of speech can be also placed in each language fonts library directory
Such as specific fontlib is arranged specifically for verb in body library directory, and specific fontlib is arranged specifically for noun, specifically for
Specific fontlib, etc. is arranged in adjective.
In order to keep the effect of word processing more diversified and server remains to independently handle text, can set in advance
Fixed some rules, according to the adoptable text style information of Rule.
Illustratively, in literal processing method provided in an embodiment of the present invention, matched text is obtained according to word segmentation result
Style information, it may include:
It is obtained and the matched rule of the word segmentation result from list of rules;
According to the rule of acquisition, corresponding text style mark is found, the text style mark is for uniquely marking
Know corresponding text style;
It is identified to obtain corresponding fontlib information, font size information and font special efficacy according to the text style found
Information.
Wherein, rule sets the text that the text to be processed should use i.e. when text to be processed meets condition X1
Pattern Y1;When text to be processed meets condition X2, the text style Y2 that the text to be processed should use is set;... when to
When the text of processing meets condition X2, the text style Ym that the text to be processed should use is set.Wherein, Y1, Y2 ... Ym can
To be text style mark, different text style marks represents different text styles.That is, working as text to be processed
When meeting the condition in a certain rule, then text to be processed matches with the rule, the text style mark set in the rule
Know text style mark i.e. corresponding with text to be processed.
For example, preset rule has following three:
In rule 1, when user's input text is lateral, uniline and pure Chinese, matching literal pattern 1;
In rule 2, when user's input text is longitudinal, multirow and pure Chinese, matching literal pattern 2;
It, can be any one in matching literal pattern 1 and text style 2 when user inputs text with non-Chinese in rule 3
It is a.
Wherein, text style 1 and text style 2 are text style mark.
The information of text style 1 includes:
Fontlib information: refined black;
Font color information: black;
Crisperding colouring information: white;
Font size information: No. 45.
Wherein, font color information and crisperding information belong to font special-effect information.
The information of text style 2 includes:
Fontlib information: the Song typeface;
Font color information: black and white interval;
Crisperding information: nothing;
Font size information: 45.
The text to be processed carried in the word processing request that server is sent according to terminal first, it is possible to determine that wait locate
The text of reason is longitudinal or lateral;Word segmentation processing is carried out to text to be processed, may determine that according to word segmentation result to be processed
Text be language or punctuation mark, if it is language, if be pure Chinese, can also be known according to word segmentation result to be processed
Text in whether with line feed symbol, if there is indicating that text to be processed is multirow, if not provided, indicating text to be processed
Word is uniline.According to above-mentioned judging result, a rule such as rule 2 in above three rule can be finally matched, then wait locate
The text style of the characters matching of reason is the text style in the rule, such as the text style 2 in rule 2.
As can be seen that the different corresponding text styles of rule is different, it, can when server receives word processing request
Text to be processed is matched with rule, if the condition in text to be processed and rule A matches, server
Processing is patterned to text to be processed using the text style set in rule A.
When the multiple rules of characters matching to be processed, correspondingly, it is to be processed for handling to find multiple text styles
Text, that is to say, that server can find multiple text styles mark.In this case, text provided in an embodiment of the present invention
In word processing method, identified to obtain corresponding fontlib information, font size information and word according to the text style found
Body special-effect information, it may include:
A text style mark is filtered out from the text style mark found;
It is identified to obtain corresponding fontlib information, font size information and font special efficacy letter according to the text style of screening
Breath.
Wherein, screening is used during a text style mark is filtered out from the text style mark found
Mode depending on actual business requirement, can be random, circulation or other any modes.Fontlib information, font size
Information and font special-effect information are detailed in the explanatory note of above-mentioned Fig. 2.
It is identified to obtain corresponding fontlib information, font size information and font special efficacy according to the text style of selection
Information, it may include:
It is identified according to the text style of selection, corresponding fontlib letter is obtained from pattern file or pattern list
The content of breath, font size information and font special-effect information, the pattern file is the pattern list, and the pattern list is
Text style mark and the mapping table between fontlib information, font size information and font special-effect information.
Wherein, pattern file can be the file of descriptive text style information, can store and handles to text
Server in, also can store in a certain storage equipment other than word processing server, in use, word processing service
Device can read pattern table data from the storage equipment.Alternatively, pattern table data is stored in the interior of word processing server
In depositing, when use, is directly called from memory.
When the rule of characters matching to be processed is by part of speech setting text style, at text provided in an embodiment of the present invention
In reason method, according to the text style information of acquisition by the word processing to be processed be corresponding figure, it may include:
It is corresponding by the word processing to be processed according to the word segmentation result and the text style information of acquisition
Figure.
For example, rule A is set when having noun in text to be processed, noun therein uses text style a, regular B to set
When having verb in fixed text to be processed, verb therein uses text style b, it is assumed that include in text to be processed noun and
Verb, then server selects text style a and text style b to handle text to be processed, due to server also score
Distinguish the noun and verb in text to be processed, therefore, it is also desirable in conjunction with to text to be processed segmented as a result, knowing
Noun and verb therein, to be patterned processing to noun using text style a, using text style b to verb into
Row graphical treatment.
When server realizes word processing according to the user of terminal is specified, when generating text picture, the embodiment of the present invention is mentioned
In the literal processing method of confession, specified text style mark, the text sample can be also carried in the word processing request
Formula mark is used for the corresponding text style of unique identification;
Correspondingly, the word processing request is patterned processing to the text to be processed based on the received, can
Include:
Corresponding fontlib information, font size information and font special efficacy are obtained according to the specified text style mark
Information;
According to the fontlib information, font size information and the font special-effect information of acquisition, the text to be processed
Processing is corresponding figure.
Wherein, corresponding fontlib information, font size information and word are obtained according to the specified text style mark
Body special-effect information is detailed in the explanation in above-described embodiment, the pattern list that can read from pattern file or directly from pattern list
In find specified text style mark, according to the corresponding relationship with text style information, find corresponding text style letter
Breath, such as fontlib information, font size information and font special-effect information, using these information as diagram parameter to be processed
Text is patterned processing.
When specified text style is identified to languages or related part of speech, literal processing method provided in an embodiment of the present invention
In, according to the fontlib information, font size information and the font special-effect information of acquisition, the word processing to be processed is
Corresponding figure, it may include:
The text to be processed is segmented;
It, will be described according to word segmentation result and the fontlib information, font size information and the font special-effect information of acquisition
Word processing to be processed is corresponding figure.
For example, one is text style c, the other is text style d, this two there are two specified text style marks
A text style is directed to different part of speech or language, then server before being patterned processing, is needed to be processed
Text segmented, text to be processed is handled with text style information then in conjunction with word segmentation result.
Above-mentioned specified text style mark can be the text style mark in the pattern list of terminal storage.Terminal is deposited
The pattern list of storage can be downloaded periodically from network side, be also possible to word processing server and recommended terminal.
When word processing server is to terminal recommended styles list, literal processing method provided in an embodiment of the present invention
In, before receiving the word processing request that terminal is sent, it may also include that
To the terminal send pattern list, with for the user of the terminal be the text specified word to be processed
Pattern, the pattern list are that text style identifies between fontlib information, font size information and font special-effect information
Mapping table.
Wherein, pattern list is detailed in the explanation in above-described embodiment.
Wherein, server can independently be recommended to terminal, can also be recommended after terminal request.
When server is recommended according to the request of terminal, in literal processing method provided in an embodiment of the present invention, to
Before the terminal sends pattern list, it may also include that
Receive the recommendation request that the terminal is sent;
It is triggered according to the recommendation request to the terminal and sends pattern list.
Wherein, settable specific field in the message of recommendation request, the specific field can for terminal and server it
Between the agreement regulation established, both sides known to meaning represented by the specific field be that terminal request recommends text style.Clothes
Business device can also provide specific field when sending pattern list to terminal in the message of transmission, subsequent to provide pattern list number
According to the specific field in message that server is sent indicates that subsequent data are pattern list.
Alternatively, when generating text picture, the present invention is implemented when server realizes word processing according to the user of terminal is specified
In the literal processing method that example provides, specified text style information, the text can be also carried in the word processing request
Word style information includes at least one of fontlib information, font size information and font special-effect information;
The word processing request is patterned processing to the text to be processed based on the received, comprising:
Processing is patterned to the text to be processed according to the specified text style information.
For example, user can only specific font size, alternatively, user can only specific font special efficacy or user can be with
Only specific font or user can be specified with three.When user three is specified, asked by the word processing that terminal is sent
It will include that font size information, font special-effect information and fontlib information can after server receives word processing request in asking
Directly according to word processing request in font size information, font special-effect information and fontlib information, to text request handle
Text to be processed is patterned processing in request.
When user only includes one or both of fontlib information, font size information and font special-effect information information
When, in literal processing method provided in an embodiment of the present invention, according to the specified text style information to described to be processed
Text is patterned processing, it may include:
Text to be processed in word processing request is segmented;
Matched text style information is obtained according to word segmentation result, the matched text style information is the fontlib
Information in information, font size information and font special-effect information in addition to the specified text style information;
According to the text style information of acquisition and the specified text style information, by the word processing to be processed
For corresponding figure.
For example, only giving font size information in word processing request, then server can also request word processing
In text to be processed segmented, and fontlib information and font special-effect information are determined according to word segmentation result, combine text later
Font size information in word processing request is patterned processing to text to be processed in word processing request.
In above-described embodiment, participle can be by calling the participle interface of social application to realize, as server receives text
After processing request, it can be realized by calling QQ to segment interface to the participle of text to be processed, obtain the part of speech of text to be processed
Analyze result etc..
Fig. 9 is the flow chart of another literal processing method provided in an embodiment of the present invention.As shown in figure 9, this method
Process includes:
The processing for the character graph that step 91, server receiving terminal are sent is requested, in received word processing request
Carry pending text.
Step 92 carries out word segmentation processing to text to be processed in request.The participle based on part of speech can be used in word segmentation processing
Technology can also be used based on meaning of a word participle method, statistical morphology etc..
Step 93, judge in word processing request whether specified word pattern, as judge, word processing is in requesting
No carrying text style mark or text style information.If word processing request specifies text style, 95 are thened follow the steps;
Otherwise, step 94 is executed.It should be noted that step 93 can also be performed simultaneously with step 92 or execute before step 92.
Step 94 finds the rule to match with text to be processed according to word segmentation result, then executes step 95.
Step 95, pattern parsing.Specifically, it when not specified text style is requested in word processing, is then found from step 94
Rule in obtain text style mark, identified to obtain specific text style information, the text that will be obtained according to the text style
Word style information is as diagram parameter, the explanation that can specifically be detailed in above-described embodiment.When word processing request specifies text
When pattern, then text style information is directly obtained according to specified text style, using obtained text style information as drawing
Parameter, or directly using word processing request in text style information as diagram parameter.
Step 96 draws to text to be processed according to the diagram parameter that step 95 determines.
Step 97 after the completion of drawing, generates image data and returns to terminal.
Figure 10 is the flow chart of another literal processing method provided in an embodiment of the present invention.Method shown in Fig. 10 is eventually
The process flow of end side, it is corresponding with above method embodiment, it specifically includes:
Step 101 sends word processing request to server, so that the server is according to word processing request pair
The text to be processed is patterned processing, obtains text picture, wherein carries in the word processing request wait locate
The text of reason.Wherein, the explanation that word processing request can be detailed in step 11 in embodiment illustrated in fig. 1, service are sent to server
Device is patterned the explanation that processing can be detailed in above-mentioned any one embodiment to text.
Step 102 receives the text picture that the server is requested according to the word processing.
Terminal can be directly overlapped with photo or picture after receiving the text picture that server is sent, and completed picture and compiled
Volume, and text need not be handled again, both without upgraded version without downloading correspondingly fontlib, and due to eliminating text
Word processing step also mitigates the processing load of terminal, improves treatment effeciency.
By the embodiment of the literal processing method of above-mentioned server side it is found that terminal side may specify text style, this feelings
Under condition, in the literal processing method of terminal side provided in an embodiment of the present invention, word processing request is sent to server, can be wrapped
Include: Xiang Suoshu server sends the word processing request for carrying specified text style mark or text style information, described
Text style mark is used for the corresponding text style of unique identification, and the text style information includes at least fontlib information, word
One of body size information and font special-effect information.Wherein, text style mark, text style information etc. are detailed in above-mentioned service
The embodiment of the literal processing method of device side.
By the embodiment of the literal processing method of above-mentioned server side it is found that terminal side can also be according to the recommendation of server side
Specified word pattern, in this case, in the literal processing method of terminal side provided in an embodiment of the present invention, Xiang Suoshu server
Before sending the word processing request for carrying specified text style mark, it may also include that
Receive the pattern list that the server is sent, the pattern list be text style mark with fontlib information,
Mapping table between font size information and font special-effect information.Wherein, pattern list is detailed in the text of above-mentioned server side
Explanation in the embodiment of word processing method.
By the embodiment of the literal processing method of above-mentioned server side it is found that server can actively be recommended also passively to push away
It recommends, when server is passively recommended, in the literal processing method of terminal side provided in an embodiment of the present invention, receives the server
Before the pattern list of transmission, it may also include that
Recommendation request is sent to the server, is arranged so that the server returns to the pattern according to the recommendation request
Table.Wherein, recommendation request is detailed in the explanation in the embodiment of the literal processing method of above-mentioned server side.
Figure 11 is that terminal side is interacted with server side at progress text in literal processing method provided in an embodiment of the present invention
The schematic diagram of reason.As shown in figure 11, after the word processing that no specified word pattern is initiated in terminal side is requested, server side is executed
Step 111 is to step 115.
Wherein, in step 111, the text to be processed carried in word processing request is segmented, participle word is obtained
Property, category of language etc..
In step 112, rule match is carried out according to word segmentation result.During rule match, rule file can be advised
Then dissection process obtains list of rules, is then matched text to be processed with list of rules according to word segmentation result, or
It can directly be matched according to by the list of rules in memory with text to be processed.After the completion of matching, obtaining can be to be processed
Text be patterned the text style id list of processing.
In step 113, the text style id list that step 112 obtains is screened.
In step 114, the text style id obtained to step 113 screening is parsed, i.e., the text obtained according to screening
Pattern id obtains corresponding text style information from pattern list, or to obtain from pattern file text style id corresponding
Text style information, and the text style information that will acquire is as diagram parameter.
It draws in step 115, the diagram parameter according to obtained in step 114 finds phase from fontlib or style library
The material answered draws text to be processed using the material found, generates image data.Later, server is by the picture number of generation
According to being sent to terminal side.
Terminal side initiate specified word pattern word processing request after, server side execute step 111, step 114 and
Step 115.Wherein, step 111 and step 115 are detailed in explanation above.The difference of step 114 and above-mentioned steps 114 is: when
When identifying specified word pattern by carrying text style in the request, in step 114 to the text style in request identify into
Row parsing, obtains corresponding text style information as diagram parameter;When specified by carrying text style information in the request
When text style, directly using the text style information carried in request as diagram parameter in step 114.Wherein, text style
Information can be provided by way of pattern description string.
Server side can also actively or passively execute step 116, and recommended styles are obtained from pattern list, and pass through by
Pattern list is sent to terminal side, to provide reference for user's specified word pattern of terminal.
Terminal side can also initiate recommendation request to server side, and server side is asked in the recommendation for receiving terminal side transmission
Step 116 is passively executed in the case where asking.
Above embodiments provide technical solution in all or part of the content can be realized by software programming, software
Program store in a readable storage medium, storage medium for example: hard disk, computer readable memory, light in computer
Disk or floppy disk etc..
Figure 12 is a kind of structural schematic diagram of character processor provided in an embodiment of the present invention.Device shown in Figure 12 can
For server, for realizing the literal processing method of above-mentioned server side, comprising: receiving module 121,122 and of graphical module
Sending module 123.
Receiving module 121 is used to receive the word processing request of terminal transmission, carried in word processing request to
The text of processing.
Graphical module 122 is used for according to the received word processing request of the receiving module 121 to described wait locate
The text of reason is patterned processing, obtains text picture.
The text picture that sending module 123 is used to obtain the graphical module 122 returns to the terminal.
Illustratively, the graphical module 122 can include:
First participle submodule, for being segmented to text to be processed in word processing request;
First pattern acquisition submodule, for obtaining matched text style according to the word segmentation result of the participle submodule
Information, the matched text style information include fontlib information, font size information and font special-effect information;
First processing submodule, the text style information for being obtained according to the first pattern analyzing sub-module will
The word processing to be processed is corresponding figure.
Illustratively, the first pattern acquisition submodule can include:
Rule match submodule, for being obtained and the matched rule of the word segmentation result from list of rules;
Style identifications acquisition submodule finds corresponding text style mark for the rule according to acquisition, described
Text style mark is used for the corresponding text style of unique identification;
Style information acquisition submodule, the text style mark for being found according to the style identifications acquisition submodule
Knowledge obtains corresponding fontlib information, font size information and font special-effect information.
Illustratively, the style information acquisition submodule can be specifically used for:
A text style mark is filtered out from the text style mark found;
It is identified to obtain corresponding fontlib information, font size information and font special efficacy letter according to the text style of screening
Breath.
Alternatively, the style information acquisition submodule can be specifically used for:
The text style mark found according to the style identifications acquisition submodule, from pattern file or pattern list
Middle to obtain corresponding fontlib information, font size information and font special-effect information, the content of the pattern file is the sample
Formula list, the pattern list are that text style identifies between fontlib information, font size information and font special-effect information
Mapping table.
Illustratively, the first processing submodule can be specifically used for:
It is corresponding by the word processing to be processed according to the word segmentation result and the text style information of acquisition
Figure.
Illustratively, specified text can also be carried in the received word processing request of the receiving module 121
Style identifications, the text style mark are used for the corresponding text style of unique identification;
Accordingly, the graphical module 122 can include:
Second pattern acquisition submodule is believed for obtaining corresponding fontlib according to the specified text style mark
Breath, font size information and font special-effect information;
Second processing submodule, the fontlib information, word for being obtained according to the second pattern analyzing sub-module
Body size information and font special-effect information, the word processing to be processed are corresponding figure.
Illustratively, the second processing submodule can be specifically used for:
The text to be processed is segmented;
It, will be described according to word segmentation result and the fontlib information, font size information and the font special-effect information of acquisition
Word processing to be processed is corresponding figure.
Illustratively, the sending module 123 can also be used at the text that the receiving module 121 receives that terminal is sent
Before reason request, Xiang Suoshu terminal sends pattern list, with specified for the text to be processed for the user of the terminal
Text style, the pattern list be text style mark with fontlib information, font size information and font special-effect information it
Between mapping table.
Illustratively, the receiving module 121 can also be used to send pattern column to the terminal in the sending module 123
Before table, the recommendation request that the terminal is sent is received, sends pattern column to trigger the sending module 123 to the terminal
Table.
Illustratively, specified text can also be carried in the received word processing request of the receiving module 121
Style information, the text style information include at least one in fontlib information, font size information and font special-effect information
Kind;
Accordingly, the graphical module 122 can be specifically used for:
Processing is patterned to the text to be processed according to the specified text style information.
Illustratively, the graphical module 122 can also be specifically used for:
Text to be processed in word processing request is segmented;
Matched text style information is obtained according to word segmentation result, the matched text style information is the fontlib
Information in information, font size information and font special-effect information in addition to the specified text style information;
According to the text style information of acquisition and the specified text style information, by the word processing to be processed
For corresponding figure.
The character processor of literal processing method provided in an embodiment of the present invention for realizing above-mentioned server side leads to
Cross graphical module by the text that terminal is sent be patterned processing after generate text picture, and by sending module will generate
Text picture return to terminal so that terminal is without having corresponding terminal versions and fontlib identical with server,
It can correctly show the text with the text effects after server process.Also, due to the server in resource relative abundance
Side handles text, and terminal is without handling text, and therefore, the efficiency of word processing is relatively high, and terminal
Without having the resources such as more memories.In short, literal processing method provided in an embodiment of the present invention not only increases text
The diversity and flexibility of processing, and improve the efficiency of word processing.
Figure 13 is the structural schematic diagram of another character processor provided in an embodiment of the present invention.Device shown in Figure 13
For terminal, for realizing the literal processing method of above-mentioned terminal side, it may include: sending module 131 and receiving module 132.
Sending module 131 be used for server send word processing request so that the server according to the text at
Reason request is patterned processing to the text to be processed, obtains text picture, wherein takes in the word processing request
With pending text.
Receiving module 132 is for receiving the text picture that the server is requested according to the word processing.
Illustratively, the sending module 131 can be specifically used for: the transmission of Xiang Suoshu server carries specified text sample
The word processing request of formula mark or text style information, the text style mark are used for the corresponding text sample of unique identification
Formula, the text style information include at least one of fontlib information, font size information and font special-effect information.
Illustratively, the receiving module 132 can also be used to take in institute's sending module 131 to server transmission
Before the word processing request identified with specified text style, the pattern list that the server is sent, the sample are received
Formula list is text style mark and the mapping table between fontlib information, font size information and font special-effect information.
Illustratively, the sending module 131 can also be used to receive what the server was sent in the receiving module 132
Before pattern list, Xiang Suoshu server sends recommendation request, so that the server is according to recommendation request return
Pattern list.
The character processor of literal processing method provided in an embodiment of the present invention for realizing above-mentioned terminal side, passes through
Sending module sends server side for the text of processing and is patterned processing, and receives server by receiving module and return
Image data so that terminal without having corresponding terminal versions and fontlib identical with server, also can correctly be shown
Text with the text effects after server process.Also, due to the server side in resource relative abundance to text into
Row processing, terminal is without handling text, and therefore, the efficiency of word processing is relatively high, and terminal is without having
The resources such as more memories.In short, literal processing method provided in an embodiment of the present invention not only increases the multiplicity of word processing
Property and flexibility, and improve the efficiency of word processing.
Figure 14 is a kind of structural schematic diagram of word processor provided in an embodiment of the present invention.As shown in figure 14, text
Processing system includes: terminal 141 and server 142.
Terminal 141 can be the text of any literal processing method for realizing above-mentioned terminal side provided by the above embodiment
Word processing device, server 142 can be any word processing for realizing above-mentioned server side provided by the above embodiment
The character processor of method.
Terminal 141 is used to for word processing request to be sent to server 142, and server 142 is used to be sent according to terminal 141
Word processing request processing is patterned to the text to be processed wherein carried after, generate image data be sent to terminal
141.Specific implementation is detailed in the explanation of above method embodiment.
Word processor provided in an embodiment of the present invention, by using character processor provided by the above embodiment,
Processing is carried out to text in server side and improves word processing efficiency, and reduces the version and resource requirement to terminal, is made
The cost for obtaining word processor reduces.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (16)
1. a kind of literal processing method characterized by comprising
The word processing that server receiving terminal is sent is requested, and carries pending text in the word processing request;
If specifying text style in the word processing request, server obtains text sample according to the specified text style
Formula information, and be corresponding figure by the word processing to be processed according to the obtained text style information;
Otherwise, server is requested according to the word processing, is segmented to the text to be processed, is obtained from list of rules
It takes and corresponding text style mark, the text is found according to the rule of acquisition with the matched rule of the word segmentation result
Style identifications are used for the corresponding text style of unique identification, obtain matched text sample according to the text style mark found
Formula information, and be corresponding figure, the rule by the word processing to be processed according to the text style information of acquisition
Then include at least one of the following conditions: text to be processed be laterally or longitudinal, text to be processed be uniline or multirow, to
Processing text whether be it is pure Chinese, participle after text to be processed part of speech, the text style information include fontlib information,
Font size information and font special-effect information;
Also, when the specified text style includes in fontlib information, font size information and font special-effect information
One or two kinds of information when, server segments the text to be processed, and according to word segmentation result obtain it is matched
Text style information, the matched text style information are the fontlib information, font size information and font special efficacy letter
Information in breath in addition to the specified text style information, server is according to the text style information of acquisition and described specified
Text style information, by the word processing to be processed be corresponding figure, to carry out figure to the text to be processed
Shape handles to obtain text picture;
The text picture is returned to the terminal by server.
2. the method according to claim 1, wherein identifying to obtain according to the text style found corresponding
Fontlib information, font size information and font special-effect information, comprising:
A text style mark is filtered out from the text style mark found;
It is identified to obtain corresponding fontlib information, font size information and font special-effect information according to the text style of screening.
3. the method according to claim 1, wherein identifying to obtain according to the text style found corresponding
Fontlib information, font size information and font special-effect information, comprising:
According to the text style mark found, corresponding fontlib information, word are obtained from pattern file or pattern list
Body size information and font special-effect information, the content of the pattern file are the pattern list, and the pattern list is text
Mapping table between style identifications and fontlib information, font size information and font special-effect information.
4. method according to claim 1-3, which is characterized in that will according to the text style information of acquisition
The word processing to be processed is corresponding figure, comprising:
It is corresponding figure by the word processing to be processed according to the word segmentation result and the text style information of acquisition
Shape.
5. the method according to claim 1, wherein also carrying specified text in word processing request
Style identifications, the text style mark are used for the corresponding text style of unique identification;
The word processing request is patterned processing to the text to be processed based on the received, comprising:
Corresponding fontlib information, font size information and font special efficacy letter are obtained according to the specified text style mark
Breath;
According to the fontlib information, font size information and the font special-effect information of acquisition, at the text to be processed
Reason is corresponding figure.
6. according to the method described in claim 5, it is characterized in that, being believed according to the fontlib information of acquisition, font size
The word processing to be processed is corresponding figure by breath and font special-effect information, comprising:
The text to be processed is segmented;
According to word segmentation result and the fontlib information, font size information and the font special-effect information of acquisition, by described wait locate
The word processing of reason is corresponding figure.
7. method according to claim 5 or 6, which is characterized in that before receiving the word processing request that terminal is sent, also
Include:
To the terminal send pattern list, with for the user of the terminal be the text specified word sample to be processed
Formula, the pattern list are text style mark and pair between fontlib information, font size information and font special-effect information
Answer relation table.
8. the method according to the description of claim 7 is characterized in that before sending pattern list to the terminal, further includes:
Receive the recommendation request that the terminal is sent;
It is triggered according to the recommendation request to the terminal and sends pattern list.
9. method according to claim 1 or 6, which is characterized in that the participle is by calling the participle of social application to connect
Cause for gossip is existing.
10. a kind of literal processing method characterized by comprising
Word processing request is sent to server, so that the server is requested according to the word processing, to text to be processed
Word is segmented, if specifying text style in word processing request, obtains text according to the specified text style
Style information, and be corresponding figure by the word processing to be processed according to the obtained text style information;Otherwise,
It is requested according to the word processing, the text to be processed is segmented, obtained from list of rules and tied with the participle
The matched rule of fruit finds corresponding text style mark, the text style mark is for only according to the rule of acquisition
The corresponding text style of one mark, according to the matched text style information of text style mark acquisition found, and according to
The word processing to be processed is corresponding figure by the text style information obtained, to the text to be processed
It is patterned processing and obtains text picture, wherein carry pending text, the rule in the word processing request
At least one including the following conditions: text to be processed is laterally or longitudinal, text to be processed is uniline or multirow, wait locate
The part of speech of the text to be processed after whether text is pure Chinese, segments is managed, the text style information includes fontlib information, word
Body size information and font special-effect information;Also, when the specified text style includes fontlib information, font size
When one or both of information and font special-effect information information, server segments the text to be processed, and root
Matched text style information is obtained according to word segmentation result, the matched text style information is the fontlib information, font
Information in size information and font special-effect information in addition to the specified text style information, server is according to the text of acquisition
The word processing to be processed is corresponding figure, to institute by word style information and the specified text style information
It states text to be processed and is patterned processing and obtain text picture;
Receive the text picture that the server is requested according to the word processing.
11. according to the method described in claim 10, it is characterized in that, sending word processing request to server, comprising: to institute
It states server and sends the word processing request for carrying specified text style mark or text style information.
12. according to the method for claim 11, which is characterized in that the transmission of Xiang Suoshu server carries specified text sample
Before the word processing request of formula mark, further includes:
The pattern list that the server is sent is received, the pattern list is text style mark and fontlib information, font
Mapping table between size information and font special-effect information.
13. according to the method for claim 12, which is characterized in that before receiving the pattern list that the server is sent,
Further include:
Recommendation request is sent to the server, so that the server returns to the pattern list according to the recommendation request.
14. a kind of character processor characterized by comprising
Receiving module carries pending for receiving the word processing request of terminal transmission in the word processing request
Text;
Graphical module, if for specifying text style in the received word processing request of the receiving module, according to
The specified text style obtains text style information, and will be described to be processed according to the obtained text style information
Word processing is corresponding figure;Otherwise, the text to be processed is segmented according to word processing request, from rule
It is then obtained in list and corresponding text style mark is found according to the rule of acquisition with the matched rule of the word segmentation result
Know, the text style mark is used for the corresponding text style of unique identification, is obtained according to the text style mark found
Matched text style information, and be corresponding by the word processing to be processed according to the text style information of acquisition
Figure obtains text picture to be patterned processing to the text to be processed, the rule include the following conditions extremely
Lack one kind: text to be processed is transverse direction or longitudinal direction, text to be processed is uniline or whether multirow, text to be processed are in pure
The part of speech of text to be processed after text, participle, the text style information includes fontlib information, font size information and font
Special-effect information;Also, when the specified text style includes fontlib information, font size information and font special efficacy letter
When one or both of breath information, server segments the text to be processed, and according to word segmentation result acquisition
The text style information matched, the matched text style information are that the fontlib information, font size information and font are special
Imitate information in addition to the specified text style information in information, server is according to the text style information of acquisition and described
Specified text style information, by the word processing to be processed be corresponding figure, with to the text to be processed into
Row graphical treatment obtains text picture;
Sending module, the text picture for obtaining the graphical module return to the terminal.
15. a kind of character processor characterized by comprising
Sending module, for sending word processing request to server, so that the server is requested according to the word processing
Text to be processed is segmented, if text style is specified in word processing request, according to the specified text
Pattern obtains text style information, and is corresponding by the word processing to be processed according to the obtained text style information
Figure;Otherwise, it is requested according to the word processing, the text to be processed is segmented, is obtained from list of rules
Corresponding text style mark, the text sample are found according to the rule of acquisition with the matched rule of the word segmentation result
Formula mark is used for the corresponding text style of unique identification, obtains matched text style according to the text style mark found
Information, and be corresponding figure by the word processing to be processed according to the text style information of acquisition, to described
Text to be processed is patterned processing and obtains text picture, wherein carries in the word processing request pending
Text, the rule include at least one of the following conditions: text to be processed is laterally or longitudinal, text to be processed is uniline
Still the part of speech of the text to be processed after whether multirow, text to be processed are pure Chinese, segment, the text style information include
Fontlib information, font size information and font special-effect information;Also, when the specified text style includes fontlib
When one or both of information, font size information and font special-effect information information, server is to the text to be processed
It is segmented, and matched text style information is obtained according to word segmentation result, the matched text style information is the word
Information in body library information, font size information and font special-effect information in addition to the specified text style information, service
The word processing to be processed is corresponding according to the text style information and the specified text style information of acquisition by device
Figure, obtain text picture to be patterned processing to the text to be processed;
Receiving module, the text picture requested for receiving the server according to the word processing.
16. a kind of word processor, which is characterized in that including character processor described in the claims 14 and right
It is required that character processor described in 15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410075737.XA CN104899184B (en) | 2014-03-04 | 2014-03-04 | Literal processing method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410075737.XA CN104899184B (en) | 2014-03-04 | 2014-03-04 | Literal processing method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104899184A CN104899184A (en) | 2015-09-09 |
CN104899184B true CN104899184B (en) | 2019-10-15 |
Family
ID=54031853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410075737.XA Active CN104899184B (en) | 2014-03-04 | 2014-03-04 | Literal processing method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104899184B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106569984B (en) * | 2015-10-10 | 2020-06-16 | 北京新美互通科技有限公司 | Method, device and system for automatically generating and transmitting color word stock |
CN106708788A (en) * | 2015-11-13 | 2017-05-24 | 北大方正集团有限公司 | Character typesetting method, system and apparatus |
CN105957136B (en) * | 2016-04-19 | 2019-05-07 | 广州视源电子科技股份有限公司 | Method and system for drawing artistic character effect |
CN106055295B (en) * | 2016-05-24 | 2018-11-16 | 腾讯科技(深圳)有限公司 | Image processing method, picture method for drafting and device |
CN106254454A (en) * | 2016-08-02 | 2016-12-21 | 大连文森特软件科技有限公司 | The inline graphics online literature editing system calculated based on moving distributing |
CN109241497A (en) * | 2018-09-27 | 2019-01-18 | 腾讯音乐娱乐科技(深圳)有限公司 | Text handling method and device |
CN109525900A (en) * | 2018-12-21 | 2019-03-26 | 广州华多网络科技有限公司 | Method, apparatus, terminal and the storage medium of watermark are added in video |
CN111915705B (en) * | 2019-05-07 | 2023-07-28 | 百度在线网络技术(北京)有限公司 | Picture visual editing method, device, equipment and medium |
CN112395825A (en) * | 2019-08-01 | 2021-02-23 | 北京字节跳动网络技术有限公司 | Method and device for processing special effects of characters |
CN114004213A (en) * | 2020-07-28 | 2022-02-01 | 华为技术有限公司 | Text graphical method and device and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1920754A (en) * | 2006-09-05 | 2007-02-28 | 北京搜狗科技发展有限公司 | Method and system for inputting artistic character/image into application program |
CN101594407A (en) * | 2008-05-26 | 2009-12-02 | 华为技术有限公司 | Information interactive method, device and system |
CN102222095A (en) * | 2011-06-10 | 2011-10-19 | 百度在线网络技术(北京)有限公司 | Equipment for converting webpage to be displayed and method thereof |
CN102509494A (en) * | 2011-11-21 | 2012-06-20 | 天津三星光电子有限公司 | Sign language image output device |
CN102819325A (en) * | 2012-07-21 | 2012-12-12 | 上海量明科技发展有限公司 | Input method and system for obtaining a plurality of character presenting effects |
CN102902658A (en) * | 2011-07-27 | 2013-01-30 | 腾讯科技(深圳)有限公司 | Colorful character displaying method and device |
CN103186912A (en) * | 2011-12-28 | 2013-07-03 | 北京神州泰岳软件股份有限公司 | Method and system for showing letter in picture format |
CN103327270A (en) * | 2013-06-28 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Image processing method, device and terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3076348B2 (en) * | 1989-12-14 | 2000-08-14 | 株式会社東芝 | Document shaping apparatus and document shaping method |
US20050216836A1 (en) * | 2002-08-09 | 2005-09-29 | Triplearc Uk Limited | Electronic document processing |
KR100958786B1 (en) * | 2007-10-08 | 2010-05-18 | 엔에이치엔(주) | Method and Apparatus for Editing Web Document |
-
2014
- 2014-03-04 CN CN201410075737.XA patent/CN104899184B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1920754A (en) * | 2006-09-05 | 2007-02-28 | 北京搜狗科技发展有限公司 | Method and system for inputting artistic character/image into application program |
CN101594407A (en) * | 2008-05-26 | 2009-12-02 | 华为技术有限公司 | Information interactive method, device and system |
CN102222095A (en) * | 2011-06-10 | 2011-10-19 | 百度在线网络技术(北京)有限公司 | Equipment for converting webpage to be displayed and method thereof |
CN102902658A (en) * | 2011-07-27 | 2013-01-30 | 腾讯科技(深圳)有限公司 | Colorful character displaying method and device |
CN102509494A (en) * | 2011-11-21 | 2012-06-20 | 天津三星光电子有限公司 | Sign language image output device |
CN103186912A (en) * | 2011-12-28 | 2013-07-03 | 北京神州泰岳软件股份有限公司 | Method and system for showing letter in picture format |
CN102819325A (en) * | 2012-07-21 | 2012-12-12 | 上海量明科技发展有限公司 | Input method and system for obtaining a plurality of character presenting effects |
CN103327270A (en) * | 2013-06-28 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Image processing method, device and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104899184A (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104899184B (en) | Literal processing method, apparatus and system | |
US10222962B2 (en) | Selective editing of images using editing tools with persistent tool settings | |
CN108197114B (en) | Method and device for detecting table data, storage medium and electronic device | |
CN111666123A (en) | Page theme control method and system and computer equipment | |
CN105160033B (en) | The processing method and processing device of expression character string | |
CN105204823B (en) | Generate the method and device of application program installation kit | |
CN110880000B (en) | Picture character positioning method and device, computer equipment and storage medium | |
CN105094775B (en) | Webpage generation method and device | |
CN110705237B (en) | Automatic document generation method, data processing device and storage medium | |
CN104267947A (en) | Method and device for editing popup picture | |
CN102222062A (en) | User space page personalized setting method and device for instant messaging system | |
US20120102390A1 (en) | Method and apparatus for generating widget | |
JP2015130158A (en) | Cloud-based font service system | |
US10628981B2 (en) | Techniques for editing vector graphics documents | |
CN110968808A (en) | Method and device for realizing webpage theme updating | |
CN107256236B (en) | Intelligent volume assembling method based on B/S mode | |
CN107402729A (en) | Printing template construction method and stencil marking method | |
CN106709960A (en) | Image storage method, device and system | |
CN111506551B (en) | Conference file extraction method, system and computer equipment | |
CN111339733A (en) | Batch picture rapid manufacturing method, system, terminal equipment and storage medium for commercial operation | |
CN106528820A (en) | Picture annotation processing method and system, and terminal | |
CN105975542A (en) | Character string input method and apparatus | |
DE10257871A1 (en) | System and method for notification of color palette deficiency | |
CN112084763A (en) | Wrong question management method and system | |
JP6803597B1 (en) | Logo design creation system, logo design creation method, and logo design creation program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240104 Address after: 518057, 35th Floor, Tencent Building, Keji Middle Road, High tech Zone, Shenzhen, Guangdong Province Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd. Address before: 2, 518044, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |