CN109902277A - A kind of document edit method, device, electronic equipment and readable storage medium storing program for executing - Google Patents

A kind of document edit method, device, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109902277A
CN109902277A CN201711286007.4A CN201711286007A CN109902277A CN 109902277 A CN109902277 A CN 109902277A CN 201711286007 A CN201711286007 A CN 201711286007A CN 109902277 A CN109902277 A CN 109902277A
Authority
CN
China
Prior art keywords
character
edited
target
preset characters
floating window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711286007.4A
Other languages
Chinese (zh)
Other versions
CN109902277B (en
Inventor
黄露慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201711286007.4A priority Critical patent/CN109902277B/en
Publication of CN109902277A publication Critical patent/CN109902277A/en
Application granted granted Critical
Publication of CN109902277B publication Critical patent/CN109902277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention provides a kind of document edit method, device, electronic equipment and readable storage medium storing program for executing.This method comprises:, using default mapping table, determining the character number of each character to be edited when there is selected character to be edited in document;Recording in default mapping table has: the mapping relations of character and character number;The character number of each character to be edited is judged respectively, if is matched with the character number in the first preset characters table;Record has the character number of open squares character in first preset characters table;If the character number of a character to be edited matches with the character number in the first preset characters table, the character to be edited is replaced using target character;Target character are as follows: there is the label box character of label content.Using project edit document provided in an embodiment of the present invention, it can be the label box character with label content by the open squares character editing in document, improve the documents editing experience of user.

Description

A kind of document edit method, device, electronic equipment and readable storage medium storing program for executing
Technical field
The present invention relates to document processing technology field, more particularly to a kind of document edit method, device, electronic equipment and Readable storage medium storing program for executing.
Background technique
Currently, being usually present in many documents (such as the documents such as survey report and personal information table) in electronic equipment There is one or more boxes (i.e. open squares character).User can be by these document prints to paper, and can use pen It is drawn in the box that paper is shown and hooks, draws fork or filling.
For example, user draws hook in the box that the paper is shown after user prints to personal information table on paper.That At this point, showing that the box is chosen by user, it is, showing that the subsequent information of the box is chosen by user.
But when opening above-mentioned personal information table by electronic equipment, user can only by input method before box or It is inserted into a hook after person's box, cannot achieve and be inserted into hook in box, good documents editing can not be brought to experience to user.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of document edit method, device electronic equipment and readable storage medium Matter, can be to improve user's with the label box character of label content for the open squares character editing in document Documents editing experience.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of document edit method, this method may include:
When there is selected character to be edited in document, using default mapping table, each character to be edited is determined Character number;Wherein, presetting to record in mapping table has: the mapping relations of character and character number;
The character number of each character to be edited is judged respectively, if with the character number phase in the first preset characters table Matching;Wherein, the character number for having open squares character is recorded in the first preset characters table;
If the character number of a character to be edited matches with the character number in the first preset characters table, mesh is utilized Marking-up symbol replaces the character to be edited;Wherein, target character are as follows: there is the label box character of label content.
Optionally, in the character number for judging a character to be edited and the character number phase in the first preset characters table With later, and before the step of replacing the character to be edited using target character, this method can also include:
Preset characters are numbered into corresponding character and are determined as target character;Wherein, preset characters number corresponding character are as follows: Label box character with label content.
Optionally, presetting to record in mapping table has: the mapping relations between character, character number and the affiliated font of character;
After the character number in the character number and the first preset characters table for judging a character to be edited matches, And before the step of replacing the character to be edited using target character, this method can also include:
Font belonging to the character to be edited is determined using default mapping table, as target font;
It is searched from default mapping table: belonging to label box character target font and with label content;
The label box character that will be found, is determined as target character.
Optionally, in the character number for judging each character to be edited respectively, if in the first preset characters table After the step of character number matches, this method can also include:
Judge whether there is the character number in the character number and the first preset characters table of at least two characters to be edited Match;
If so, display menu floating window;Wherein, it is shown in menu floating window: for entering the menu option of marking mode;
When receiving the selection instruction for menu option, menu floating window is closed, and show a list floating window;Its In, it is shown in list floating window: character to be edited be selected in document, that font size is Jing Guo enhanced processing;
Selection show in list floating window, any character to be edited at least two characters to be edited is directed to when receiving When instruction, using the character to be edited shown in target character replacement list floating window, and using in target character replacement document The character to be edited.
Optionally, in embodiments of the present invention, this method can also include:
When receiving for click commands in document, non-list floating window region, list floating window is closed.
Optionally, in embodiments of the present invention, this method can also include:
When there is no the character number of at least two characters to be edited and the character number phases in the first preset characters table Timing, the character number and the character number in the first preset characters table for judging whether there is a character to be edited match;
If so, executing the step of replacing the character to be edited using target character.
Optionally, after the step of replacing the character to be edited using target character, this method can also include:
When detecting that the target character for replacing the character to be edited is selected, the target word is determined using default mapping table The character number of symbol;
Judge the character number of the target character, if match with the character number in the second preset characters table;Wherein, Recording in second preset characters table has: having the character number of the label box character of label content;
If matching with the character number in the second preset characters table, the target word is replaced using open squares character Symbol.
Optionally, label box character can be with are as follows: draws and hooks box character, draws in fork box character and filled box character It is a kind of.
Second aspect, the embodiment of the invention also provides a kind of document editing device, the apparatus may include:
First character number determination unit, for being reflected using default when there is selected character to be edited in document Firing table determines the character number of each character to be edited;Wherein, it presets in mapping table and records and have: character and character number Mapping relations;
First judging unit, for judging the character number of each character to be edited respectively, if with the first predetermined word Character number in symbol table matches;Wherein, the character number for having open squares character is recorded in the first preset characters table;
First replacement unit, the character number and first for judging a character to be edited when the first judging unit are default When character number in character list matches, the character to be edited is replaced using target character;Wherein, target character are as follows: have Mark the label box character of content.
Optionally, in embodiments of the present invention, which can also include:
First object character determination unit, for judge in the first judging unit the character number of a character to be edited with After character number in first preset characters table matches, and using target character, to replace this to be edited in the first replacement unit Before character, preset characters are numbered into corresponding character and are determined as target character;Wherein, preset characters number corresponding character Are as follows: there is the label box character of label content.
Optionally, presetting to record in mapping table has: the mapping relations between character, character number and the affiliated font of character;
The device can also include:
Target font determination unit, for judging the character number and first an of character to be edited in the first judging unit After character number in preset characters table matches, and the character to be edited is replaced using target character in the first replacement unit Before, font belonging to the character to be edited is determined using default mapping table, as target font;
Searching unit, for being searched from default mapping table: belonging to label side target font and with label content Frame character;
Second target character determination unit, the label box character for will find, is determined as target character.
Optionally, in embodiments of the present invention, which can also include:
Second judgment unit is for judging the character number of each character to be edited respectively in the first judging unit After the no character number with the first preset characters table matches, the character of at least two characters to be edited is judged whether there is Number matches with the character number in the first preset characters table;
First display unit, for showing menu floating window when second judgment unit is judged as YES;Wherein, menu floating window In show: for enter marking mode menu option;
Second display unit, for closing menu floating window, and show when receiving the selection instruction for menu option One list floating window;Wherein, show in list floating window: be selected in document, font size is by enhanced processing wait compile Collect character;
Second replacement unit is appointed for working as to receive in show in list floating window, at least two characters to be edited When the selection instruction of one character to be edited, using the character to be edited shown in target character replacement list floating window, and utilize Target character replaces the character to be edited in document.
Optionally, in embodiments of the present invention, which can also include:
Closing unit, for closing list when receiving for click commands in document, non-list floating window region Floating window.
Optionally, in embodiments of the present invention, which can also include:
Third judging unit, for the character number of at least two characters to be edited to be not present when second judgment unit judgement When matching with the character number in the first preset characters table, the character number and an of character to be edited is judged whether there is Character number in one preset characters table matches;
Trigger unit, for when third judging unit is judged as YES, triggering the first replacement unit execution to utilize target word Symbol replaces the step of character to be edited.
Optionally, in embodiments of the present invention, which can also include:
Second character number determination unit, for when detecting that the target character for replacing the character to be edited is selected, The character number of the target character is determined using default mapping table;
4th judging unit, for judging the character number of the target character, if with the word in the second preset characters table Symbol number matches;Wherein, recording in the second preset characters table has: there is the character of the label box character of label content to compile Number;
Third replacement unit, for judging the character number and the second preset characters of the target character when the 4th judging unit Character number in table matches, then replaces the target character using open squares character.
Optionally, label box character can be with are as follows: draws and hooks box character, draws in fork box character and filled box character It is a kind of.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, including processor, communication interface, memory And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any one of first aspect documents editing side The method and step that method embodiment provides.
Fourth aspect, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, readable storage medium storing program for executing is electronic equipment On readable storage medium storing program for executing, be stored with computer program in readable storage medium storing program for executing, realization when computer program is executed by processor The method and step that any one of first aspect document processing method embodiment provides.
In embodiments of the present invention, whether electronic equipment can show document, and can detecte in document and deposit In selected character.If so, can be using selected character as character to be edited.Wherein, due to remembering in default mapping table Record has the mapping relations of character and character number, thus can find each character to be edited by default mapping table Character number.Later, can judge respectively each character to be edited character number whether with the character of open squares character Number matches.If matching, show that the character to be edited is open squares character.Otherwise, show that the character to be edited is not empty Heart box character.Also, when the character to be edited be open squares character when, show user want to the open squares character into Edlin.At this point it is possible to replace the character to be edited using having the label box character of label content.In such manner, it is possible to simple Single is rapidly to improve the text of user with the label box character of label content by the open squares character editing in document Shelves editor's experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of document edit method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of display interface of information table provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of another display interface of information table provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of another display interface of information table provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of document editing device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to solve the problems in the existing technology, the embodiment of the invention provides a kind of document edit method, device, Electronic equipment and readable storage medium storing program for executing.
Document edit method provided in an embodiment of the present invention is illustrated first below.
It is understood that document edit method provided in an embodiment of the present invention is applied to electronic equipment, the electronic equipment It can be desktop computer, be also possible to the mobile terminals such as tablet computer, mobile phone and smartwatch.
Referring to Fig. 1, document edit method provided in an embodiment of the present invention be may include steps of:
S101: when there is selected character to be edited in document, using default mapping table, determine that each is to be edited The character number of character;Wherein, presetting to record in mapping table has: the mapping relations of character and character number;
S102: the character number of each character to be edited is judged respectively, if with the character in the first preset characters table Number matches;Wherein, the character number for having open squares character is recorded in the first preset characters table;
S103: if the character number of a character to be edited matches with the character number in the first preset characters table, The character to be edited is replaced using target character;Wherein, target character are as follows: there is the label box character of label content.
In embodiments of the present invention, whether electronic equipment can show document, and can detecte in document and deposit In selected character.If so, can be using selected character as character to be edited.Wherein, due to remembering in default mapping table Record has the mapping relations of character and character number, thus can find each character to be edited by default mapping table Character number.Later, can judge respectively each character to be edited character number whether with: in the first preset characters table The character number of open squares character matches.If matching, show that the character to be edited is open squares character.Otherwise, show The character to be edited is not open squares character.Also, when the character to be edited is open squares character, show that user wants The open squares character is edited.At this point it is possible to replace this wait compile using having the label box character of label content Collect character.In such manner, it is possible to be quickly and easily the label box with label content by the open squares character editing in document Character improves the documents editing experience of user.
Wherein, the document in the embodiment of the present invention includes but is not limited to: PDF (Portable Document Format, portable document format) document, word document, PPT (PowerPoint, PowerPoint) document and WPS (WPS Software, WPS software) document.
In addition, a character is the essential information of the font of a unit, class font unit or symbol.It is used in computer Text and symbol, such as: 1,2,3, one, two, A, B, C,,!, %, etc., belong to character.
In addition, a character number are as follows: the number of one character of unique identification, such as: the character number of " " of the Song typeface Are as follows: 25A1.Wherein, a character number is referred to as a character code.
Document edit method provided in an embodiment of the present invention is illustrated below with reference to specific example.
Assuming that showing information table as shown in Figure 2 in electronic equipment.As shown in Fig. 2, the 2nd row in the information table records Have: army driver's license;3rd row record has: army driver's license, People's Armed Police's driver's license.Wherein, the in Fig. 2 are as follows: hollow side Frame character.
In the prior art, if user is to open the information table by mobile terminals such as mobile phones, when user thinks When filling in the information table, for example, the box that user wants in the information table before army's driver's license of the 3rd row is compiled as having There is the label box character of label content, that is, when wanting to draw hook in the box or draw fork, user can only be by input method at this It is inserted into √ (hooking) or × (pitching) before box or after box, cannot achieve insertion hook or fork in box.
If user is to open the information table by desktop computer, when user wants to fill in the information table, use Family needs first to click insertion option, then clicks the Symbol Option, then clicks other the Symbol Options, then finds and click(or ) after option, could incite somebody to action(or) be inserted into the information table.And it is further desired that deleting original sky in the information table manually Heart box character, it is cumbersome, to user's bring fill in a form experience and it is bad.
And in embodiments of the present invention, after user opens the information table by electric terminal (mobile terminal or computer), When user wants to draw hook in the box in the information table before army's driver's license of the 3rd row or draw fork, user only needs to pass through Mouse, which is drawn in selected ci poem or touched after finger long-pressing touch screen, chooses the open squares character for wanting editor.
When user chooses the box in the information table before army's driver's license of the 3rd row, electric terminal is able to detect that The character to be edited being selected in the information table are as follows:.Then, electric terminal, which can use record, character and character number The default mapping table of mapping relations, to determine the character code of the character to be edited.
Assuming that can determine to obtain the character to be edited: the character number of is 25A1.So, which can sentence Break the character to be edited character number whether with character number recorded in the first preset characters table, open squares character Match.Wherein, when the character number of the open squares character recorded in the first preset characters table is 25A1, then can sentence The disconnected character number for obtaining recording in the character number and the first preset characters table of the character to be edited matches, it is, can To judge the character to be edited as open squares character.In this way, can quickly determine that whether character to be edited is hollow Box character.
Wherein, in addition to record has in the first preset characters table: other than character number 25A1, character volume can also have been recorded Numbers 168, it is not limited thereto certainly.Wherein, 25A1 are as follows: font is the character number of the open squares character of the Song typeface;168 are as follows: Font is the character number of the open squares character of Wingdings text ancient cooking vessel.
When judging the character to be edited is open squares character, which can use preset with √ mark Remember that the picture of content hooks box character(i.e. target character) is replaced the character to be edited, naturally it is also possible to using have × The picture of content is marked to pitch box characterIt is replaced, also can use the filled box character with filling content and replaced It changes.As it can be seen that this kind of mode allows users to rapidly edit open squares character, the body of filling in a form of user is improved It tests.
Wherein, those skilled in the art can be arranged according to actual needs is replaced using any label box character It changes, is not limited thereto.Mark box character are as follows: draw and hook box character, draw one pitched in box character and filled box character Kind.
Certainly, user can also choose in the 3rd row region as shown in Figure 2: army driver's license, and, People's Armed Police Driver's license.Wherein, when user chooses in the 3rd row region shown in Fig. 2: army driver's license, and, People's Armed Police's driver's license When, electric terminal be able to detect that in the information table be selected each character to be edited successively are as follows:, army, team, drive, sail, Card,, force, police, is driven, sails and is demonstrate,proved space.Then, electric terminal, which can use record, the mapping of character and character number pass The default mapping table of system, to determine the character code of these characters to be edited.For example, determination obtains above-mentioned first word to be edited Symbol: the character number of is 25A1, and the 8th character to be edited: the character number of is 168, the character of other characters to be edited It is not described here in detail for number.
Then, electronic equipment can will be in the character number of each above-mentioned character to be edited, with the first preset characters table Character number match.Wherein, recording in the first preset characters table has: character number 25A1 and character number 168, certainly It is not limited thereto.It is then possible to detect the character number 25A in first character to be edited and the first preset characters table Match, the 8th character to be edited matches with the character number 168 in the first preset characters table.
So, in one implementation, which can use picture hook side preset, with √ label content Frame character(such as character number is 254 target character) carries out first character to be edited and the 8th character to be edited Replacement.Wherein, 254 are as follows: font be Wingdings text ancient cooking vessel, with √ mark content picture hook box character character number.
In another implementation, have when stating in default mapping table record: character, character number and the affiliated font of character Between mapping relations when, can also determine first character to be edited and the 8th character to be edited using the default mapping table Affiliated font, it is assumed that determination obtains font belonging to first character to be edited are as follows: the Song typeface, belonging to the 8th character to be edited Font are as follows: Wingdings text ancient cooking vessel.
It is then possible to all characters corresponding to the Song typeface are found in default mapping table, it then can be by Song typeface font Picture in corresponding all characters, with √ label content hooks box characterAs target font, the mesh is then utilized Marking-up body is replaced first character to be edited.Similarly, Wingdings text ancient cooking vessel can be found in default mapping table All characters corresponding to font, then can by it is in all characters corresponding to Wingdings text ancient cooking vessel font, have √ mark Remember that the picture of content hooks box characterAs target font, then the 8th character to be edited is carried out using the target font Replacement.
In addition, electronic equipment can will be in the character number of each above-mentioned character to be edited, with the first preset characters table Character number matched after, can also determine whether that there are the character number of at least two characters to be edited and first are default Character number in character list matches.Continue above-mentioned example it is found that there are first character to be edited and the 8th are to be edited The two characters to be edited of character match with the character number in the first preset characters table.At this point, being checked for the ease of user And editor.The electronic equipment can also show a menu floating window, and as shown in Figure 3, use can be shown in the menu floating window In the menu option for entering marking mode:Certainly, it can also be shown in the menu floating window: for carrying out duplication operation Menu option is not limited thereto certainly.
Wherein, menu option shown in Fig. 3 when the user clicks:When, electronic equipment can receive to be selected for the menu The selection instruction of item at this point, electronic equipment can close the menu floating window, and shows a list floating window.Wherein, the list is floating It is shown in window: to be edited character of the font size Jing Guo enhanced processing: army driver's license, People's Armed Police's driver's license.In this way, can It is selected in order to which user treats editing character.
It is understood that those skilled in the art can carry out the magnification ratio of Set Font according to actual needs, herein It is not detailed.
When the user clicks such as the before People's Armed Police's driver's license in Fig. 4, electronic equipment can receive floating for list The selection instruction of box being shown in window, before People's Armed Police's driver's license.At this point, electronic equipment can use target characterTo this Box in list floating window before People's Armed Police's driver's license is replaced.And utilize target characterTo the People's Armed Police being selected in information table Box before driver's license is replaced.In this way, making it possible to conveniently and efficiently be replaced open squares character, improve User experience.
In addition, user after editing to the box before People's Armed Police's driver's license, can also click the non-column in the document Table floating window region.It, can be in this way, electronic equipment is when receiving for click commands in document, non-list floating window region The list floating window is closed, does not influence edit operation of the user to the document.
It is understood that matching when only existing a character to be edited with the character number in the first preset characters table When, show that only one character to be edited needs to carry out edit operation.In the case of this kind, in order to promote editing speed, electronics is set It is standby to show menu floating window and list floating window, but directly utilize label box character (the i.e. target with label content Character) replace the character to be edited.
In addition, electronic equipment is to be edited using having the label box character (i.e. target character) for marking content to replace this After character, when user wants to cancel picture hook operation, user can choose the target character.In this way, electronic equipment can detecte It is selected to the target character, at this point it is possible to determine the character number of the target character using default mapping table.And it may determine that The character number of the target character, if match with the character number in the second preset characters table.
Have due to being recorded in the second preset characters table: there is the character number of the label box character of label content, thus Electronic equipment can detecte the character number phase recorded in the character number and the second preset characters table of the target character Match, can use open squares character at this time and replace the target character.To realize that the operation hooked is drawn in fast cancel.
To sum up, using the embodiment of the present invention, can quickly and easily by the open squares character editing in document be with The label box character of content is marked, also can be quickly and easily open squares word by the label box character editing in document Symbol, so as to promote the documents editing experience of user.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of document editing devices should referring to Fig. 5 Device may include:
First character number determination unit 501, for when there is selected character to be edited in document, using default Mapping table determines the character number of each character to be edited;Wherein, presetting to record in mapping table has: character and character number Mapping relations;
First judging unit 502, for judging the character number of each character to be edited respectively, if default with first Character number in character list matches;Wherein, the character number for having open squares character is recorded in the first preset characters table;
First replacement unit 503, for judging the character number and an of character to be edited when the first judging unit 502 When character number in one preset characters table matches, the character to be edited is replaced using target character;Wherein, target character Are as follows: there is the label box character of label content.
Using device provided in an embodiment of the present invention, electronic equipment can be shown document, and can detecte text With the presence or absence of selected character in shelves.If so, can be using selected character as character to be edited.Wherein, due to default Record has the mapping relations of character and character number in mapping table, thus can be waited for by default mapping table to find each The character number of editing character.Later, can judge respectively each character to be edited character number whether with open squares The character number of character matches.If matching, show that the character to be edited is open squares character.Otherwise, show that this is to be edited Character is not open squares character.Also, when the character to be edited is open squares character, it is hollow to this to show that user wants Box character is edited.At this point it is possible to replace the character to be edited using having the label box character of label content.This Open squares character editing in document can be to improve user to text with the label box character of label content by sample Editor's experience that shelves are edited.
Optionally, in embodiments of the present invention, which can also include:
First object character determination unit, for judging that the character an of character to be edited is compiled in the first judging unit 502 After number matching with the character number in the first preset characters table, and replaced in the first replacement unit 503 using target character Before the character to be edited, preset characters are numbered into corresponding character and are determined as target character;Wherein, preset characters number corresponds to Character are as follows: have label content label box character.
Optionally, presetting to record in mapping table has: the mapping relations between character, character number and the affiliated font of character;
Correspondingly, which can also include:
Target font determination unit, for judge in the first judging unit 502 character number of a character to be edited with After character number in first preset characters table matches, and the first replacement unit 503 should be to using target character replacement Before editing character, font belonging to the character to be edited is determined using default mapping table, as target font;
Searching unit, for being searched from default mapping table: belonging to label side target font and with label content Frame character;
Second target character determination unit, the label box character for will find, is determined as target character.
Optionally, in embodiments of the present invention, which can also include:
Second judgment unit, for judging the character number of each character to be edited respectively in the first judging unit 502, After whether matching with the character number in the first preset characters table, the word of at least two characters to be edited is judged whether there is Symbol number matches with the character number in the first preset characters table;
First display unit, for showing menu floating window when second judgment unit is judged as YES;Wherein, menu floating window In show: for enter marking mode menu option;
Second display unit, for closing menu floating window, and show when receiving the selection instruction for menu option One list floating window;Wherein, show in list floating window: be selected in document, font size is by enhanced processing wait compile Collect character;
Second replacement unit is appointed for working as to receive in show in list floating window, at least two characters to be edited When the selection instruction of one character to be edited, using the character to be edited shown in target character replacement list floating window, and utilize Target character replaces the character to be edited in document.
Optionally, in embodiments of the present invention, which can also include:
Closing unit, for closing list when receiving for click commands in document, non-list floating window region Floating window.
Optionally, in embodiments of the present invention, which can also include:
Third judging unit, for the character number of at least two characters to be edited to be not present when second judgment unit judgement When matching with the character number in the first preset characters table, the character number and an of character to be edited is judged whether there is Character number in one preset characters table matches;
Trigger unit, for when third judging unit is judged as YES, triggering the first replacement unit 503 execution to utilize target Character replaces the step of character to be edited.
Optionally, in embodiments of the present invention, which can also include:
Second character number determination unit, for when detecting that the target character for replacing the character to be edited is selected, The character number of the target character is determined using default mapping table;
4th judging unit, for judging the character number of the target character, if with the word in the second preset characters table Symbol number matches;Wherein, recording in the second preset characters table has: there is the character of the label box character of label content to compile Number;
Third replacement unit, for judging the character number and the second preset characters of the target character when the 4th judging unit Character number in table matches, then replaces the target character using open squares character.
Optionally, label box character can be with are as follows: draws and hooks box character, draws in fork box character and filled box character It is a kind of.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of electronic equipment, referring to Fig. 6, the electronics Equipment includes processor 601, communication interface 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 completes mutual communication by communication bus 602;
Memory 603, for storing computer program;
Processor 601 when for executing the program stored on memory 603, realizes any of the above-described documents editing side The method and step that method embodiment provides.
Whether electronic equipment provided in an embodiment of the present invention can show document, and can detecte in document and deposit In selected character.If so, can be using selected character as character to be edited.Wherein, due to remembering in default mapping table Record has the mapping relations of character and character number, thus can find each character to be edited by default mapping table Character number.Later, can judge respectively each character to be edited character number whether with the character of open squares character Number matches.If matching, show that the character to be edited is open squares character.Otherwise, show that the character to be edited is not empty Heart box character.Also, when the character to be edited be open squares character when, show user want to the open squares character into Edlin.At this point it is possible to replace the character to be edited using having the label box character of label content.In such manner, it is possible to will Open squares character editing in document is to improve user with the label box character of label content and edit to document Editor experience.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, readable storage mediums Matter is the readable storage medium storing program for executing on electronic equipment, is stored with computer program in readable storage medium storing program for executing, computer program is processed The method and step that any of the above-described document edit method embodiment provides is realized when device executes.
The computer program stored in readable storage medium storing program for executing provided in an embodiment of the present invention is held by the processor of electronic equipment After row, electronic equipment can be shown document, and can detecte in document with the presence or absence of selected character.If so, It can be using selected character as character to be edited.Wherein, there are character and character number due to presetting record in mapping table Mapping relations, thus the character number of each character to be edited can be found by presetting mapping table.Later, Ke Yifen Do not judge each character to be edited character number whether with: the character number of open squares character matches.If matching, table The bright character to be edited is open squares character.Otherwise, show that the character to be edited is not open squares character.Also, working as should When character to be edited is open squares character, show that user wants to edit the open squares character.At this point it is possible to utilize The character to be edited is replaced with the label box character of content is marked.In such manner, it is possible to by the open squares character in document It is compiled as the label box character with label content, the editor that user edits document is improved and experiences.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment and readable storage medium storing program for executing embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (18)

1. a kind of document edit method, which is characterized in that the described method includes:
When there is selected character to be edited in document, using default mapping table, the word of each character to be edited is determined Symbol number;Wherein, recording in the default mapping table has: the mapping relations of character and character number;
The character number of each character to be edited is judged respectively, if with the character number phase in the first preset characters table Match;Wherein, the character number for having open squares character is recorded in the first preset characters table;
If the character number of a character to be edited matches with the character number in the first preset characters table, mesh is utilized Marking-up symbol replaces the character to be edited;Wherein, target character are as follows: there is the label box character of label content.
2. the method according to claim 1, wherein the character number for judging a character to be edited with it is described After character number in first preset characters table matches, and the step of replacing the character to be edited using target character it Before, the method also includes:
Preset characters are numbered into corresponding character and are determined as target character;Wherein, the preset characters number corresponding character are as follows: Label box character with label content.
3. the method according to claim 1, wherein recording in the default mapping table has: character, character number Mapping relations between the affiliated font of character;
After the character number in the character number and the first preset characters table for judging a character to be edited matches, And before the step of replacing the character to be edited using target character, the method also includes:
Font belonging to the character to be edited is determined using default mapping table, as target font;
It is searched from the default mapping table: belonging to the label box character target font and with label content;
The label box character that will be found, is determined as target character.
4. the method according to claim 1, wherein in the character for judging each character to be edited respectively Number, if after the step of matching with the character number in the first preset characters table, the method also includes:
The character number and the character number in the first preset characters table for judging whether there is at least two characters to be edited Match;
If so, display menu floating window;Wherein, it is shown in the menu floating window: for entering the menu option of marking mode;
When receiving the selection instruction for the menu option, the menu floating window is closed, and show a list floating window; Wherein, it is shown in the list floating window: word to be edited be selected in the document, that font size is Jing Guo enhanced processing Symbol;
Any character to be edited at least two character to be edited show in the list floating window, described is directed to when receiving When selection instruction, the character to be edited shown in the list floating window is replaced using target character, and utilize the target word Symbol replaces the character to be edited in the document.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
When receiving the click commands for list floating window region in the document, non-, the list floating window is closed.
6. according to the method described in claim 4, it is characterized in that, the method also includes:
When there is no the character number of at least two characters to be edited and the character number phases in the first preset characters table Timing, the character number for judging whether there is a character to be edited and the character number phase in the first preset characters table Match;
If so, executing described the step of replacing the character to be edited using target character.
7. the method according to claim 1, wherein replacing the character to be edited using target character described After step, the method also includes:
When detecting that the target character for replacing the character to be edited is selected, the target character is determined using default mapping table Character number;
Judge the character number of the target character, if match with the character number in the second preset characters table;Wherein, described Recording in second preset characters table has: having the character number of the label box character of label content;
If matching with the character number in the second preset characters table, the target character is replaced using open squares character.
8. method according to any one of claims 1-7, which is characterized in that the label box character are as follows: draw hook side Frame character draws fork one of box character and filled box character.
9. a kind of document editing device, which is characterized in that described device includes:
First character number determination unit, for when there is selected character to be edited in document, using default mapping table, Determine the character number of each character to be edited;Wherein, recording in the default mapping table has: character and character number reflect Penetrate relationship;
First judging unit, for judging the character number of each character to be edited respectively, if with the first preset characters table In character number match;Wherein, the character number for having open squares character is recorded in the first preset characters table;
First replacement unit, for judging the character number and described first of a character to be edited when first judging unit When character number in preset characters table matches, the character to be edited is replaced using target character;Wherein, target character are as follows: Label box character with label content.
10. device according to claim 9, which is characterized in that described device further include:
First object character determination unit, for judge in first judging unit character number of a character to be edited with After character number in the first preset characters table matches, and replaced in first replacement unit using target character Before the character to be edited, preset characters are numbered into corresponding character and are determined as target character;Wherein, the preset characters number Corresponding character are as follows: there is the label box character of label content.
11. device according to claim 9, which is characterized in that recording in the default mapping table has: character, character are compiled Mapping relations number between the affiliated font of character;
Described device further include:
Target font determination unit, for judge in first judging unit character number of a character to be edited with it is described After character number in first preset characters table matches, and first replacement unit should be to using target character replacement Before editing character, font belonging to the character to be edited is determined using default mapping table, as target font;
Searching unit, for being searched from the default mapping table: belonging to the mark target font and with label content Remember box character;
Second target character determination unit, the label box character for will find, is determined as target character.
12. device according to claim 9, which is characterized in that described device further include:
Second judgment unit is for judging the character number of each character to be edited respectively in first judging unit After the no character number with the first preset characters table matches, the character of at least two characters to be edited is judged whether there is Number matches with the character number in the first preset characters table;
First display unit, for when the second judging unit judges yes, showing menu floating window;Wherein, the menu It is shown in floating window: for entering the menu option of marking mode;
Second display unit, for closing the menu floating window when receiving the selection instruction for the menu option, and Show a list floating window;Wherein, show in the list floating window: be selected in the document, font size is through over-discharge The character to be edited handled greatly;
Second replacement unit is received for working as at least two character to be edited show in the list floating window, described In any character to be edited selection instruction when, the word to be edited shown in the list floating window is replaced using target character It accords with, and replaces the character to be edited in the document using the target character.
13. device according to claim 12, which is characterized in that described device further include:
Closing unit, for closing when receiving the click commands for list floating window region in the document, non- The list floating window.
14. device according to claim 12, which is characterized in that described device further include:
Third judging unit, for the character number of at least two characters to be edited to be not present when second judgment unit judgement When matching with the character number in the first preset characters table, the character number of a character to be edited is judged whether there is Match with the character number in the first preset characters table;
Trigger unit executes the benefit for when the third judging unit is judged as YES, triggering first replacement unit The step of replacing the character to be edited with target character.
15. device according to claim 9, which is characterized in that described device further include:
Second character number determination unit, for utilizing when detecting that the target character for replacing the character to be edited is selected Default mapping table determines the character number of the target character;
4th judging unit, for judging the character number of the target character, if compiled with the character in the second preset characters table Number match;Wherein, recording in the second preset characters table has: there is the character of the label box character of label content to compile Number;
Third replacement unit, for judging in the character number and the second preset characters table of the target character when the 4th judging unit Character number match, then replace the target character using open squares character.
16. the device according to any one of claim 9-15, which is characterized in that the label box character are as follows: draw and hook Box character draws fork one of box character and filled box character.
17. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method step of any of claims 1-8 Suddenly.
18. a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing is the readable storage medium on electronic equipment Matter is stored with computer program in the readable storage medium storing program for executing, realizes that right is wanted when the computer program is executed by processor Seek method and step described in any one of 1-8.
CN201711286007.4A 2017-12-07 2017-12-07 Document editing method and device, electronic equipment and readable storage medium Active CN109902277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711286007.4A CN109902277B (en) 2017-12-07 2017-12-07 Document editing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711286007.4A CN109902277B (en) 2017-12-07 2017-12-07 Document editing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109902277A true CN109902277A (en) 2019-06-18
CN109902277B CN109902277B (en) 2023-05-26

Family

ID=66939271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711286007.4A Active CN109902277B (en) 2017-12-07 2017-12-07 Document editing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109902277B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081594A (en) * 2009-11-27 2011-06-01 株式会社理光 Equipment and method for extracting enclosing rectangles of characters from portable electronic documents
CN105608064A (en) * 2015-11-24 2016-05-25 小米科技有限责任公司 Character replacement method and apparatus
CN105718534A (en) * 2016-01-14 2016-06-29 广州市动景计算机科技有限公司 Information pushing apparatus, information pushing method and client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081594A (en) * 2009-11-27 2011-06-01 株式会社理光 Equipment and method for extracting enclosing rectangles of characters from portable electronic documents
CN105608064A (en) * 2015-11-24 2016-05-25 小米科技有限责任公司 Character replacement method and apparatus
CN105718534A (en) * 2016-01-14 2016-06-29 广州市动景计算机科技有限公司 Information pushing apparatus, information pushing method and client

Also Published As

Publication number Publication date
CN109902277B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
US9449031B2 (en) Sorting and filtering a table with image data and symbolic data in a single cell
EP2891041B1 (en) User interface apparatus in a user terminal and method for supporting the same
CN108292231A (en) It generates and applies from data
CN107273032A (en) Information typesetting method, device and equipment and computer storage medium
CN103324674B (en) Web page contents choosing method and device
US20170351371A1 (en) Touch interaction based search method and apparatus
CN105631393A (en) Information recognition method and device
CN103714333A (en) Apparatus and method for recognizing a character in terminal equipment
CN103209279B (en) Image read-out, mobile terminal device and image reading method
WO2016091095A1 (en) Searching method and system based on touch operation on terminal interface
CN107203498A (en) A kind of method, system and its user terminal and server for creating e-book
US9395911B2 (en) Computer input using hand drawn symbols
CN106650720A (en) Method, device and system for network marking based on character recognition technology
CN111967367A (en) Image content extraction method and device and electronic equipment
CN109902269A (en) A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
CN107704341A (en) File access pattern method, apparatus and electronic equipment
CN104182479B (en) A kind of method and device handling information
CN104834924B (en) The method, system and mobile terminal of information are filled out in a kind of mistake proofing
CN112329409B (en) Cell color conversion method and device and electronic equipment
JP2015187846A (en) Document processing system and document processor
CN109992749A (en) A kind of character displaying method, device, electronic equipment and readable storage medium storing program for executing
CN109902277A (en) A kind of document edit method, device, electronic equipment and readable storage medium storing program for executing
CN110363189A (en) A kind of document content restorative procedure, device, electronic equipment and readable storage medium storing program for executing
CN110515618A (en) Page info typing optimization method, equipment, storage medium and device
CN114416664A (en) Information display method, information display device, electronic apparatus, and readable storage medium

Legal Events

Date Code Title Description
PB01 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