CN110083293B - Method for automatically marking page content - Google Patents

Method for automatically marking page content Download PDF

Info

Publication number
CN110083293B
CN110083293B CN201910259918.0A CN201910259918A CN110083293B CN 110083293 B CN110083293 B CN 110083293B CN 201910259918 A CN201910259918 A CN 201910259918A CN 110083293 B CN110083293 B CN 110083293B
Authority
CN
China
Prior art keywords
content
marked
user
mark
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910259918.0A
Other languages
Chinese (zh)
Other versions
CN110083293A (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.)
Nanjing Faben Information Technology Co ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910259918.0A priority Critical patent/CN110083293B/en
Publication of CN110083293A publication Critical patent/CN110083293A/en
Application granted granted Critical
Publication of CN110083293B publication Critical patent/CN110083293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for automatically marking page content, which comprises the following steps: after a user opens a page, long-time pressing and double-click screen operations are carried out on the place needing to be marked; acquiring long press and double click events and corresponding positions by calling a system method, and directly entering an activation selection mode; after entering a selection mode, automatically selecting the content to be marked by the user by the system, and marking the content to be marked by the user; judging whether the current page has a mark of an activation mode or not, and if not, ending; and if the mark of the active mode exists in the current page, switching the active state of the mark, and marking the mark existing before as the selected inactive state again. The invention reduces the step that the user clicks the user-defined event (such as highlighting and labeling) to mark, saves the user operation steps and improves the marking efficiency.

Description

Method for automatically marking page content
Technical Field
The invention relates to the technical field of computers, in particular to a method for automatically marking page content.
Background
Generally, when a user browses a web page or edits a text, if the user sees text contents such as relatively important characters and pictures, the user enters a selected state after long-time pressing or double-click. In the selected state, the user finishes selecting the corresponding text content, and can trigger highlight and marking effects only by manually clicking user-defined events such as highlight and marking. Moreover, the prior art does not provide the capability to rapidly switch the active state between multiple flags.
For users, in the prior art, users need to manually click custom events (such as highlighting and labeling) to mark or highlight, so that the operation of the users is increased, and the text editing efficiency is reduced.
Disclosure of Invention
In view of the above defects in the prior art, the technical problem to be solved by the present invention is to provide a method for automatically completing the marking of page content, which reduces the step of a user clicking a custom event (such as highlighting or labeling) to mark, saves the user operation steps, and improves the marking efficiency.
In order to achieve the above object, the method for automatically completing page content marking of the present invention comprises the following steps:
after a user opens a page, long-time pressing and double-click screen operations are carried out on the place needing to be marked;
acquiring long press and double click events and corresponding positions by calling a system method, and directly entering an activation selection mode;
after entering a selection mode, automatically selecting the content to be marked by the user by the system, and marking the content to be marked by the user;
judging whether the current page has a mark of an activation mode or not, and if not, ending; and if the mark of the active mode exists in the current page, switching the active state of the mark, and marking the mark existing before as the selected inactive state again.
The above system methods include, but are not limited to, onKeyLongPress, oneCLick, doublClick, selectTextMark methods.
The method for selecting the content to be marked by the user comprises the following steps:
based on a preset page P, the display is completed in the screen, and the total content of the page P is known to be C; the coordinates of a drop point of a finger in the screen are known to be L (x, y) by touching the screen with the finger;
each character has a falling point coordinate in the screen, character contents around the falling point are obtained by calculating the falling point L (x, y) of a finger, and at least one character is selected in the selected contents; and setting the content A to be marked to be in an activated state based on the preset content A to be marked.
The content to be marked by the user is wrapped in a water drop-shaped manner, water drops capable of being dragged freely are arranged at two ends of the content, a small circle button is arranged on the left side of the content, the content mark is deleted, a suspension button is arranged above the content, the content to be marked by the user is different from the surrounding content in a protruding mode, and at the moment, the content to be marked by the user is in an activated state.
The hover button includes, but is not limited to, copy, highlight, italics, bold, search.
The specific method for switching the activation state of the mark is as follows:
in a new page P, the variable SCount of the initial content number to be marked is 0, the first content A to be marked is marked as an activated state by sequentially executing the steps of marking the content to be marked of the user, and the variable SCount is increased by 1 and is changed into 1.
If the selected content B needs to be added or changed, the step of marking the content to be marked of the user is executed again, the content B is marked to be in an activated state, the state of the content A is changed to be NO, the style of the content A is changed to be highlighted, and the variable SCount is increased by 1 and changed to be 2 based on the preset text background color;
based on the number N of the contents to be marked in the preset page P, wherein the number of the activated states is 1, the inactivated state is N-1, if the contents of the activated states need to be switched, the inactivated contents are clicked, the system changes the inactivated contents into the activated states, and other contents to be marked become the inactivated states;
and if the N contents to be marked need to be deleted and marked, clicking a 'delete mark' button on the left side of the contents to be marked to execute operation, and sequentially cancelling the mark of each content to be marked.
The active state is YES, otherwise NO, and at most and only one content of one page is in the active state.
The invention has the beneficial effects that:
the invention reduces the step that the user clicks the user-defined event (such as highlighting and labeling) to mark, saves the user operation steps and improves the marking efficiency.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
As shown in fig. 1, a method for automatically completing page content marking includes the following steps:
step 1, after a user opens a page, long-time pressing and double-click screen operation are carried out on a place needing to be marked;
step 2, acquiring long press and double click events and corresponding positions by calling a system method, and activating a selection mode;
and 3, after entering the selection mode, automatically selecting part of contents by the system, and marking the part of contents.
How to select the content to be marked:
(1) assuming that the page is P, the display is completed in the screen, and the total content of the P page is C; (2) the coordinates of a drop point of a finger in the screen are known to be L (x, y) by touching the screen with the finger;
(3) each character has a coordinate of a drop point in the screen, the character content around the drop point can be obtained by calculating the drop point L (x, y) of a finger, the selected content has at least one character (assumed as the content A to be marked), and the content A is set to be in an activated state.
And 4, judging whether the current page has the mark of the activated mode or not at the same time of the step 3, if the mark of the activated mode does not exist in the current page, if the mark of the activated mode does exist in the current page, marking the mark which exists before as the selected inactivated state again.
How to switch the activation state of the content to be marked:
(1): in a new page (assumed to be page P), the initial number of contents to be marked (variable SCount) is 0, and the first content to be marked (assumed to be content a) is marked as active (active is YES, and is NO, and only one content in a page is active at most) by sequentially executing step 1/2/3, at which time the variable SCount is increased by 1 and becomes 1.
(2): if it is desired to add or change the selected content (assuming content B), step 1/2/3 may be performed again, where content B is marked as active, content a is changed to NO, content a style is changed to highlighted, text background color is light blue or otherwise, and variable SCount is increased by 1 and changed to 2.
(3): assuming that the number of contents to be marked in the page P is N, wherein the number of activated states is 1, and the number of inactivated states is N-1, if the contents in the activated states need to be switched, the inactivated contents can be clicked, the system can change the inactivated contents into the activated states, and other contents to be marked become the inactivated states.
(4): if the N contents to be marked need to be deleted and marked, a 'delete mark' button on the left side of the contents to be marked can be clicked to execute operation, and the marks of the contents to be marked are sequentially cancelled.
The content automatic marking method provided by the embodiment of the invention can be used for a webpage or a content display interface of an application program. The terminal can be realized by a browser or an application program interface, and the method comprises the following steps:
A. after opening the program page, a user long presses and double clicks a certain area in the screen operation page to trigger system level events, such as onKeyLongPress, oneClick, doublClick and selectTextMark methods, and activate a selection mode.
B. After entering the selection mode, the system automatically selects part of the content and marks the part of the content.
If the mark of the active mode exists in the current page, the mark existing before is marked as the selected inactive state again, and the style changes accordingly. Therefore, the marking of the style can be finished without user-defined events such as clicking marks, highlighting and the like by a user.
In the mobile terminal system such as android and the like, long-time pressing of the text content in the page triggers a system level event onKeyLongPress, and activates a selection mode. In the activation mode, the pressed characters are searched through the coordinates of the touch screen of the finger, the position and the character content of the pressed characters are obtained, and the part of the content is marked to be in an activation selection state. Meanwhile, if the current page has the activation selected state, the last activation selected state which has existed is set as the non-activation selected state. And the selected state is activated by modes of thickening, underlining, changing color, italicizing, adding a border, highlighting and the like of the text content.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.

Claims (4)

1. A method for automatically marking page content is characterized by comprising the following steps:
after a user opens a page, long-time pressing or double-click screen operation is carried out on a place needing to be marked;
acquiring long press and double click events and corresponding positions by calling a system method, and directly entering an activation selection mode;
after entering a selection mode, automatically selecting the content to be marked by the user by the system, and marking the content to be marked by the user;
judging whether the current page has a mark of an activation mode or not, and if not, ending; if the mark of the active mode exists in the current page, the mark is switched to the active state, the mark existing before is marked as the selected inactive state again,
the system method includes an onKeyLongPress, an oneClick, a doublClick or a selectTextMark method,
the method for selecting the content to be marked by the user comprises the following steps:
based on a preset page P, the display is completed in the screen, and the total content of the page P is known to be C; the coordinates of a drop point of a finger in the screen are known to be L (x, y) by touching the screen with the finger;
each character has a falling point coordinate in the screen, character contents around the falling point are obtained by calculating the falling point L (x, y) of a finger, and at least one character is selected in the selected contents; based on the preset content A to be marked and setting the content A to be marked as an activated state, the activated state of the mark is switched, and the specific method comprises the following steps:
in a new page P, the variable SCount of the initial content number to be marked is 0, the first content A to be marked is marked as an activated state by sequentially executing the step of marking the content to be marked of the user, and the variable SCount is increased by 1 and is changed into 1;
if the selected content B needs to be added or changed, the step of marking the content to be marked of the user is executed again, the content B is marked to be in an activated state, the state of the content A is changed to be NO, the style of the content A is changed to be highlighted, and the variable SCount is increased by 1 and changed to be 2 based on the preset text background color;
based on the number N of the contents to be marked in the preset page P, wherein the number of the activated states is 1, the inactivated state is N-1, if the contents of the activated states need to be switched, the inactivated contents are clicked, the system changes the inactivated contents into the activated states, and other contents to be marked become the inactivated states;
and if the N contents to be marked need to be deleted and marked, clicking a 'delete mark' button on the left side of the contents to be marked to execute operation, and sequentially cancelling the mark of each content to be marked.
2. The method of claim 1, wherein the method comprises:
the content to be marked by the user is wrapped in a water drop-shaped manner, water drops capable of being dragged freely are arranged at two ends of the content, a small circle button is arranged on the left side of the content, the content mark is deleted, a suspension button is arranged above the content, so that the content to be marked by the user is different from the surrounding content, and the content to be marked by the user is in an activated state.
3. The method of claim 2, wherein the method comprises:
the floating button comprises copying, highlighting, italicizing, thickening and searching.
4. The method of claim 1, wherein the method comprises: the active state is YES, otherwise NO, and at most and only one content of one page is in the active state.
CN201910259918.0A 2019-04-02 2019-04-02 Method for automatically marking page content Active CN110083293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910259918.0A CN110083293B (en) 2019-04-02 2019-04-02 Method for automatically marking page content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910259918.0A CN110083293B (en) 2019-04-02 2019-04-02 Method for automatically marking page content

Publications (2)

Publication Number Publication Date
CN110083293A CN110083293A (en) 2019-08-02
CN110083293B true CN110083293B (en) 2022-02-08

Family

ID=67414034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910259918.0A Active CN110083293B (en) 2019-04-02 2019-04-02 Method for automatically marking page content

Country Status (1)

Country Link
CN (1) CN110083293B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768614A (en) * 2012-06-14 2012-11-07 广东步步高电子工业有限公司 Text processing method applied to touch screen mobile handheld device
CN103176736A (en) * 2011-12-26 2013-06-26 三洋电机株式会社 User interface apparatus
CN106598409A (en) * 2016-11-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Text replication method and device, and intelligent terminal
CN109117032A (en) * 2017-06-22 2019-01-01 北大方正集团有限公司 Reading processing method and device based on epub e-book

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7650284B2 (en) * 2004-11-19 2010-01-19 Nuance Communications, Inc. Enabling voice click in a multimodal page
US8918711B2 (en) * 2011-03-10 2014-12-23 Michael J. Reed System and method for visually presenting electronic media
CN103412706A (en) * 2013-07-26 2013-11-27 惠州市德赛西威汽车电子有限公司 Method for switching menu

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176736A (en) * 2011-12-26 2013-06-26 三洋电机株式会社 User interface apparatus
CN102768614A (en) * 2012-06-14 2012-11-07 广东步步高电子工业有限公司 Text processing method applied to touch screen mobile handheld device
CN106598409A (en) * 2016-11-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Text replication method and device, and intelligent terminal
CN109117032A (en) * 2017-06-22 2019-01-01 北大方正集团有限公司 Reading processing method and device based on epub e-book

Also Published As

Publication number Publication date
CN110083293A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN105607807A (en) Mobile terminal based text processing method and system
CN110096189B (en) Application function access control method and device, storage medium and terminal equipment
CN103064625B (en) Based on object selection method and the system of multi-point touch screen
CN106990883B (en) Icon moving method, icon moving system and terminal
US20150277748A1 (en) Edit providing method according to multi-touch-based text block setting
CN104158972A (en) Method for calling third-party application in conversation process and user terminal
CN107066188A (en) A kind of method and terminal for sending screenshot picture
CN104636029A (en) Display control method and system for control
CN111338556B (en) Input method, input device, terminal equipment and storage medium
CN103761216A (en) Method for editing text and mobile terminal
CN106598409B (en) Text copying method and device and intelligent terminal
WO2016188261A1 (en) Method and apparatus for switching multiple folders, and computer storage medium
CN104007897A (en) Method and system for displaying toolbar for text editing
CN112269523B (en) Object editing processing method and device and electronic equipment
CN113625932A (en) Full screen handwriting input method and device
CN112163432A (en) Translation method, translation device and electronic equipment
WO2015096598A1 (en) Page content selection method and system
CN103176742A (en) Application operation guidance method and terminal thereof
CN106227389A (en) A kind of RichText Edition control call method based on screen pressure sensitive and device
CN106970899B (en) Text processing method and device
CN112486366A (en) Control display method and device and electronic equipment
CN103838458B (en) Mobile terminal and control method of input method of mobile terminal
CN112286554B (en) Application program updating method, device, electronic equipment and readable storage medium
CN110083293B (en) Method for automatically marking page content
KR20060001891A (en) Auto search search box

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240116

Address after: 273100 Xingguang Tiandi A1008, Xiaoxue Street, Qufu City, Jining City, Shandong Province

Patentee after: Nanjing faben Information Technology Co.,Ltd.

Address before: 273199 No. 17, Hutong 3, No. 185, canggeng Road, Qufu City, Jining City, Shandong Province

Patentee before: Gong Hui