CN106156253A - Obtain and the partial content of shared webpage the method and apparatus that generates Web page bookmark - Google Patents
Obtain and the partial content of shared webpage the method and apparatus that generates Web page bookmark Download PDFInfo
- Publication number
- CN106156253A CN106156253A CN201510208644.4A CN201510208644A CN106156253A CN 106156253 A CN106156253 A CN 106156253A CN 201510208644 A CN201510208644 A CN 201510208644A CN 106156253 A CN106156253 A CN 106156253A
- Authority
- CN
- China
- Prior art keywords
- webpage
- html
- web page
- unit
- region
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides acquisition and the partial content of shared webpage the method and apparatus generating Web page bookmark.The method of the described partial content for obtaining webpage includes: in the element rendered from the region that user selects within showing described webpage on an electronic device, determine the element of the first kind;The spatial cue of the element according to the described first kind, the element for the described first kind creates corresponding HTML element;Capture the image for selected region;And based on the image captured and the HTML element created, generate HTML fragment.By utilizing the present invention, the partial content of the webpage obtained can have and the identical content selected by user and typesetting.
Description
Technical field
The present invention relates to for obtaining and sharing the method and apparatus of partial content of webpage, Yi Jiyong
In the method and apparatus generating Web page bookmark in the electronic device.
Background technology
Along with the development of the Internet, user obtains various by utilizing Web browser to browse webpage
Change information becomes more popular.Generally, as user, the most such as mobile phone, personal data help
Browse webpage and find the interested of this webpage on the electronic equipment of reason (PDA), notebook computer etc.
During part, this user wishes obtain the web page contents of this part interested and utilize such as electronics postal
The means of communication of part client, instant message (IM) instrument etc. and its friend share this corresponding web page
Content.
Recently, it has been suggested that some technology realize this function.The open technology used " take down notes by impression
Cut Tibetan (Evernote Web Clipper) " propose a kind of part for editing (clip) webpage
The method of content, the method comprises the following steps: by utilizing HTML (HTML)
DOM (DOM Document Object Model) API (application programming interface) of language obtains being chosen of webpage
Region;Determining the ancestor node (ancestor node) in selected region, searching loop belongs to this ancestral
Whole child nodes of first node and extract the web page contents of child node of searching loop, wherein, use
Intersect with selected region in the region rendering (render) extracted web page contents;Carried by utilization
The style (pattern) of the child node of the web page contents, the child node of searching loop and the searching loop that take,
Construct the HTML fragment partial content as the editing of webpage.
In the technology of use disclosed above, due to the DOM API by using html language
Obtaining selected region, the web page contents therefore extracted will include not intersecting with selected region
Web page contents, say, that the web page contents of extraction will include except rendering in selected region
Web page contents beyond extra web page contents.As a result, by Evernote Web Clipper editing
The partial content of webpage incomplete same with selected by user in content and typesetting.
Summary of the invention
Therefore, in view of the foregoing background in narration, the problem to be solved of the present invention be obtain
The partial content of webpage, wherein, it is thus achieved that webpage partial content and user selected by content
The most identical with in typesetting.
According to an aspect of the present invention, it is provided that a kind of method of partial content for obtaining webpage,
The method comprises determining that step, selects within showing described webpage on an electronic device from user
Region in the element that renders, determine the element of the first kind;Foundation step, according to described
The spatial cue of the element of one type, the element for the described first kind creates corresponding HTML
Element;Capture step, captures the image for selected region;And generation step, based on
The image captured and the HTML element created, generate HTML fragment, wherein, created
The HTML element built represents the semanteme of described webpage, and comes based on the HTML fragment generated
Obtain the described partial content of described webpage.
Wherein, the element of the above-mentioned first kind such as includes text based element and/or based on figure
The element of picture.It addition, only render the element of Second Type in the image captured, wherein, on
The element stating Second Type includes in addition to the element of the described first kind, in selected district
The element rendered in territory.
In order to the web page contents making the element of the first kind in the partial content of the webpage of acquisition is permissible
It is user-operably, such as, selects operation, replicate operation, preserve operation etc., the present invention is directed to the
The element of one type creates corresponding HTML element according to its spatial cue.It addition, the present invention catches
Obtain the image for the region selected.Therefore, it is thus achieved that the partial content of webpage can have and use
Identical content selected by family and in typesetting, and the partial content of the webpage obtained
The web page contents of the element of one type can be user-operably.
According to description referring to the drawings, other features of the present invention and advantage will be clear from.
Accompanying drawing explanation
Including in the description and constitute the accompanying drawing of a part of description exemplified with the enforcement of the present invention
Example, and it is used for explaining the principle of the present invention together with explanatory note.
Fig. 1 exemplified be capable of the embodiment of the present invention include the partial content for obtaining webpage,
The layout of the example system of the partial content sharing webpage the device generating Web page bookmark.
Fig. 2 is the block diagram of the example of the hardware configuration illustrating electronic equipment.
Fig. 3 is to illustrate the part for obtaining webpage according to one exemplary embodiment of the present invention
The flow chart of the method for content.
Fig. 4 schematically shows the flow process of the step for creating HTML element according to the present invention
Figure.
Fig. 5 schematically shows the flow process of the step for generating HTML fragment according to the present invention
Figure.
Fig. 6 schematically shows another of the step for generating HTML fragment according to the present invention
Flow chart.
Fig. 7 is the partial content for obtaining webpage illustrating the exemplary embodiment according to the present invention
The block diagram of device.
Fig. 8 is the partial content for sharing webpage illustrating the exemplary embodiment according to the present invention
The flow chart of method.
Fig. 9 is the partial content for sharing webpage illustrating the exemplary embodiment according to the present invention
The block diagram of device.
Figure 10 be illustrate the exemplary embodiment according to the present invention for the method generating Web page bookmark
Flow chart.
Figure 11 is the device for generating Web page bookmark illustrating the exemplary embodiment according to the present invention
Block diagram.
Figure 12 illustrates about the example of step of method of partial content for obtaining and share webpage
Property diagrammatic illustration and the image about the Web page bookmark generated according to embodiments of the invention.
Figure 13 illustrates the exemplary render tree of the present invention according to the embodiment in Figure 12.
Figure 14 A to Figure 14 C illustrates the pin created of the present invention according to the embodiment in Figure 12
To HTML element based on text element, created for html element based on pictorial element
The example code of the HTML fragment of element and generation.
Detailed description of the invention
Describe the exemplary embodiment of the present invention below with reference to accompanying drawings in detail.It should be noted that, below
Description be merely illustrative and be exemplary in nature, be in no way intended to limit the present invention and
Application or purposes.Unless otherwise indicated, the parts proposed in embodiment and step, numerical expression
And the positioned opposite of numerical value does not limits the scope of the invention.Additionally, to those skilled in the art
Technology, the method and apparatus known may be not discussed in detail, but be intended in appropriate circumstances
A part for description.
Note that the similar item that similar reference and letter refer in figure, the most once project
Being defined in one drawing, it need not be discussed in subsequent figure.
(hardware configuration)
Fig. 1 exemplified be capable of embodiments of the invention include the part for obtaining webpage in
The cloth of the example system 100 of the partial content holding, sharing webpage the device generating Web page bookmark
Put.
As shown in fig. 1, system 100 includes that the first electronic equipment 110 is as obtaining webpage
Partial content, share the partial content of webpage and generate the device of Web page bookmark.According to this example
First electronic equipment 110 of property embodiment is configured to via network 120 from multiple Web servers
(not shown) is downloaded webpage to the first electronic equipment 110 and shows downloaded webpage.First
The web page contents that electronic equipment 110 selects in being also structured to the webpage shown thereon for user
Generate HTML fragment.And, the first electronic equipment 110 is also structured to, such as with the second electricity
The user of subset 130 shares the partial content of the webpage selected by user obtained.It addition,
The webpage that first electronic equipment 110 selects in being also structured to the webpage shown thereon based on user
Content generates Web page bookmark.It will be apparent to one skilled in the art that, the second electronic equipment 130
Can also have the function identical with the first electronic equipment 110, say, that the second electronic equipment
130 can also act as partial content for obtaining webpage, share the partial content of webpage and generate net
The device of page bookmark.In the following example being described below, the first electronic equipment 110 will by with
Make such as obtaining the partial content of webpage, sharing the partial content of webpage and generate Web page bookmark
Device.
It addition, the first electronic equipment 110 and the second electronic equipment 130 can be such as mobile phone,
PDA, notebook computer, desktop computer, tablet PC or the equipment of other suitable personal devices.
Network 120 can be wireless network or cable network.
Fig. 2 is the first electronic equipment 110 in the Fig. 1 of the technology that illustration is capable of being described below
The block diagram of example of hardware configuration.First electronic equipment 110 can include CPU
(CPU) 210, random access memory (RAM) 220, read only memory (ROM) 230,
Hard disk 240, input equipment 250, display device 260, network interface 270 and system bus 280.
CPU 210 can be any suitable programmable control device and can be according to RAM
220, in ROM 230 or hard disk 240, the program of storage processes data and instruction.RAM 220
As when CPU 210 carries out various process, (such as performing will below by referring to Fig. 3 to Figure 12
The technology of middle detailed description) and carried out by the first electronic equipment 110 other functions time interim
Memorizer.(such as, hard disk 240 can store operating system (OS), Web browser, media
The webpage downloaded, generation/partial content of webpage that receives, the Web page bookmark of generation, generation
Web page browing history), program (such as, will be following by with reference to Fig. 3 to Figure 12 for realization
Other kinds of application software in the technology described in detail or the first electronic equipment 110) etc..
Input equipment 250 can allow user mutual with the first electronic equipment 110, such as user's energy
Enough regions selected on the first electronic equipment 110 in the webpage of display by input equipment 250.Separately
Outward, input equipment 250 can use various forms, such as button, keyboard, dial, click
Wheel or touch picture.Display device 260 can include cathode ray tube (CRT) or liquid crystal display
Device, can show from Web server (not shown in figure 1) download webpage, or display by
The partial content of the webpage that CPU 210 generates/receives, or the webpage that display is generated by CPU 210
Bookmark, etc..If additionally, the first electronic equipment 110 be so-called such as smart mobile phone, PDA,
Tablet PC or other suitable personal devices, then can integrally comprise input equipment 250
With display device 260.If it addition, the first electronic equipment 110 be so-called such as conventional mobile phone,
Notebook computer, desktop computer or other suitable personal devices, then can comprise input dividually
Equipment 250 and display device 260.
Network interface 270 provides the interface for the first electronic equipment 110 is connected to network 120.
First electronic equipment 110 can via network interface 270 carry out be connected via network 120 outside
The data communication of portion's Web server (not shown in figure 1).It addition, the first electronic equipment 110
The second electronic equipment 130 of being connected with via network 120 can also be carried out via network interface 270
Data communication.As selection, wave point can be provided to carry out the first electronic equipment 110
RFDC.System bus 280 can provide at CPU 210, RAM 220, ROM
230, between hard disk 240, input equipment 250, display device 260 and network interface 270 etc. that
This transmits the data transfer path of data.Although referred to as bus, but system bus 280 is not
It is limited to any specific data transferring technique.
Can have and the first electronic equipment it addition, be as noted previously, as the second electronic equipment 130
110 identical functions, therefore the second electronic equipment 130 can have and the first electronic equipment 110 phase
Same hardware configuration.
(method and apparatus for obtaining the partial content of webpage)
Fig. 3 is to illustrate the part for obtaining webpage according to one exemplary embodiment of the present invention
The flow chart of the method for content.
In the flow chart of Fig. 3 illustrated for obtain program needed for the partial content of webpage together with
(illustrated being used for altogether in the flow chart of Fig. 8 the most detailed below of other programs
Program needed for enjoying the partial content of webpage or the flow chart of Figure 10 detailed below
The program needed for generating Web page bookmark illustrated in) it is stored in together in hard disk 240.
When instruction (the such as user input instruction that CPU 210 is inputted by input equipment 250 according to user
Can be the Web browser icon of display in the display device 260 double-clicking the first electronic equipment 110)
When starting Web browser, in hard disk 240, the program of storage will be loaded in RAM 220.So
After, Web browser would correspond to the webpage of URL (URL) from Web server
(not shown in figure 1) downloads in RAM 220, and is shown at the first electronic equipment 110
Display device 260 on.It addition, the method making the present invention enable and user wish obtain
In display device 260 in the case of the web page contents of part interested downloading webpage of display,
CPU 210 can perform the flow chart of Fig. 3.After a while by the process of the flow chart of description also with identical
Mode is loaded in RAM 220 and is performed by CPU 210.
In the case of the method according to the invention is implemented in Web browser, it is alternatively that,
Can provide in Web browser and make the partial content for obtaining webpage according to the present invention
The option that method enables/do not enables (such as, " makes block select to enable (Enable Block
Selection) " check box).In this case, only when the method making the present invention enables,
CPU 210 will perform the flow chart of Fig. 3.In the case of providing this option, user can be permitted
Permitted method or the traditional method of the unrestricted choice present invention, to obtain web page contents adaptively.This
In, the content in the web page contents of webpage i.e. html page, such as content of text, image
Data, video data, hyperlinked information etc..
As shown in Figure 3, first, by input equipment 250, user can be at the first electronic equipment
The display device 260 of 110 selects in the webpage of display the region corresponding to part interested.Second,
Input equipment 250 will the selection operation of capture user, determine respective regions that user selects and will
The region selected is supplied to CPU 210.
In one embodiment, input equipment 250 can determine what user selected by following operation
Region: when user drags device pointer (the device pointer) of input equipment 250, input sets
Standby 250 location points that capture started device pointer when dragging and when terminating equipment when dragging
The location point of pointer;Then based on above-mentioned two location point, input equipment 250 will determine that user selects
The region selected.
In another is implemented, input equipment 250 can determine what user selected by following operation
Region: first, input equipment 250 can catch motion (motion) when user's driven equipment pointer
And identify the region that this motion covers;Then input equipment 250 can be when user's release apparatus pointer
Catch the point of device pointer and determine the region that the region of last record selects as user.Utilize
This mode, the region that user currently selects can be displayed in real-time on webpage, consequently facilitating use
Family determines the region that expectation selects.
Above two method is used for the input equipment equipped with device pointer, but, about not having
The input equipment of device pointer, such as, have touch function input equipment (such as, have tactile
Touch the input equipment of screen or there is the input equipment of touch panel), user can utilize finger to touch fortune
Dynamic etc. select region in a similar manner.
Then, in determining step S310, CPU 210 will be set from input by system bus 280
Standby 250 obtain the region selected, the whole elements rendered in the selected region of traversal, and from entirely
Portion's traversal element determines the element of the first kind.Wherein, in traversal element (that is, selected district
The element rendered in territory) in other elements in addition to the element of the first kind be considered the present invention
In the element of Second Type.The element rendered in selected region includes such as text based unit
Element, element based on image, element based on video etc..In the webpage of text based element
Appearance can be above-mentioned content of text, and the web page contents of element based on image can be above-mentioned picture number
According to, the web page contents of element based on video can be above-mentioned video data.
For determining that element belongs to which type of rule and can be made a reservation for by the designer of Web browser
Justice.Then CPU 210 can determine the type of element according to predefined rule.As preferably
Solution, the element of the first kind includes above-mentioned text based element and/or based on image
Element, other elements rendered in selected region (the most above-mentioned element based on video) can quilt
It is considered as the element of Second Type.
It addition, in foundation step S320, CPU 210 renders the element according to the first kind
Information to create corresponding HTML element for the element of the first kind.Wherein, HTML element is
The independent ingredient of the semanteme of webpage or the webpage of meaning can be represented.There is multiple html element
Element, such as title element, paragraph element etc., wherein, title element can represent the mark of webpage
Topic, paragraph element can represent the paragraph of webpage.
A kind of illustrative methods of corresponding HTML element is created such as the element for the first kind
Shown in Fig. 4.Fig. 4 be shown schematically in step S320 shown in Fig. 3 is carried out for creating
Build the flow chart of the step of HTML element.
As shown in Figure 4, for each element in the first kind, first, CPU 210 will be in step
Rapid S321 judges that this element is the element that text based element is also based on image.If element
Be text based element, then CPU 210 will be for this text based element in step S322
Corresponding HTML element is created, if element is element based on image, then according to its spatial cue
CPU 210 will create according to its spatial cue for this element based on image in step S323
Corresponding HTML element.
Then, in step S324, CPU 210 will determine that text based element or based on figure
Whether the element of picture is linking element, and wherein, linking element is the HTML with hyperlinked information
Element.If CPU 210 judges that text based element or element based on image are link units
Element, then its by step S325 by the link information of respective element (that is, above-mentioned hyperlinked information)
It is attached to the HTML element created.If CPU 210 judge text based element or based on
The element of image is not linking element, then it will carry out capture step S330 being described below.
As preferred solution, carry out in step S322 shown in Fig. 4 for for based on
The element of text creates a kind of illustrative methods of corresponding HTML element and may comprise steps of:
First, in step S3221, CPU 210 will obtain showing at the first electronic equipment 110
The first of the text based element shown in equipment 260 in the webpage of display renders rectangle, wherein,
First to render rectangle be the rectangle for rendering the content of text in webpage.
CPU 210 can utilize following two method to obtain first and render rectangle.A kind of method is
By utilizing the InlineTextBox in render tree (hereinafter will describe by referring to Figure 13) to obtain
The position of each character of the content of text rendered in webpage and size, position based on described character
Determine region with size, and region determined by general is considered as first and renders rectangle.Another kind of method
Being position and the size in one region of record, wherein Web browser utilizes above-mentioned in this region
The InlineTextBox content of text to rendering in webpage carries out typesetting, and by this posting field
It is considered as first and renders rectangle.
Second, in step S3222, CPU 210 will determine that first renders rectangle and selected district
The first intersecting area between territory.
3rd, in step S3223, CPU 210 renders being extracted in the first intersecting area
Content of text and the spatial cue of corresponding content of text.Wherein, the spatial cue of content of text is also
It it is exactly the spatial cue of the element of the above-mentioned first kind.It is as noted previously, as by utilizing
InlineTextBox renders content of text in webpage, on therefore the spatial cue of content of text is also
State the spatial cue of InlineTextBox.It addition, the spatial cue of content of text at least includes text
Pattern (the word of such as content of text of the position of content, the size of content of text and content of text
Body, font size, color), and the position of content of text is that the first intersecting area is relative to selected
Select the position in region.
Finally, in step S3224, CPU 210 is by according to the content of text extracted and corresponding
The above-mentioned spatial cue of content of text to construct corresponding HTML element for text based element.
As preferred solution, carry out in step S323 shown in Fig. 4 for for based on
The element of image creates a kind of illustrative methods of corresponding HTML element and may comprise steps of:
First, in step S3231, CPU 210 will obtain showing at the first electronic equipment 110
The second of the element based on image shown in equipment 260 in the webpage of display renders rectangle, wherein,
Second to render rectangle be the rectangle for rendered image data in webpage.
In one embodiment, CPU 210 can utilize following methods to obtain second and render rectangle:
The record position in one region and size, wherein Web browser utilize in this region render tree (under
Literary composition will describe by referring to Figure 13) in the RenderImage image to rendering in webpage
Data carry out typesetting, and this posting field is considered as second renders rectangle.
Second, in step S3232, CPU 210 will determine that second renders rectangle and selected district
The second intersecting area between territory.
3rd, in step S3233, CPU 210 will extract the son rendered in the second intersecting area
View data and the spatial cue of corresponding sub-image data.Wherein, sub-image data is second
Rendering a part for the view data rendered in rectangle, the spatial cue of sub-image data is namely gone up
State the spatial cue of the element of the first kind.It is as noted previously, as by utilizing RenderImage
Rendered image data in webpage, the therefore spatial cue of view data (that is, sub-image data)
Also it is the spatial cue of above-mentioned RenderImage.It addition, the spatial cue of sub-image data is at least
Pattern (such as sub-image data big including the position of sub-image data and sub-image data
Little), and the position of sub-image data is second intersecting area position relative to selected region.
Finally, in step S3234, CPU 210 is by according to the sub-image data extracted and phase
The above-mentioned spatial cue answering sub-image data to construct corresponding html element for element based on image
Element.
In order to make the present invention be easier to understand, now with reference to Figure 12, Figure 13 and Figure 14 A to figure
14B makes the explanatory illustration figure for step S322 in Fig. 4 and S323.As it has been described above,
Just in the display device 260 of the first electronic equipment 110 display webpage in fig. 12 1201
Shown in, the region selected by the user of solid marks in fig. 12 1202 shown in.As
Upper described, the element of content of text and the element of view data correspond to the element of the first kind, depending on
The element of frequency evidence is corresponding to the element of Second Type.So, when the above-mentioned steps implemented in Fig. 4
During S322 and S323, the first of the text based element of labelling renders rectangle at figure by a dotted line
Shown in 12 1202, render rectangle by the second of the element based on image of marked with dotted lines
Shown in 1202 the most in fig. 12.
It addition, the spatial cue being as noted previously, as the element of the first kind can reflect corresponding to
The position of the web page contents of the element of the first kind and pattern, therefore, in order to make spatial cue more hold
Readily understood, it is illustrated in fig. 13 according to the exemplary render tree of the embodiment in Figure 12, wherein,
Render tree can represent composition information and the spatial cue of webpage.As shown in Figure 13, with certain text
As a example by content, RenderText 1310 is for rendering the content of text of the webpage in Figure 12
“TextAAAAAAA”.RenderText 1311 is for rendering the content of text of webpage
" textBBBBBBBB " and " textCCCCCC ".RenderText 1312 is used for rendering webpage
The content of text with hyperlinked information " hyperlink1 ".RenderEmbeddedObject 1313
For rendering the video data " Video " of webpage.RenderImage 1314 is for rendering the figure of webpage
As data " Image ".
When above-mentioned steps S322 in Fig. 4 and S323 are carried out, content of text
The first of " TextAAAAAAA " renders rectangle corresponding to the InlineTextBox shown in Figure 13
Bounding box.The first of content of text " textBBBBBBBB " and " textCCCCCC " renders
Rectangle corresponds respectively to bounding box and the limit of InlineTextBox 1322 of InlineTextBox 1321
Boundary's frame.There is first the rendering rectangle and correspond to of content of text of hyperlinked information " hyperlink1 "
The bounding box of InlineTextBox 1323.And the second of view data " Image " renders rectangle pair
Should be in the bounding box of RenderImage 1313.
It addition, based on the above-mentioned render tree in Figure 13, according to the pin of the embodiment shown in Figure 12
To the respective code example of the HTML element that text based element creates with for based on image
The respective code example of the HTML element that element creates is shown respectively in Figure 14 A to Figure 14 B
Go out.
Referring back to Fig. 4, as preferred solution, carry out in step S325 shown in Fig. 4
Can include for a kind of illustrative methods of HTML element being attached to link information to create
Following steps:
First, the HTML element created is enclosed in (wrap) anchor element by CPU 210, its
In, anchor element is one of HTML element, and anchor element can be by URL link to webpage
Certain content of text.
Then, the position of anchor element is set to the position of created HTML element by CPU 210,
Wherein, the position of the HTML element created i.e. the above-mentioned literary composition for text based element
The position of this content or the position of the sub-image data for element based on image.
Referring back to Fig. 3, in capture step S330, CPU 210 will capture for selected district
The image in territory.Finally, in generation step S340, CPU 210 will be based on from capture step S330
The HTML element of the capture image obtained and the establishment obtained from foundation step S320 generates
HTML fragment, wherein, obtains the partial content of webpage based on the HTML fragment generated.Example
As, CPU 210 can obtain the sectional drawing in selected region as capture figure in capture step S330
Picture, the HTML of establishment that then will can obtain from foundation step S320 in generation step S340
Element is attached directly to capture image.In one embodiment, CPU 210 can be by following operation
Obtain the sectional drawing in selected region: obtain the pixel data in selected region and by this pixel count
According to boil down to picture format to form image.
It is as noted previously, as the HTML element of the element establishment for the first kind according to the first kind
The spatial cue of the element of type is created, and it is right that the spatial cue of the element of the first kind can reflect
Should be in the position of the web page contents of the element of the first kind and pattern, therefore in generation step S340
When the HTML element of establishment is attached to the image of capture, the HTML element of establishment can be complete
Cover the web page contents of the element corresponding to the first kind in captured images.So, generation
HTML fragment can have and the identical content selected by user and typesetting.
In some particular condition, the fontlib of the electronic equipment of such as recipient is different from sharer
Fontlib, exist following may: in generation step S340 by create HTML element attached
When being added to capture image, the HTML element of establishment can not be completely covered corresponding in capture image
The web page contents of the element of the first kind.It is to say, in some cases it may happen that ghost image feelings
Condition.
In order to avoid above-mentioned ghost image situation, as preferred solution, in capture step S330,
CPU 210 can be for the element of the most above-mentioned Second Type coloured selection areas captured image.
Step S330 shown in Fig. 3 is carried out for the coloured choosing of element for only Second Type
A kind of illustrative methods selecting areas captured image may comprise steps of:
First, CPU 210 will cannot see that with user the Stealth Modus of description region is to describe correspondence
New region in selected region.When describing the new region corresponding to selected region, CPU 210
The drawing processing of the element of Second Type will be carried out and the description of the element of the first kind will not carried out
Processing, the most only element of Second Type is rendered in description region.
Then, CPU 210 using obtain description region sectional drawing as capture image.An enforcement
In, CPU 210 can obtain the sectional drawing of description region by following operation: obtains description region
Pixel data and be that picture format is to form image by this pixel data compression.
In order to make the present invention be easier to understand, make now with reference to Figure 12 and walking for the capture in Fig. 3
The explanatory illustration figure of rapid S330.After above-mentioned capture step S330 in implementing Fig. 3, for
The capture image in selected region in fig. 12 1203 in be illustrated, wherein, correspond only to the
The web page contents of the element of two types is rendered in capture image.It should be noted that, the actual nothing of user
Method sees capture image.
It addition, in generation step S340, CPU 210 by element based on only Second Type by wash with watercolours
The capture image of dye and the HTML element of establishment obtained from foundation step S320 generate
HTML fragment.More specifically, the element utilizing the most only Second Type is rendered by CPU 210
Capture image as background image and utilize the HTML element of establishment to generate as child node
HTML fragment.In order to make the present invention be easier to understand, make now with reference to Figure 12 and Figure 14 C
Explanatory illustration figure for generation step S340 in Fig. 3.Above-mentioned generation in implementing Fig. 3
After step S340, the partial content of the webpage that the HTML fragment generated by utilization is obtained is at figure
In 12 shown in 1204.It addition, based on the above-mentioned render tree in Figure 13, according to the reality in Figure 12
Execute the respective code example of the HTML fragment that example generates shown in Figure 14 C.
Utilize only Second Type element coloured capture image, for generating HTML fragment
A kind of illustrative methods figure 5 illustrates.Fig. 5 schematically shows the step illustrated in Fig. 3
The flow chart of the step for generating HTML fragment carried out in S340.
As shown in Figure 5, first, in step S3401, CPU 210 will construct with the most only
The block element that element coloured capture image is background image of Second Type.Wherein, block element
It is one of HTML element and the container/case being used as preserving web page contents.
Second, in step S3402, CPU 210 is by by adding to the HTML element created
Overflow (overflow) attribute and carry out the HTML element that perfect (refine) creates.Wherein, overflow
Attribute is one of html attribute, and html attribute is the modification device of HTML element.Overflow attribute
It is used for defining how to process overflowing the web page contents rendering rectangle accordingly.Such as, attribute
" overflow:hidden " represents and will not show that spilling renders the web page contents of rectangle, attribute accordingly
" overflow:scoll " represents and is overflowed in the webpage rendering rectangle accordingly with display by structure scroll bar
Hold.
Finally, in step S3403, CPU 210 is by by adding perfect HTML to block element
Element generates HTML fragment as the child node of block element.
As an example, the present invention can use attribute in above-mentioned steps S3402
" overflow:hidden " improves the HTML element created, so, when having different points
Generation is shown on other electronic equipments (such as the second electronic equipment 130 shown in Fig. 1) of resolution
HTML fragment time, the display of spilling the second electronic equipment 130 in the HTML fragment of generation
The web page contents rendering region accordingly of equipment will not display to the user that.
Therefore, by utilizing the said method shown in Fig. 5, when having other of different resolution
On electronic equipment, (such as the second electronic equipment 130 shown in Fig. 1) display is based on the HTML generated
During the partial content of webpage that fragment obtains and when the situation of spilling occurs, the present invention can be true
Protect and display to the user that as much as possible on the partial content of webpage of the element corresponding to the first kind
Web page contents.
Figure 6 illustrates that utilize the element coloured capture image of only Second Type, for
Generate the another exemplary method of HTML fragment.Fig. 6 is shown schematically in the step shown in Fig. 3
Another flow chart of the step for generating HTML fragment carried out in rapid S340.
As shown in Figure 6, first, in step S3411, CPU 210 will construct with the most only
The block element that element coloured capture image is background image of Second Type.
Second, in step S3412, CPU 210 is by by adding the HTML element of establishment
HTML fragment is generated as the child node of block element to block element.
Finally, in step S3413, CPU 210 will be attached for each text based element
Add the script for adjusting the font size of content of text rendered in the HTML fragment generated.
Wherein, the script of the font size for adjusting content of text comprises the following steps:
First, CPU 210 will for will other electronic equipments (such as shown in Fig. 1 second electricity
Subset 130) on the text based element that renders determine that the 3rd renders rectangle.In one embodiment,
CPU 210 can make to determine that the 3rd renders rectangle using the following method: obtains the second electronic equipment 130
The resolution of display device, determine based on the resolution obtained and wherein can render web page contents
The display device of the second electronic equipment 130 render region, and the region that renders determined is considered as
3rd renders rectangle.
Then, if the 3rd size rendering rectangle is more than the corresponding first size intersecting rectangle, then
CPU 210 is by reduce will be in the 3rd font size rendering the content of text rendered in rectangle.
Therefore, by using the said method shown in Fig. 6, when having other of different resolution
The upper display of electronic equipment (such as the second electronic equipment 130 shown in Fig. 1) is based on the HTML generated
During the partial content of webpage that fragment obtains, overflow the phase of the display device of the second electronic equipment 130
The font size of the content of text on the partial content of the webpage that should render region is by reduced, thus
The whole web page contents on the partial content of webpage can be displayed to the user that.
Being as noted previously, as the element of the first kind is text based element and/or based on image
Element, therefore, in order to make the net of the element of the first kind in the partial content of the webpage of acquisition
Page content can be user-operably, in the above-mentioned foundation step S320 shown in Fig. 3, and pin of the present invention
The element of the first kind is created corresponding HTML element according to its spatial cue.Owing to rendering letter
Breath can reflect position and the pattern of the web page contents corresponding with the element of the first kind, therefore obtains
Webpage partial content in the web page contents corresponding to the element with the first kind of display can have
The identical content selected with user and typesetting.It addition, walk in the above-mentioned establishment shown in Fig. 3
In rapid S320, if the respective element of the first kind is linking element, then link is also believed by the present invention
Breath be attached to create HTML element on, so, it is thus achieved that webpage partial content on hyperlink
Connect and directly can also be accessed by user.
As it has been described above, for be included in the region of selection renders in addition to the element of the first kind
The element of Second Type of element, in above-mentioned capture step S330 shown in Fig. 3, the present invention
Capture the image for the region selected, or preferably, the present invention captures for the most only second
The image in the element coloured selection region of type.Therefore, it is thus achieved that webpage partial content in
The web page contents that the element with Second Type of display is corresponding can have the complete phase selected with user
Same content and typesetting.That is, it is thus achieved that the partial content of webpage have and user selects
Identical content and typesetting.
For those skilled in the art it is obvious that the foundation step S320 shown in Fig. 3 with capture step
The sequence of operation between S330 is not limited to above-mentioned enforcement.It addition, foundation step S320 and capture step
S330 can operate in a parallel mode or not have spy at foundation step S320 with capture step S330
Operate under the serial mode of different order.
Fig. 7 is the partial content for obtaining webpage illustrating the exemplary embodiment according to the present invention
The block diagram of device 700.
As shown in Figure 7, according to the part for obtaining webpage of the exemplary embodiment of the present invention
The device 700 of content comprise determining that unit 710, creating unit 720, capturing unit 730 and
Signal generating unit 740.
More specifically, determine that unit 710 is configured to from user in electronic equipment (such as Fig. 1 institute
The first electronic equipment 110 shown) upper display webpage in the element that renders in the region that selects determines
The element (step S310 corresponding in Fig. 3) of the first kind.
Creating unit 720 is configured to the spatial cue of the element according to the first kind for the first kind
The element of type creates and represents the semantic corresponding HTML element of webpage (corresponding to the step in Fig. 3
S320)。
Capturing unit 730 is configured to for selected areas captured image.Preferably, capture is single
Unit 730 may be constructed such that the coloured selection areas captured image of the element for only Second Type
(step S330 corresponding in Fig. 3).Wherein, the element of Second Type is to select to render in region
Element in the middle of the element in addition to the element of the first kind.
Signal generating unit 740 is configured to image based on capture and the HTML element next life of establishment
Becoming HTML fragment, wherein, the partial content of webpage can carry out quilt based on the HTML fragment generated
Obtain (step S340 corresponding in Fig. 3).
Unit in device 700 may be constructed such that the flow chart institute carried out in Fig. 3 to Fig. 6
Each step shown.
As it has been described above, CPU 210 is by according to the said method shown in Fig. 3 to Fig. 6 or pass through Fig. 7
Shown in the partial content storage hard disk 240 in fig. 2 of webpage that obtains of said apparatus 700
In for subsequent applications, such as utilize means of communication to share the part of the webpage obtained with friends
Content, generate Web page bookmark, set up reading histories etc..Application detailed below according to
The present invention for obtain webpage partial content method and apparatus, for sharing the portion of webpage
The method and apparatus dividing content.It addition, application is hereinafter described in detail further according to the present invention's
For obtain the method and apparatus of the partial content of webpage, for generate Web page bookmark method and
Device.
(method and apparatus for sharing the partial content of webpage)
Fig. 8 is the partial content for sharing webpage illustrating the exemplary embodiment according to the present invention
The flow chart of method, wherein, the partial content for obtaining webpage shown in Fig. 3 to Fig. 6
Said method can be employed.
As shown in Figure 8, first, when user is just on the first electronic equipment 110 shown in Fig. 1
Browse webpage and find the part interested of this webpage and this user still want to and just use Fig. 1 institute
When the friend of the second electronic equipment 130 shown shares the corresponding web page content of part interested, pass through
Input equipment 250 in Fig. 2 of first electronic equipment 110, this user can be at the first electronic equipment
The display device 260 of 110 selects in the webpage of display the region corresponding with part interested.Second,
Input equipment 250 can capture the selection operation of user, determine respective regions that user selects and
The region of selection is supplied to the CPU 210 shown in Fig. 2.
Then, in obtaining step S810, the CPU 210 of the first electronic equipment 110 will be by being
System bus 280 obtains the region selected from input equipment 250.
In obtaining step S820, CPU 210 is by by utilizing the above-mentioned use shown in Fig. 3 to Fig. 6
Method in the partial content obtaining webpage obtains the part of the webpage corresponding with selected region
Content.
Finally, in shared step S830, CPU 210 will utilize means of communication (such as mail visitor
Family end, IM instrument etc.) with the webpage just using the friend of the second electronic equipment 130 to share acquisition
Partial content.
Fig. 9 is the partial content for sharing webpage illustrating the exemplary embodiment according to the present invention
The block diagram of device 900, wherein, the partial content for obtaining webpage shown in Fig. 7 above-mentioned
Device 700 can be applied as the ingredient of device 900.
As shown in Fig. 9, according to the part for sharing webpage of the exemplary embodiment of the present invention
The device 900 of content includes: the above-mentioned part for obtaining webpage in acquiring unit 910, Fig. 7
The device 700 of content, and shared cell 920.
More specifically, acquiring unit 910 be configured to obtain user all as shown in Figure 1 first
The region selected in the webpage of display on the electronic equipment of electronic equipment 110 is (corresponding in Fig. 8
Step S810).
The device 700 of the above-mentioned partial content for obtaining webpage is configured to obtain and selected district
The partial content (step S820 corresponding in Fig. 8) of the webpage that territory is corresponding.
Shared cell 920 is configured to utilize means of communication (the most just using the second electricity with its friend
The people of subset 130) share the partial content of the webpage obtained (corresponding to the step in Fig. 8
S830)。
Each device and unit in device 900 may be constructed such that institute in the flow chart carried out in Fig. 8
The each step shown.
Due to by utilize the present invention to generate will be with recipient's (such as the second electronics shown in Fig. 1
The user of equipment 130) partial content of shared webpage, therefore recipient can obtain and send
It is identical that person (the such as user of the first electronic equipment 110 shown in Fig. 1) wants to share
Content and typesetting, the unit of the first kind in the partial content of the webpage that recipient can operate reception
The corresponding web page content of element, such as recipient can select and replicate the corresponding of the element of the first kind
Hyperlink on web page contents, and the partial content of the recipient's webpage that can also directly access reception
Connect.
(method and apparatus for generating Web page bookmark)
Figure 10 be illustrate the exemplary embodiment according to the present invention for the method generating Web page bookmark
Flow chart, wherein, the above-mentioned side of partial content for obtaining webpage that Fig. 3 to Fig. 6 illustrates
Method can be employed.
As shown in Figure 10, all the first electronic equipments 110 as shown in Figure 1 are being browsed as user
Electronic equipment on display webpage time, this user may wish to based on self select web page contents
Generate the Web page bookmark for browsed webpage, thus this user can easily visit afterwards again
Ask this webpage.
So, first, by the input equipment 250 in Fig. 2 of the first electronic equipment 110, user
Can key in for the input for the auto-building html files Web page bookmark just browsed.Then, identifying
In step S1010, identification is used for generating user's input of Web page bookmark by CPU 210, and will
Present for generating Web page bookmark on display device 260 in Fig. 2 of the first electronic equipment 110
Interface.
Second, by input equipment 250, user can select it to want for generating Web page bookmark
The coloured region of web page contents.Then, input equipment 250 can capture the selection operation of user,
Determine respective regions that user selects and the region of selection is supplied to CPU 210.It addition,
In obtaining step S1020, CPU 210 will be obtained from input equipment 250 by system bus 280
Select region.
In obtaining step S1030, CPU 210 is by by utilizing being used for shown in Fig. 3 to Fig. 6
The said method of the partial content obtaining webpage obtains the part of the webpage corresponding to selected region
Content.
Finally, in generation step S1040, CPU 210 is by the part utilizing the webpage obtained
The relevant information of appearance and webpage is for auto-building html files Web page bookmark, wherein, and the relevant information of webpage
At least include the URL of webpage.It addition, the relevant information of webpage can also include webpage title or
The summary of webpage, is not specially limited this.
In one embodiment, about for auto-building html files Web page bookmark, CPU 210 will be according to following
Step generation Web page bookmark:
First, CPU 210 by set up partial content and the webpage of the webpage obtained relevant information it
Between mapping relations.Owing to the relevant information of webpage includes the URL of webpage, the mapping hence set up
Relation can reflect what the URL of the Web page bookmark of generation is.
Second, CPU 210 by obtain webpage partial content together with set up mapping relations
As the Web page bookmark record of webpage in the Web page bookmark list of Web browser.
After Web page bookmark is generated, when user thinks the most again to access this webpage, this user
The webpage book corresponding to this webpage can be found by reading the web page contents of display on Web page bookmark
Sign, and click on.Then, Web browser is by according to the foundation in the Web page bookmark clicked on
Mapping relations start corresponding web page.
In order to make the present invention be easier to understand, make according to shown in Figure 10 now with reference to Figure 12
The example web page bookmark that generation method generates.When user's webpage clicking bookmarks button 1206, bag
The Web page bookmark row of the many Web page bookmarks generated containing such as Bookmark 2 and Bookmark 3
Table 1208 will be shown, as shown in Figure 12 1205.
Assume that just shown in the display device 260 of the first electronic equipment 110 webpage is at Figure 12
In 1201 in be illustrated, when user wants to this auto-building html files Web page bookmark, this user can
Add button 1207 with webpage clicking bookmark and select it to want the district for generating Web page bookmark
Shown in territory, such as Figure 12 1202 by the selection region of solid marks, then the first electronics
Equipment 110 by according in the generation method shown in Figure 10 for this auto-building html files Web page bookmark, such as
The Bookmark 4 of display in Web page bookmark list 1208 shown in 1205 in fig. 12.
As shown in Figure 12,4 Web page bookmarks are generated, but the first electronics in Fig. 1 sets
The display device 260 of standby 110 the most only can show 3 Web page bookmarks, after user can click on
Move back/forwarding button (not shown) select generate Web page bookmark.
Figure 11 is the device for generating Web page bookmark illustrating the exemplary embodiment according to the present invention
The block diagram of 1100, wherein, for obtaining the said apparatus 700 of the partial content of the webpage shown in Fig. 7
The ingredient of device 1100 can be applied to.
As shown in Figure 11, according to the exemplary embodiment of the present invention for generating Web page bookmark
Device 1100 includes: being used in recognition unit 1110, acquiring unit 1120, Fig. 7 obtains webpage
The said apparatus 700 of partial content and signal generating unit 1130.
More specifically, recognition unit 1110 is configured to identify for for just in electronic equipment (example
First electronic equipment 110 as shown in Figure 1) in the user of auto-building html files Web page bookmark that browsed
Input (step S1010 corresponding in Figure 10).
Acquiring unit 1120 is configured to obtain the region that selects in webpage of user (corresponding to Figure 10
In step S1020).
It is configured to obtain corresponding to selected for obtaining the said apparatus 700 of the partial content of webpage
Select the partial content (step S1030 corresponding in Figure 10) of the webpage in region.
Signal generating unit 1130 is configured to the partial content of the webpage that utilization obtains and the relevant of webpage
Information generates the Web page bookmark for webpage, and wherein, the relevant information of webpage at least includes webpage
URL (step S1040 corresponding in Figure 10).
Each device and unit in device 1100 may be constructed such that the flow chart institute carried out in Figure 10
Each step shown.
The web page contents of the webpage owing to selecting based on user in the present invention generates Web page bookmark,
It is to say, based on by utilizing the partial content of webpage that the present invention obtains to generate Web page bookmark,
The Web page bookmark so generated can show wishes, with user, the complete phase that preserved in Web page bookmark
Same content and typesetting.It addition, CPU 210 such as will set at different electronics for subsequent applications
Web page bookmark is shared, by according to the said method shown in Figure 10 or by shown in Figure 11 in Bei
The Web page bookmark storage hard disk 240 in fig. 2 that generates of said apparatus 1100 in.
Above-mentioned whole unit be for realize the exemplary of process described in the disclosure and/or
Preferred module.These unit can be hardware cell (such as field programmable gate array (FPGA)),
Digital signal processor, special IC etc.) and/or software module (such as computer-readable
Program).For realizing the unit of each step in the most detailed above description.But, simply by the presence of entering
The certain step processed of row, then there may be the corresponding function module for realizing same treatment or list
Unit's (being realized by hardware and/or software).By the step described and corresponding to these steps
The technical solution of whole combinations of unit be included in disclosure herein text, as long as
The technical scheme of they structures is complete and applicable.
It addition, the program corresponding to the said method in Fig. 3 to Fig. 6, Fig. 8 and Figure 10 is permissible
In hard disk 240 in the Fig. 2 of the first electronic equipment 110 being stored in Fig. 1.
If it addition, the device 700 in the Fig. 7 constructed by each unit, the device 900 in Fig. 9 with
And/or the device 1100 in Figure 11 is partly or entirely by software construction, then it can be stored in figure
In hard disk 240 in Fig. 2 of the first equipment 110 in 1.On the other hand, if the dress in Fig. 7
Put 700, device 1100 in device 900 and/or Figure 11 in Fig. 9 is partly or entirely by firmly
Part or firmware configuration, it is also used as functional module and is merged in the first electronic equipment 110, as long as
First electronic equipment 110 exists in the part of the partial content for obtaining webpage, shared webpage
Perhaps generate the needs of Web page bookmark.Certainly, the first electronic equipment 110 except this device 700,
900 or 1100 outer also other hardware or software component elements.
As it has been described above, the method according to the invention and device are applicable to various electronic equipment, it is also suitable
In there is partial content, the partial content of shared webpage obtaining webpage or generating Web page bookmark
The various application of function or various equipment.
Methods and apparatus of the present invention can be performed in many ways.For instance, it is possible to by software,
Hardware, firmware or its combination in any perform methods and apparatus of the present invention.For the method
The order stating step is intended only to illustrate, unless specifically stated otherwise, and the step of the method for the present invention does not limit
Order in above specific description.Additionally, in certain embodiments, the present invention is also implemented as
The program of record in record medium, described program includes the machine for realizing the method according to the invention
Device instructions.So, the present invention also covers storage for the journey realizing the method according to the invention
The record medium of sequence.
Although utilized example to demonstrate some specific embodiments of the present invention in detail, but this area
It will be appreciated by the skilled person that above example is intended only to illustrate, it does not limit the scope of the invention.This
Skilled person should be appreciated that and can revise in the case of without departing substantially from the scope of the invention and purport
Above example.The scope of the present invention is defined by the following claims.
Claims (25)
1., for the method obtaining the partial content of webpage, the method includes:
Determine step, from the region that user selects within showing described webpage on an electronic device
In the element rendered, determine the element of the first kind;
Foundation step, according to the spatial cue of the element of the described first kind, for the described first kind
The element of type creates corresponding HTML element;
Capture step, captures the image for selected region;And
Generation step, based on the image captured and the HTML element created, generates HTML
Fragment,
Wherein, the HTML element created represents the semanteme of described webpage, and based on being generated
HTML fragment obtain the described partial content of described webpage.
Method the most according to claim 1, wherein, only renders in the image captured
The element of two types, and the element of described Second Type be render in selected region,
Element in addition to the element of the described first kind.
Method the most according to claim 1, wherein, the element of the described first kind includes base
Element and/or element based on image in text.
Method the most according to claim 3, wherein, for a unit of the described first kind
Element, described foundation step includes:
According to the spatial cue of described element, create corresponding html element for described element
Element;And
In the case of described element is linking element, the link information of described element is attached to institute
The HTML element created.
Method the most according to claim 4, wherein, described accordingly for the establishment of described element
The described step of HTML element include:
Obtain the described element in described webpage renders rectangle;
Determine the intersecting area rendering between rectangle and selected region obtained;
The web page contents that renders in intersecting area determined by being extracted in and corresponding web page contents
Spatial cue;And
According to the web page contents extracted and the spatial cue of corresponding web page contents, for described
Element constructs corresponding HTML element.
Method the most according to claim 5, wherein, the spatial cue of described web page contents is extremely
Include the position of described web page contents, the size of described web page contents and described web page contents less
Pattern, and the position of described web page contents be determined by intersecting area relative to selected district
The position in territory.
Method the most according to claim 4, wherein, the described step of additional described link information
Suddenly include:
The HTML element created is enclosed in anchor element;And
The position of described anchor element is set to the position of created HTML element.
Method the most according to claim 2, wherein, described capture step includes:
Describe the region corresponding with selected region, wherein, the region described to be carried out described
The drawing processing of the element of Second Type, and the region described is not carried out the described first kind
The drawing processing of element;And
Obtain the sectional drawing in the region described as the image captured.
Method the most according to claim 2, wherein, described generation step includes:
Construct the block element using the image captured as background image;
Come perfect created by adding overflow attribute to the HTML element created
HTML element;And
Described HTML fragment is generated by adding perfect HTML element to described piece of element.
Method the most according to claim 5, wherein, described generation step includes:
Construct the block element using the image captured as background image;
By generating described HTML sheet to described piece of additional the created HTML element of element
Section;And
For text based element additional scripts, this script is for adjusting at the HTML generated
The font size of the described web page contents rendered in fragment.
11. methods according to claim 10, wherein, described for adjusting font size
Script comprises the following steps:
For the text based element to render on other electronic equipments, determine and render rectangle;
And
The size feelings more than the size of the crossing rectangle determined accordingly of rectangle are rendered determined by
Under condition, reduce will determined by render the font size of the described web page contents rendered in rectangle.
12. 1 kinds are used for the method sharing the partial content of webpage, and described method includes:
Obtaining step, obtains the region that user selects in described webpage;
Obtain step, by utilizing according to any one institute in claim 1 to claim 11
The method stated, obtains the partial content of the described webpage corresponding with selected region;And
Share step, share the partial content of the described webpage obtained.
13. 1 kinds are used for the method generating Web page bookmark, and described method includes:
Identification step, identifies for for the auto-building html files webpage book browsed the most in the electronic device
The user's input signed;
Obtaining step, obtains the region that user selects in described webpage;
Obtain step, by utilizing according to any one institute in claim 1 to claim 11
The method stated, obtains the partial content of the described webpage corresponding with selected region;And
Generation step, utilizes partial content and the relevant letter of described webpage of the described webpage obtained
Breath, for Web page bookmark described in described auto-building html files, wherein, the described relevant information of described webpage
At least include the URL of described webpage.
14. 1 kinds of devices being used for obtaining the partial content of webpage, this device includes:
Determining unit, it is configured to select within showing described webpage on an electronic device from user
In the element rendered in the region selected, determine the element of the first kind;
Creating unit, it is configured to the spatial cue of the element according to the described first kind, for
The element of the described first kind creates corresponding HTML element;
Capturing unit, it is configured to capture the image for selected region;And
Signal generating unit, it is configured to based on the image captured and the HTML element created,
Generate HTML fragment,
Wherein, the HTML element created represents the semanteme of described webpage, and based on being generated
HTML fragment obtain the described partial content of described webpage.
15. devices according to claim 14, wherein, only wash with watercolours in the image of described capture
Contaminate the element of Second Type, and the element of described Second Type is to render in selected region
, element in addition to the element of the described first kind.
16. devices according to claim 14, wherein, the element of the described first kind includes
Text based element and/or element based on image.
17. devices according to claim 16, wherein, described creating unit includes:
It is configured to an element for the described first kind, spatial cue according to described element
The unit of corresponding HTML element is created for described element;And
It is configured to an element for the described first kind, is linking element at described element
In the case of the link information of described element is attached to the unit of created HTML element.
18. devices according to claim 17, wherein, are configured to create for described element
The described unit building corresponding HTML element includes:
It is configured to obtain the unit rendering rectangle of the described element in described webpage;
It is configured to determine the intersecting area rendered between rectangle and selected region that obtained
Unit;
It is configured in intersecting area determined by being extracted in the web page contents that renders and corresponding net
The unit of the spatial cue of page content;And
Be configured to according to the web page contents extracted and the spatial cue of corresponding web page contents,
The unit of corresponding HTML element is constructed for described element;
Wherein, the spatial cue of described web page contents at least includes the position of described web page contents, institute
State size and the pattern of described web page contents of web page contents, and the position of described web page contents
Intersecting area determined by being is relative to the position in selected region.
19. devices according to claim 17, wherein, are configured to additional described link letter
The described unit of breath includes:
It is configured to the HTML element created is enclosed the unit in anchor element;And
It is configured to be set to the position of described anchor element the position of created HTML element
Unit.
20. devices according to claim 15, wherein, described capturing unit includes:
It is configured to describe the unit in the region corresponding with selected region, wherein, to being described
Region carry out the drawing processing of element of described Second Type, and the region described is not carried out
The drawing processing of the element of the described first kind;And
It is configured to the sectional drawing obtaining the region the described unit as the image captured.
21. devices according to claim 15, wherein, described signal generating unit includes:
It is configured to construct the unit using the image captured as the block element of background image;
It is configured to improve and created by adding overflow attribute to the HTML element that created
The unit of the HTML element built;And
It is configured to generate described by adding perfect HTML element to described piece of element
The unit of HTML fragment.
22. devices according to claim 18, wherein, described signal generating unit includes:
It is configured to construct the unit using the image captured as the block element of background image;
It is configured to by generating to described piece of additional the created HTML element of element described
The unit of HTML fragment;And
Being configured to the unit for text based element additional scripts, this script is for adjusting
The font size of the described web page contents rendered in the HTML fragment generated.
23. devices according to claim 22, wherein, described for adjusting font size
Script comprises the following steps:
For the text based element to render on other electronic equipments, determine and render rectangle;
And
The size feelings more than the size of the crossing rectangle determined accordingly of rectangle are rendered determined by
Under condition, reduce will determined by render the font size of the described web page contents rendered in rectangle.
24. 1 kinds of devices being used for sharing the partial content of webpage, described device includes:
Acquiring unit, it is configured to obtain the region that user selects in described webpage;
According to any one in claim 14 to claim 23 described be used for obtain webpage
The device of partial content, it is configured to obtain the described webpage corresponding with selected region
Partial content;And
Shared cell, its partial content being configured to share the described webpage obtained.
25. 1 kinds of devices being used for generating Web page bookmark, described device includes:
Recognition unit, it is configured to identify for for the webpage browsed the most in the electronic device
Generate user's input of Web page bookmark;
Acquiring unit, it is configured to obtain the region that user selects in described webpage;
According to any one in claim 14 to claim 23 described be used for obtain webpage
The device of partial content, it is configured to obtain the described webpage corresponding with selected region
Partial content;And
Signal generating unit, it is configured to utilize the partial content of the described webpage obtained and described net
The relevant information of page, for Web page bookmark described in described auto-building html files, wherein, the institute of described webpage
State relevant information and at least include the URL of described webpage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510208644.4A CN106156253A (en) | 2015-04-28 | 2015-04-28 | Obtain and the partial content of shared webpage the method and apparatus that generates Web page bookmark |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510208644.4A CN106156253A (en) | 2015-04-28 | 2015-04-28 | Obtain and the partial content of shared webpage the method and apparatus that generates Web page bookmark |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106156253A true CN106156253A (en) | 2016-11-23 |
Family
ID=57347460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510208644.4A Withdrawn CN106156253A (en) | 2015-04-28 | 2015-04-28 | Obtain and the partial content of shared webpage the method and apparatus that generates Web page bookmark |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106156253A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647066A (en) * | 2018-03-23 | 2018-10-12 | 深圳航天智慧城市***技术研究院有限公司 | The method that the pop-up html pages cover citymaker d engines in a browser |
CN111651418A (en) * | 2020-05-29 | 2020-09-11 | 腾讯科技(深圳)有限公司 | Document content downloading method and device, computer equipment and storage medium |
-
2015
- 2015-04-28 CN CN201510208644.4A patent/CN106156253A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647066A (en) * | 2018-03-23 | 2018-10-12 | 深圳航天智慧城市***技术研究院有限公司 | The method that the pop-up html pages cover citymaker d engines in a browser |
CN111651418A (en) * | 2020-05-29 | 2020-09-11 | 腾讯科技(深圳)有限公司 | Document content downloading method and device, computer equipment and storage medium |
CN111651418B (en) * | 2020-05-29 | 2022-03-08 | 腾讯科技(深圳)有限公司 | Document content downloading method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8745162B2 (en) | Method and system for presenting information with multiple views | |
US10542123B2 (en) | System and method for generating and monitoring feedback of a published webpage as implemented on a remote client | |
CN104298744B (en) | Share, obtain the method and apparatus of web page contents | |
US8812500B2 (en) | System and method of displaying related sites | |
US20140380229A1 (en) | System, method and user interface for designing customizable products from a mobile device | |
JP2012511208A (en) | Preview search results for proposed refined terms and vertical search | |
Firtman | jQuery mobile: up and running | |
CN113411664B (en) | Video processing method and device based on sub-application and computer equipment | |
Roudaki et al. | A classification of web browsing on mobile devices | |
Etzold et al. | Context-aware querying for multimodal search engines | |
CN117093386B (en) | Page screenshot method, device, computer equipment and storage medium | |
CN106156253A (en) | Obtain and the partial content of shared webpage the method and apparatus that generates Web page bookmark | |
Fischer et al. | Brassau: automatic generation of graphical user interfaces for virtual assistants | |
CN110020279A (en) | Page data processing method, device and storage medium | |
US20140164891A1 (en) | Method and system for navigating a hard copy of a web page | |
WO2023239468A1 (en) | Cross-application componentized document generation | |
US11983483B2 (en) | Web site preview generation with action control | |
JP2001027977A (en) | Electronic mail generating device and program recording medium | |
AU2018211353A1 (en) | Virtual shop for electronic greeting cards | |
RU2634221C2 (en) | Method and device for drawing presentation of electronic document on screen | |
JPWO2007013280A1 (en) | Plug-in module execution method, browser execution method, mailer execution method, program, terminal device, and computer-readable recording medium on which page data is recorded | |
Koehl et al. | M. site: Efficient content adaptation for mobile devices | |
CN110020337A (en) | Web page processing method and Related product | |
CN112799552A (en) | Method and device for sharing promotion pictures and storage medium | |
White et al. | A Service-Orientation and Open-Source Approach to Developing Virtual Museums |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C04 | Withdrawal of patent application after publication (patent law 2001) | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161123 |