Summary of the invention
The embodiment of the invention provides a kind of text conversion method and device, solve when making text, it usually needs
According to the standard in fontlib, and preset font shows form corresponding with fontlib, when needing to the outer of font
When shape is simply adjusted, the adjustment of direct font shape but can not be directly carried out to already present text, it is caused
Text writing process can not transform graphical the technical issues of.
A kind of text conversion method provided in an embodiment of the present invention, comprising:
S1: the text of selection is replicated;
S2: the text of duplication is pasted for metafile;
S3: cancellation combination operation is carried out to the metafile.
Preferably, duplication is carried out to the text of selection to specifically include:
Text conversion instruction is got, and extracts selected text corresponding with text conversion instruction;
The text of selection is replicated.
Preferably, the text of Replica Selection is that the metafile specifically includes:
Judge whether text conversion instruction is singulated word instruction, if so, singulated word processing is carried out according to preset mode, then
Step S2 and S3 are executed, if it is not, thening follow the steps S2 and S3.
Preferably, singulated word processing is carried out according to preset mode to specifically include:
Extract the number of words of the text;
Text box is first replicated one by one according to the number of words, then the word in addition to the word of current singulated word processing is carried out
It deletes.
Preferably, cancellation combination operation is carried out to the metafile to specifically include:
Cancellation combination operation is carried out to the metafile, and forms corresponding vertex adjustable file.
A kind of text conversion device provided in the embodiment of the present invention, comprising:
Copied cells, for being replicated to the text of selection;
Pel converting unit, for pasting the text of duplication for metafile;
Cancel operating unit, for carrying out cancellation combination operation to the metafile.
Preferably, copied cells specifically include:
Subelement is extracted, for getting text conversion instruction, and extracts institute corresponding with text conversion instruction
The text of selection;
Subelement is replicated, for replicating to the text of selection.
Preferably, duplication subelement specifically includes:
Judgment module, for judging whether text conversion instruction is singulated word instruction, if so, triggering singulated word processing mould
Block, then trigger the pel converting unit and the cancellation operating unit, if it is not, then directly trigger the pel converting unit and
The cancellation operating unit;
The singulated word processing module, for carrying out singulated word processing according to preset mode.
Preferably, the singulated word processing module includes:
Extracting sub-module, for extracting the number of words of the text;
Submodule is deleted, for first being replicated text box one by one according to the number of words, then to except current singulated word processing
Word other than word deleted.
Preferably, cancel operating unit, specifically for carrying out cancellation combination operation to the metafile, and formed opposite
The vertex adjustable file answered.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
The embodiment of the invention provides a kind of text conversion method and devices, wherein text conversion method includes: S1: right
The text of selection is replicated;S2: the text of duplication is pasted for metafile;S3: metafile is carried out to cancel combination behaviour
Make.In the present embodiment, by being replicated to the text of selection, the text of duplication is pasted for metafile, finally to pel
File carries out cancellation combination operation, solves when making text, it usually needs preset according to the standard in fontlib, and
Font shows form corresponding with fontlib, but can not be direct when needing the shape to font simply to be adjusted
Carry out the adjustment of direct font shape to already present text, caused text writing process can not transform graphical technology
Problem.
Specific embodiment
The embodiment of the invention provides a kind of text conversion method and device, solve when making text, it usually needs
According to the standard in fontlib, and preset font shows form corresponding with fontlib, when needing to the outer of font
When shape is simply adjusted, the adjustment of direct font shape but can not be directly carried out to already present text, it is caused
Text writing process can not transform graphical the technical issues of.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, a kind of one embodiment of the text conversion method provided in the embodiment of the present invention includes:
S1: the text of selection is replicated;
In the present embodiment, when needing to the text editted, or the font of text edited carries out shape tune
When whole, need to replicate the text of selection.
S2: the text of duplication is pasted for metafile;
After being replicated to the text of selection, needs the text by duplication to paste for metafile, need to illustrate
It is that above-mentioned to paste the text of duplication for metafile, can be WPS or OFFICE software in calling system, " selectivity is viscous
It is " Office enhanced metafile " that patch " function, which is pasted,.
S3, cancellation combination operation is carried out to metafile.
After pasting the text of duplication for metafile, need to carry out cancellation combination operation to metafile, it can be with
Understand, it is above-mentioned to cancel combination operation and can be copy editor's software of calling system, such as WPS or OFFICE software
Cancel combination function and cancellation is combined to the picture for copying as metafile.
In the present embodiment, by being replicated to the text of selection, the text of duplication is pasted for metafile, it is finally right
Metafile carries out cancellation combination operation, solves when making text, it usually needs according to the standard in fontlib, and in advance
The font set shows that form corresponding with fontlib but can not when needing the shape to font simply to be adjusted
Directly carry out the adjustment of direct font shape to already present text, caused text writing process can not transform graphical
Technical problem.
The above is that the process of text conversion method is described in detail, below will to specific conversion process further into
Row description, referring to Fig. 2, a kind of another embodiment of the text conversion method provided in the embodiment of the present invention includes:
201, text conversion instruction is got, and extracts selected text corresponding with text conversion instruction;
In the present embodiment, when needing to the text editted, or the font of text edited carries out shape tune
When whole, need to get text conversion instruction, and extract selected text corresponding with text conversion instruction, it is selected
The text selected can be text or text box, it is to be understood that text conversion instruction can be to be triggered on interface.
202, judge whether text conversion instruction is singulated word instruction, if so, 203 are thened follow the steps, if it is not, then executing step
Rapid 204;
After getting text conversion instruction, and extract selected text corresponding with text conversion instruction, need
Judge whether text conversion instruction is singulated word instruction, if so, 203 are thened follow the steps, if it is not, thening follow the steps 204.
203, the number of words of text is extracted, and is first replicated text box one by one according to number of words, then at except current singulated word
Word other than the word of reason is deleted;
After judging text conversion instruction for singulated word instruction, need to extract the number of words of text, and one by one according to number of words
Text box is first replicated, then the word in addition to the word of current singulated word processing is deleted, it is to be understood that is above-mentioned
Word in addition to the word of current singulated word processing delete can be every time whole fractionation is carried out to entire text, then
The word of non-required singulated word processing, such as " ABDC " four word text are deleted, tearing A open is duplication " ABDC ", deletes " BDC ", and tearing B open is duplication
" ABDC ", is deleted " ADC ".
204, the text of selection is replicated, and the text of duplication is pasted for metafile;
In the present embodiment, after judging text conversion instruction not for singulated word instruction, need to carry out the text of selection
Duplication, and the text of duplication is pasted for metafile, it should be noted that it is above-mentioned to paste the text of duplication for pel text
Part can be WPS or OFFICE software " PASTE SPECIAL " function in calling system and paste for " the enhanced pel text of Office
Part ".
205, cancellation combination operation is carried out to metafile, and forms corresponding vertex adjustable file.
After the text of Replica Selection is metafile, need to carry out cancellation combination operation to metafile, and formed
Corresponding vertex adjustable file, so that achieving the purpose that adjust stroke by editing vertex, it is to be understood that above-mentioned
Cancelling combination operation can be copy editor's software of calling system, such as the cancellation combination function pair of WPS or OFFICE software
The picture for copying as metafile is combined cancellation.
It should be noted that metafile carries out cancellation combination operation, and formed corresponding vertex adjustable file it
Afterwards, it can be user in the operation for carrying out subsequently selected formula, such as delete the extra figure layer in combination, by using vertex edit
Mode is adjusted the text in metafile.
In the present embodiment, by being replicated to the text of selection, the text of duplication is pasted for metafile, it is finally right
Metafile carries out cancellation combination operation, so that subsequent can be by vertex edit mode to the shape of the text in metafile
It is adjusted, solves when making text, it usually needs according to the standard in fontlib, and preset font is shown and word
Corresponding form in body library but can not be directly to already present text when needing the shape to font simply to be adjusted
This carries out the adjustment of direct font shape, caused text writing process can not transform graphical the technical issues of, meanwhile, sentence
Disconnected text conversion instruction whether be singulated word instruction design, further improve the experience property of transform graphical, realize text
Be converted to the function of polar plot.
Referring to Fig. 3, a kind of one embodiment of the text conversion device provided in the embodiment of the present invention includes:
Copied cells 301, for being replicated to the text of selection;
Pel converting unit 302, for pasting the text of duplication for metafile;
Cancel operating unit 303, for carrying out cancellation combination operation to metafile.
In the present embodiment, the text selected by 301 Duis of copied cells is replicated, and pel converting unit 302 will replicate
Text paste be metafile, finally cancel operating unit 303 cancellation combination operation is carried out to metafile, solve and making
When composition notebook, it usually needs according to the standard in fontlib, and preset font shows form corresponding with fontlib,
When needing the shape to font simply to be adjusted, but direct font shape directly can not be carried out to already present text
Adjustment, caused text writing process can not transform graphical the technical issues of.
The above is that each unit of text conversion device is described in detail, and sub-unit is carried out detailed retouch below
It states, referring to Fig. 4, a kind of one embodiment of the text conversion device provided in the embodiment of the present invention includes:
Copied cells 401, the text for Replica Selection are metafile;
Copied cells 401 can further include:
Subelement 4011 is extracted, for getting text conversion instruction, and extracts institute corresponding with text conversion instruction
The text of selection;
Subelement 4012 is replicated, for replicating to the text of selection.
Duplication subelement 4012 can further include:
Judgment module 4012a, for judging whether text conversion instruction is singulated word instruction, if so, triggering singulated word
Processing module, then trigger pel converting unit 402 and cancel operating unit 403, if it is not, then directly triggering pel converting unit
402 and cancel operating unit 403;
Singulated word processing module 4012b, for carrying out singulated word processing according to preset mode.
Singulated word processing module 4012b further comprises:
Extracting sub-module 1, for extracting the number of words of text;
Submodule 2 is deleted, for first being replicated text box one by one according to number of words, then to the word except current singulated word processing
Word in addition carries out deletion
Pel converting unit 402, for pasting the text of duplication for metafile;
Cancel operating unit 403, for carrying out cancellation combination operation to metafile, is specifically used for carrying out metafile
Cancel combination operation, and forms corresponding vertex adjustable file.
In the present embodiment, the text selected by 401 Duis of copied cells is replicated, and pel converting unit 402 will replicate
Text paste be metafile, finally cancel operating unit 403 cancellation combination operation is carried out to metafile so that subsequent can
It to be adjusted by shape of the vertex edit mode to the text in metafile, solves when making text, usually needs
Will be according to the standard in fontlib, and preset font shows form corresponding with fontlib, when needing to font
When shape is simply adjusted, the adjustment of direct font shape but can not be directly carried out to already present text, it is caused
Text writing process can not transform graphical the technical issues of, meanwhile, judgment module 4012a judge text conversion instruction whether be
The design of singulated word instruction further improves the experience property of transform graphical, realizes the function that text conversion is polar plot.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.