WO2017012437A1 - 网页批注显示方法、装置及移动终端 - Google Patents

网页批注显示方法、装置及移动终端 Download PDF

Info

Publication number
WO2017012437A1
WO2017012437A1 PCT/CN2016/085474 CN2016085474W WO2017012437A1 WO 2017012437 A1 WO2017012437 A1 WO 2017012437A1 CN 2016085474 W CN2016085474 W CN 2016085474W WO 2017012437 A1 WO2017012437 A1 WO 2017012437A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
annotation
information
target
text
Prior art date
Application number
PCT/CN2016/085474
Other languages
English (en)
French (fr)
Inventor
王志寿
胡博
任超
李光
丁建波
李华高
苗西军
朱江
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to KR1020177029737A priority Critical patent/KR102038209B1/ko
Priority to JP2017555637A priority patent/JP6442082B2/ja
Publication of WO2017012437A1 publication Critical patent/WO2017012437A1/zh
Priority to US15/698,440 priority patent/US10817586B2/en
Priority to US17/026,150 priority patent/US11200295B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/169Annotation, e.g. comment data or footnotes

Definitions

  • the present invention relates to the field of the Internet, and in particular, to a webpage annotation display method, apparatus, and mobile terminal.
  • the terminal may display the webpage annotation by: when the terminal receives the display instruction of the target webpage, the terminal may acquire the information content of the target webpage from the server, and display the information content, and the terminal may The server obtains the webpage annotation in the target webpage and the selected text information corresponding to the webpage annotation, and then the terminal matches the information content of the target webpage according to the selected text information, to determine from the information content of the target webpage. The text information is selected, and the terminal can display the webpage annotation at the determined selected text information.
  • the terminal displays the webpage annotation by the above method, if there are multiple identical selected text information in the information content of the target webpage, the display of the webpage annotation may be wrong, thereby reducing the display accuracy of the webpage annotation.
  • the selected text information is “tourism”, if there are multiple “tours” in the information content of the target webpage, at this time, the terminal will only be the first “tourism” among the plurality of “tours”.
  • the page annotation is displayed at the location, which may result in an error in the display of the page annotation.
  • an embodiment of the present invention provides a webpage annotation display method, apparatus, and mobile terminal.
  • the technical solution is as follows:
  • a webpage annotation display method comprising:
  • the content of the webpage annotation is performed by the target webpage, where the first location information is used to determine a display location of the first webpage annotation
  • a webpage annotation display apparatus comprising:
  • An acquiring module configured to acquire information content of the target webpage when receiving a display instruction of the target webpage
  • a first sending module configured to send an information obtaining request to the server, where the information acquiring request carries a target webpage identifier, so that the server returns a first webpage annotation and first location information of the target webpage, the first webpage
  • An annotation is a content that is annotated with the webpage of the target webpage before the current time, and the first location information is used to determine a display location of the first webpage annotation
  • the first display module is configured to display the first webpage annotation on the target webpage based on the first location information when receiving the first webpage annotation and the first location information.
  • a mobile terminal where the mobile terminal includes:
  • One or more processors are One or more processors.
  • the memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
  • the technical solution provided by the embodiment of the present invention has the beneficial effects that, in the embodiment of the present invention, when the terminal receives the display instruction of the target webpage, the terminal acquires the information content of the target webpage, and sends an information acquisition request to the server, where The information acquisition request carries the target webpage identifier, so that the server returns the first webpage annotation and the first location information of the target webpage, where the first location information is used to determine the display location of the first webpage annotation, when the terminal receives the When the first webpage annotation and the first location information are used, the first webpage annotation is displayed on the target webpage based on the first location information.
  • the invention accurately locates the webpage annotation of the target webpage by using the location information of the webpage annotation, thereby avoiding the problem that the webpage annotation may be displayed incorrectly when there are multiple identical selected textual information, and improving the accuracy of the webpage annotation display. .
  • FIG. 1A is a schematic diagram of an implementation environment involved in a webpage annotation display method according to an embodiment of the present invention
  • FIG. 1B is a flowchart of a method for displaying a webpage annotation according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for displaying a webpage annotation according to an embodiment of the present invention.
  • FIG. 3 is a display interface diagram of a first webpage annotation display according to an embodiment of the present invention.
  • FIG. 4(a) is a display interface diagram of a second webpage annotation display according to an embodiment of the present invention.
  • 4(b) is a display interface diagram of a third webpage annotation display provided by an embodiment of the present invention.
  • FIG. 5 is a display interface diagram of a fourth webpage annotation display according to an embodiment of the present invention.
  • FIG. 6 is a display interface diagram of a fifth webpage annotation display according to an embodiment of the present invention.
  • FIG. 7 is a display interface diagram of a sixth webpage annotation display according to an embodiment of the present invention.
  • FIG. 8 is a display interface diagram of a seventh webpage annotation display according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a webpage annotation display device according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a first display module according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another first display module according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of another webpage annotation display apparatus according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a second display module according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of a third determining unit according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a determining module according to an embodiment of the present invention.
  • 16 is a schematic structural diagram of another determining module according to an embodiment of the present invention.
  • FIG. 17 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 1A is a schematic diagram of an implementation environment involved in a webpage annotation display method according to an embodiment of the present invention.
  • the implementation environment may include a terminal 110 and a server 120.
  • the terminal 110 may be a mobile phone, a computer, a tablet device, or the like.
  • the server 120 may be a server, or may be a server cluster composed of multiple servers, and the terminal 110 and the server 120 may be connected by wire or wirelessly. Communicate.
  • the terminal 110 may obtain the information content of the target webpage when receiving the display instruction of the target webpage, and send an information acquisition request to the server 120 to obtain the first webpage annotation and the first location information of the target webpage from the server 120.
  • the terminal 110 may display the first webpage annotation on the target webpage based on the first location information of the target webpage.
  • the server 120 may determine the first webpage annotation and the first location information of the target webpage based on the information acquisition request, and send the first webpage annotation and the first location information of the target webpage. To the terminal 110.
  • FIG. 1B is a flowchart of a method for displaying a webpage annotation according to an embodiment of the present invention. Referring to FIG. 1B, the method includes:
  • Step 101 Acquire an information content of the target webpage when receiving a display instruction of the target webpage.
  • Step 102 Send an information acquisition request to the server, where the information acquisition request carries the target webpage identifier, so that the server returns the first webpage annotation and the first location information of the target webpage, and the first webpage annotation is performed on the target webpage before the current time.
  • the content of the webpage annotation, the first location information is used to determine the display location of the first webpage annotation.
  • Step 103 When receiving the first webpage annotation and the first location information, based on the first digit Set the information to display the first page annotation on the landing page.
  • the terminal when the terminal receives the display instruction of the target webpage, the terminal acquires the information content of the target webpage, and sends an information acquisition request to the server, where the information acquisition request carries the target webpage identifier, so that the server returns the target.
  • a first webpage annotation and a first location information of the webpage where the first location information is used to determine a display location of the first webpage annotation
  • the terminal receives the first webpage annotation and the first location information, based on the first location information
  • the first page annotation is displayed on the landing page.
  • the invention accurately locates the webpage annotation of the target webpage by using the location information of the webpage annotation, thereby avoiding the problem that the webpage annotation may be displayed incorrectly when there are multiple identical selected textual information, and improving the accuracy of the webpage annotation display. .
  • displaying the first webpage annotation on the target webpage based on the first location information including:
  • the first location information includes the selection location information and the first annotation frame coordinates
  • determining, according to the selection location information, the first selected text information from the target webpage, where the first selected text information is the text endorsed by the first webpage annotation The information, the location location information is used to determine the location of the first selected text information in the target webpage, the first annotation frame coordinates are the coordinates of the first annotation box in the target webpage, and the first annotation box is used to display the first webpage annotation. Comment box
  • the first webpage annotation is displayed based on the position of the first selected text information and the first annotation frame coordinates.
  • displaying the first webpage annotation on the target webpage based on the first location information including:
  • the first location information includes the first relative coordinate and the first index information
  • An index information is index information of the first selected picture in the target webpage
  • the first relative coordinate is a relative coordinate of the first annotation box in the first selected picture
  • the first annotation box is used to display the first webpage annotation. Comment box
  • the first webpage annotation is displayed on the first selected picture.
  • the method further includes:
  • the trigger point coordinate is a coordinate of the trigger point of the specified event in the target webpage
  • the user account currently registered by the terminal, the target webpage identifier, the second webpage annotation, and the second location The information is sent to the server, so that the server stores the second webpage annotation and the second location information based on the user account and the target webpage identifier.
  • displaying an annotation input box based on the trigger point coordinates of the specified event including:
  • the information at the trigger point is text information, determining a target selection area based on the trigger point coordinates;
  • An annotation input box is displayed based on the location of the target selection.
  • determining the target selection based on the trigger point coordinates including:
  • the target selection is determined based on the plurality of text keywords.
  • determining the target selection based on the plurality of text keywords including:
  • the recommended selection is adjusted to obtain a target selection.
  • determining the second location information includes:
  • the selection location information of the target selection area and the second annotation frame coordinate are determined as the second location information.
  • determining the second location information includes:
  • the picture at the trigger point is used as the second selected picture, and the second selected picture is the picture annotated by the second page annotation;
  • the second relative coordinate and the second index information are determined as the second location information.
  • FIG. 2 is a flowchart of a webpage annotation display method according to an embodiment of the present invention. Referring to FIG. 2, the method is used in a terminal, and includes the following steps:
  • Step 201 When the terminal receives the display instruction of the target webpage, the terminal acquires the information content of the target webpage.
  • the terminal when the terminal receives the display instruction of the target webpage, the terminal may generate a webpage acquisition request based on the target webpage identifier carried by the display instruction of the target webpage, and send the webpage acquisition request to the server, when the server receives the When the webpage obtains the request, the server may obtain the information content of the target webpage based on the target webpage identifier, and send the information content of the target webpage to the terminal, and the terminal may receive the information content of the target webpage to obtain The content of the information to the landing page.
  • the terminal when the terminal receives the display instruction of the target webpage, the terminal may search for the information content of the target webpage from the local cache based on the target webpage identifier carried by the display instruction of the target webpage, and find the content of the target webpage from the local cache.
  • the terminal may obtain the information content of the target webpage from the local cache.
  • the terminal may obtain the information content of the target webpage by using other methods, which is not specifically limited in this embodiment of the present invention.
  • the terminal when the terminal obtains the information content of the target webpage, the terminal may directly display the information content of the target webpage. Of course, in actual applications, the terminal may not display the information content of the target webpage directly.
  • the following steps 202-204 are performed, and in step 204, the information content of the target webpage is displayed together with the first webpage annotation, which is not specifically limited in the embodiment of the present invention.
  • the terminal When the terminal displays the information content of the target webpage, the terminal may display and display according to the format of HTML (Hyper Text Markup Language). Of course, in actual applications, the terminal may also follow other formats. The embodiment of the present invention does not specifically limit this.
  • the first webpage annotation is the content of the webpage annotation on the target webpage before the current time.
  • the display instruction of the target webpage is used to display the target webpage, and the display instruction of the target webpage may be triggered by the user, and the user may be triggered by a first specified operation, which may be a click operation or a sliding operation.
  • a first specified operation which may be a click operation or a sliding operation.
  • the voice operation and the like are not specifically limited in the embodiment of the present invention.
  • target webpage identifier is used to uniquely identify the target webpage
  • target webpage identifier can be
  • the embodiment of the present invention does not specifically limit the title of the target webpage, the webpage of the target webpage, the keyword of the target webpage, and the like.
  • the terminal After the terminal obtains the information content of the target webpage, in order to display the first webpage annotation of the target webpage, the terminal may be executed by the following steps 202-204, as follows.
  • Step 202 The terminal sends an information acquisition request to the server, where the information acquisition request carries the target webpage identifier.
  • the terminal may generate an information acquisition request based on the target webpage identifier, and send the information acquisition request to the server.
  • the server is a server corresponding to an application currently used for browsing a target webpage.
  • the information acquisition request is used to acquire the first webpage annotation and the first location information of the target webpage.
  • the first location information is used to determine a display location of the first webpage annotation.
  • the first webpage annotation may include not only the webpage annotation corresponding to the user account currently logged in by the terminal, but also the webpage annotation corresponding to the user account other than the user account, which is not specifically limited in the embodiment of the present invention.
  • the webpage annotation corresponding to the user account currently registered by the terminal is the webpage annotation of the webpage of the user account
  • the webpage annotation corresponding to the other user account is the webpage annotation of the webpage of the other user account.
  • the user account currently logged in is the user account currently used for browsing the target webpage, and the user account can be registered in the server, and the user account can be composed of letters, numbers, and the like. Specifically limited.
  • the target webpage is identified as ID1.
  • the terminal may generate an information acquisition request based on the target webpage identifier ID1, and send the information acquisition request to the server.
  • the information acquisition request may further carry the user account currently logged in by the terminal, which is in the embodiment of the present invention. This is not specifically limited.
  • Step 203 When the server receives the information acquisition request, the first webpage annotation and the first location information of the target webpage are sent to the terminal.
  • the server may obtain the first webpage annotation and the first location information of the target webpage based on the target webpage identifier carried by the information acquisition, and annotate the first webpage of the target webpage. And the first location information is sent to the terminal.
  • the first webpage annotation may include not only the webpage annotation corresponding to the user account currently registered by the terminal, but also the webpage annotation corresponding to the user account other than the user account, so when the server obtains the first webpage annotation,
  • the webpage annotation corresponding to the user account currently logged in by the terminal may be obtained, or the webpage annotation corresponding to all the user accounts may be obtained, so the server obtains the first webpage annotation and the first location information of the target webpage based on the target webpage identifier.
  • the operation can include two situations, as described below.
  • the server searches for the stored user account, the webpage identifier, the webpage annotation, and the location information based on the target webpage identifier and the user account currently logged in by the terminal.
  • the corresponding webpage annotation and location information are obtained, the obtained webpage annotation is determined as the first webpage annotation, and the obtained location information is determined as the first location information.
  • the first webpage annotation obtained in the first case only includes the webpage annotation corresponding to the user account currently logged in by the terminal, and the server does not need to obtain the webpage annotation corresponding to the other user account, thereby improving the The first web annotation is efficient in obtaining and saves processing resources of the server.
  • the information acquisition request carries the target webpage identifier and the user account currently logged in by the terminal, and the target webpage identifier is ID1, and the user account is 12345678
  • the server may be based on the target webpage identifier ID1 and the user account 12345678.
  • the corresponding webpage annotation is obtained as the annotation 1
  • the corresponding location information is obtained as the information 1
  • the annotation 1 is determined as the first
  • the web page annotation determines the information 1 as the first location information.
  • the server obtains the webpage annotation and location information corresponding to all the user accounts from the corresponding relationship between the stored user account, the webpage identifier, the webpage annotation and the location information, based on the target webpage identifier, and obtains the webpage annotation and location information corresponding to the user account.
  • the webpage annotation is determined to be the first webpage annotation, and the obtained location information is determined as the first location information.
  • the first webpage annotation obtained in the second case includes not only the webpage annotation corresponding to the user account currently registered by the terminal, but also the webpage annotation corresponding to the user account other than the user account, thereby After the server sends the first webpage annotation to the terminal, the user who uses the terminal can conveniently know all the webpage annotations on the target webpage in time.
  • the server may use the user account, the webpage identifier, the webpage annotation, and the location information according to the target webpage identifier ID1.
  • the corresponding webpage annotations are obtained as annotation 1 and annotation 4
  • the corresponding location information is obtained as information 1 and information 4
  • the annotation 1 and annotation 4 are determined as the first webpage annotation
  • the information 1 is determined as The first location information of the annotation 1 determines the information 4 as the first location information of the annotation 2.
  • the user who uses the terminal can identify the user account corresponding to the current login of the terminal from the first webpage annotation.
  • the webpage is annotated, and the server may further perform an account marking on the first webpage annotation before sending the first webpage annotation to the terminal, so that the terminal may display the first webpage annotation based on the account identifier.
  • the operation of marking the first webpage annotation by the server may be: the server marking the first webpage annotation by using the corresponding user account of the first webpage annotation; or, when the information acquisition request further carries the terminal
  • the server obtains the webpage annotation corresponding to the user account currently logged in by the terminal from the first webpage annotation, and performs the first mark on the obtained webpage annotation, and the current webpage annotation is divided into the current
  • the webpage annotations other than the webpage annotations corresponding to the logged-in user account are marked with the second mark; of course, in the actual application, the server may also perform the account marking on the first webpage annotation by other means, and the embodiment of the present invention does not specifically limited.
  • the first mark is used to mark the batch of the webpage corresponding to the user account currently registered by the terminal.
  • the second tag is used to mark a webpage annotation other than the webpage annotation corresponding to the user account currently registered by the terminal.
  • the server may send the first webpage annotation and the first location information of the target webpage to the terminal, if the annotation object corresponding to the first webpage annotation is text information.
  • the server may further send the first selected text information corresponding to the first webpage annotation to the terminal, so that the terminal displays the first webpage annotation based on the first location information and the first selected text information, thereby further improving the display of the webpage annotation. accuracy.
  • the first selected text information is the text information endorsed by the first webpage annotation.
  • Step 204 When the terminal receives the first webpage annotation and the first location information, displaying the first webpage annotation on the target webpage based on the first location information.
  • the information content of the target webpage may include not only the text information, but also the image. Therefore, the annotation object of the first webpage annotation may also be text information or a picture. . Since the manner of determining the display position of the first webpage annotation is different for different annotation objects, that is, for different annotation objects, the first location information includes different contents, and therefore, the terminal is based on the first location. Information, the operation of displaying the first web page annotation on the landing page may include two scenarios, as described below.
  • the terminal determines the first selected text information from the target webpage based on the selection location information; based on the location of the first selected text information And the first batch of box coordinates, showing the first page annotation.
  • the selection location information is used to determine the location of the first selected text information in the target webpage, and the selection location information may include a paragraph start location and a paragraph end location of the first selected text information, and the first selection The start text offset value and end text offset value of the text message.
  • first annotation frame coordinates are used to determine the position of the first annotation frame in the target webpage
  • first annotation frame coordinates are the coordinates of the first annotation frame in the target webpage.
  • the origin of the coordinate system of the first batch of frame coordinates may be the upper left corner, the lower left corner, the upper right corner, the lower right corner, and the like of the target webpage, which is not specifically limited in this embodiment of the present invention.
  • the first note box is a comment box for displaying the first web page annotation.
  • the terminal determines that the annotation object of the first webpage annotation is text information, and the terminal may be based on the selection location information from the information content of the target webpage. Determining the first selected text information, when the first annotation frame coordinate is located at the position of the first selected text information, the terminal may directly display the first webpage based on the first annotation frame coordinate Annotating, when the first annotation frame coordinate is not located at the position of the first selected text information, the terminal may adjust the first annotation frame coordinate based on the position of the first selected text information, and based on the adjusted first annotation frame Coordinates, showing the first page annotation.
  • the terminal displays the first annotation box based on the first annotation frame coordinates based on the first annotation frame coordinates, and displays the first webpage annotation in the first annotation box.
  • the terminal when the terminal adjusts the coordinates of the first annotation frame based on the position of the first selected text information, the terminal may acquire the distance between the middle position of the first selected text information and the middle position of the first selected text information. The coordinates of the first specified length position, the first annotation frame coordinates are replaced with the acquired coordinates to adjust the first annotation coordinates.
  • the terminal may adjust the coordinates of the first annotation frame based on the position of the first selected text information in other manners, which is not specifically limited in this embodiment of the present invention.
  • the first specified length may be set in advance, for example, the first specified length may be 0.5 cm (cm), 1 cm, and the like, which is not specifically limited in the embodiment of the present invention.
  • the terminal may further perform the first selected text information.
  • the first selected text information may be marked by a specific symbol, or the first selected text information may be marked by a specific color.
  • the first selected text information may be highlighted by the terminal in other manners, which is not specifically limited in this embodiment of the present invention.
  • the specific symbol may be set in advance, and the specific symbol may be a wavy line, an underline, a double underline, a broken line, and the like, which is not specifically limited in the embodiment of the present invention.
  • the specific color may be set in advance, and the specific color may be blue, red, or the like, which is not specifically limited in the embodiment of the present invention.
  • the location location information is location information 1
  • the first annotation frame coordinate is coordinate 1
  • the first webpage annotation is "How old is it?"
  • the specific symbol is underlined
  • the terminal can be based on the location information 1 from the Determining, in the information content of the target webpage, the first selected text information is “young time”, and marking the first selected text with an underline.
  • the terminal may be based on The coordinate 1, the first annotation box is displayed, and the first webpage annotation "How old is it?" is displayed in the first annotation box, and its display interface is as shown in FIG.
  • the terminal determines the first content from the information content of the target webpage based on the location location information.
  • the operation of selecting the text information may be: the terminal determines the text paragraph in which the first selected text information is located based on the beginning position of the paragraph and the end position of the paragraph of the first selected text information, and is based on the initial text of the first selected text information.
  • the shift value and the end text offset value determine the first selected text information from the text paragraph.
  • the beginning position of the paragraph of the first selected text information is the beginning position of the paragraph of the text paragraph where the first character of the first selected text information is located, and the ending position of the paragraph of the first selected text information is the first selected text information.
  • the last character is located at the end of the paragraph of the text paragraph.
  • start text offset of the first selected text information is an offset value of the first character of the first selected text information relative to the beginning position of the paragraph of the text segment where the first character is located
  • first selected text information is the offset of the last character of the first selected text message relative to the beginning of the paragraph of the text paragraph in which the last character is located.
  • the text paragraph in which the first selected text information is located may include one text paragraph, and may include a plurality of text paragraphs
  • the method for determining the first selected text information is slightly different, and the text paragraph is a text paragraph and Multiple text paragraphs are set forth below.
  • the terminal determines a first text paragraph based on a paragraph start position of the first selected text information, and determines a second text paragraph based on the paragraph end position of the first text information, when the first text paragraph and the second text paragraph are the same
  • the text paragraph in which the first selected text information is located is determined to be a text paragraph.
  • the terminal determines the first selected text information based on the beginning position of the paragraph and the initial text offset value of the first selected text information.
  • the terminal determines that the text paragraph in which the first selected text information is located is a plurality of text paragraphs. At this time, the terminal is based on the paragraph of the first selected text information. a starting position and a starting text offset value, determining a first character of the first selected text information in the first text paragraph included in the plurality of text paragraphs, based on a paragraph ending position of the first selected text information, Determining a starting position of the paragraph in the last text paragraph included in the plurality of text paragraphs, determining, based on the beginning position of the paragraph of the last text paragraph and the ending text offset value, determining that the first selected text information is included in the plurality of text paragraphs The last character in the last text paragraph, the text information between the first character and the last character and including the first character and the last character is determined as the first selected text information.
  • the beginning position of the first selected text information is position 1
  • the end position of the paragraph is position 48
  • the initial text offset value of the first selected text information is 8
  • the ending text offset value is 10
  • the terminal is based on the Selecting a paragraph start position 1 and a paragraph end position 48 of the text information, determining that the paragraph in which the first selected text information is located is the same text paragraph, and the text paragraph is the first paragraph, and therefore, the terminal is based on the first selected text information.
  • a paragraph start position 1 and a start text offset value of 8 determining that the first character of the first selected text information in the first paragraph is the eighth character in the first paragraph, based on the beginning of the first selected text information Position 1 and ending text offset value 10, determining that the last character of the first selected text information in the first paragraph is the tenth character in the first paragraph, and therefore, determining the eighth character and the tenth character in the first paragraph
  • the text information including the eighth character and the tenth character is "young", and the text information is determined as the first selected text information as shown in FIG. 4(a).
  • the beginning position of the first selected text information is position 1
  • the end position of the paragraph is position 82
  • the initial text offset value of the first selected text information is 42
  • the ending text offset value is 2
  • the terminal is based on The paragraph start position 1 and the paragraph end position 82 of the first selected text information determine that the text paragraph in which the first selected text information is located is a plurality of text paragraphs, and the plurality of text paragraphs are the first paragraph and the second paragraph.
  • the terminal determines, according to the paragraph start position 1 and the start text offset value 42 of the first selected text information, that the first selected text information is included in the first text paragraph of the plurality of text paragraphs, that is, the first The first character in a paragraph is the 42nd character in the first paragraph, and based on the paragraph ending position 82 of the first selected text information, determining the last text paragraph included in the plurality of text paragraphs, that is, the second paragraph The beginning position of the paragraph is 49, and based on the paragraph start position 49 and the end text offset value 2 of the second paragraph, determining that the last character of the first selected text information in the second paragraph is the second paragraph
  • the second character therefore, determines between the 42nd character in the first paragraph and the second character in the second paragraph and includes the 42nd character in the first paragraph and the second character in the second paragraph
  • the text information is "When the graphic designer. The current year", as shown in FIG. 4(b), the text information is determined as the first selected text information.
  • the terminal determines, according to the first index information, the first selected picture from the target webpage, where the first selected picture is the first The image annotated by the webpage annotation, the first index information is index information of the first selected image in the target webpage; and based on the first relative coordinate, the first webpage annotation is displayed on the first selected image.
  • the terminal may Determining the first selected graph from the information content of the target webpage based on the first index information The slice, and based on the first relative coordinate, displays the first page annotation on the first selected picture.
  • the terminal when the terminal displays the first webpage annotation in the first selected picture based on the first relative coordinate, the terminal may display the first annotation box on the first selected image based on the first relative coordinate, and the The first web annotation is displayed in the first annotation box.
  • the first relative coordinate is coordinate 2
  • the first index information is index information 1
  • the first webpage annotation is “what flower?”
  • the terminal determines the first information from the information content of the target webpage based on the index information 1.
  • the selected picture is picture 1, and based on the first relative coordinate, on the picture 1, the first note box is displayed, and the first page annotation "What flower?" is displayed in the first note box, and the display interface thereof is as shown in the figure 5 is shown.
  • first relative coordinate is used to determine the position of the first annotation frame in the first selected picture
  • first relative coordinate is the relative coordinate of the first annotation frame in the first selected picture
  • the origin of the coordinate system in which the first relative coordinate is located may be the upper left corner, the lower left corner, the upper right corner, the lower right corner, and the like of the first selected image, which is not specifically limited in this embodiment of the present invention.
  • the terminal when the terminal not only receives the first webpage annotation and the first location information of the target webpage sent by the server, but also receives the first selected text information corresponding to the first webpage annotation sent by the server, in order to avoid the target
  • the first webpage annotation displays an error problem
  • the terminal can also find the location of the first selected text information from the target webpage by using the first selected text information, and determine whether the found location is Included, the location identified by the first location information, if included, the first webpage annotation is displayed at the first selected text information of the location identified by the first location information, and if not included, the first webpage annotation corresponding to the first webpage annotation is determined
  • the selected text information has changed.
  • the terminal may not display the first webpage annotation.
  • the terminal may further display the first webpage annotation based on the account identifier, so that the user can identify the current terminal from the first webpage annotation.
  • the operation of displaying, by the terminal, the first webpage mark based on the account mark may be: when the first webpage annotation is marked by the first type of account marking manner described in step 203 above, that is, the server passes the
  • the terminal may display the first webpage annotation based on the user account corresponding to the first webpage annotation; when the first webpage annotation is as described in step 203 above
  • the terminal may display the first page mark that is marked with the first mark in the first specified color, and the second designation The color is displayed on the first page annotation that is marked second; of course, the actual In the application, the terminal may display the first webpage mark based on the account mark in other manners, which is not specifically limited
  • first designated color is different from the second designated color, and the first designated color and the second designated color may be set in advance, which is not specifically limited in the embodiment of the present invention.
  • the terminal may display the first webpage annotation by using the color corresponding to the user account when the first webpage annotation is displayed based on the user account corresponding to the first webpage annotation.
  • the terminal may display the first webpage annotation by using the color corresponding to the user account when the first webpage annotation is displayed based on the user account corresponding to the first webpage annotation.
  • the terminal may display the first webpage annotation by using the color corresponding to the user account when the first webpage annotation is displayed based on the user account corresponding to the first webpage annotation.
  • the terminal may display the first webpage annotation by using the color corresponding to the user account when the first webpage annotation is displayed based on the user account corresponding to the first webpage annotation.
  • the terminal may display the first webpage annotation by using the color corresponding to the user account when the first webpage annotation is displayed based on the user account corresponding to the first webpage annotation.
  • the terminal may also display the user account. So that the user can know the user account corresponding to the first webpage annotation in time.
  • the click operation may be triggered by the user, which is not specifically limited in this embodiment of the present invention.
  • the terminal may further hide the first webpage annotation, and after hiding, again detecting that the user triggers the first specified operation
  • the first webpage annotation can also be redisplayed, so that the display of the first webpage annotation can be made more flexible.
  • the terminal may perform feedback processing on the first webpage annotation, and when the first webpage annotation not only includes The webpage annotation corresponding to the user account currently logged in by the terminal further includes the webpage annotation corresponding to the user account other than the user account, and the feedback operation can implement interaction between multiple users.
  • the feedback operation is used to feedback the first webpage annotation, and the feedback operation may include a click operation, a comment operation, and the like, which are not specifically limited in the embodiment of the present invention.
  • the feedback operation may be triggered by the user, and the user may perform the triggering by clicking the click button, the comment button, and the like, which is not specifically limited in the embodiment of the present invention.
  • click button and the comment button may be set in advance, and the specific position of the click button and the comment button in the embodiment of the present invention is not specifically limited.
  • the terminal may display the first webpage annotation on the target webpage by using the above steps 201-204, and after displaying the first webpage annotation, the user may also be at the target.
  • a new webpage annotation is input in the webpage, and the newly input webpage annotation can be referred to as a second webpage annotation, and the terminal can perform the second webpage on the target webpage by the following steps 205-207. Web annotations.
  • Step 205 When the terminal detects that the specified event for the information content is triggered, displaying an annotation input box based on the trigger point coordinates of the specified event, and receiving the currently input second webpage annotation based on the annotation input box.
  • the terminal may acquire the trigger point coordinates of the specified event, and display an annotation input box based on the trigger point coordinates of the specified event, and the annotation input box is used for inputting The second webpage annotation, after the annotation input box is displayed, the terminal can receive the currently input second webpage annotation based on the annotation input box.
  • the specified event is used to perform the second webpage annotation on the target webpage, and the specified event may be triggered by the user, and the specified event may be a long press event, a double-click event, or the like. Specifically limited.
  • the trigger point coordinate is used to determine a position of the trigger point of the specified event in the target webpage
  • the trigger point coordinate is a coordinate of the trigger point of the specified event in the target webpage, where the coordinate of the trigger point coordinate is
  • the origin may be the upper left corner, the lower left corner, the upper right corner, the lower right corner, and the like of the target webpage, which is not specifically limited in this embodiment of the present invention.
  • the terminal when the terminal detects that the specified event for the information content is triggered, the terminal displays the operation of the annotation input box based on the trigger point coordinates of the specified event, and may include the steps of (1)-(4), as described below. .
  • the terminal selects an area where the trigger point coordinates are located from the plurality of areas included in the target webpage based on the trigger point coordinates of the specified event, and based on the selected area, from the stored area of the target webpage and the information attribute In the corresponding relationship, the corresponding information attribute is obtained.
  • the information attribute is a text attribute
  • it is determined that the information at the trigger point is text information
  • the information attribute is a picture attribute
  • the multiple areas included in the target webpage may be divided in advance, and the number of the multiple areas is not specifically limited in the embodiment of the present invention.
  • the trigger point coordinate is coordinate 3
  • the area corresponding to the coordinate 3 is area 1.
  • the terminal selects the area where the trigger point coordinate is located from the plurality of areas included in the target webpage based on the coordinate 3 of the specified event.
  • the corresponding information attribute is obtained as a text from the correspondence between the area of the target webpage and the information attribute as shown in Table 2 below. Therefore, the terminal does
  • the information at the trigger point is text information.
  • the terminal determines the target selection based on the coordinates of the trigger point.
  • the terminal determines target text information from the information content of the target webpage based on the trigger point coordinates, and sends the target text information to the server, when the server receives The target text information, the server selects a plurality of text keywords from the target text information, and sends the plurality of text keywords to the terminal, when the terminal receives the plurality of text keywords, the terminal is based on The plurality of text keywords determine a target selection.
  • the terminal determines, according to the trigger point coordinates, the text information between the two punctuation marks closest to the coordinate of the trigger point when determining the target text information from the information content of the target webpage.
  • the target text information may also determine the first specified numerical value of the text before and after the coordinate of the trigger point as the target text information.
  • the terminal may determine the target text information by other methods. This embodiment of the present invention does not specifically limit this.
  • the first specified value may be set in advance, for example, the first specified value may be 2, 3, 4, etc., which is not specifically limited in the embodiment of the present invention.
  • the trigger point coordinate is coordinate 3.
  • the terminal determines the text information between the two punctuation marks closest to the trigger point coordinate as the target text information, as shown in FIG. 6, the terminal is based on the coordinate 3
  • the text information "the drawn poster and the product packaging pattern which are also popular" between the two punctuation marks which are the closest to the coordinate 3 in the information content of the target web page is determined as the target text information.
  • the server may select a plurality of text keywords from the target text information, and the server may perform segmentation on the target text information.
  • select multiple text keywords from the multiple phrases may be selected.
  • the server may select the most frequently used phrase from the plurality of phrases, that is, according to the plurality of phrases, from the stored words and In the correspondence between the frequencies, the frequency of use of the plurality of phrases is obtained, and the second specified numerical phrase is selected according to the order of use of the plurality of phrases, and the selected phrase is determined as the text.
  • the server may also select a plurality of text keywords from the plurality of phrases by other means, which is not specifically limited in the embodiment of the present invention.
  • the second specified value may be set in advance, for example, the second specified value may be 2, 3, 5, etc., which is not specifically limited in the embodiment of the present invention.
  • the second specified value is 3.
  • the server segments the target text information, and obtains a plurality of phrases as “drawing”, “publicity painting”, and “product packaging pattern”. "popular”, based on the plurality of phrases, the server obtains the frequency of use of the plurality of phrases from the correspondence between the phrase and the frequency of use shown in Table 3 below, wherein the frequency of "drawing" is 40.
  • the frequency of use of "Public Poster” is 72
  • the frequency of use of "Commodity Packaging Pattern” is 80
  • the frequency of use of "Popular” is 100.
  • the terminal selects 3 phrases according to the order of frequency of use of the multiple phrases. For the "Public Poster", “Commodity Packaging Pattern” and “Popular”, the selected “Public Poster”, “Commodity Packaging Pattern” and “Popular” are identified as text keywords.
  • the terminal may select a recommended text keyword from the plurality of text keywords based on the trigger point coordinates, and generate the recommended text keyword based on the recommended text keyword.
  • a recommended selection area for marking the recommended text keyword, and the recommendation The selection area may be adjusted.
  • the recommended selection area is adjusted to obtain a target selection area.
  • the terminal may also be determined based on the multiple text keywords by other means.
  • the target selection area is not specifically limited in this embodiment of the present invention.
  • the adjustment operation is used to adjust the recommended selection area, and the adjustment operation may be triggered by the user, and the user may be triggered by an adjustment button located on the left and right sides of the recommended selection area.
  • the user It can also be triggered by other forms, which are not specifically limited in the embodiment of the present invention.
  • the terminal selects recommended text from the plurality of text keywords based on the trigger point coordinates.
  • the recommended text keyword is “Publicity Poster”, and based on the recommended text keyword “Publication Poster”
  • a recommended selection area as shown in FIG. 7 is generated, and the recommended selection area is used to mark the recommended text keyword “Publicity” Drawing, and the left and right sides of the recommended selection area include an adjustment button.
  • the terminal detects an adjustment operation for the left side of the recommended selection button to the left, the recommended selection area is stretched to the left to obtain the figure.
  • the terminal when the terminal selects the recommended text keyword from the plurality of text keywords, the text keyword closest to the trigger point coordinate among the plurality of text keywords may be determined as the recommended text keyword, of course, in practical application
  • the terminal may also select a recommended text keyword from the plurality of text keywords in other manners, which is not specifically limited in the embodiment of the present invention.
  • the terminal may further highlight the text information included in the target selection, which is high.
  • the color of the bright display may include a plurality of colors, and the plurality of colors may be arbitrarily selected, for example, red, yellow, green, and the like, which are not specifically limited in the embodiment of the present invention.
  • the terminal may highlight the text information included in the target selection, and the operation of the highlighting is similar to the operation highlighted in the above step 204, which is not described in detail in the embodiment of the present invention.
  • the terminal may acquire the location of the target selection area, and set the display position of the annotation input box based on the position of the target selection area, after which the terminal displays the annotation input box based on the set display position.
  • the terminal when the terminal sets the display position of the annotation input box based on the position of the target selection area, the terminal may determine the position that is directly below the position of the target selection area and is at a second specified length from the position of the target selection area, and is determined as an annotation.
  • the display position of the input box In practical applications, the terminal can also The display position of the annotation input box is set based on the location of the target selection area by other means, which is not specifically limited in the embodiment of the present invention.
  • the second specified length may be set in advance, for example, the second specified length may be 0.5 cm, 1 cm, etc., which is not specifically limited in the embodiment of the present invention.
  • the terminal displays the comment input box based on the location of the trigger point.
  • the terminal determines, according to the location of the trigger point, the location of the trigger point as the display position of the annotation input box, and then displays the annotation based on the display position of the annotation input box. Input box.
  • Step 206 When the terminal receives the completion instruction of the second webpage annotation, determining the second location information, where the second location information is used to determine the display location of the second webpage annotation.
  • determining the second location information can include two ways, as described below.
  • the terminal may determine the location location information of the target selection area, and determine the coordinates of the second annotation frame.
  • the selection location information of the target selection area and the second annotation frame coordinate are determined as the second location information.
  • the second annotation frame coordinate is used to determine the position of the annotation input box in the target webpage
  • the second annotation frame coordinate is the coordinate of the annotation input box in the target webpage.
  • the origin of the coordinate system of the second batch of frame coordinates may be the upper left corner, the lower left corner, the upper right corner, the lower right corner, and the like of the target webpage, which is not specifically limited in this embodiment of the present invention.
  • the completion instruction of the second webpage annotation is used to indicate that the content input of the second webpage annotation is completed, and the completion instruction of the second webpage annotation can be triggered by the user, and the user can be triggered by the second specified operation, and the second designated operation can be
  • the embodiment of the present invention does not specifically limit the operation of hitting the enter key and clicking the send button.
  • the terminal determines the coordinates of the second annotation frame
  • the coordinates of the annotation input box in the target webpage may be obtained, and the coordinates of the annotation input box in the target webpage are determined as the coordinates of the second annotation frame.
  • the text information included in the target selection area is the text information endorsed by the second webpage annotation.
  • the text information included in the target selection area may be referred to as the second selected text information. Since the text paragraph in which the second selected text information is located may include a text paragraph, a plurality of text paragraphs may also be included, so when the text paragraph in which the second selected text information is located includes a text paragraph or multiple When the text paragraph is used, the method for the terminal to determine the location location information of the target selection is slightly different, as described below.
  • the terminal acquires the beginning position of the paragraph and the end position of the paragraph of the text paragraph in which the second selected text information is located, and determines the starting position of the obtained paragraph as the first Second, the beginning position of the paragraph of the text information is selected, and the obtained end position of the paragraph is determined as the end position of the paragraph of the second selected text information, and then the first character of the second selected text information is obtained with respect to the first character of the beginning position of the paragraph.
  • An offset value is determined as a start text offset value, and a second text offset value of the last character of the second selected text information relative to the beginning position of the paragraph is obtained, and the second text is offset
  • the value is determined as the end text offset value, and the paragraph start position, the paragraph end position, the start text offset value, and the end text offset value of the second selected text information are determined as the selection position information of the target selection.
  • the terminal acquires the beginning position of the paragraph of the first text paragraph included in the plurality of text paragraphs and the end position of the paragraph of the last text paragraph, The obtained starting position of the paragraph is determined as the beginning position of the paragraph of the second selected text information, and the obtained ending position of the paragraph is determined as the ending position of the paragraph of the second selected text information, after which the terminal acquires the first position of the second selected text information.
  • the third character offset value of the character relative to the beginning position of the paragraph, the third text offset value is determined as the start text offset value, and the last text paragraph of the plurality of text paragraphs is obtained based on the end position of the paragraph The beginning position of the paragraph, and obtain the fourth character offset value of the last character of the second selected text information relative to the beginning position of the paragraph of the last text paragraph, and determine the fourth text offset value as the text end offset value , after that, the beginning position of the paragraph, the end of the paragraph, the start text offset value, and the end text offset value of the second selected text information Location information of the target set for that constituency constituency.
  • the terminal may determine the second relative coordinate based on the trigger point coordinates, where the second relative coordinate is the relative coordinate of the trigger point in the second selected picture; determining the second index information, the second index information The index information of the second selected picture in the target webpage; the second relative coordinate and the second index information are determined as the second location information.
  • the terminal may display the second webpage annotation.
  • the terminal may further perform the webpage annotation on the selected text information or the selected image in the target webpage, thereby The problem of the user in the related art that the webpage cannot be re-applied to the same location is avoided.
  • the terminal can also display and display a plurality of webpage annotations in the same location, thereby improving the display effect of the webpage annotation.
  • Step 207 The terminal sends the user account, the target webpage identifier, the second webpage annotation, and the second location information to the server, so that the server stores the second webpage annotation and the second based on the user account and the target webpage identifier. location information.
  • the terminal sends the user account, the target webpage identifier, the second webpage annotation, and the second location information to the server, when the server receives the user account, the target webpage identifier, the second webpage annotation, and the second location information
  • the server stores the second webpage annotation and the second location information in a correspondence between the user account, the webpage identifier, the webpage annotation, and the location information based on the user account and the target webpage identifier, to identify the user account and the webpage identifier.
  • the correspondence between the web page annotation and the location information is updated.
  • the server may also store the second webpage annotation and the second location information in other manners based on the user account and the target webpage identifier, which is not specifically limited in the embodiment of the present invention.
  • the second webpage annotation is the annotation 6, and the second location information is the information 6.
  • the terminal sends the user account 12345678, the target webpage identification ID1, the annotation 6 and the information 6 to the server, when the server receives the
  • the server stores the annotation 6 and the information 6 in the user shown in Table 4 below based on the user account 12345678 and the target webpage identifier ID1.
  • the correspondence between the account number, the webpage identifier, the webpage annotation and the location information the correspondence between the user account, the webpage identifier, the webpage annotation and the location information shown in the above Table 1 is updated.
  • the terminal may further send the second user account, the target webpage identifier, the second webpage annotation, and the second location information to the server.
  • the second selected text information corresponding to the webpage annotation is sent to the server, so that the server stores the second webpage annotation, the second location information, and the second selected text information based on the user account and the target webpage identifier.
  • the terminal may perform feedback processing on the second webpage annotation.
  • the terminal may further delete the second webpage annotation.
  • the deletion operation may be triggered by the user, and the user may perform the triggering by clicking the delete button or the like, which is not specifically limited in the embodiment of the present invention.
  • the delete button may be set in advance, and the specific position of the delete button is not specifically limited in the embodiment of the present invention.
  • the terminal when the terminal receives the display instruction of the target webpage, the terminal acquires the information content of the target webpage, and sends an information acquisition request to the server, so that the server returns the first webpage annotation of the target webpage and the first Position information, when the terminal receives the first webpage annotation and the first location information, displaying the first webpage annotation on the target webpage based on the first location information, so that the display of the first webpage annotation is accurately positioned. It avoids the problem that the webpage annotation may be displayed incorrectly when there are multiple identical selected text information, which improves the accuracy of the webpage annotation display.
  • the first webpage annotation displayed by the terminal may include not only the webpage annotation corresponding to the user account currently registered by the terminal, but also the webpage annotation corresponding to the user account other than the user account, thereby enabling different users to The webpage annotations are viewed from each other. Further, the user who uses the terminal can also like and comment on the webpage annotations corresponding to other user accounts, thereby realizing interaction between multiple users.
  • FIG. 9 is a schematic structural diagram of a webpage annotation display apparatus according to an embodiment of the present invention.
  • the apparatus includes:
  • the obtaining module 901 is configured to acquire the target webpage when receiving the display instruction of the target webpage information
  • the first sending module 902 is configured to send an information obtaining request to the server, where the information acquiring request carries the target webpage identifier, so that the server returns the first webpage annotation and the first location information of the target webpage, and the first webpage annotation is the current time.
  • the content of the previous webpage annotation on the target webpage, the first location information is used to determine the display position of the first webpage annotation;
  • the first display module 903 is configured to display the first webpage annotation on the target webpage based on the first location information when receiving the first webpage annotation and the first location information.
  • the first display module 903 includes:
  • the first determining unit 9031 is configured to: when the first webpage annotation and the first location information are received, if the first location information includes the selection location information and the first annotation frame coordinates, determine the target webpage based on the selection location information.
  • the first selected text information, the first selected text information is the text information endorsed by the first webpage annotation, and the selection location information is used to determine the position of the first selected text information in the target webpage, and the first annotation frame coordinates are the first annotation box.
  • the coordinates in the landing page, the first annotation box is a comment box for displaying the first webpage annotation;
  • the first display unit 9032 is configured to display the first webpage annotation based on the location of the first selected text information and the first annotation frame coordinates.
  • the first display module 903 includes:
  • the second determining unit 9033 is configured to: when the first location information includes the first relative coordinate and the first index information, determine, according to the first index information, the first selected picture from the target webpage, where the first selected picture is the first The image indexed by the webpage annotation, the first index information is index information of the first selected image in the target webpage, and the first relative coordinate is a relative coordinate of the first annotation box in the first selected image, and the first annotation box is used.
  • the second display unit 9034 is configured to display the first webpage annotation on the first selected picture based on the first relative coordinate.
  • the apparatus further includes:
  • the second display module 904 is configured to: when it is detected that the specified event for the information content is triggered, display an annotation input box based on the trigger point coordinates of the specified event, and the trigger point coordinate is a trigger point of the specified event in the target webpage. coordinate;
  • the receiving module 905 is configured to receive the currently input second webpage annotation based on the annotation input box;
  • the determining module 906 is configured to determine second location information when the completion instruction of the second webpage annotation is received, where the second location information is used to determine a display location of the second webpage annotation;
  • the second sending module 907 is configured to send, to the server, the user account currently registered by the terminal, the target webpage identifier, the second webpage annotation, and the second location information, so that the server stores the first user account and the target webpage identifier. Two web annotations and second location information.
  • the second display module 904 includes:
  • the determining unit 9041 is configured to: when it is detected that the specified event for the information content is triggered, determine, according to the trigger point coordinates of the specified event, whether the information at the trigger point is text information or a picture;
  • the third determining unit 9042 is configured to determine, according to the trigger point coordinates, the target selection area when the information at the trigger point is text information;
  • the third display unit 9043 is configured to display an annotation input box based on the location of the target selection.
  • the third determining unit 9042 includes:
  • the first determining subunit 90421 is configured to determine target text information from the information content of the target webpage based on the trigger point coordinates when the information at the triggering point is text information;
  • the sending subunit 90422 is configured to send the target text information to the server, so that the server selects a plurality of text keywords from the target text information, and returns the plurality of text keywords;
  • the second determining subunit 90423 is configured to determine a target selection based on the plurality of text keywords when the plurality of text keywords are received.
  • the second determining subunit 90423 is specifically configured to:
  • the recommended selection is adjusted to obtain a target selection.
  • the determining module 906 includes:
  • a fourth determining unit 9061 configured to determine the location location information of the target selection area, and determine a second annotation frame coordinate, where the second annotation frame coordinate is a coordinate of the annotation input box in the target webpage;
  • the fifth determining unit 9062 is configured to determine the selection location information and the second annotation frame coordinate of the target selection as the second location information.
  • the determining module 906 includes:
  • the sixth determining unit 9063 is configured to determine, when the information at the trigger point is a picture, a picture at the trigger point as a second selected picture, where the second selected picture is a picture annotated by the second web page annotation;
  • a seventh determining unit 9064 configured to determine a second relative coordinate based on the trigger point coordinate, the second phase
  • the pair coordinates are the relative coordinates of the trigger point in the second selected picture
  • the eighth determining unit 9065 is configured to determine second index information, where the second index information is index information of the second selected picture in the target webpage;
  • the ninth determining unit 9066 is configured to determine the second relative coordinate and the second index information as the second location information.
  • the terminal when the terminal receives the display instruction of the target webpage, the terminal acquires the information content of the target webpage, and sends an information acquisition request to the server, so that the server carries the target based on the information acquisition request.
  • a webpage identifier which returns a first webpage annotation and first location information of the target webpage, and when the terminal receives the first webpage annotation and the first location information, the terminal accurately locates the first webpage annotation based on the first location information , thereby displaying the first webpage annotation, avoiding the problem that the webpage annotation may be displayed incorrectly when there are multiple identical selected text information, and improving the accuracy of the webpage annotation display.
  • the device for displaying the webpage annotation provided by the above embodiment is only illustrated by the division of the above functional modules when displaying the webpage annotation. In actual applications, the functions may be allocated by different functional modules as needed. Upon completion, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the apparatus for displaying the webpage annotation provided by the above embodiment is the same as the method embodiment of the webpage annotation display, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • FIG. 17 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 1700 may include a communication unit 1710, a memory 1720 including one or more computer readable storage media, and an input unit 1730.
  • the mobile terminal structure shown in FIG. 17 does not constitute a limitation of the mobile terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the communication unit 1710 can be used for transmitting and receiving information and receiving and transmitting signals during a call.
  • the communication unit 1710 can be an RF (Radio Frequency) circuit, a router, a modem, or the like.
  • RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a LNA (Low Noise Amplifier, low).
  • SIM Subscriber Identity Module
  • the communication unit 1710 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 1720 can be used to store software programs and modules, and the processor 1780 executes various functional applications and data processing by running software programs and modules stored in the memory 1720.
  • the memory 1720 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile terminal 1700 (such as audio data, phone book, etc.) and the like.
  • memory 1720 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1720 can also include a memory controller to provide access to memory 1720 by processor 1780 and input unit 1730.
  • Input unit 1730 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • the input unit 1730 can include a touch sensitive surface 1731 as well as other input devices 1732.
  • the touch-sensitive surface 1731 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any suitable object or accessory on the touch-sensitive surface 1731 or The operation near the touch-sensitive surface 1731) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 1731 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1780 is provided and can receive commands from the processor 1780 and execute them.
  • the touch sensitive surface 1731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1730 can also include other input devices 1732.
  • other input devices 1732 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, One or more of a switch button, etc.), a trackball, a mouse, a joystick, and the like.
  • Display unit 1740 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of mobile terminal 1700, which can be comprised of graphics, text, icons, video, and any combination thereof.
  • the display unit 1740 can include a display panel 1741.
  • the display panel 1741 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 1731 can cover the display panel 1741, and when the touch-sensitive surface 1731 detects a touch operation thereon or nearby, it is transmitted to the processor 1780 to determine the type of the touch event, and then the processor 1780 according to the touch event The type provides a corresponding visual output on display panel 1741.
  • touch-sensitive surface 1731 and display panel 1741 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 1731 can be integrated with display panel 1741 for input. And output function.
  • the mobile terminal 1700 can also include at least one type of sensor 1750, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1741 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1741 and/or when the mobile terminal 1700 moves to the ear.
  • Backlighting As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile terminal 1700 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • An audio circuit 1760, a speaker 1761, and a microphone 1762 can provide an audio interface between the user and the mobile terminal 1700.
  • the audio circuit 1760 can transmit the converted electrical data of the received audio data to the speaker 1761, and convert it into a sound signal output by the speaker 1761; on the other hand, the microphone 1762 converts the collected sound signal into an electrical signal, by the audio circuit 1760. After receiving, it is converted into audio data, and then processed by the audio data output processor 1780, transmitted to, for example, another mobile terminal via the communication unit 1710, or outputted to the memory 1720 for further processing.
  • the audio circuit 1760 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 1700.
  • the mobile terminal may be configured with a wireless communication unit 1770, which may be a WIFI module.
  • WIFI is a short-range wireless transmission technology, and the mobile terminal 1700 can help a user to send and receive emails, browse web pages, and access streams through the wireless communication unit 1770. Media, etc., it provides users with wireless broadband Internet access.
  • the wireless communication unit 1770 is shown in the drawings, it can be understood that it does not belong to the essential configuration of the mobile terminal 1700, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 1780 is the control center of the mobile terminal 1700, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1720, and recalling data stored in the memory 1720.
  • the various functions and processing data of the mobile terminal 1700 are executed to perform overall monitoring of the mobile phone.
  • the processor 1780 may include one or more processing cores; preferably, the processor 1780 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1780.
  • the mobile terminal 1700 also includes a power source 1790 (such as a battery) for powering various components.
  • the power source can be logically coupled to the processor 1780 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 1760 can also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the mobile terminal 1700 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the mobile terminal further includes one or more programs, the one or more programs being stored in the memory and configured to be executed by one or more processors, the one or more programs comprising
  • the instructions for performing the multimedia file playing method provided by the embodiment of the present invention include:
  • the server Sending a message acquisition request to the server, where the information acquisition request carries the target webpage identifier, so that the server returns the first webpage annotation and the first location information of the target webpage, and the first webpage annotation is the webpage annotation of the target webpage before the current time.
  • the first location information is used to determine a display location of the first webpage annotation
  • the first webpage annotation is displayed on the target webpage based on the first location information.
  • displaying the first webpage annotation on the target webpage based on the first location information including:
  • the first location information includes the selection location information and the first annotation frame coordinates
  • the first selected text information is determined from the target webpage
  • the first selected text information is the text information endorsed by the first webpage annotation
  • the selection location information is used to determine the location of the first selected text information in the target webpage
  • first The annotation box coordinates are the coordinates of the first annotation box in the target webpage
  • the first annotation box is a comment box for displaying the first webpage annotation
  • the first webpage annotation is displayed based on the position of the first selected text information and the first annotation frame coordinates.
  • displaying the first webpage annotation on the target webpage based on the first location information including:
  • the first location information includes the first relative coordinate and the first index information
  • An index information is index information of the first selected picture in the target webpage
  • the first relative coordinate is a relative coordinate of the first annotation box in the first selected picture
  • the first annotation box is an annotation for displaying the first webpage annotation. frame
  • the first webpage annotation is displayed on the first selected picture.
  • the method further includes:
  • the trigger point coordinate is a coordinate of the trigger point of the specified event in the target webpage
  • displaying an annotation input box based on the trigger point coordinates of the specified event including:
  • the information at the trigger point is text information, determining a target selection area based on the trigger point coordinates;
  • An annotation input box is displayed based on the location of the target selection.
  • determining the target selection based on the trigger point coordinates including:
  • the target selection is determined based on the plurality of text keywords.
  • determining the target selection based on the plurality of text keywords including:
  • the recommended selection is adjusted to obtain a target selection.
  • determining the second location information includes:
  • the selection location information and the second annotation frame coordinate of the target selection are determined as the second location information.
  • determining the second location information includes:
  • the picture at the trigger point is used as the second selected picture, and the second selected picture is the picture annotated by the second page annotation;
  • the second relative coordinate and the second index information are determined as the second location information.
  • the terminal when the terminal receives the display instruction of the target webpage, the terminal acquires the information content of the target webpage, and sends an information acquisition request to the server, where the information acquisition request carries the target webpage identifier, so that the server returns the target.
  • a first webpage annotation and a first location information of the webpage where the first location information is used to determine a display location of the first webpage annotation
  • the terminal receives the first webpage annotation and the first location information, based on the first location information
  • the first page annotation is displayed on the landing page.
  • the invention accurately locates the webpage annotation of the target webpage by using the location information of the webpage annotation, thereby avoiding the problem that the webpage annotation may be displayed incorrectly when there are multiple identical selected textual information, and improving the accuracy of the webpage annotation display. .
  • non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor of a mobile terminal to perform the web page annotation display method described above.
  • the non-transitory computer readable storage medium may be a ROM, Random access memory (RAM), CD-ROM, magnetic tape, floppy disk and optical data storage devices.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种网页批注显示方法、装置及移动终端,属于互联网领域。所述方法包括:当接收到目标网页的显示指令时,获取所述目标网页的信息内容(101);向服务器发送信息获取请求,所述信息获取请求中携带目标网页标识,使所述服务器返回所述目标网页的第一网页批注和第一位置信息,所述第一位置信息用于确定所述第一网页批注的显示位置(102);当接收到所述第一网页批注和所述第一位置信息时,基于所述第一位置信息,在所述目标网页上显示所述第一网页批注(103)。通过网页批注的位置信息对该目标网页的网页批注进行精确定位,避免了在存在多个相同选中文本信息时网页批注可能会发生错误显示的问题,提高了网页批注显示的准确性。

Description

网页批注显示方法、装置及移动终端
本申请要求于2015年7月22日提交中国专利局、申请号为201510434902.0、发明名称为“网页批注显示方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及互联网领域,特别涉及一种网页批注显示方法、装置及移动终端。
背景技术
随着互联网的快速发展,出现了越来越多可用于浏览网页的应用程序,这些应用程序可以安装在诸如手机、平板电脑等终端上。当通过这些应用程序浏览网页时,为了将对网页的理解、感想和见解等内容进行记录,用户可以选中该网页中的某些文本信息,并对选中的文本信息进行网页批注。当用户再次浏览该网页时,终端可以对该网页的网页批注进行显示,以方便用户查看和理解。
目前,终端对网页批注进行显示的操作可以为:当该终端接收到目标网页的显示指令时,该终端可以从服务器中获取该目标网页的信息内容,并显示该信息内容,同时该终端可以从服务器中获取该目标网页中的网页批注和该网页批注对应的选中文本信息,之后,该终端基于该选中文本信息,对该目标网页的信息内容进行匹配,以从该目标网页的信息内容中确定该选中文本信息,进而终端可以在确定的选中文本信息处显示该网页批注。
当该终端通过上述方法显示网页批注时,如果该目标网页的信息内容中存在多个相同的选中文本信息时,则该网页批注的显示可能会发生错误,从而降低了网页批注的显示准确性。比如,当该选中文本信息为“旅游”时,如果该目标网页的信息内容中存在多个“旅游”,此时,该终端只会在该多个“旅游”中的第一个“旅游”所在位置处显示该网页批注,从而导致网页批注的显示可能会发生错误。
发明内容
为了解决上述技术的问题,本发明实施例提供了一种网页批注显示方法、装置及移动终端。所述技术方案如下:
第一方面,提供了一种网页批注显示方法,所述方法包括:
当接收到目标网页的显示指令时,获取所述目标网页的信息内容;
向服务器发送信息获取请求,所述信息获取请求中携带目标网页标识,使所述服务器返回所述目标网页的第一网页批注和第一位置信息,所述第一网页批注为当前时间之前对所述目标网页进行网页批注的内容,所述第一位置信息用于确定所述第一网页批注的显示位置;
当接收到所述第一网页批注和所述第一位置信息时,基于所述第一位置信息,在所述目标网页上显示所述第一网页批注。
第二方面,提供了一种网页批注显示装置,所述装置包括:
获取模块,用于当接收到目标网页的显示指令时,获取所述目标网页的信息内容;
第一发送模块,用于向服务器发送信息获取请求,所述信息获取请求中携带目标网页标识,使所述服务器返回所述目标网页的第一网页批注和第一位置信息,所述第一网页批注为当前时间之前对所述目标网页进行网页批注的内容,所述第一位置信息用于确定所述第一网页批注的显示位置;
第一显示模块,用于当接收到所述第一网页批注和所述第一位置信息时,基于所述第一位置信息,在所述目标网页上显示所述第一网页批注。
第三方面,提供了一种移动终端,所述移动终端包括:
一个或多个处理器;和
存储器;
所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:
当接收到目标网页的显示指令时,获取所述目标网页的信息内容;
向服务器发送信息获取请求,所述信息获取请求中携带目标网页标识,使所述服务器返回所述目标网页的第一网页批注和第一位置信息,所述第一网页批注为当前时间之前对所述目标网页进行网页批注的内容,所述第一位置信息 用于确定所述第一网页批注的显示位置;
当接收到所述第一网页批注和所述第一位置信息时,基于所述第一位置信息,在所述目标网页上显示所述第一网页批注。
本发明实施例提供的技术方案带来的有益效果是:在本发明实施例中,当终端接收到目标网页的显示指令时,获取该目标网页的信息内容,并向服务器发送信息获取请求,该信息获取请求中携带目标网页标识,使该服务器返回该目标网页的第一网页批注和第一位置信息,该第一位置信息用于确定该第一网页批注的显示位置,当该终端接收到该第一网页批注和该第一位置信息时,基于该第一位置信息,在该目标网页上显示该第一网页批注。本发明通过网页批注的位置信息对该目标网页的网页批注进行精确定位,从而避免了在存在多个相同选中文本信息时,网页批注可能会发生错误显示的问题,提高了网页批注显示的准确性。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本发明实施例提供的一种网页批注显示方法所涉及的实施环境的示意图;
图1B是本发明实施例提供的一种网页批注显示方法流程图;
图2是本发明实施例提供的另一种网页批注显示方法流程图;
图3是本发明实施例提供的第一种网页批注显示的显示界面图;
图4(a)是本发明实施例提供的第二种网页批注显示的显示界面图;
图4(b)是本发明实施例提供的第三种网页批注显示的显示界面图;
图5是本发明实施例提供的第四种网页批注显示的显示界面图;
图6是本发明实施例提供的第五种网页批注显示的显示界面图;
图7是本发明实施例提供的第六种网页批注显示的显示界面图;
图8是本发明实施例提供的第七种网页批注显示的显示界面图;
图9是本发明实施例提供的一种网页批注显示装置结构示意图;
图10是本发明实施例提供的一种第一显示模块结构示意图;
图11是本发明实施例提供的另一种第一显示模块结构示意图;
图12是本发明实施例提供的另一种网页批注显示装置结构示意图;
图13是本发明实施例提供的一种第二显示模块结构示意图;
图14是本发明实施例提供的一种第三确定单元结构示意图;
图15是本发明实施例提供的一种确定模块结构示意图;
图16是本发明实施例提供的另一种确定模块结构示意图;
图17是本发明实施例提供的一种移动终端结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
图1A是本发明实施例提供的一种网页批注显示方法所涉及的实施环境的示意图。参照图1A,该实施环境可以包括:终端110和服务器120。其中,终端110可以是移动电话、计算机、平板设备等,服务器120可以是一台服务器,也可以是由多台服务器组成的服务器集群,且终端110和服务器120之间可以通过有线连接或者无线连接进行通信。其中,终端110可以在接收到目标网页的显示指令时,获取目标网页的信息内容,并向服务器120发送信息获取请求,以从服务器120中获取目标网页的第一网页批注和第一位置信息,之后,终端110可以基于目标网页的第一位置信息,在目标网页上显示第一网页批注。服务器120可以在接收到终端110发送的信息获取请求时,基于该信息获取请求,确定目标网页的第一网页批注和第一位置信息,并将目标网页的第一网页批注和第一位置信息发送给终端110。
图1B是本发明实施例提供的一种网页批注显示方法的流程图。参照图1B,该方法包括:
步骤101:当接收到目标网页的显示指令时,获取该目标网页的信息内容。
步骤102:向服务器发送信息获取请求,该信息获取请求中携带目标网页标识,使该服务器返回该目标网页的第一网页批注和第一位置信息,第一网页批注为当前时间之前对目标网页进行网页批注的内容,该第一位置信息用于确定第一网页批注的显示位置。
步骤103:当接收到该第一网页批注和该第一位置信息时,基于该第一位 置信息,在该目标网页上显示该第一网页批注。
在本发明实施例中,当终端接收到目标网页的显示指令时,获取该目标网页的信息内容,并向服务器发送信息获取请求,该信息获取请求中携带目标网页标识,使该服务器返回该目标网页的第一网页批注和第一位置信息,第一位置信息用于确定第一网页批注的显示位置,当该终端接收到第一网页批注和第一位置信息时,基于第一位置信息,在该目标网页上显示第一网页批注。本发明通过网页批注的位置信息对该目标网页的网页批注进行精确定位,从而避免了在存在多个相同选中文本信息时,网页批注可能会发生错误显示的问题,提高了网页批注显示的准确性。
可选地,基于第一位置信息,在该目标网页上显示第一网页批注,包括:
当第一位置信息包括选区位置信息和第一批注框坐标时,基于该选区位置信息,从该目标网页中确定第一选中文本信息,第一选中文本信息为该第一网页批注所批注的文本信息,选区位置信息用于确定第一选中文本信息在目标网页中的位置,第一批注框坐标为第一批注框在目标网页中的坐标,第一批注框为用于显示第一网页批注的批注框;
基于第一选中文本信息的位置和第一批注框坐标,显示第一网页批注。
可选地,基于第一位置信息,在目标网页上显示第一网页批注,包括:
当第一位置信息包括第一相对坐标和第一索引信息时,基于第一索引信息,从该目标网页中,确定第一选中图片,第一选中图片为第一网页批注所批注的图片,第一索引信息为该第一选中图片在该目标网页中的索引信息,第一相对坐标为第一批注框在第一选中图片中的相对坐标,第一批注框为用于显示第一网页批注的批注框;
基于第一相对坐标,在第一选中图片上,显示第一网页批注。
可选地,基于第一位置信息,在该目标网页上显示第一网页批注之后,还包括:
当检测到针对该信息内容的指定事件被触发时,基于该指定事件的触发点坐标,显示批注输入框,触发点坐标为指定事件的触发点在目标网页中的坐标;
基于批注输入框接收当前输入的第二网页批注;
当接收到第二网页批注的完成指令时,确定第二位置信息,第二位置信息用于确定第二网页批注的显示位置;
将终端当前登录的用户账号、该目标网页标识、第二网页批注和第二位置 信息发送给该服务器,使该服务器基于该用户账号和该目标网页标识,存储第二网页批注和第二位置信息。
可选地,基于该指定事件的触发点坐标,显示批注输入框,包括:
基于该指定事件的触发点坐标,判断触发点处的信息是文本信息还是图片;
当该触发点处的信息为文本信息时,基于该触发点坐标,确定目标选区;
基于该目标选区的位置,显示批注输入框。
可选地,基于该触发点坐标,确定目标选区,包括:
基于该触发点坐标,从该目标网页的信息内容中,确定目标文本信息;
将该目标文本信息发送给该服务器,使该服务器从该目标文本信息中选择多个文本关键词,并返回该多个文本关键词;
当接收到该多个文本关键词时,基于该多个文本关键词确定目标选区。
可选地,基于该多个文本关键词确定目标选区,包括:
从该多个文本关键词中选择推荐文本关键词;
基于该多个文本关键词,生成推荐选区,推荐选区用于标记推荐文本关键词;
当检测到针对该推荐选区的调整操作时,对该推荐选区进行调整,得到目标选区。
可选地,确定第二位置信息,包括:
确定该目标选区的选区位置信息,以及确定第二批注框坐标,第二批注框坐标为批注输入框在目标网页中的坐标;
将该目标选区的选区位置信息和该第二批注框坐标,确定为该第二位置信息。
可选地,确定第二位置信息,包括:
当该触发点处的信息是图片时,将该触发点处的图片作为第二选中图片,第二选中图片为第二网页批注所批注的图片;
基于该触发点坐标,确定第二相对坐标,第二相对坐标为该触发点在第二选中图片中的相对坐标;
确定第二索引信息,第二索引信息为第二选中图片在该目标网页中的索引信息;
将第二相对坐标和第二索引信息确定为第二位置信息。
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。
图2是本发明实施例提供的一种网页批注显示方法的流程图,参照图2,该方法用于终端中,包括以下步骤:
步骤201:当终端接收到目标网页的显示指令时,该终端获取该目标网页的信息内容。
具体地,当该终端接收到目标网页的显示指令时,该终端可以基于该目标网页的显示指令携带的目标网页标识,生成网页获取请求,并将该网页获取请求发送给服务器,当该服务器接收到该网页获取请求时,该服务器可以基于该目标网页标识,获取该目标网页的信息内容,并将该目标网页的信息内容发送给该终端,该终端可以接收该目标网页的信息内容,以获取到该目标网页的信息内容。或者,当该终端接收到目标网页的显示指令时,该终端可以基于该目标网页的显示指令携带的目标网页标识,从本地缓存中查找该目标网页的信息内容,当从本地缓存中查找到该目标网页的信息内容时,该终端可以从本地缓存中获取该目标网页的信息内容。当然,实际应用中,当该终端接收到目标网页的显示指令时,该终端也可以通过其他方式获取该目标网页的信息内容,本发明实施例对此不做具体限定。
需要说明的是,当该终端获取到该目标网页的信息内容时,该终端可以直接显示该目标网页的信息内容,当然,实际应用中,该终端也可以不显示该目标网页的信息内容,直接执行下述步骤202-204,并在步骤204中,将该目标网页的信息内容与第一网页批注一起进行显示,本发明实施例对此不做具体限定。其中,该终端显示该目标网页的信息内容时,该终端可以按照HTML(Hyper Text Markup Language,超文本标记语言)的格式进行渲染而显示,当然,实际应用中,该终端也可以按照其他的格式进行渲染而显示,本发明实施例同样对此不做具体限定。其中,第一网页批注为当前时间之前对目标网页进行网页批注的内容。
另外,该目标网页的显示指令用于显示该目标网页,且该目标网页的显示指令可以由用户触发,该用户可以通过第一指定操作来触发,该第一指定操作可以为点击操作、滑动操作、语音操作等等,本发明实施例对此不做具体限定。
再者,该目标网页标识用于唯一标识该目标网页,且该目标网页标识可以 为该目标网页的标题、该目标网页的网址、该目标网页的关键词等等,本发明实施例对此不做具体限定。
其中,当该终端获取到目标网页的信息内容之后,为了显示目标网页的第一网页批注,该终端可以通过如下步骤202-204的方法来执行,具体如下。
步骤202:该终端向服务器发送信息获取请求,该信息获取请求中携带目标网页标识。
当该终端获取到该目标网页的信息内容时,该终端可以基于该目标网页标识,生成信息获取请求,并将该信息获取请求发送给该服务器。
需要说明的是,该服务器为当前用于浏览目标网页的应用程序对应的服务器。
另外,信息获取请求用于获取目标网页的第一网页批注和第一位置信息。其中,该第一位置信息用于确定第一网页批注的显示位置。第一网页批注不仅可以包括终端当前登录的用户账号对应的网页批注,还可以包括除该用户账号之外的其他用户账号对应的网页批注,本发明实施例对此不做具体限定。
需要说明的是,终端当前登录的用户账号对应的网页批注为该用户账号对该目标网页进行的网页批注,其他用户账号对应的网页批注为该其他用户账号对该目标网页进行的网页批注。
另外,该当前登录的用户账号为当前用于浏览目标网页的用户账号,该用户账号可以在服务器中注册得到,且该用户账号可以由字母、数字等等组成,本发明实施例对此不做具体限定。
比如,该目标网页标识为ID1,当该终端获取到该目标网页的信息内容时,该终端可以基于该目标网页标识ID1,生成信息获取请求,并将该信息获取请求发送给该服务器。
还需要说明的是,为了便于服务器从第一网页批注中,确定该终端当前登录的用户账号对应的网页批注,该信息获取请求中还可以携带该终端当前登录的用户账号,本发明实施例对此不做具体限定。
步骤203:当该服务器接收到该信息获取请求时,将该目标网页的第一网页批注和第一位置信息发送给该终端。
当该服务器接收到该信息获取请求时,该服务器可以基于该信息获取请求携带的目标网页标识,获取该目标网页的第一网页批注和第一位置信息,并将该目标网页的第一网页批注和第一位置信息发送给该终端。
由于第一网页批注不仅可以包括该终端当前登录的用户账号对应的网页批注,还可以包括除该用户账号之外的其他用户账号对应的网页批注,因此,该服务器获取第一网页批注时,既可以只获取该终端当前登录的用户账号对应的网页批注,也可以获取所有用户账号对应的网页批注,所以该服务器基于该目标网页标识,获取该目标网页的第一网页批注和第一位置信息的操作可以包括两种情况,如下所述。
第一种情况、当信息获取请求中携带该终端当前登录的用户账号时,该服务器基于该目标网页标识和该终端当前登录的用户账号,从存储的用户账号、网页标识、网页批注与位置信息之间的对应关系中,获取对应的网页批注和位置信息,将获取的网页批注确定为第一网页批注,以及将获取的位置信息确定为第一位置信息。
需要说明的是,上述第一种情况中获取的第一网页批注仅包括该终端当前登录的用户账号对应的网页批注,此时该服务器无需对其他用户账号对应的网页批注进行获取,从而提高了第一网页批注的获取效率,且节省了该服务器的处理资源。
比如,信息获取请求中携带目标网页标识和该终端当前登录的用户账号,且该目标网页标识为ID1,该用户账号为12345678,则该服务器可以基于该目标网页标识ID1、该用户账号12345678,从如下表1所示的用户账号、网页标识、网页批注与位置信息之间的对应关系中,获取对应的网页批注为批注1,获取对应的位置信息为信息1,将该批注1确定为第一网页批注,将该信息1确定为第一位置信息。
表1
Figure PCTCN2016085474-appb-000001
需要说明的是,在本发明实施例中,仅以上述表1所示的用户账号、网页标识、网页批注与位置信息之间的对应关系为例进行说明,上述表1并不对本发明实施例构成具体限定。
第二种情况、该服务器基于该目标网页标识,从存储的用户账号、网页标识、网页批注与位置信息之间的对应关系中,获取所有用户账号对应的网页批注和位置信息,并将获取的网页批注确定为第一网页批注,以及将获取的位置信息确定为第一位置信息。
需要说明的是,上述第二种情况中获取的第一网页批注不仅包括该终端当前登录的用户账号对应的网页批注,还包括除该用户账号之外的其他用户账号对应的网页批注,从而当该服务器将该第一网页批注发送给该终端后,可以便于使用该终端的用户及时获知该目标网页上所有的网页批注。
比如,信息获取请求中携带目标网页标识,且该目标网页标识为ID1,则则该服务器可以基于该目标网页标识ID1,从上述表1所示的用户账号、网页标识、网页批注与位置信息之间的对应关系中,获取对应的网页批注为批注1和批注4,获取对应的位置信息为信息1和信息4,并将该批注1和批注4确定为第一网页批注,将信息1确定为批注1的第一位置信息,将信息4确定为批注2的第一位置信息。
进一步地,对于上述第二种情况,由于获取了所有用户账号对应的网页批注,因此,为了便于使用该终端的用户可以从该第一网页批注中,识别出该终端当前登录的用户账号对应的网页批注,该服务器还可以在将该第一网页批注发送给该终端之前,对该第一网页批注进行账号标记,以便后续该终端可以基于该账号标记对该第一网页批注进行显示。
其中,该服务器对该第一网页批注进行账号标记的操作可以为:该服务器通过该第一网页批注对应的用户账号对该第一网页批注进行标记;或者,当该信息获取请求中还携带终端当前登录的用户账号时,该服务器从该第一网页批注中,获取该终端当前登录的用户账号对应的网页批注,并对获取的网页批注进行第一标记,对该第一网页批注中除当前登录的用户账号对应的网页批注之外的网页批注进行第二标记;当然,实际应用中,该服务器也可以通过其他方式对该第一网页批注进行账号标记,本发明实施例对此不做具体限定。
需要说明的是,第一标记用于标记终端当前登录的用户账号对应的网页批 注,第二标记用于标记除终端当前登录的用户账号对应的网页批注之外的网页批注。
进一步地,当该服务器接收到该信息获取请求时,该服务器除了可以将该目标网页的第一网页批注和第一位置信息发送给该终端,如果第一网页批注对应的批注对象为文本信息时,该服务器还可以将第一网页批注对应的第一选中文本信息发送给该终端,使该终端基于第一位置信息和第一选中文本信息,显示第一网页批注,进一步提高了网页批注的显示准确性。其中,该第一选中文本信息为第一网页批注所批注的文本信息。
步骤204:当该终端接收到第一网页批注和第一位置信息时,基于第一位置信息,在该目标网页上显示第一网页批注。
当该终端接收到第一网页批注和第一位置信息时,由于该目标网页的信息内容不仅可以包括文本信息,还可以包括图片,因此,第一网页批注的批注对象也可以为文本信息或者图片。由于对于不同的批注对象,确定第一网页批注的显示位置的方式也会有所不同,也即是,对于不同的批注对象,第一位置信息包括的内容不同,因此,该终端基于第一位置信息,在该目标网页上显示第一网页批注的操作可以包括两种情况,如下所述。
第一种情况、当第一位置信息包括选区位置信息和第一批注框坐标时,该终端基于该选区位置信息,从该目标网页中确定第一选中文本信息;基于第一选中文本信息的位置和第一批注框坐标,显示第一网页批注。
需要说明的是,选区位置信息用于确定第一选中文本信息在该目标网页中的位置,且该选区位置信息可以包括第一选中文本信息的段落起始位置和段落结束位置,以及第一选中文本信息的起始文字偏移值和结束文字偏移值。
另外,第一批注框坐标用于确定第一批注框在该目标网页中的位置,且第一批注框坐标为第一批注框在该目标网页中的坐标。其中,第一批注框坐标所在坐标系的原点可以是该目标网页的左上角、左下角、右上角、右下角等位置,本发明实施例对此不做具体限定。
再者,第一批注框为用于显示第一网页批注的批注框。
当第一位置信息包括选区位置信息和第一批注框坐标时,该终端确定第一网页批注的批注对象为文本信息,此时该终端可以基于该选区位置信息,从该目标网页的信息内容中确定第一选中文本信息,当第一批注框坐标位于第一选中文本信息的位置处时,该终端可以基于第一批注框坐标,直接显示第一网页 批注,当第一批注框坐标不位于第一选中文本信息的位置处时,该终端可以基于第一选中文本信息的位置,对第一批注框坐标进行调整,并基于调整后的第一批注框坐标,显示第一网页批注。
其中,终端基于第一批注框坐标,显示第一网页批注时,可以基于第一批注框坐标,显示第一批注框,并将该第一网页批注显示在该第一批注框中。
其中,当该终端基于第一选中文本信息的位置,对第一批注框坐标进行调整时,该终端可以获取处于第一选中文本信息的中间位置正下方且与第一选中文本信息的中间位置相距第一指定长度的位置的坐标,将第一批注框坐标替换为获取的坐标,以对第一批注坐标进行调整。当然,该终端也可以通过其他方式基于第一选中文本信息的位置,对第一批注框坐标进行调整,本发明实施例对此不做具体限定。
需要说明的是,该第一指定长度可以事先设置,比如,该第一指定长度可以为0.5cm(厘米)、1cm等等,本发明实施例对此不做具体限定。
进一步地,为了为了便于用户及时获知第一网页批注所批注的文本信息,当该终端从该目标网页的信息内容中,确定第一选中文本信息之后,该终端还可以对第一选中文本信息进行突出显示,且该终端对第一选中文本信息进行突出显示时,可以将第一选中文本信息通过特定符号进行标记,或者,可以将第一选中文本信息通过特定颜色进行标记,当然,实际应用中,该终端也可以通过其他方式对该第一选中文本信息进行突出显示,本发明实施例对此不做具体限定。
其中,该特定符号可以事先设置,且该特定符号可以为波浪线、下划线、双下划线、虚线等等,本发明实施例对此不做具体限定。另外,该特定颜色也可以事先设置,如该特定颜色可以为蓝色、红色等等,本发明实施例对此不做具体限定。
比如,该选区位置信息为位置信息1,第一批注框坐标为坐标1,第一网页批注为“多少岁?”,该特定符号为下划线,因此,该终端可以基于该位置信息1,从该目标网页的信息内容中确定第一选中文本信息为“年轻时”,并将第一选中文本用下划线进行标记,若第一批注框坐标位于第一选中文本信息的位置处,则该终端可以基于该坐标1,显示第一批注框,并将该第一网页批注“多少岁?”显示在该第一批注框中,其显示界面如图3所示。
其中,该终端基于该选区位置信息,从该目标网页的信息内容中确定第一 选中文本信息的操作可以为:该终端基于第一选中文本信息的段落起始位置和段落结束位置,确定第一选中文本信息所处的文本段落,并基于第一选中文本信息的起始文字偏移值和结束文字偏移值,从该文本段落中确定第一选中文本信息。
需要说明的是,第一选中文本信息的段落起始位置为第一选中文本信息的第一个字符所在文本段落的段落起始位置,第一选中文本信息的段落结束位置为第一选中文本信息的最后一个字符所在文本段落的段落结束位置。
另外,第一选中文本信息的起始文字偏移符为第一选中文本信息的第一个字符相对该第一个字符所在文本段落的段落起始位置的偏移值,第一选中文本信息的结束文字偏移符为第一选中文本信息的最后一个字符相对该最后一个字符所在文本段落的段落起始位置的偏移值。
由于第一选中文本信息所处的文本段落可以包括一个文本段落,也可以包括多个文本段落,因此,确定第一选中文本信息的方法略有不同,下面分别以该文本段落为一个文本段落和多个文本段落进行阐述,如下所述。
该终端基于第一选中文本信息的段落起始位置,确定第一文本段落,以及基于该第一文本信息的段落结束位置,确定第二文本段落,当第一文本段落和第二文本段落为同一文本段落时,确定第一选中文本信息所处的文本段落为一个文本段落,此时,该终端基于第一选中文本信息的段落起始位置和起始文字偏移值,确定第一选中文本信息在所处的文本段落中的第一个字符,以及基于第一选中文本信息的段落起始位置和结束文字偏移值,确定第一选中文本信息在所处的文本段落中的最后一个字符,将处于第一个字符和该最后一个字符之间且包括第一个字符和最后一个字符的文本信息,确定为第一选中文本信息。
而当第一文本段落和第二文本段落为不同的文本段落时,该终端确定第一选中文本信息所处的文本段落为多个文本段落,此时,该终端基于第一选中文本信息的段落起始位置和起始文字偏移值,确定该第一选中文本信息在该多个文本段落包括的第一个文本段落中的第一个字符,基于该第一选中文本信息的段落结束位置,确定该多个文本段落包括的最后一个文本段落中的段落起始位置,基于最后一个文本段落的段落起始位置和该结束文字偏移值,确定第一选中文本信息在该多个文本段落包括的最后一个文本段落中的最后一个字符,将第一个字符与最后一个字符之间且包括该第一个字符和最后一个字符的文本信息,确定为第一选中文本信息。
比如,第一选中文本信息的段落起始位置为位置1、段落结束位置为位置48,第一选中文本信息的起始文字偏移值为8、结束文字偏移值为10,该终端基于第一选中文本信息的段落起始位置1和段落结束位置48,确定第一选中文本信息所处的段落为同一文本段落,且该文本段落为第一段落,因此,该终端基于第一选中文本信息的段落起始位置1和起始文字偏移值8,确定第一选中文本信息在第一段落中的第一个字符为该第一段落中的第8个字符,基于第一选中文本信息的段落起始位置1和结束文字偏移值10,确定第一选中文本信息在第一段落中的最后一个字符为该第一段落中第10个字符,因此,确定第一段落中第8个字符和第10个字符之间且包括第8个字符和第10个字符的文本信息为“年轻时”,如图4(a)所示,将该文本信息确定为第一选中文本信息。
再比如,第一选中文本信息的段落起始位置为位置1、段落结束位置为位置82,第一选中文本信息的起始文字偏移值为42、结束文字偏移值为2,该终端基于第一选中文本信息的段落起始位置1和段落结束位置82,确定第一选中文本信息所处的文本段落为多个文本段落,且该多个文本段落为第一段落和第二段落。因此,该终端基于第一选中文本信息的段落起始位置1和起始文字偏移值42,确定该第一选中文本信息在该多个文本段落包括的第一个文本段落,也即是第一段落中的第一个字符为该第一段落中的第42个字符,基于该第一选中文本信息的段落结束位置82,确定该多个文本段落包括的最后一个文本段落,也即是第二段落的段落起始位置为49,并基于该第二段落的段落起始位置49和结束文字偏移值2,确定第一选中文本信息在该第二段落中的最后一个字符为该第二段落中的第2个字符,因此,确定第一段落中的第42个字符和第二段落中的第2个字符之间且包括第一段落中的第42个字符和第二段落中的第2个字符的文本信息为“当图案设计员。当年”,如图4(b)所示,将该文本信息确定为第一选中文本信息。
第二种情况、当第一位置信息包括第一相对坐标和第一索引信息时,该终端基于该第一索引信息,从该目标网页中,确定第一选中图片,第一选中图片为第一网页批注所批注的图片,第一索引信息为第一选中图片在该目标网页中的索引信息;基于第一相对坐标,在第一选中图片上,显示第一网页批注。
由于该目标网页中的每张图片都有对应的索引信息,且每张图片对应的索引信息都不相同,因此,当第一位置信息包括第一相对坐标和第一索引信息时,该终端可以基于第一索引信息,从该目标网页的信息内容中,确定第一选中图 片,并基于第一相对坐标,在第一选中图片上,显示第一网页批注。
其中,当该终端基于第一相对坐标,在第一选中图片中,显示第一网页批注时,该终端可以基于第一相对坐标,在该第一选中图片上显示第一批注框,并将该第一网页批注显示在该第一批注框中。
比如,第一相对坐标为坐标2,第一索引信息为索引信息1,第一网页批注为“什么花?”,该终端基于该索引信息1,从该目标网页的信息内容中,确定第一选中图片为图片1,并基于第一相对坐标,在该图片1上,显示第一批注框,并将第一网页批注“什么花?”显示在该第一批注框中,其显示界面如图5所示。
需要说明的是,第一相对坐标用于确定第一批注框在第一选中图片中的位置,且第一相对坐标为第一批注框在第一选中图片中的相对坐标。其中,第一相对坐标所在坐标系的原点可以是第一选中图片的左上角、左下角、右上角、右下角等位置,本发明实施例对此不做具体限定。
进一步地,当该终端不仅接收到服务器发送的该目标网页的第一网页批注和第一位置信息,还接收到该服务器发送的第一网页批注对应的第一选中文本信息时,为了避免该目标网页的信息内容发生变化时,第一网页批注显示错误的问题,该终端还可以通过第一选中文本信息,从该目标网页中查找第一选中文本信息的位置,并判断查找到的位置中是否包括第一位置信息所标识的位置,如果包括,则在第一位置信息所标识的位置的第一选中文本信息处,显示第一网页批注,如果不包括,则确定第一网页批注对应的第一选中文本信息已发生变化,此时,该终端可以不显示第一网页批注。
进一步地,当该第一网页批注被服务器进行了账号标记时,该终端还可以基于该账号标记对该第一网页批注进行显示,以便用户可以从该第一网页批注中,识别出该终端当前登录的用户账号对应的网页批注。该终端基于该账号标记对该第一网页标记进行显示的操作可以为:当该第一网页批注是以上述步骤203中所述的第一种账号标记方式进行标记,也即是被服务器通过该第一网页批注对应的用户账号进行标记时,该终端可以基于该第一网页批注对应的用户账号,对该第一网页批注进行显示;当该第一网页批注是以上述步骤203中所述的第二种账号标记方式进行标记,也即是被服务器进行第一标记或者第二标记时,该终端可以以第一指定颜色对被进行第一标记的第一网页批注进行显示,以第二指定颜色对被进行第二标记的第一网页批注进行显示;当然,实际 应用中,该终端也可以通过其他方式基于该账号标记对该第一网页标记进行显示,本发明实施例对此不做具体限定。
需要说明的是,第一指定颜色与第二指定颜色不同,且第一指定颜色和第二指定颜色均可以事先设置,本发明实施例对此不做具体限定。
其中,该终端基于该第一网页批注对应的用户账号,对该第一网页批注进行显示时,可以通过该用户账号对应的颜色对该第一网页批注进行显示,当然,实际应用中,该终端也可以通过其他方式基于该第一网页批注对应的用户账号,对该第一网页批注进行显示,本发明实施例对此不做具体限定。
需要说明的是,该终端基于该第一网页批注对应的用户账号,对该第一网页批注进行显示之后,当终端检测到针对该第一网页批注的点击操作时,还可以显示该用户账号,以便用户可以及时获知该第一网页批注对应的用户账号。其中,点击操作可以由用户触发,本发明实施例对此不做具体限定。
进一步地,当该终端显示第一网页批注之后,若该终端检测到用户触发第一指定操作,该终端还可以将第一网页批注进行隐藏,隐藏之后,再次检测到用户触发第一指定操作时,还可以重新显示第一网页批注,从而可以使得第一网页批注的显示更加灵活。
可选地,该终端显示第一网页批注之后,当该终端检测到针对该第一网页批注的反馈操作时,该终端可以对该第一网页批注进行反馈处理,而当第一网页批注不仅包括终端当前登录的用户账号对应的网页批注,还包括除该用户账号之外的其他用户账号对应的网页批注时,该反馈操作可以实现多个用户之间的互动。
其中,该反馈操作用于对第一网页批注进行反馈,且该反馈操作可以包括点赞操作、评论操作等,本发明实施例对此不做具体限定。另外,对该反馈操作可以由用户触发,该用户可以通过点击点赞按钮、评论按钮等来进行触发,本发明实施例对此不做具体限定。
需要说明的是,该点赞按钮和评论按钮可以事先设置,且本发明实施例对该点赞按钮和评论按钮的具体位置不做具体限定。
需要说明的是,当终端接收到目标网页的显示指令后,终端可以通过上述步骤201-204在该目标网页上显示第一网页批注,而在显示第一网页批注之后,用户还可以在该目标网页中输入新的网页批注,新输入的网页批注可以称为第二网页批注,且终端可以通过如下步骤205-207的方法来对目标网页进行第二 网页批注。
步骤205:当该终端检测到针对该信息内容的指定事件被触发时,基于该指定事件的触发点坐标,显示批注输入框,并基于批注输入框接收当前输入的第二网页批注。
当该终端检测到针对该信息内容的指定事件被触发时,该终端可以获取该指定事件的触发点坐标,并基于该指定事件的触发点坐标,显示批注输入框,批注输入框用于输入第二网页批注,在批注输入框显示之后,该终端可以基于批注输入框接收当前输入的第二网页批注。
需要说明的是,该指定事件用于对该目标网页进行第二网页批注,且该指定事件可以由用户触发,该指定事件可以为长按事件、双击事件等,本发明实施例对此不做具体限定。
另外,触发点坐标用于确定指定事件的触发点在该目标网页中的位置,且该触发点坐标为该指定事件的触发点在该目标网页中的坐标,其中,触发点坐标所在坐标系的原点可以是该目标网页的左上角、左下角、右上角、右下角等位置,本发明实施例对此不做具体限定。
其中,当该终端检测到针对该信息内容的指定事件被触发时,该终端基于该指定事件的触发点坐标,显示批注输入框的操作可以包括(1)-(4)的步骤,如下所述。
(1)、基于该指定事件的触发点坐标,判断触发点处的信息是文本信息还是图片。
该终端基于该指定事件的触发点坐标,从该目标网页包括的多个区域中,选择该触发点坐标所在的区域,并基于选择的区域,从存储的该目标网页的区域与信息属性之间的对应关系中,获取对应的信息属性,当该信息属性为文字属性时,确定该触发点处的信息是文本信息,当该信息属性为图片属性时,确定该触发点处的信息是图片。
需要说明的是,该目标网页包括的多个区域可以事先划分,且本发明实施例对该多个区域的个数不做具体限定。
比如,该触发点坐标为坐标3,该坐标3对应的区域为区域1,该终端基于该指定事件的坐标3,从该目标网页包括的多个区域中,选择该触发点坐标所在的区域为区域1,并基于该区域1,从如下表2所示的该目标网页的区域与信息属性之间的对应关系中,获取对应的信息属性为文字,因此,该终端确 定该触发点处的信息是文本信息。
表2
区域 信息属性
区域1 文字
区域2 图像
区域3 文字
…… ……
需要说明的是,在本发明实施例中,仅以上述表2所示的区域与信息属性之间的对应关系为例进行说明,上述表2并不对本发明实施例构成具体限定。
(2)、当该触发点处的信息为文本信息时,该终端基于该触发点坐标,确定目标选区。
当该触发点处的信息为文本信息时,该终端基于该触发点坐标,从该目标网页的信息内容中,确定目标文本信息,并将该目标文本信息发送给该服务器,当该服务器接收到该目标文本信息时,该服务器从该目标文本信息中选择多个文本关键词,并将该多个文本关键词发送给该终端,当该终端接收到该多个文本关键词时,该终端基于该多个文本关键词确定目标选区。
其中,该终端基于该触发点坐标,从该目标网页的信息内容中,确定该目标文本信息时,不仅可以将与该触发点坐标最近的前后两个标点符号之间的文本信息,确定为该目标文本信息,还可以将与该触发点坐标最近的前后第一指定数值个文字,确定为该目标文本信息,当然,在实际应用中,该终端还可以通过其他方法,确定该目标文本信息,本发明实施例对此不做具体限定。
需要说明的是,第一指定数值可以事先设置,比如,第一指定数值可以为2、3、4等等,本发明实施例对此不做具体限定。
比如,触发点坐标为坐标3,当该终端将与该触发点坐标最近的前后两个标点符号之间的文本信息确定为该目标文本信息时,如图6所示,该终端基于该坐标3,将该目标网页的信息内容中与该坐标3最近的前后两个标点符号之间的文本信息“绘制的宣传画和商品包装图案也很流行”确定为目标文本信息。
另外,当该服务器接收到该目标文本信息,该服务器从该目标文本信息中选择多个文本关键词的操作可以为:该服务器对该目标文本信息进行分词,得 到多个词组,从该多个词组中选择多个文本关键词。
其中,当该服务器从该多个词组中选择多个文本关键词时,该服务器可以从该多个词组中选择使用最频繁的词组,也即是,根据该多个词组,从存储的词语与使用频次之间的对应关系中,获取该多个词组的使用频次,并按照该多个词组的使用频次从大到小的顺序,选择第二指定数值个词组,并将选择的词组确定为文本关键词;当然,实际应用中,该服务器也可以通过其他方式从该多个词组中选择多个文本关键词,本发明实施例对此不做具体限定。
需要说明的是,第二指定数值可以事先设置,比如,第二指定数值可以为2、3、5等等,本发明实施例对此不做具体限定。
比如,该第二指定数值为3,当该服务器接收到该目标文本信息时,该服务器对该目标文本信息进行分词,得到多个词组为“绘制”、“宣传画”、“商品包装图案”、“流行”,该服务器基于该多个词组,从如下表3所示的词组与使用频次之间的对应关系中,获取该多个词组的使用频次,其中“绘制”的使用频次为40,“宣传画”的使用频次为72,“商品包装图案”的使用频次为80,“流行”使用频次为100,该终端按照该多个词组的使用频次从大到小的顺序,选择3个词组为“宣传画”、“商品包装图案”和“流行”,并将选择的“宣传画”、“商品包装图案”和“流行”确定为文本关键词。
表3
词组 使用频次
绘制 40
宣传画 72
商品包装图案 80
流行 100
…… ……
需要说明的是,在本发明实施例中,仅以上述表3所示的词组与使用频次之间的对应关系为例进行说明,上述表3并不对本发明实施例构成具体限定。
再者,当该终端基于该多个文本关键词确定目标选区时,该终端可以基于该触发点坐标,从该多个文本关键词中选择推荐文本关键词,并基于该推荐文本关键词,生成推荐选区,该推荐选区用于标记该推荐文本关键词,且该推荐 选区可以调整,当该终端检测到针对该推荐选区的调整操作时,对该推荐选区进行调整,得到目标选区;当然,实际应用中,该终端也可以通过其他方式基于该多个文本关键词确定目标选区,本发明实施例对此不做具体限定。
需要说明的是,调整操作用于对推荐选区进行调整,且该调整操作可以由用户触发,该用户可以通过位于该推荐选区的左右两侧的调整按钮来触发,当然,实际应用中,该用户还可以通过其他形式来触发,本发明实施例对此不做具体限定。
比如,当该终端接收到的多个文本关键词为“宣传画”、“商品包装图案”、“流行”时,该终端基于该触发点坐标,从该多个文本关键词中,选择推荐文本关键词,假设该推荐文本关键词为“宣传画”,并基于该推荐文本关键词“宣传画”,生成如图7所示的推荐选区,该推荐选区用于标记该推荐文本关键词“宣传画”,且该推荐选区的左右两侧包括调整按钮,当该终端检测到针对该推荐选区左侧的调整按钮向左拉伸的调整操作时,将该推荐选区向左拉伸,得到如图8所示的目标选区。
其中,该终端从该多个文本关键词中选择推荐文本关键词时,可以将该多个文本关键词中,与触发点坐标最近的文本关键词确定为推荐文本关键词,当然,实际应用中,该终端还可以通过其他方式从该多个文本关键词中选择推荐文本关键词,本发明实施例对此不做具体限定。
进一步地,在该终端基于触发点坐标,确定目标选区之后,为了便于用户及时获知该目标选区所包括的文本信息,该终端还可以将该目标选区所包括的文本信息进行高亮显示,该高亮显示的颜色可以包括多种,且该多个颜色可以任意选择,比如,红色、黄色、绿色等等,本发明实施例对此不做具体限定。或者,该终端可以对该目标选区所包括的文本信息进行突出显示,该突出显示的操作与上述步骤204中突出显示的操作类似,本发明实施例对此不再赘述。
(3)、基于该目标选区的位置,显示该批注输入框。
当该终端确定目标选区之后,该终端可以获取该目标选区的位置,并基于该目标选区的位置,设置该批注输入框的显示位置,之后,该终端基于设置的显示位置,显示批注输入框。
而当该终端基于该目标选区的位置,设置批注输入框的显示位置时,该终端可以将处于该目标选区的位置正下方且与该目标选区的位置相距第二指定长度的位置,确定为批注输入框的显示位置。当然,实际应用中,该终端也可 以通过其他方式基于该目标选区的位置,设置该批注输入框的显示位置,本发明实施例对此不做具体限定。
需要说明的是,该第二指定长度可以事先设置,比如,第二指定长度可以为0.5cm,1cm等等,本发明实施例对此不做具体限定。
(4)、当该触发点处的信息为图片时,该终端基于该触发点所在的位置,显示批注输入框。
其中,该终端基于该触发点所在的位置,显示批注输入框时,可以将该触发点所在的位置确定为该批注输入框的显示位置,之后,基于该批注输入框的显示位置,显示该批注输入框。
步骤206:当该终端接收到第二网页批注的完成指令时,确定第二位置信息,第二位置信息用于确定第二网页批注的显示位置。
由于该触发点处的信息可以为文本信息或者图片,因此,当该终端接收到第二网页批注的完成指令时,确定第二位置信息可以包括两种方式,如下所述。
第一种方式、当触发点处的信息为文本信息时,若该终端接收到第二网页批注的完成指令,则该终端可以确定该目标选区的选区位置信息,以及确定第二批注框坐标,并将该目标选区的选区位置信息和第二批注框坐标,确定为第二位置信息。
需要说明的是,第二批注框坐标用于确定批注输入框在该目标网页中的位置,且第二批注框坐标为批注输入框在该目标网页中的坐标。其中,第二批注框坐标所在坐标系的原点可以是该目标网页的左上角、左下角、右上角、右下角等位置,本发明实施例对此不做具体限定。
另外,第二网页批注的完成指令用于表示第二网页批注的内容输入完成,且第二网页批注的完成指令可以由用户触发,该用户可以通过第二指定操作触发,该第二指定操作可以为敲击回车键、点击发送按钮等操作,本发明实施例对此不做具体限定。
其中,该终端确定第二批注框坐标时,可以获取批注输入框在该目标网页中的坐标,并将批注输入框在该目标网页中的坐标确定为第二批注框坐标。
需要说明的是,目标选区所包括的文本信息即为第二网页批注所批注的文本信息,此时可以将目标选区所包括的文本信息称为第二选中文本信息。由于第二选中文本信息所在的文本段落可以包括一个文本段落,也可以包括多个文本段落,因此,当第二选中文本信息所在的文本段落包括一个文本段落或多个 文本段落时,该终端确定该目标选区的选区位置信息的方法略有不同,如下所述。
当第二选中文本信息所处的文本段落为一个文本段落时,该终端获取第二选中文本信息所处的文本段落的段落起始位置和段落结束位置,将获取的段落起始位置确定为第二选中文本信息的段落起始位置,将获取的段落结束位置确定为第二选中文本信息的段落结束位置,之后,获取第二选中文本信息的第一个字符相对该段落起始位置的第一文字偏移值,将第一文字偏移值确定为起始文字偏移值,以及获取第二选中文本信息的最后一个字符相对该段落起始位置的第二文字偏移值,将第二文字偏移值确定为结束文字偏移值,将该第二选中文本信息的段落起始位置、段落结束位置、起始文字偏移值和结束文字偏移值确定为该目标选区的选区位置信息。
而当第二选中文本信息所处的文本段落为多个文本段落时,该终端获取该多个文本段落包括的第一个文本段落的段落起始位置和最后一个文本段落的段落结束位置,将获取的段落起始位置确定为第二选中文本信息的段落起始位置,将获取的段落结束位置确定为第二选中文本信息的段落结束位置,之后,该终端获取第二选中文本信息的第一个字符相对该段落起始位置的第三文字偏移值,将第三文字偏移值确定为起始文字偏移值,以及基于该段落结束位置,获取该多个文本段落中最后一个文本段落的段落起始位置,并获取第二选中文本信息的最后一个字符相对该最后一个文本段落的段落起始位置的第四文字偏移值,将第四文字偏移值确定为文字结束偏移值,之后,将第二选中文本信息的段落起始位置、段落结束位置、起始文字偏移值和结束文字偏移值确定为该目标选区的选区位置信息。
第二种方式、当触发点处的信息为图片时,将该触发点处的图片确定为第二选中图片,第二选中图片为第二网页批注所批注的图片,若该终端接收到第二网页批注的完成指令,则该终端可以基于该触发点坐标,确定第二相对坐标,第二相对坐标为该触发点在第二选中图片中的相对坐标;确定第二索引信息,第二索引信息为第二选中图片在该目标网页中的索引信息;将第二相对坐标和第二索引信息确定为第二位置信息。
其中,当该终端通过上述205-206的步骤对该目标网页进行第二网页批注之后,该终端可以显示第二网页批注。另外,本发明实施例中,该终端还可以对该目标网页中已批注的选中文本信息或者选中图片再次进行网页批注,从而 避免了相关技术中用户对同一位置无法再次进行网页批注的问题。另外,该终端还可以将同一位置的多条网页批注合并显示,从而提高了网页批注的显示效果。
步骤207:该终端将该用户账号、该目标网页标识、第二网页批注和第二位置信息发送给该服务器,使该服务器基于该用户账号和该目标网页标识,存储第二网页批注和第二位置信息。
该终端将该用户账号、该目标网页标识、第二网页批注和第二位置信息发送给该服务器,当该服务器接收到该用户账号、该目标网页标识、第二网页批注和第二位置信息时,该服务器基于该用户账号和该目标网页标识,将第二网页批注和第二位置信息存储在用户账号、网页标识、网页批注与位置信息之间的对应关系中,以对用户账号、网页标识、网页批注与位置信息之间的对应关系进行更新。当然,实际应用中,该服务器也可以基于该用户账号和该目标网页标识,通过其他方式存储第二网页批注和第二位置信息,本发明实施例对此不做具体限定。
比如,第二网页批注为批注6,第二位置信息为信息6,该终端将该用户账号12345678、该目标网页标识ID1、该批注6和该信息6发送给该服务器,当该服务器接收到该用户账号12345678、该目标网页标识ID1、该批注6和该信息6时,该服务器基于该用户账号12345678和该目标网页标识ID1,将该批注6和该信息6存储在如下表4所示的用户账号、网页标识、网页批注与位置信息之间的对应关系中,以对上述表1所示的用户账号、网页标识、网页批注与位置信息之间的对应关系进行更新。
表4
Figure PCTCN2016085474-appb-000002
Figure PCTCN2016085474-appb-000003
需要说明的是,在本发明实施例中,仅以上述表4所示的用户账号、网页标识、网页批注与位置信息之间的对应关系为例进行说明,上述表4并不对本发明实施例构成具体限定。
进一步地,当第二网页批注的批注对象为文本信息时,该终端除了将该用户账号、该目标网页标识、第二网页批注和第二位置信息发送给该服务器之外,还可以将第二网页批注对应的第二选中文本信息发送给该服务器,使该服务器基于该用户账号和该目标网页标识,存储第二网页批注、第二位置信息和第二选中文本信息。
进一步地,在通过上述步骤205-207对该目标网页进行第二网页批注之后,当该终端检测到针对第二网页批注的反馈操作时,该终端可以对第二网页批注进行反馈处理。而当该终端检测到针对第二网页批注的删除操作时,该终端还可以对第二网页批注进行删除处理。
其中,删除操作可以由用户触发,该用户可以通过点击删除按钮等来进行触发,本发明实施例对此不做具体限定。其中,该删除按钮可以事先设置,且本发明实施例对该删除按钮的具体位置不做具体限定。
在本发明实施例中,当该终端接收到目标网页的显示指令时,获取该目标网页的信息内容,并向服务器发送信息获取请求,使该服务器返回该目标网页的第一网页批注和第一位置信息,当该终端接收到第一网页批注和第一位置信息时,基于第一位置信息,在该目标网页上显示第一网页批注,从而对第一网页批注的显示实现了精确地定位,避免了在存在多个相同选中文本信息时,网页批注可能会发生错误显示的问题,提高了网页批注显示的准确性。另外,该终端显示的第一网页批注不仅可以包括该终端当前登录的用户账号对应的网页批注,还可以包括除该用户账号之外的其他用户账号对应的网页批注,从而使不同用户之间可以互相查看网页批注,再者,使用该终端的用户还可以对其他用户账号对应的网页批注进行点赞和评论,实现多个用户之间的互动。
图9是本发明实施例提供了一种网页批注显示装置的结构示意图,参照图3,该装置包括:
获取模块901,用于当接收到目标网页的显示指令时,获取该目标网页的 信息内容;
第一发送模块902,用于向服务器发送信息获取请求,该信息获取请求中携带目标网页标识,使该服务器返回该目标网页的第一网页批注和第一位置信息,第一网页批注为当前时间之前对目标网页进行网页批注的内容,第一位置信息用于确定第一网页批注的显示位置;
第一显示模块903,用于当接收到第一网页批注和第一位置信息时,基于第一位置信息,在该目标网页上显示第一网页批注。
可选地,参照图10,第一显示模块903包括:
第一确定单元9031,用于当接收到第一网页批注和第一位置信息时,若第一位置信息包括选区位置信息和第一批注框坐标,基于该选区位置信息,从该目标网页中确定第一选中文本信息,第一选中文本信息为第一网页批注所批注的文本信息,选区位置信息用于确定第一选中文本信息在目标网页中的位置,第一批注框坐标为第一批注框在目标网页中的坐标,第一批注框为用于显示第一网页批注的批注框;
第一显示单元9032,用于基于第一选中文本信息的位置和第一批注框坐标,显示第一网页批注。
可选地,参照图11,第一显示模块903,包括:
第二确定单元9033,用于当第一位置信息包括第一相对坐标和第一索引信息时,基于第一索引信息,从该目标网页中,确定第一选中图片,第一选中图片为第一网页批注所批注的图片,第一索引信息为第一选中图片在该目标网页中的索引信息,第一相对坐标为第一批注框在第一选中图片中的相对坐标,第一批注框为用于显示第一网页批注的批注框;
第二显示单元9034,用于基于第一相对坐标,在第一选中图片上,显示第一网页批注。
可选地,参照图12,该装置还包括:
第二显示模块904,用于当检测到针对该信息内容的指定事件被触发时,基于该指定事件的触发点坐标,显示批注输入框,触发点坐标为指定事件的触发点在目标网页中的坐标;
接收模块905,用于基于批注输入框接收当前输入的第二网页批注;
确定模块906,用于当接收到该第二网页批注的完成指令时,确定第二位置信息,第二位置信息用于确定第二网页批注的显示位置;
第二发送模块907,用于将终端当前登录的用户账号、该目标网页标识、第二网页批注和第二位置信息发送给该服务器,使该服务器基于该用户账号和该目标网页标识,存储第二网页批注和第二位置信息。
可选地,参照图13,第二显示模块904包括:
判断单元9041,用于当检测到针对该信息内容的指定事件被触发时,基于该指定事件的触发点坐标,判断触发点处的信息是文本信息还是图片;
第三确定单元9042,用于当该触发点处的信息为文本信息时,基于该触发点坐标,确定目标选区;
第三显示单元9043,用于基于该目标选区的位置,显示批注输入框。
可选地,参照图14,第三确定单元9042包括:
第一确定子单元90421,用于当该触发点处的信息为文本信息时,基于该触发点坐标,从该目标网页的信息内容中,确定目标文本信息;
发送子单元90422,用于将该目标文本信息发送给该服务器,使该服务器从该目标文本信息中选择多个文本关键词,并返回该多个文本关键词;
第二确定子单元90423,用于当接收到该多个文本关键词时,基于该多个文本关键词确定目标选区。
可选地,第二确定子单元90423,具体用于:
从该多个文本关键词中选择推荐文本关键词;
基于该推荐文本关键词,生成推荐选区,推荐选区用于标记推荐文本关键词;
当检测到针对该推荐选区的调整操作时,对该推荐选区进行调整,得到目标选区。
可选地,参照图15,确定模块906包括:
第四确定单元9061,用于确定该目标选区的选区位置信息,以及确定第二批注框坐标,第二批注框坐标为批注输入框在目标网页中的坐标;
第五确定单元9062,用于将该目标选区的选区位置信息和第二批注框坐标,确定为第二位置信息。
可选地,参照图16,确定模块906包括:
第六确定单元9063,用于当该触发点处的信息是图片时,将该触发点处的图片确定为第二选中图片,第二选中图片为第二网页批注所批注的图片;
第七确定单元9064,用于基于该触发点坐标,确定第二相对坐标,第二相 对坐标为该触发点在第二选中图片中的相对坐标;
第八确定单元9065,用于确定第二索引信息,第二索引信息为第二选中图片在该目标网页中的索引信息;
第九确定单元9066,用于将第二相对坐标和第二索引信息确定为第二位置信息。
综上所述,在本发明实施例中,当该终端接收到目标网页的显示指令时,获取该目标网页的信息内容,并向服务器发送信息获取请求,使该服务器基于信息获取请求携带的目标网页标识,返回该目标网页的第一网页批注和第一位置信息,当该终端接收到第一网页批注和第一位置信息时,该终端基于第一位置信息,对第一网页批注进行精确定位,从而显示第一网页批注,避免了在存在多个相同选中文本信息时,网页批注可能会发生错误显示的问题,提高了网页批注显示的准确性。
需要说明的是:上述实施例提供的网页批注显示的装置在显示网页批注时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的网页批注显示的装置与网页批注显示的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
请参考图17,其示出了本发明一个实施例提供的移动终端的结构示意图,该移动终端1700可以包括通信单元1710、包括有一个或一个以上计算机可读存储介质的存储器1720、输入单元1730、显示单元1740、传感器1750、音频电路1760、WIFI(Wireless Fidelity,无线保真)模块1770、包括有一个或者一个以上处理核心的处理器1780、以及电源1790等部件。本领域技术人员可以理解,图17中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
通信单元1710可用于收发信息或通话过程中,信号的接收和发送,该通信单元1710可以为RF(Radio Frequency,射频)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元1710为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器1780处理;另外,将涉及上行的数据 发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,通信单元1710还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。存储器1720可用于存储软件程序以及模块,处理器1780通过运行存储在存储器1720的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器1720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端1700的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器1720还可以包括存储器控制器,以提供处理器1780和输入单元1730对存储器1720的访问。
输入单元1730可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。优选地,输入单元1730可包括触敏表面1731以及其他输入设备1732。触敏表面1731,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面1731上或在触敏表面1731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面1731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1780,并能接收处理器1780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面1731。除了触敏表面1731,输入单元1730还可以包括其他输入设备1732。优选地,其他输入设备1732可以包括但不限于物理键盘、功能键(比如音量控制按键、 开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元1740可用于显示由用户输入的信息或提供给用户的信息以及移动终端1700的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元1740可包括显示面板1741,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板1741。进一步的,触敏表面1731可覆盖显示面板1741,当触敏表面1731检测到在其上或附近的触摸操作后,传送给处理器1780以确定触摸事件的类型,随后处理器1780根据触摸事件的类型在显示面板1741上提供相应的视觉输出。虽然在图17中,触敏表面1731与显示面板1741是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面1731与显示面板1741集成而实现输入和输出功能。
移动终端1700还可包括至少一种传感器1750,比如光传感器、运动传感器以及其他传感器。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1741的亮度,接近传感器可在移动终端1700移动到耳边时,关闭显示面板1741和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端1700还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路1760、扬声器1761,传声器1762可提供用户与移动终端1700之间的音频接口。音频电路1760可将接收到的音频数据转换后的电信号,传输到扬声器1761,由扬声器1761转换为声音信号输出;另一方面,传声器1762将收集的声音信号转换为电信号,由音频电路1760接收后转换为音频数据,再将音频数据输出处理器1780处理后,经通信单元1710以发送给比如另一移动终端,或者将音频数据输出至存储器1720以便进一步处理。音频电路1760还可能包括耳塞插孔,以提供外设耳机与移动终端1700的通信。
为了实现无线通信,该移动终端上可以配置有无线通信单元1770,该无线通信单元1770可以为WIFI模块。WIFI属于短距离无线传输技术,移动终端1700通过无线通信单元1770可以帮助用户收发电子邮件、浏览网页和访问流 式媒体等,它为用户提供了无线的宽带互联网访问。虽然图中示出了无线通信单元1770,但是可以理解的是,其并不属于移动终端1700的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器1780是移动终端1700的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1720内的软件程序和/或模块,以及调用存储在存储器1720内的数据,执行移动终端1700的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1780可包括一个或多个处理核心;优选的,处理器1780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1780中。
移动终端1700还包括给各个部件供电的电源1790(比如电池),优选的,电源可以通过电源管理系统与处理器1780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1760还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,移动终端1700还可以包括摄像头、蓝牙模块等,在此不再赘述。
在本实施例中,移动终端还包括有一个或者一个以上的程序,这一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,所述一个或者一个以上程序包含用于进行本发明实施例提供的多媒体文件播放方法的指令,包括:
当接收到目标网页的显示指令时,获取该目标网页的信息内容;
向服务器发送信息获取请求,该信息获取请求中携带目标网页标识,使该服务器返回该目标网页的第一网页批注和第一位置信息,第一网页批注为当前时间之前对目标网页进行网页批注的内容,第一位置信息用于确定第一网页批注的显示位置;
当接收到第一网页批注和第一位置信息时,基于第一位置信息,在该目标网页上显示第一网页批注。
可选地,基于第一位置信息,在该目标网页上显示第一网页批注,包括:
当第一位置信息包括选区位置信息和第一批注框坐标时,基于该选区位置 信息,从该目标网页中确定第一选中文本信息,第一选中文本信息为第一网页批注所批注的文本信息,选区位置信息用于确定第一选中文本信息在目标网页中的位置,第一批注框坐标为第一批注框在目标网页中的坐标,第一批注框为用于显示第一网页批注的批注框;
基于第一选中文本信息的位置和第一批注框坐标,显示第一网页批注。
可选地,基于第一位置信息,在目标网页上显示第一网页批注,包括:
当第一位置信息包括第一相对坐标和第一索引信息时,基于第一索引信息,从该目标网页中,确定第一选中图片,第一选中图片为第一网页批注所批注的图片,第一索引信息为第一选中图片在该目标网页中的索引信息,第一相对坐标为第一批注框在第一选中图片中的相对坐标,第一批注框为用于显示第一网页批注的批注框;
基于第一相对坐标,在第一选中图片上,显示第一网页批注。
可选地,基于第一位置信息,在该目标网页上显示第一网页批注之后,还包括:
当检测到针对该信息内容的指定事件被触发时,基于该指定事件的触发点坐标,显示批注输入框,触发点坐标为指定事件的触发点在目标网页中的坐标;
基于批注输入框接收当前输入的第二网页批注;
当接收到第二网页批注的完成指令时,确定第二位置信息,第二位置信息用于确定第二网页批注的显示位置;
将终端当前登录的用户账号、该目标网页标识、第二网页批注和第二位置信息发送给该服务器,使该服务器基于该用户账号和该目标网页标识,存储第二网页批注和第二位置信息。
可选地,基于该指定事件的触发点坐标,显示批注输入框,包括:
基于该指定事件的触发点坐标,判断触发点处的信息是文本信息还是图片;
当该触发点处的信息为文本信息时,基于该触发点坐标,确定目标选区;
基于该目标选区的位置,显示批注输入框。
可选地,基于该触发点坐标,确定目标选区,包括:
基于该触发点坐标,从该目标网页的信息内容中,确定目标文本信息;
将该目标文本信息发送给该服务器,使该服务器从该目标文本信息中选择多个文本关键词,并返回该多个文本关键词;
当接收到该多个文本关键词时,基于该多个文本关键词确定目标选区。
可选地,基于该多个文本关键词确定目标选区,包括:
从该多个文本关键词中选择推荐文本关键词;
基于该推荐文本关键词,生成推荐选区,推荐选区用于标记推荐文本关键词;
当检测到针对该推荐选区的调整操作时,对该推荐选区进行调整,得到目标选区。
可选地,确定第二位置信息,包括:
确定该目标选区的选区位置信息,以及确定第二批注框坐标,第二批注框坐标为批注输入框在目标网页中的坐标;
将该目标选区的选区位置信息和第二批注框坐标,确定为第二位置信息。
可选地,确定第二位置信息,包括:
当该触发点处的信息是图片时,将该触发点处的图片作为第二选中图片,第二选中图片为第二网页批注所批注的图片;
基于该触发点坐标,确定第二相对坐标,第二相对坐标为该触发点在该第二选中图片中的相对坐标;
确定第二索引信息,第二索引信息为第二选中图片在该目标网页中的索引信息;
将第二相对坐标和第二索引信息确定为第二位置信息。
在本发明实施例中,当终端接收到目标网页的显示指令时,获取该目标网页的信息内容,并向服务器发送信息获取请求,该信息获取请求中携带目标网页标识,使该服务器返回该目标网页的第一网页批注和第一位置信息,第一位置信息用于确定第一网页批注的显示位置,当该终端接收到第一网页批注和第一位置信息时,基于第一位置信息,在该目标网页上显示第一网页批注。本发明通过网页批注的位置信息对该目标网页的网页批注进行精确定位,从而避免了在存在多个相同选中文本信息时,网页批注可能会发生错误显示的问题,提高了网页批注显示的准确性。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由移动终端的处理器执行以完成上述网页批注显示方法。例如,所述非临时性计算机可读存储介质可以是ROM、 随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (27)

  1. 一种网页批注显示方法,其特征在于,所述方法包括:
    当接收到目标网页的显示指令时,获取所述目标网页的信息内容;
    向服务器发送信息获取请求,所述信息获取请求中携带目标网页标识,使所述服务器返回所述目标网页的第一网页批注和第一位置信息,所述第一网页批注为当前时间之前对所述目标网页进行网页批注的内容,所述第一位置信息用于确定所述第一网页批注的显示位置;
    当接收到所述第一网页批注和所述第一位置信息时,基于所述第一位置信息,在所述目标网页上显示所述第一网页批注。
  2. 如权利要求1所述的方法,其特征在于,所述基于所述第一位置信息,在所述目标网页上显示所述第一网页批注,包括:
    当所述第一位置信息包括选区位置信息和第一批注框坐标时,基于所述选区位置信息,从所述目标网页中确定第一选中文本信息,所述第一选中文本信息为所述第一网页批注所批注的文本信息,所述选区位置信息用于确定所述第一选中文本信息在所述目标网页中的位置,所述第一批注框坐标为第一批注框在所述目标网页中的坐标,所述第一批注框为用于显示所述第一网页批注的批注框;
    基于所述第一选中文本信息的位置和所述第一批注框坐标,显示所述第一网页批注。
  3. 如权利要求1所述的方法,其特征在于,所述基于所述第一位置信息,在所述目标网页上显示所述第一网页批注,包括:
    当所述第一位置信息包括第一相对坐标和第一索引信息时,基于所述第一索引信息,从所述目标网页中,确定第一选中图片,所述第一选中图片为所述第一网页批注所批注的图片,所述第一索引信息为所述第一选中图片在所述目标网页中的索引信息,所述第一相对坐标为第一批注框在所述第一选中图片中的相对坐标,所述第一批注框为用于显示所述第一网页批注的批注框;
    基于所述第一相对坐标,在所述第一选中图片上,显示所述第一网页批注。
  4. 如权利要求1所述的方法,其特征在于,所述基于所述第一位置信息,在所述目标网页上显示所述第一网页批注之后,还包括:
    当检测到针对所述信息内容的指定事件被触发时,基于所述指定事件的触发点坐标,显示批注输入框,所述触发点坐标为所述指定事件的触发点在所述目标网页中的坐标;
    基于所述批注输入框接收当前输入的第二网页批注;
    当接收到所述第二网页批注的完成指令时,确定第二位置信息,所述第二位置信息用于确定所述第二网页批注的显示位置;
    将终端当前登录的用户账号、所述目标网页标识、所述第二网页批注和所述第二位置信息发送给所述服务器,使所述服务器基于所述用户账号和所述目标网页标识,存储所述第二网页批注和所述第二位置信息。
  5. 如权利要求4所述的方法,其特征在于,所述基于所述指定事件的触发点坐标,显示批注输入框,包括:
    基于所述指定事件的触发点坐标,判断触发点处的信息是文本信息还是图片;
    当所述触发点处的信息为文本信息时,基于所述触发点坐标,确定目标选区;
    基于所述目标选区的位置,显示所述批注输入框。
  6. 如权利要求5所述的方法,其特征在于,所述基于所述触发点坐标,确定目标选区,包括:
    基于所述触发点坐标,从所述目标网页的信息内容中,确定目标文本信息;
    将所述目标文本信息发送给所述服务器,使所述服务器从所述目标文本信息中选择多个文本关键词,并返回所述多个文本关键词;
    当接收到所述多个文本关键词时,基于所述多个文本关键词确定目标选区。
  7. 如权利要求6所述的方法,其特征在于,所述基于所述多个文本关键词确定目标选区,包括:
    从所述多个文本关键词中选择推荐文本关键词;
    基于所述推荐文本关键词,生成推荐选区,所述推荐选区用于标记所述推 荐文本关键词;
    当检测到针对所述推荐选区的调整操作时,对所述推荐选区进行调整,得到目标选区。
  8. 如权利要求5-7任一权利要求所述的方法,其特征在于,所述确定第二位置信息,包括:
    确定所述目标选区的选区位置信息,以及确定第二批注框坐标,所述第二批注框坐标为所述批注输入框在所述目标网页中的坐标;
    将所述目标选区的选区位置信息和所述第二批注框坐标,确定为所述第二位置信息。
  9. 如权利要求5所述的方法,其特征在于,所述确定第二位置信息,包括:
    当所述触发点处的信息是图片时,将所述触发点处的图片确定为第二选中图片,所述第二选中图片为所述第二网页批注所批注的图片;
    基于所述触发点坐标,确定第二相对坐标,所述第二相对坐标为所述触发点在所述第二选中图片中的相对坐标;
    确定第二索引信息,所述第二索引信息为所述第二选中图片在所述目标网页中的索引信息;
    将所述第二相对坐标和所述第二索引信息确定为第二位置信息。
  10. 一种网页批注显示装置,其特征在于,所述装置包括:
    获取模块,用于当接收到目标网页的显示指令时,获取所述目标网页的信息内容;
    第一发送模块,用于向服务器发送信息获取请求,所述信息获取请求中携带目标网页标识,使所述服务器返回所述目标网页的第一网页批注和第一位置信息,所述第一网页批注为当前时间之前对所述目标网页进行网页批注的内容,所述第一位置信息用于确定所述第一网页批注的显示位置;
    第一显示模块,用于当接收到所述第一网页批注和所述第一位置信息时,基于所述第一位置信息,在所述目标网页上显示所述第一网页批注。
  11. 如权利要求10所述的装置,其特征在于,所述第一显示模块包括:
    第一确定单元,用于当接收到所述第一网页批注和所述第一位置信息时,若所述第一位置信息包括选区位置信息和第一批注框坐标,基于所述选区位置信息,从所述目标网页中确定第一选中文本信息,所述第一选中文本信息为所述第一网页批注所批注的文本信息,所述选区位置信息用于确定所述第一选中文本信息在所述目标网页中的位置,所述第一批注框坐标为第一批注框在所述目标网页中的坐标,所述第一批注框为用于显示所述第一网页批注的批注框;
    第一显示单元,用于基于所述第一选中文本信息的位置和所述第一批注框坐标,显示所述第一网页批注。
  12. 如权利要求10所述的装置,其特征在于,所述第一显示模块包括:
    第二确定单元,用于当所述第一位置信息包括第一相对坐标和第一索引信息时,基于所述第一索引信息,从所述目标网页中,确定第一选中图片,所述第一选中图片为所述第一网页批注所批注的图片,所述第一索引信息为所述第一选中图片在所述目标网页中的索引信息,所述第一相对坐标为第一批注框在所述第一选中图片中的相对坐标,所述第一批注框为用于显示所述第一网页批注的批注框;
    第二显示单元,用于基于所述第一相对坐标,在所述第一选中图片上,显示所述第一网页批注。
  13. 如权利要求10所述的装置,其特征在于,所述装置还包括:
    第二显示模块,用于当检测到针对所述信息内容的指定事件被触发时,基于所述指定事件的触发点坐标,显示批注输入框,所述触发点坐标为所述指定事件的触发点在所述目标网页中的坐标;
    接收模块,用于基于所述批注输入框接收当前输入的第二网页批注;
    确定模块,用于当接收到所述第二网页批注的完成指令时,确定第二位置信息,所述第二位置信息用于确定所述第二网页批注的显示位置;
    第二发送模块,用于将终端当前登录的用户账号、所述目标网页标识、所述第二网页批注和所述第二位置信息发送给所述服务器,使所述服务器基于所述用户账号和所述目标网页标识,存储所述第二网页批注和所述第二位置信息。
  14. 如权利要求13所述的装置,其特征在于,所述第二显示模块包括:
    判断单元,用于当检测到针对所述信息内容的指定事件被触发时,基于所述指定事件的触发点坐标,判断触发点处的信息是文本信息还是图片;
    第三确定单元,用于当所述触发点处的信息为文本信息时,基于所述触发点坐标,确定目标选区;
    第三显示单元,用于基于所述目标选区的位置,显示所述批注输入框。
  15. 如权利要求14所述的装置,其特征在于,所述第三确定单元包括:
    第一确定子单元,用于当所述触发点处的信息为文本信息时,基于所述触发点坐标,从所述目标网页的信息内容中,确定目标文本信息;
    发送子单元,用于将所述目标文本信息发送给所述服务器,使所述服务器从所述目标文本信息中选择多个文本关键词,并返回所述多个文本关键词;
    第二确定子单元,用于当接收到所述多个文本关键词时,基于所述多个文本关键词确定目标选区。
  16. 如权利要求15所述的装置,其特征在于,
    所述第二确定子单元,具体用于:
    从所述多个文本关键词中选择推荐文本关键词;
    基于所述推荐文本关键词,生成推荐选区,所述推荐选区用于标记所述推荐文本关键词;
    当检测到针对所述推荐选区的调整操作时,对所述推荐选区进行调整,得到目标选区。
  17. 如权利要求14-16任一权利要求所述的装置,其特征在于,所述确定模块包括:
    第四确定单元,用于确定所述目标选区的选区位置信息,以及确定第二批注框坐标,所述第二批注框坐标为所述批注输入框在所述目标网页中的坐标;
    第五确定单元,用于将所述目标选区的选区位置信息和所述第二批注框坐标,确定为所述第二位置信息。
  18. 如权利要求14所述的装置,其特征在于,所述确定模块包括:
    第六确定单元,用于当所述触发点处的信息是图片时,将所述触发点处的 图片确定为第二选中图片,所述第二选中图片为所述第二网页批注所批注的图片;
    第七确定单元,用于基于所述触发点坐标,确定第二相对坐标,所述第二相对坐标为所述触发点在所述第二选中图片中的相对坐标;
    第八确定单元,用于确定第二索引信息,所述第二索引信息为所述第二选中图片在所述目标网页中的索引信息;
    第九确定单元,用于将所述第二相对坐标和所述第二索引信息确定为第二位置信息。
  19. 一种移动终端,其特征在于,所述移动终端包括:
    一个或多个处理器;和
    存储器;
    所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:
    当接收到目标网页的显示指令时,获取所述目标网页的信息内容;
    向服务器发送信息获取请求,所述信息获取请求中携带目标网页标识,使所述服务器返回所述目标网页的第一网页批注和第一位置信息,所述第一网页批注为当前时间之前对所述目标网页进行网页批注的内容,所述第一位置信息用于确定所述第一网页批注的显示位置;
    当接收到所述第一网页批注和所述第一位置信息时,基于所述第一位置信息,在所述目标网页上显示所述第一网页批注。
  20. 如权利要求19所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    当接收到所述第一网页批注和所述第一位置信息时,若所述第一位置信息包括选区位置信息和第一批注框坐标,基于所述选区位置信息,从所述目标网页中确定第一选中文本信息,所述第一选中文本信息为所述第一网页批注所批注的文本信息,所述选区位置信息用于确定所述第一选中文本信息在所述目标网页中的位置,所述第一批注框坐标为第一批注框在所述目标网页中的坐标,所述第一批注框为用于显示所述第一网页批注的批注框;
    基于所述第一选中文本信息的位置和所述第一批注框坐标,显示所述第一 网页批注。
  21. 如权利要求19所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    当所述第一位置信息包括第一相对坐标和第一索引信息时,基于所述第一索引信息,从所述目标网页中,确定第一选中图片,所述第一选中图片为所述第一网页批注所批注的图片,所述第一索引信息为所述第一选中图片在所述目标网页中的索引信息,所述第一相对坐标为第一批注框在所述第一选中图片中的相对坐标,所述第一批注框为用于显示所述第一网页批注的批注框;
    基于所述第一相对坐标,在所述第一选中图片上,显示所述第一网页批注。
  22. 如权利要求19所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    当检测到针对所述信息内容的指定事件被触发时,基于所述指定事件的触发点坐标,显示批注输入框,所述触发点坐标为所述指定事件的触发点在所述目标网页中的坐标;
    基于所述批注输入框接收当前输入的第二网页批注;
    当接收到所述第二网页批注的完成指令时,确定第二位置信息,所述第二位置信息用于确定所述第二网页批注的显示位置;
    将终端当前登录的用户账号、所述目标网页标识、所述第二网页批注和所述第二位置信息发送给所述服务器,使所述服务器基于所述用户账号和所述目标网页标识,存储所述第二网页批注和所述第二位置信息。
  23. 如权利要求22所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    当检测到针对所述信息内容的指定事件被触发时,基于所述指定事件的触发点坐标,判断触发点处的信息是文本信息还是图片;
    当所述触发点处的信息为文本信息时,基于所述触发点坐标,确定目标选区;
    基于所述目标选区的位置,显示所述批注输入框。
  24. 如权利要求23所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    当所述触发点处的信息为文本信息时,基于所述触发点坐标,从所述目标网页的信息内容中,确定目标文本信息;
    将所述目标文本信息发送给所述服务器,使所述服务器从所述目标文本信息中选择多个文本关键词,并返回所述多个文本关键词;
    当接收到所述多个文本关键词时,基于所述多个文本关键词确定目标选区。
  25. 如权利要求24所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    从所述多个文本关键词中选择推荐文本关键词;
    基于所述推荐文本关键词,生成推荐选区,所述推荐选区用于标记所述推荐文本关键词;
    当检测到针对所述推荐选区的调整操作时,对所述推荐选区进行调整,得到目标选区。
  26. 如权利要求23-25任一权利要求所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    确定所述目标选区的选区位置信息,以及确定第二批注框坐标,所述第二批注框坐标为所述批注输入框在所述目标网页中的坐标;
    将所述目标选区的选区位置信息和所述第二批注框坐标,确定为所述第二位置信息。
  27. 如权利要求23所述的移动终端,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    当所述触发点处的信息是图片时,将所述触发点处的图片确定为第二选中图片,所述第二选中图片为所述第二网页批注所批注的图片;
    基于所述触发点坐标,确定第二相对坐标,所述第二相对坐标为所述触发点在所述第二选中图片中的相对坐标;
    确定第二索引信息,所述第二索引信息为所述第二选中图片在所述目标网页中的索引信息;
    将所述第二相对坐标和所述第二索引信息确定为第二位置信息。
PCT/CN2016/085474 2015-07-22 2016-06-12 网页批注显示方法、装置及移动终端 WO2017012437A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020177029737A KR102038209B1 (ko) 2015-07-22 2016-06-12 웹페이지 주석을 표시하기 위한 방법 및 디바이스, 및 모바일 단말
JP2017555637A JP6442082B2 (ja) 2015-07-22 2016-06-12 ウェブページ注釈を表示するための方法およびデバイス、ならびにモバイル端末
US15/698,440 US10817586B2 (en) 2015-07-22 2017-09-07 Web page annotation displaying method and apparatus, and mobile terminal
US17/026,150 US11200295B2 (en) 2015-07-22 2020-09-18 Web page annotation displaying method and apparatus, and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510434902.0 2015-07-22
CN201510434902.0A CN105095432B (zh) 2015-07-22 2015-07-22 网页批注显示方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/698,440 Continuation-In-Part US10817586B2 (en) 2015-07-22 2017-09-07 Web page annotation displaying method and apparatus, and mobile terminal

Publications (1)

Publication Number Publication Date
WO2017012437A1 true WO2017012437A1 (zh) 2017-01-26

Family

ID=54575869

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085474 WO2017012437A1 (zh) 2015-07-22 2016-06-12 网页批注显示方法、装置及移动终端

Country Status (5)

Country Link
US (2) US10817586B2 (zh)
JP (1) JP6442082B2 (zh)
KR (1) KR102038209B1 (zh)
CN (1) CN105095432B (zh)
WO (1) WO2017012437A1 (zh)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095432B (zh) 2015-07-22 2019-04-16 腾讯科技(北京)有限公司 网页批注显示方法及装置
CN105630956A (zh) * 2015-12-23 2016-06-01 北京奇虎科技有限公司 推送在网页中显示批注的系统及方法
CN105630952A (zh) * 2015-12-23 2016-06-01 北京奇虎科技有限公司 在网页中显示批注的系统及方法
CN107180032A (zh) * 2016-03-09 2017-09-19 广州市动景计算机科技有限公司 评论内容显示方法及系统
CN107368465B (zh) 2016-05-13 2020-03-03 北京京东尚科信息技术有限公司 一种用于流式文档的截图类笔记处理的系统及方法
CN106250088B (zh) * 2016-08-03 2020-09-08 海信视像科技股份有限公司 文本显示方法及装置
CN110020279B (zh) * 2017-09-08 2023-01-20 腾讯科技(深圳)有限公司 页面数据处理方法、装置及存储介质
CN110110254A (zh) * 2018-01-05 2019-08-09 北大方正集团有限公司 网页图片的批注方法、装置及终端设备
CN109388683A (zh) * 2018-09-17 2019-02-26 中山大学 一种钻孔柱状图信息批量提取方法
WO2020096635A1 (en) * 2018-11-06 2020-05-14 Google Llc Systems and methods for extracting information from a physical document
CN110688036B (zh) * 2019-08-28 2021-05-14 云知声智能科技股份有限公司 一种web界面缺陷关联内容位置变化的展示方法
CN110806825A (zh) * 2019-09-18 2020-02-18 云知声智能科技股份有限公司 病历质检方法及装置
US11321515B2 (en) * 2019-11-10 2022-05-03 ExactNote, Inc. Information restructuring, editing, and storage systems for web browsers
CN113138817A (zh) * 2020-01-19 2021-07-20 浙江爱多特大健康科技有限公司 移动端界面批注方法、装置、电子设备及计算机存储介质
CN113254815B (zh) * 2020-02-08 2023-11-10 钉钉控股(开曼)有限公司 文档处理、页面处理方法及设备
CN111898346A (zh) * 2020-07-15 2020-11-06 金现代信息产业股份有限公司 一种在线文章批改系统及方法
US11443103B2 (en) * 2020-10-07 2022-09-13 Rakuten Kobo Inc. Reflowable content with annotations
CN112437148B (zh) * 2020-11-20 2023-03-07 北京奇艺世纪科技有限公司 业务请求的处理方法、装置、业务服务器及系统
CN112417829B (zh) * 2020-11-27 2022-03-11 上海妙一生物科技有限公司 添加页面批注的处理方法和装置
CN112559940B (zh) * 2020-12-23 2024-05-10 平安银行股份有限公司 页面标注方法、装置、设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140020A (ja) * 2007-12-03 2009-06-25 Fujitsu Ltd アノテーションプログラム、アノテーション装置及びアノテーション方法
CN101739415A (zh) * 2008-11-25 2010-06-16 华中师范大学 一种面向浏览器的网页标注系统
CN102446175A (zh) * 2010-09-30 2012-05-09 宏碁股份有限公司 电子装置及网页加注方法
CN102682025A (zh) * 2011-03-16 2012-09-19 中兴通讯股份有限公司 一种浏览器及其实现web图片评论添加和显示的方法
CN102799573A (zh) * 2012-06-27 2012-11-28 北京经舆典网络科技有限公司 网页批注的方法及系统
CN102982148A (zh) * 2012-11-26 2013-03-20 华为技术有限公司 定位方法及定位装置
CN105095432A (zh) * 2015-07-22 2015-11-25 腾讯科技(北京)有限公司 网页批注显示方法及装置

Family Cites Families (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3546705B2 (ja) * 1998-07-10 2004-07-28 インターナショナル・ビジネス・マシーンズ・コーポレーション アプリケーション・ウインドウにアノテーション・データを対応付ける方法及び装置、システム、アプリケーション・ウインドウへのアノテーション・データの対応付けを制御するプログラムを格納した記憶媒体
US6529215B2 (en) * 1998-12-31 2003-03-04 Fuji Xerox Co., Ltd. Method and apparatus for annotating widgets
JP2001209659A (ja) * 1999-12-15 2001-08-03 Xerox Corp 注釈装置がビューイング装置と異なっている場合に対象物に注釈を付けるシステム及び方法
US7234108B1 (en) * 2000-06-29 2007-06-19 Microsoft Corporation Ink thickness rendering for electronic annotations
US7747943B2 (en) * 2001-09-07 2010-06-29 Microsoft Corporation Robust anchoring of annotations to content
JP3771831B2 (ja) * 2001-11-01 2006-04-26 インターナショナル・ビジネス・マシーンズ・コーポレーション デジタル・コンテンツに付加されるアノテーション情報を共有するためのコンピュータ・システムおよびプログラム
US20040236830A1 (en) * 2003-05-15 2004-11-25 Steve Nelson Annotation management system
US7218783B2 (en) * 2003-06-13 2007-05-15 Microsoft Corporation Digital ink annotation process and system for recognizing, anchoring and reflowing digital ink annotations
US20090044144A1 (en) * 2007-08-06 2009-02-12 Morris Robert P Methods And Apparatus For Sharing User Interface Widget Annotations
US8276079B2 (en) * 2007-12-21 2012-09-25 Jonathan Davar Supplementing user web-browsing
US20090199133A1 (en) * 2008-02-05 2009-08-06 Microsoft Corporation Generating a destination list utilizing usage data
US20090217150A1 (en) * 2008-02-27 2009-08-27 Yi Lin Systems and methods for collaborative annotation
US20100011282A1 (en) * 2008-07-11 2010-01-14 iCyte Pty Ltd. Annotation system and method
US20140032616A1 (en) * 2008-08-29 2014-01-30 John Nack Creation and sharing of user annotations
CN101866342B (zh) * 2009-04-16 2013-09-11 富士通株式会社 生成或显示网页标注的方法和装置以及信息共享系统
CN101997969A (zh) * 2009-08-13 2011-03-30 索尼爱立信移动通讯有限公司 图片声音注释添加方法和装置以及包括该装置的移动终端
CN102833277A (zh) * 2011-06-14 2012-12-19 中兴通讯股份有限公司 共享网页链接的方法及系统
US20130031455A1 (en) * 2011-07-28 2013-01-31 Peter Griffiths System for Linking to Documents with Associated Annotations
US9483454B2 (en) * 2011-10-07 2016-11-01 D2L Corporation Systems and methods for context specific annotation of electronic files
CN102609401A (zh) * 2011-12-26 2012-07-25 北京大学 一种网页批注方法
US20140019884A1 (en) * 2012-07-10 2014-01-16 Mark Andrew Dinan Enhanced synchronous communication channel for interactive communications between participants
US9430141B1 (en) * 2014-07-01 2016-08-30 Amazon Technologies, Inc. Adaptive annotations
US10218652B2 (en) * 2014-08-08 2019-02-26 Mastercard International Incorporated Systems and methods for integrating a chat function into an e-reader application
EP3026575A1 (en) * 2014-11-26 2016-06-01 Unify GmbH & Co. KG Method for referring to specific content on a web page and web browsing system
US20160203114A1 (en) * 2015-01-09 2016-07-14 Microsoft Technology Licensing, Llc Control of Access and Management of Browser Annotations
US10013410B2 (en) * 2016-07-22 2018-07-03 Conduent Business Services, Llc Methods and systems for managing annotations within applications and websites
US10795961B2 (en) * 2018-05-29 2020-10-06 International Business Machines Corporation Accessing specific portions of documents on a network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140020A (ja) * 2007-12-03 2009-06-25 Fujitsu Ltd アノテーションプログラム、アノテーション装置及びアノテーション方法
CN101739415A (zh) * 2008-11-25 2010-06-16 华中师范大学 一种面向浏览器的网页标注系统
CN102446175A (zh) * 2010-09-30 2012-05-09 宏碁股份有限公司 电子装置及网页加注方法
CN102682025A (zh) * 2011-03-16 2012-09-19 中兴通讯股份有限公司 一种浏览器及其实现web图片评论添加和显示的方法
CN102799573A (zh) * 2012-06-27 2012-11-28 北京经舆典网络科技有限公司 网页批注的方法及系统
CN102982148A (zh) * 2012-11-26 2013-03-20 华为技术有限公司 定位方法及定位装置
CN105095432A (zh) * 2015-07-22 2015-11-25 腾讯科技(北京)有限公司 网页批注显示方法及装置

Also Published As

Publication number Publication date
CN105095432A (zh) 2015-11-25
KR20170129212A (ko) 2017-11-24
US20210004419A1 (en) 2021-01-07
KR102038209B1 (ko) 2019-10-29
US11200295B2 (en) 2021-12-14
JP2018513502A (ja) 2018-05-24
US20180067954A1 (en) 2018-03-08
CN105095432B (zh) 2019-04-16
JP6442082B2 (ja) 2018-12-19
US10817586B2 (en) 2020-10-27

Similar Documents

Publication Publication Date Title
WO2017012437A1 (zh) 网页批注显示方法、装置及移动终端
US9702711B2 (en) Place of interest recommendation
WO2019120191A1 (zh) 多段文本复制方法及移动终端
TWI624781B (zh) 用以結合多個設備的顯示器之方法、裝置及電腦程式產品
WO2016019925A1 (zh) 搜索方法、服务器及客户端
WO2017084452A1 (zh) 图形界面中标签页的处理方法和装置
US9241242B2 (en) Information recommendation method and apparatus
CN109917979B (zh) 一种搜索方法及移动终端
WO2021077897A1 (zh) 文件发送方法、装置和电子设备
WO2014206101A1 (zh) 一种基于手势的会话处理方法、装置及终端设备
WO2018196588A1 (zh) 一种信息分享方法、装置和系统
WO2017012423A1 (zh) 一种显示即时通信消息的方法和终端
CN105302452B (zh) 一种基于手势交互的操作方法及装置
WO2015000430A1 (zh) 智能选词的方法和装置
WO2015000429A1 (zh) 智能选词的方法和装置
JP6230611B2 (ja) メッセージ表示方法、メッセージ表示装置、端末装置、プログラム及び記録媒体
WO2019096042A1 (zh) 应用程序安装方法和移动终端
WO2017084289A1 (zh) 一种进行信息展示的方法、装置和系统
CN104281568B (zh) 一种释义显示方法和装置
US10320730B2 (en) Method and device for displaying message
WO2019076377A1 (zh) 图像的查看方法及移动终端
JP2017509051A (ja) ストリーミングメディアデータに関する統計を収集するための方法およびシステム、ならびに関連する装置
WO2017128986A1 (zh) 多媒体菜单项的选择方法、装置及存储介质
CN111124709A (zh) 一种文本处理方法及电子设备
CN105653112B (zh) 一种显示浮层的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16827128

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20177029737

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2017555637

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 15/06/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16827128

Country of ref document: EP

Kind code of ref document: A1