Summary of the invention
Embodiments provide a kind of text conversion method and device, solve when making text,
Typically require according to the standard in fontlib, and the most preset font shows the shape corresponding with fontlib
Formula, when needing simply to adjust the profile of font, but cannot directly enter already present text
The adjustment of the direct font profile of row, the text writing process caused cannot the technical problem of transform graphical.
A kind of text conversion method that the embodiment of the present invention provides, including:
S1: the text selected is replicated;
S2: the described text replicated is pasted for metafile;
S3: carry out described metafile cancelling combination operation.
Preferably, the text selected is carried out duplication to specifically include:
Get text conversion instruction, and extract the selected literary composition corresponding with described text conversion instruction
This;
The text selected is replicated.
Preferably, the described text of Replica Selection is that described metafile specifically includes:
Judge whether text conversion instruction is singulated word instruction, the most then carry out singulated according to preset mode
Word processing, then perform step S2 and S3, if it is not, then perform step S2 and S3.
Preferably, carry out singulated word processing according to preset mode to specifically include:
Extract the number of words of described text;
Text box is the most first replicated according to described number of words, then in addition to the word of current singulated word processing
Word delete.
Preferably, described metafile carries out cancel combination operation specifically include:
Carry out described metafile cancelling combination operation, and form corresponding summit adjustable file.
A kind of text conversion device provided in the embodiment of the present invention, including:
Copied cells, for replicating the text selected;
Pel converting unit, the described text for replicating is pasted for metafile;
Cancel operating unit, for described metafile being carried out cancellation combination operation.
Preferably, copied cells specifically includes:
Extract subelement, be used for getting text conversion instruction, and extract and described text conversion instruction phase
Corresponding selected text;
Replicon unit, for replicating the text selected.
Preferably, replicon unit specifically includes:
Judge module, is used for judging whether text conversion instruction is singulated word instruction, the most then trigger and tear open
Individual character processing module, then trigger described pel converting unit and described cancellation operating unit, if it is not, the most straight
Pel converting unit and described cancellation operating unit are sent out in contact described;
Described singulated word processing module, for carrying out singulated word processing according to preset mode.
Preferably, described singulated word processing module includes:
Extract submodule, for extracting the number of words of described text;
Delete submodule, for the most first replicating text box according to described number of words, then to except currently tearing open
The word beyond word that individual character processes is deleted.
Preferably, cancel operating unit, specifically for carrying out described metafile cancelling combination operation,
And form corresponding summit adjustable file.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
Embodiments provide a kind of text conversion method and device, wherein, text conversion method bag
Include: S1: the text selected is replicated;S2: the text replicated is pasted for metafile;S3:
Carry out metafile cancelling combination operation.In the present embodiment, by the text selected is replicated,
Being pasted by the text replicated is metafile, finally carries out metafile cancelling combination operation, solves
When making text, it usually needs according to the standard in fontlib, and the most preset font shows and font
Form corresponding in storehouse, when needing the profile of font is simply adjusted, but cannot be the most right
Already present text carries out the adjustment of direct font profile, and the text writing process caused cannot be changed
The technical problem of figure.
Detailed description of the invention
Embodiments provide a kind of text conversion method and device, solve when making text,
Typically require according to the standard in fontlib, and the most preset font shows the shape corresponding with fontlib
Formula, when needing simply to adjust the profile of font, but cannot directly enter already present text
The adjustment of the direct font profile of row, the text writing process caused cannot the technical problem of transform graphical.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will
In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that the embodiments described below are only a part of embodiment of the present invention, and not all
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creativeness
The all other embodiments obtained under work premise, broadly fall into the scope of protection of the invention.
Refer to Fig. 1, an embodiment bag of a kind of text conversion method provided in the embodiment of the present invention
Include:
S1: the text selected is replicated;
In the present embodiment, when needing the word editted, or the font of the text edited is entered
The when that row profile adjusting, the text to selecting is needed to replicate.
S2: the text replicated is pasted for metafile;
After replicating the text selected, needing to paste the text replicated is metafile, needs
It is noted that aforesaid stickup by the text replicated is metafile, can be WPS in calling system
Or the stickup of OFFICE software " PASTE SPECIAL " function is " Office enhanced metafile ".
S3, metafile is carried out cancel combination operation.
After the text that will replicate is pasted for metafile, need to carry out metafile cancelling combination behaviour
Make, it is to be understood that aforesaid cancellation combination operation can be copy editor's software of calling system,
The picture copying as metafile is combined by the combination function of cancelling of such as WPS or OFFICE software
Cancel.
In the present embodiment, by the text selected is replicated, the text replicated is pasted for pel literary composition
Part, finally carries out metafile cancelling combination operation, solves when making text, it usually needs press
According to the standard in fontlib, and the most preset font shows the form corresponding with fontlib, works as needs
When the profile of font is simply adjusted, but directly already present text cannot be carried out direct word
The adjustment of external shape, the text writing process caused cannot the technical problem of transform graphical.
The above is that the process to text conversion method is described in detail, below will be to concrete transformation process
Being further described below, refer to Fig. 2, in the embodiment of the present invention, a kind of text conversion method of offer is another
One embodiment includes:
201, get text conversion instruction, and extract the selected literary composition corresponding with text conversion instruction
This;
In the present embodiment, when needing the word editted, or the font of the text edited is entered
The when that row profile adjusting, need to get text conversion instruction, and extract relative with text conversion instruction
The selected text answered, selected text can be word, or text box, it is possible to understand that
It is that text conversion instruction can be to trigger on interface.
202, judge whether text conversion instruction is singulated word instruction, the most then perform step 203, if
No, then perform step 204;
When getting text conversion instruction, and extract the selected text corresponding with text conversion instruction
Afterwards, need to judge whether text conversion instruction is singulated word instruction, the most then perform step 203, if
No, then perform step 204.
203, extract the number of words of text, and the most first replicate text box according to number of words, then to except current
Word beyond the word of singulated word processing is deleted;
After judging that text conversion instruction is singulated word instruction, need extract text number of words, and according to
Number of words the most first replicates text box, then deletes the word in addition to the word of current singulated word processing,
It is understood that aforesaid, the word in addition to the word of current singulated word processing is carried out deletion can be every
Secondary is all that whole text carries out overall fractionation, then deletes the word of the singulated word processing of non-required, such as
" ABDC " four word text, tearing A open is to replicate " ABDC ", deletes " BDC ", and tearing B open is to replicate " ABDC ",
Delete " ADC ".
204, the text selected is replicated, and the text replicated is pasted for metafile;
In the present embodiment, after judging that text conversion instruction is not as singulated word instruction, need selection
Text replicates, and is metafile by the text stickup of duplication, incites somebody to action it should be noted that aforesaid
It is metafile that the text replicated is pasted, and can be that WPS or OFFICE software in calling system " selects
Property paste " function pastes for " Office enhanced metafile "..
205, carry out metafile cancelling combination operation, and form corresponding summit adjustable file.
After the text of Replica Selection is metafile, need to carry out metafile cancelling combination operation,
And form corresponding summit adjustable file so that reach to adjust the purpose of stroke by editor summit,
It is understood that aforesaid cancellation combination operation can be copy editor's software of calling system, such as
The picture copying as metafile is combined cancelling by the combination function of cancelling of WPS or OFFICE software.
It should be noted that metafile carries out cancelling combination operation, and it is adjustable to form corresponding summit
Joint file after, can be that user is carrying out the operation of subsequently selected formula, such as delete combination in unnecessary
Figure layer, by using vertex edit pattern to be adjusted the word in metafile.
In the present embodiment, by the text selected is replicated, the text replicated is pasted for pel literary composition
Part, finally carries out metafile cancelling combination operation so that follow-up can pass through vertex edit pattern pair
The profile of the word in metafile is adjusted, and solves when making text, it usually needs according to word
Standard in body storehouse, and the most preset font shows the form corresponding with fontlib, when needs are to word
When the profile of body simply adjusts, but cannot directly already present text be carried out outside direct font
The adjustment of shape, the text writing process caused cannot the technical problem of transform graphical, simultaneously, it is judged that literary composition
Whether this conversion instruction is the design of singulated word instruction, further increases the experience property of transform graphical, real
Show the function that text conversion is vectogram.
Refer to Fig. 3, an embodiment bag of a kind of text conversion device provided in the embodiment of the present invention
Include:
Copied cells 301, for replicating the text selected;
Pel converting unit 302, the text for replicating is pasted for metafile;
Cancel operating unit 303, for metafile being carried out cancellation combination operation.
In the present embodiment, by copied cells 301, the text selected is replicated, pel converting unit
The text replicated is pasted for metafile by 302, finally cancels operating unit 303 and takes metafile
Disappear combination operation, solves when making text, it usually needs according to the standard in fontlib and the most pre-
The font put shows the form corresponding with fontlib, when needing simply to adjust the profile of font
Time whole, but directly already present text cannot be carried out the adjustment of direct font profile, the literary composition caused
This manufacturing process cannot the technical problem of transform graphical.
The above is that each unit to text conversion device is described in detail, and is carried out by sub-unit below
Detailed description, refers to Fig. 4, a reality of a kind of text conversion device provided in the embodiment of the present invention
Execute example to include:
Copied cells 401, the text for Replica Selection is metafile;
Copied cells 401 can further include:
Extract subelement 4011, be used for getting text conversion instruction, and extract and text conversion instruction phase
Corresponding selected text;
Replicon unit 4012, for replicating the text selected.
Replicon unit 4012 can further include:
Judge module 4012a, is used for judging whether text conversion instruction is singulated word instruction, the most then touches
Send out word processing module singulated, then trigger pel converting unit 402 and cancel operating unit 403, if it is not, then
Directly trigger 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:
Extract submodule 1, for extracting the number of words of text;
Delete submodule 2, for the most first replicating text box according to number of words, then to except current singulated word
The word beyond word processed is deleted.
Pel converting unit 402, the text for replicating is pasted for metafile;
Cancel operating unit 403, for metafile being carried out cancellation combination operation, specifically for pel
File carries out cancelling combination operation, and forms corresponding summit adjustable file.
In the present embodiment, by copied cells 401, the text selected is replicated, pel converting unit
The text replicated is pasted for metafile by 402, finally cancels operating unit 403 and takes metafile
Disappear combination operation so that follow-up can be entered the profile of the word in metafile by vertex edit pattern
Row sum-equal matrix, solves when making text, it usually needs according to the standard in fontlib and the most preset
Font shows the form corresponding with fontlib, when needing the profile of font is simply adjusted,
But cannot directly already present text be carried out the adjustment of direct font profile, the text writing caused
Process cannot the technical problem of transform graphical, simultaneously, it is judged that module 4012a judges that text conversion instruction is
The no design for singulated word instruction, further increases the experience property of transform graphical, it is achieved that text conversion
Function for vectogram.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list
In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software function list
The form of unit realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit
Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this
The part that the most in other words prior art contributed of technical scheme of invention or this technical scheme
Completely or partially can embody with the form of software product, this computer software product is stored in one
In storage medium, including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention
Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. the various media that can store program code.
The above, above example only in order to technical scheme to be described, is not intended to limit;
Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should
Work as understanding: the technical scheme described in foregoing embodiments still can be modified by it, or to it
Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution
Essence depart from various embodiments of the present invention technical scheme spirit and scope.