CN107168627A - Method for editing text and device for touch-screen - Google Patents

Method for editing text and device for touch-screen Download PDF

Info

Publication number
CN107168627A
CN107168627A CN201710546708.0A CN201710546708A CN107168627A CN 107168627 A CN107168627 A CN 107168627A CN 201710546708 A CN201710546708 A CN 201710546708A CN 107168627 A CN107168627 A CN 107168627A
Authority
CN
China
Prior art keywords
word
adjacent
page
list page
translation
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
CN201710546708.0A
Other languages
Chinese (zh)
Other versions
CN107168627B (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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201710546708.0A priority Critical patent/CN107168627B/en
Publication of CN107168627A publication Critical patent/CN107168627A/en
Application granted granted Critical
Publication of CN107168627B publication Critical patent/CN107168627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses the method for editing text and device for touch-screen.One embodiment of this method includes:The duration that the touch-screen for showing page of text is touched in response to detecting user is more than the word shown at the position touched on default first duration threshold value, identification touch-screen, and the word adjacent with word;Generation is suspended in the word list page on page of text, and shows on the word list page adjacent word and word;Whether detection user touches the duration for choosing the word shown on the word list page more than the second duration threshold value;If more than the second duration threshold value, translation touches the word chosen and includes translation result on the word list page.This embodiment improves choose speed and accuracy that word is translated.

Description

Method for editing text and device for touch-screen
Technical field
The application is related to technical field of mobile terminals, and in particular to mobile terminal of touch screen technical field, more particularly to uses In the method for editing text and device of touch-screen.
Background technology
Existing technology, when running into unacquainted word in the text, it is necessary to long-press word, ejects the arrow chosen, left Move right and choose arrow, make one word of selection that it is complete, then eject the menu of duplication, selection is replicated, by word in word Pasted in allusion quotation, so as to inquire the meaning of word.When running into address needs navigation and using the keyword in document, equally need Replicate, in the application and search engine that then paste navigation.
Existing technology, when selecting the word to be inquired about in the text, what is chosen sometimes is not one complete, independent Word, it may appear that multiselect or situation about selecting less, user, which needs to move left and right selection arrow, selectes a complete word, so The menu of duplication is ejected afterwards, after duplication, is gone in dictionary to paste, is then inquired about.Because mobile phone screen is limited, text is selected sometimes Often easily content of the maloperation as selected is not a complete word (multiselect is selected less), inquiry velocity during word in this It is relatively slow, and when opening dictionary, MDI can be blocked, two applications can not be operated at same interface, use is not square Just.
The content of the invention
The purpose of the application is to propose a kind of improved method for editing text and device for touch-screen, come solve with The technical problem that upper background section is mentioned.
In a first aspect, the embodiment of the present application provides the method for editing text for touch-screen, this method includes:In response to The duration for detecting the touch-screen that user touches display page of text is more than quilt on default first duration threshold value, identification touch-screen The center word shown at the position of touch, and the word adjacent with center word;Generation is suspended on page of text The word list page, and show on the word list page adjacent word and center word;Detect that user touches and choose word Whether the duration of the word shown on original list is more than the second duration threshold value;If more than the second duration threshold value, translation is touched Touch the word of selection and include translation result on the word list page.
In certain embodiments, this method also includes:Remarks option is shown on the word list page;In response to detecting User is included translation result in page of text to the selection operation of remarks option in the way of remarks.
In certain embodiments, this method also includes:If less than or equal to the second duration threshold value, on the word list page Show at least one editing options;Selection operation of the user to editing options is detected, editor's choosing according to specified by selection operation Item enters edlin to touching the word chosen.
In certain embodiments, the editing options include at least one of following:Translation, duplication, shearing, preservation, setting word Physique formula, search.
In certain embodiments, before adjacent word and center word are shown on the word list page, this method Also include:If there is the word repeated in center word and adjacent word, replaced with the adjacent word of the word with repeating The word repeated;If there is predetermined word in center word and adjacent word, with the word adjacent with predetermined word Replace predetermined word.
In certain embodiments, translation touches the word chosen and includes translation result on the word list page, Including:Translation touches the word chosen and obtains candidate's translation result set;Translation touches the adjacent word of the word chosen Obtain adjacent translation result set;Determine each candidate's translation result and adjacent translation result set in candidate's translation result set The degree of association;Candidate's translation result of predetermined number is chosen from the set of candidate's translation result according to the order of the degree of association from big to small It is shown on the word list page.
Second aspect, this application provides a kind of text editing apparatus for touch-screen, the device includes:Identification is single Member, the duration for touching the touch-screen for showing page of text in response to detecting user is more than default first duration threshold value, The center word shown at the position touched on identification touch-screen, and the word adjacent with center word;Generation unit, is used The word list page on page of text is suspended in generation, and shows on the word list page adjacent word and center Word;Detection unit, for detecting that whether user touches the duration for choosing the word shown on the word list page more than second Duration threshold value;Translation unit, for when the duration of the word shown on the word list page is more than the second duration threshold value, translating Touch the word chosen and include translation result on the word list page.
In certain embodiments, the device also includes:Remarks unit, for showing that remarks are selected on the word list page ;In response to detecting selection operation of the user to remarks option, translation result is included in page of text in the way of remarks In.
In certain embodiments, the device also includes:Edit cell, for when the word shown on the word list page When duration is less than the second duration threshold value, at least one editing options is shown on the word list page, and detect user to editor The selection operation of option, the editing options according to specified by selection operation enter edlin to touching the word chosen.
In certain embodiments, editing options include at least one of following:Translate, replicate, shear, preserve, set font Form, search.
In certain embodiments, the device also includes replacement unit, for showing adjacent list on the word list page It is adjacent with the word with repeating if there is the word repeated in center word and adjacent word before the word of Ci He centers Word replace repeat word;If there is predetermined word in center word and adjacent word, with predetermined word Adjacent word replaces predetermined word.
In certain embodiments, translation unit is further used for:Translation touches the word chosen and obtains candidate's translation knot Fruit is gathered;Translation touches the adjacent word of the word chosen and obtains adjacent translation result set;Determine candidate's translation result collection Each candidate's translation result and the degree of association of adjacent translation result set in conjunction;According to the order of the degree of association from big to small from candidate Candidate's translation result that predetermined number is chosen in translation result set is shown on the word list page.
The third aspect, this application provides a kind of terminal, including:One or more processors;Storage device, for storing One or more programs, when one or more programs are executed by one or more processors so that one or more processors are real Now such as method any in first aspect.
Fourth aspect, this application provides a kind of computer-readable recording medium, is stored thereon with computer program, the journey Realized when sequence is executed by processor such as method any in first aspect.
The method for editing text and device for touch-screen that the embodiment of the present application is provided, pass through the word for touching user Adjacent word is together shown on screen for being translated again after user's selection, can improve choose the speed translated of word with Accuracy.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the method for editing text for touch-screen according to the application;
Fig. 3 is the schematic diagram of an application scenarios of the method for editing text for touch-screen according to the application;
Fig. 4 is the flow chart of another embodiment of the method for editing text for touch-screen according to the application;
Fig. 5 is the structural representation of one embodiment of the text editing apparatus for touch-screen according to the application;
Fig. 6 is adapted for the structural representation of the computer system of the terminal device for realizing the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that, in order to Be easy to description, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1, which is shown, to be compiled using the method for editing text for touch-screen or the text for touch-screen of the application Collect the exemplary system architecture 100 of the embodiment of device.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105. Medium of the network 104 to provide communication link between terminal device 101,102,103 and server 105.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101,102,103 by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed, such as web browser should on terminal device 101,102,103 With, shopping class application, searching class application, JICQ, mailbox client, social platform software etc..
Terminal device 101,102,103 can be that the various electronics browsed with touch display screen and supported web page are set It is standby, including but not limited to smart mobile phone, tablet personal computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 4) player, knee Mo(u)ld top half pocket computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to being shown on terminal device 101,102,103 Translate content and the backstage translating server supported is provided.Backstage translating server can to receive translation request etc. data enter The processing such as row analysis, and result (such as translation result) is fed back into terminal device.
It should be noted that the method for editing text for touch-screen that the embodiment of the present application is provided typically is set by terminal Standby 101,102,103 perform, correspondingly, the text editing apparatus for touch-screen be generally positioned at terminal device 101,102, In 103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.Server can also not be needed, and is directly set by terminal Standby built-in translation tool is translated.
With continued reference to Fig. 2, one embodiment of the method for editing text for touch-screen according to the application is shown Flow 200.This is used for the method for editing text of touch-screen, comprises the following steps:
Step 201, the duration for the touch-screen for showing page of text being touched in response to detecting user is more than default first The center word shown at the position touched on duration threshold value, identification touch-screen, and the word adjacent with center word.
In the present embodiment, the method for editing text operation electronic equipment thereon for touch-screen is (such as shown in Fig. 1 Terminal device) touch operation of the user to touch-screen can be detected by pressure sensor, if touch duration be more than it is pre- If the first duration threshold value, i.e. it is long then to start to recognize the center word shown at the position touched on touch-screen on time, with And the word adjacent with center word.The word is the word with space separately, for example, English, French, Russian etc..It can adopt Each letter is identified with methods such as such as OCR (Optical Character Recognition, optical character identification), then According to space by monogram into word.Centered on the word shown at the position touched, the word adjacent with it is selected, The adjacent word of the word at center or so can be determined by space, the neighbouring list of the word at center is determined by null Word.The most adjacent word of only one of which on the left of the word at usual center, the right side also adjacent word of most only one of which.Center Word above or below may have the adjacent word of more than one.The pressure of touch can also be detected, is grown up when touching When default first duration threshold value and pressure are more than pressure threshold, word identification is carried out.
Step 202, generation is suspended in the word list page on page of text, and shows phase on the word list page Adjacent word and center word.
In the present embodiment, the word list page is suspended on page of text, can be moved and not blocked page of text. The word list page can also be transparent form, can show that the page of text of bottom.Can be by these phases during display Adjacent word and the position of center word script, are shown by upper, middle and lower or so.It can also be displayed side by side with tabular form.If this There is the word of repetition in a little words, then can only display one.If some words are very simple, what is do not shown then may not be used if necessary It has been shown that, for example, the word such as an, a, the, is, or.Some dictionaries not shown on the page can be pre-set, if adjacent list There is the word of default dictionary in the word of Ci He centers, then do not show the word.It can also be arranged to not show that length is less than The word of length threshold, it is 2 for example to set length threshold, then I, a, am, an, in, on, up, and the word such as no can not be shown.May be used also To amplify display or show adjacent word and center word on the word list page with the color different from primary colors.
In some optional implementations of the present embodiment, if there is the list repeated in center word and adjacent word Word, then replace the word repeated with the adjacent word of the word with repeating;If existing in center word and adjacent word predetermined Word, then predetermined word is replaced with the word adjacent with predetermined word.If for example, center word and adjacent word In there are multiple feature, then other words can be chosen around feature, it is preferable that length can be selected from adjacent words Most long word replaces the word of repetition.The word before the word may be selected for predetermined word.For example, or is occurred in that, The word before or then may be selected to replace or.
Step 203, when whether detection user touches the duration for choosing the word shown on the word list page more than second Long threshold value.
In the present embodiment, the second duration threshold value can be equal with the first duration threshold value, can not also wait.This long-press mistake Journey is used for the quick translation of next step, and without being selected again.
Step 204, translation touches the word chosen and includes translation result on the word list page.
In the present embodiment, when user touches the duration for choosing the word shown on the word list page more than the second duration During threshold value, translation touches the word chosen and includes translation result on the word list page.Translation result may have very It is multinomial, the quantity of display can be pre-set.
In some optional implementations of the present embodiment, translation touches the word chosen and shows translation result On the word list page, including:Translation touches the word chosen and obtains candidate's translation result set;Translation touches selection The adjacent word of word obtain adjacent translation result set;Determine in candidate's translation result set each candidate's translation result with The degree of association of adjacent translation result set;According to the order of the degree of association from big to small predetermined number is chosen from the set of candidate's translation result Purpose candidate's translation result is shown on the word list page.It is well known that word has different implications under various circumstances, such as Fruit is not from the context to be difficult to judge which implication the word should be specifically., can be by word to be translated in order to solve the problem Adjacent word is translated together, then calculating correlation, rejects the translation result of wide of the mark connection, retention relationship is higher to be turned over Translate result to be shown on the page, improve the accuracy rate of translation.For example, there is word bus, there is two kinds of " bus " and " bus " to contain Justice, if there is car in adjacent word, can preferentially show " bus ".Degree of association threshold value can also be set, if small When degree of association threshold value, then the translation result is not shown.Between the translation result that word can be determined by methods such as semantic analyses The degree of association.
In some optional implementations of the present embodiment, this method also includes:Show standby on the word list page Note option;In response to detecting selection operation of the user to remarks option, translation result is included in text in the way of remarks In the page.That is, translation result is preserved.It can not also preserve and directly exit, can click and move back on the word list page Go out option, or click on page of text to carry out page layout switch to exit the word list page.
With continued reference to Fig. 3, Fig. 3 is the one of the application scenarios of the method for editing text for touch-screen according to the present embodiment Individual schematic diagram.In Fig. 3 application scenarios, user runs into new word " semi- when browsing page of text on terminal device 300 Supervised " just long-press words;Afterwards, terminal device 300 can generate the word list being suspended on page of text The page, and display centre word 302 and adjacent word 303,304,305,306,307 on the word list page.User is again The translation result of the word can be shown during secondary long-press center word 302 at 308.
The method that above-described embodiment of the application is provided is selected together by the adjacent word of the word for selecting user, energy Enough improve chooses speed and accuracy that word is translated.
With further reference to Fig. 4, it illustrates the flow of another embodiment of the method for editing text for touch-screen 400.This is used for the flow 400 of the method for editing text of touch-screen, comprises the following steps:
Step 401, the duration for the touch-screen for showing page of text being touched in response to detecting user is more than default first The center word shown at the position touched on duration threshold value, identification touch-screen, and the word adjacent with center word.
Step 402, generation is suspended in the word list page on page of text, and shows phase on the word list page Adjacent word and center word.
Step 403, when whether detection user touches the duration for choosing the word shown on the word list page more than second Long threshold value.
Step 401-403 and step 201-203 are essentially identical, therefore repeat no more.
Step 404, at least one editing options is shown on the word list page.
In the present embodiment, when user touches the duration for choosing the word shown on the word list page less than or equal to second During duration threshold value, then at least one of editing options as follows are shown:Translate, replicate, shearing, preserving, set font lattice Formula, search.That is, the word selected is entered into edlin, in addition to translation, can also replicates, clip on pasting boards, be arranged on The font format shown in page of text, can also directly invoke search engine and carry out web search or sheet to selected word Ground is searched for.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, the text for touch-screen in the present embodiment is compiled The flow 400 for the method for collecting highlights the step of entering edlin to selected word.Thus, the scheme of the present embodiment description can be with Rapidly and accurately choose word and carry out various operations.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, it is used for touch-screen this application provides one kind Text editing apparatus one embodiment, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device is specific It can apply in various electronic equipments.
As shown in figure 5, the text editing apparatus 500 for touch-screen of the present embodiment includes:Recognition unit 501, generation Unit 502, detection unit 503 and translation unit 504.Wherein, recognition unit 501 is used to touch display in response to detecting user The duration of the touch-screen of page of text is more than what is shown at the position touched on default first duration threshold value, identification touch-screen Center word, and the word adjacent with center word;Generation unit 502 is used to generate the word being suspended on page of text Original list, and show on the word list page adjacent word and center word;Detection unit 503 is used to detect that user touches The duration for choosing the word shown on the word list page is touched whether more than the second duration threshold value;Translation unit 504 is used for when single When the duration of the word shown on the word list page is more than the second duration threshold value, translation touches the word chosen and ties translation Fruit is shown on the word list page.
In the present embodiment, for the recognition unit 501 of text editing apparatus 500 of touch-screen, generation unit 502, inspection Survey unit 503 and the specific processing of translation unit 504 and may be referred to step 201, step 202, step in the corresponding embodiments of Fig. 2 203rd, step 204.
In some optional implementations of the present embodiment, the device also includes:Remarks unit (not shown), for Remarks option is shown on the word list page;In response to detecting selection operation of the user to remarks option, by translation result with The mode of remarks is shown in page of text.
In some optional implementations of the present embodiment, the device also includes:Edit cell (not shown), for working as When the duration of the word shown on the word list page is less than the second duration threshold value, at least one is shown on the word list page Editing options, and selection operation of the user to editing options is detected, the editing options according to specified by selection operation are to being touched The word of selection enters edlin.
In some optional implementations of the present embodiment, editing options include at least one of following:Translate, replicate, Shear, preserve, the form that sets font, search.
In some optional implementations of the present embodiment, the device also include replacement unit (not shown), for Before showing adjacent word and center word on the word list page, if having what is repeated in center word and adjacent word Word, then replace the word repeated with the adjacent word of the word with repeating;If existing in center word and adjacent word pre- Fixed word, then replace predetermined word with the word adjacent with predetermined word.
In some optional implementations of the present embodiment, translation unit 504 is further used for:Translation touches selection Word obtain candidate's translation result set;Translation touches the adjacent word of the word chosen and obtains adjacent translation result collection Close;Determine each candidate's translation result and the degree of association of adjacent translation result set in candidate's translation result set;According to association Candidate's translation result that the order of degree from big to small chooses predetermined number from the set of candidate's translation result is shown in word list page On face.
Below with reference to Fig. 6, it illustrates suitable for for the computer system 600 for the terminal device for realizing the embodiment of the present application Structural representation.Terminal device shown in Fig. 6 is only an example, to the function of the embodiment of the present application and should not use model Shroud carrys out any limitation.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into program in random access storage device (RAM) 603 from storage part 608 and Perform various appropriate actions and processing.In RAM 603, the system that is also stored with 600 operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse, touch-screen, touch pad etc.; Output par, c 607 including touch-screen, liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part including hard disk etc. Divide 608;And the communications portion 609 of the NIC including LAN card, modem etc..Communications portion 609 via The network of such as internet performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor memory etc., as needed be arranged on driver 610 on, in order to from The computer program read thereon is mounted into storage part 608 as needed.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart may be implemented as computer Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality Apply in example, the computer program can be downloaded and installed by communications portion 609 from network, and/or from detachable media 611 are mounted.When the computer program is performed by CPU (CPU) 601, perform what is limited in the present processes Above-mentioned functions.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer-readable recording medium either the two any combination.Computer-readable recording medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination. The more specifically example of computer-readable recording medium can include but is not limited to:Electrical connection with one or more wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer-readable recording medium can any be included or store The tangible medium of program, the program can be commanded execution system, device or device and use or in connection.And In the application, computer-readable signal media can include believing in a base band or as the data of carrier wave part propagation Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by the use of instruction execution system, device or device or program in connection.Included on computer-readable medium Program code any appropriate medium can be used to transmit, include but is not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code is used comprising one or more In the executable instruction for realizing defined logic function.It should also be noted that in some realizations as replacement, being marked in square frame The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note Meaning, the combination of each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart can be with holding The special hardware based system of function or operation as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag Include recognition unit, generation unit, detection unit and translation unit.Wherein, the title of these units not structure under certain conditions The paired restriction of the unit in itself, for example, recognition unit is also described as " touching display text in response to detecting user The duration of the touch-screen of the page is more than the center shown at the position touched on default first duration threshold value, identification touch-screen The unit of word ".
As on the other hand, present invention also provides a kind of computer-readable medium, the computer-readable medium can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the device so that should Device:The duration that the touch-screen for showing page of text is touched in response to detecting user is more than default first duration threshold value, knows The center word shown at the position touched on other touch-screen, and the word adjacent with center word;Generation is suspended in text The word list page on this page, and show on the word list page adjacent word and center word;Detect user The duration for choosing the word shown on the word list page is touched whether more than the second duration threshold value;If being more than, translation is touched Touch the word of selection and include translation result on the word list page.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the inventive concept, is carried out by above-mentioned technical characteristic or its equivalent feature Other technical schemes formed by any combination.Such as features described above has similar work(with (but not limited to) disclosed herein The technical characteristic of energy carries out technical scheme formed by replacement mutually.

Claims (14)

1. a kind of method for editing text for touch-screen, it is characterised in that methods described includes:
The duration that the touch-screen for showing page of text is touched in response to detecting user is more than default first duration threshold value, identification The center word shown at the position touched on the touch-screen, and the word adjacent with the center word, wherein, institute State between the word in page of text separately;
Generation is suspended in the word list page on the page of text, and shows the phase on the word list page Adjacent word and the center word;
Detect that whether the user touches the duration for choosing the word shown on the word list page more than the second duration threshold Value;
If more than the second duration threshold value, translation touches the word chosen and includes translation result to arrange in the word On the table page.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
Remarks option is shown on the word list page;
In response to detecting selection operation of the user to remarks option, the translation result is included in the way of remarks In the page of text.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
If less than or equal to the second duration threshold value, at least one editing options is shown on the word list page;
Selection operation of the user to editing options is detected, the editing options according to specified by selection operation are to touching selection Word enter edlin.
4. method according to claim 3, it is characterised in that the editing options include at least one of following:
Translate, replicate, shearing, preserving, the form that sets font, search.
5. according to the method described in claim 1, it is characterised in that the adjacent list is shown on the word list page Before word and the center word, methods described also includes:
If there is the word repeated in the center word and the adjacent word, with the adjacent word of the word with repeating Replace the word of the repetition;
If there is predetermined word in the center word and the adjacent word, with adjacent with the predetermined word Word replaces the predetermined word.
6. the method according to one of claim 1-5, it is characterised in that the translation touches the word of selection and will turned over Result is translated to be shown on the word list page, including:
Translation touches the word chosen and obtains candidate's translation result set;
Translation touches the adjacent word of the word chosen and obtains adjacent translation result set;
Determine each candidate's translation result and the degree of association of adjacent translation result set in candidate's translation result set;
The candidate's translation result for choosing predetermined number from the set of candidate's translation result according to the order of the degree of association from big to small is shown On the word list page.
7. a kind of text editing apparatus for touch-screen, it is characterised in that described device includes:
Recognition unit, the duration for touching the touch-screen for showing page of text in response to detecting user is more than default first Duration threshold value, recognizes the center word shown at the position touched on the touch-screen, and adjacent with the center word Word, wherein, between the word in the page of text with space separately;
Generation unit, for generating the word list page being suspended on the page of text, and in word list page The adjacent word and the center word are shown on face;
Detection unit, for detecting whether the duration that the word shown on the word list page is chosen in user's touch is big In the second duration threshold value;
Translation unit, for when the duration of the word shown on the word list page is more than the second duration threshold value, translating Touch the word chosen and include translation result on the word list page.
8. device according to claim 7, it is characterised in that described device also includes:
Remarks unit, for showing remarks option on the word list page;In response to detecting the user to remarks The selection operation of option, the translation result is included in the page of text in the way of remarks.
9. device according to claim 7, it is characterised in that described device also includes:
Edit cell, for when the duration of the word shown on the word list page is less than the second duration threshold value, in institute State and at least one editing options is shown on the word list page, and detect selection operation of the user to editing options, according to Editing options specified by selection operation enter edlin to touching the word chosen.
10. device according to claim 9, it is characterised in that the editing options include at least one of following:
Translate, replicate, shearing, preserving, the form that sets font, search.
11. device according to claim 7, it is characterised in that described device also includes:
Replacement unit, for showing the adjacent word and the center word on the word list page before, if There is the word repeated in the center word and the adjacent word, then replace institute with the adjacent word of the word with repeating State the word of repetition;If there is predetermined word in the center word and the adjacent word, with it is described predetermined The adjacent word of word replaces the predetermined word.
12. the device according to one of claim 7-11, it is characterised in that the translation unit is further used for:
Translation touches the word chosen and obtains candidate's translation result set;
Translation touches the adjacent word of the word chosen and obtains adjacent translation result set;
Determine each candidate's translation result and the degree of association of adjacent translation result set in candidate's translation result set;
The candidate's translation result for choosing predetermined number from the set of candidate's translation result according to the order of the degree of association from big to small is shown On the word list page.
13. a kind of terminal device, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real The existing method as described in any in claim 1-6.
14. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method as described in any in claim 1-6 is realized during execution.
CN201710546708.0A 2017-07-06 2017-07-06 Text editing method and device for touch screen Active CN107168627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710546708.0A CN107168627B (en) 2017-07-06 2017-07-06 Text editing method and device for touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710546708.0A CN107168627B (en) 2017-07-06 2017-07-06 Text editing method and device for touch screen

Publications (2)

Publication Number Publication Date
CN107168627A true CN107168627A (en) 2017-09-15
CN107168627B CN107168627B (en) 2020-08-07

Family

ID=59823127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710546708.0A Active CN107168627B (en) 2017-07-06 2017-07-06 Text editing method and device for touch screen

Country Status (1)

Country Link
CN (1) CN107168627B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069159A (en) * 2019-03-13 2019-07-30 平安普惠企业管理有限公司 Equipment touches delay solution method, device, computer equipment and storage medium
CN112988011A (en) * 2021-03-24 2021-06-18 百度在线网络技术(北京)有限公司 Word-taking translation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023971A (en) * 2009-09-11 2011-04-20 韩国电子通信研究院 User-interactive automatic translation device and method for mobile device
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN104298491A (en) * 2013-07-18 2015-01-21 腾讯科技(深圳)有限公司 Message processing method and device
CN106909296A (en) * 2016-06-07 2017-06-30 阿里巴巴集团控股有限公司 The extracting method of data, device and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023971A (en) * 2009-09-11 2011-04-20 韩国电子通信研究院 User-interactive automatic translation device and method for mobile device
CN102609208A (en) * 2012-02-13 2012-07-25 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN104298491A (en) * 2013-07-18 2015-01-21 腾讯科技(深圳)有限公司 Message processing method and device
CN106909296A (en) * 2016-06-07 2017-06-30 阿里巴巴集团控股有限公司 The extracting method of data, device and terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069159A (en) * 2019-03-13 2019-07-30 平安普惠企业管理有限公司 Equipment touches delay solution method, device, computer equipment and storage medium
CN112988011A (en) * 2021-03-24 2021-06-18 百度在线网络技术(北京)有限公司 Word-taking translation method and device
CN112988011B (en) * 2021-03-24 2022-08-05 百度在线网络技术(北京)有限公司 Word-taking translation method and device

Also Published As

Publication number Publication date
CN107168627B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN107256109B (en) Information display method and device and terminal
US11669579B2 (en) Method and apparatus for providing search results
CA2918840C (en) Presenting fixed format documents in reflowed format
CN106896932A (en) A kind of candidate word recommends method and device
CN105117474A (en) Method and device for loading recommendation information in webpage reading mode
CN107731229A (en) Method and apparatus for identifying voice
WO2017136444A1 (en) Optical recognition of tables
CN107391675A (en) Method and apparatus for generating structure information
CN106951495A (en) Method and apparatus for information to be presented
CN103324674B (en) Web page contents choosing method and device
CN102411614A (en) Display Of Image Search Results
CN107958078A (en) Information generating method and device
CN106575300A (en) Image based search to identify objects in documents
CN108804469B (en) Webpage identification method and electronic equipment
CN107491477A (en) A kind of emoticon searching method and device
CN108090043A (en) Error correction report processing method, device and readable medium based on artificial intelligence
CN107368511A (en) A kind of information displaying method and device
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
CN115982376B (en) Method and device for training model based on text, multimode data and knowledge
CN106896937A (en) Method and apparatus for being input into information
CN107526718A (en) Method and apparatus for generating text
CN109033282A (en) A kind of Web page text extracting method and device based on extraction template
CN103500158A (en) Method and device for annotating electronic document
CN110325987A (en) Context voice driven depth bookmark
CN108073708A (en) Information output method and device

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