CN109597981A - A kind of methods of exhibiting, device and the storage medium of text interactive information - Google Patents

A kind of methods of exhibiting, device and the storage medium of text interactive information Download PDF

Info

Publication number
CN109597981A
CN109597981A CN201710922943.3A CN201710922943A CN109597981A CN 109597981 A CN109597981 A CN 109597981A CN 201710922943 A CN201710922943 A CN 201710922943A CN 109597981 A CN109597981 A CN 109597981A
Authority
CN
China
Prior art keywords
text
information
occupy
content
form control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710922943.3A
Other languages
Chinese (zh)
Other versions
CN109597981B (en
Inventor
解辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710922943.3A priority Critical patent/CN109597981B/en
Publication of CN109597981A publication Critical patent/CN109597981A/en
Application granted granted Critical
Publication of CN109597981B publication Critical patent/CN109597981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses methods of exhibiting, device and the storage mediums of a kind of text interactive information, wherein this method comprises: obtaining the content of text and the preset text interactive information of text content for needing to show;The size information of occupy-place paragraph is determined according to text interactive information;Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of text content;Typesetting is carried out to the content of text for inserting occupy-place paragraph, obtains typesetting as a result, and being shown to text interactive information in the interaction form control according to the typesetting as a result, be put into interactive form control of corresponding size on the occupy-place paragraph.The embodiment of the present invention carries out occupy-place to interaction form control using occupy-place paragraph, when being shown according to typesetting result, interactive form control of corresponding size need to be only put on the occupy-place paragraph, without re-starting typesetting, greatly improves and the convenience and flexibility of interaction form control is added in chapters and sections content.

Description

A kind of methods of exhibiting, device and the storage medium of text interactive information
Technical field
The invention belongs to field of communication technology more particularly to a kind of methods of exhibiting, device and the storages of text interactive information Medium.
Background technique
Currently, in text file reader, the considerations of for performance, content of text is all rendered to picture and is shown, some Author has in the chapter-end of text to issue comment, seeks the demand praised with releasing advertisements, at this moment just needs that interaction forms control is added Part meets this demand.
But if the number of pages of chapters and sections may be will increase by being eventually adding interactive forms in chapters and sections, it will affect original sheet in this way The typesetting logic of text, e.g., chapters and sections typesetting, which is cut, to be calculated the remaining blank parts of last page after page and whether can accommodate lower interactive window Body control is attached to last page if it can hold, and interacts form control if do not accommodated, and needs newly-built one page and incites somebody to action Interaction form control increases on the newly-built page, therefore interaction form control is added in chapter-end and will affect the existing row of text Version logic, convenience and flexibility are poor.
Summary of the invention
The present invention provides methods of exhibiting, device and the storage medium of a kind of text interactive information, for improving in chapters and sections Hold the convenience and flexibility that interaction form control is added.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
First aspect present invention provides a kind of methods of exhibiting of text interactive information, including:
Obtain the content of text and the preset text interactive information of the content of text for needing to show;
The size information of occupy-place paragraph is determined according to the text interactive information;
Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of the content of text;
Typesetting is carried out to the content of text for inserting the occupy-place paragraph, obtains typesetting as a result, and according to the typesetting knot Fruit is put into interactive form control of corresponding size on the occupy-place paragraph;
The text interactive information is shown in the interactive form control.
Second aspect of the present invention provides a kind of displaying device of text interactive information, including:
First acquisition unit, it is mutual for obtaining the content of text for needing to show and the preset text of the content of text Dynamic information;
First determination unit, for determining the size information of occupy-place paragraph according to the text interactive information;
It is inserted into unit, for being inserted into occupy-place corresponding with the size information in the specified chapters and sections position of the content of text Paragraph;
Typesetting unit obtains typesetting as a result, simultaneously root for carrying out typesetting to the content of text for inserting the occupy-place paragraph According to the typesetting as a result, being put into interactive form control of corresponding size on the occupy-place paragraph;
Display unit is shown the text interactive information in the interactive form control.
Third aspect present invention provides a kind of storage medium, is stored thereon with computer instruction, and wherein the instruction is processed The step of device loads and executes the methods of exhibiting of text interactive information as described in relation to the first aspect.
The embodiment of the present invention obtains the content of text and corresponding text interactive information for needing to show, and according to text Interactive information determines the size information of occupy-place paragraph, then in the insertion of the specified chapters and sections position of text content and the size information Corresponding occupy-place paragraph carries out typesetting together to the content of text for inserting occupy-place paragraph, i.e., using occupy-place paragraph to interaction window Body control carries out occupy-place, when being shown according to typesetting result, only need to be put into interaction of corresponding size on the occupy-place paragraph Form control greatly improves and the convenience and spirit of interaction form control is added in chapters and sections content without re-starting typesetting Activity.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And other beneficial effects are apparent.
Fig. 1 a is the schematic diagram of a scenario of the methods of exhibiting of text interactive information provided in an embodiment of the present invention;
Fig. 1 b is the flow diagram of the methods of exhibiting of text interactive information provided in an embodiment of the present invention;
Fig. 2 a is the structural schematic diagram of text file reader provided in an embodiment of the present invention;
Fig. 2 b is another flow diagram of the methods of exhibiting of text interactive information provided in an embodiment of the present invention;
Fig. 2 c is the setting schematic diagram of occupy-place paragraph in the methods of exhibiting of text interactive information provided in an embodiment of the present invention;
Fig. 2 d is that the setting of interaction form control in the methods of exhibiting of text interactive information provided in an embodiment of the present invention is shown It is intended to;
Fig. 3 a is the structural schematic diagram of the displaying device of text interactive information provided in an embodiment of the present invention;
Fig. 3 b is another structural schematic diagram of the displaying device of text interactive information provided in an embodiment of the present invention;
Fig. 3 c is another structural schematic diagram of the displaying device of text interactive information provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will refer to the step as performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data For the provider location of the memory, there is the specific feature as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below Also it may be implemented in hardware.
Term as used herein " module " can regard the software object to execute in the arithmetic system as.It is as described herein Different components, module, engine and service can be regarded as the objective for implementation in the arithmetic system.And device as described herein and side Method is preferably implemented in the form of software, can also be implemented on hardware certainly, within that scope of the present invention.
The embodiment of the present invention provides methods of exhibiting, device and the storage medium of a kind of text interactive information.
Referring to Fig. 1 a, which is the scene signal of the methods of exhibiting of text interactive information provided by the embodiment of the present invention Figure, which may include the displaying device of text interactive information, can integrate in the terminal, such as mobile phone, notebook computer Deng.
As shown in Figure 1a, the displaying device of text interactive information can be integrated in terminal a, be mainly used for acquisition and needed to show Content of text and the corresponding preset text interactive information of text content;Occupy-place section is determined according to text interactive information Then the size information fallen is inserted into occupy-place paragraph corresponding with the size information in the specified chapters and sections position of text content, such as The specified chapters and sections position can be chapter-end, chapters and sections beginning, etc.;The content of text for inserting occupy-place paragraph is arranged Version can be put into interactive form control of corresponding size when being shown according to typesetting result on the occupy-place paragraph, and Text interactive information is shown in the interaction form control, it is mutual to be carried out by these text interactive informations and reader It is dynamic, comment can be such as issued in the interaction form control, asked and praised with releasing advertisements, etc..
In addition, the scene can also include server and terminal b, wherein terminal b can be specially mobile phone, notes type Computer etc., text author can use terminal b and be used for server upload content of text and text interactive information, server The content of text that text author uploads is received to be referred in the download instruction for receiving reader and sending by terminal according to its downloading Order provides the terminal with content of text and the corresponding text interactive information of content of text;It can also detect content of text more When new or upload, corresponding reminder message, etc. actively is pushed to terminal a.
It will be described in detail respectively below.
In the present embodiment, the angle of the displaying device from text interactive information is described, text interactive information Displaying device specifically can integrate in the terminal, which may include mobile phone, notebook computer, tablet PC The equipment that (Personal Computer) etc. has storage element and be equipped with microprocessor.
A kind of methods of exhibiting of text interactive information, comprising: obtain the content of text for needing to show and text content Preset text interactive information;The size information of occupy-place paragraph is determined according to text interactive information;In the finger of text content Determine chapters and sections position and is inserted into occupy-place paragraph corresponding with the size information;Typesetting is carried out to the content of text for inserting occupy-place paragraph, Typesetting is obtained as a result, and according to the typesetting as a result, interactive form control of corresponding size is put on the occupy-place paragraph, in the friendship Text interactive information is shown in mutual form control.
Fig. 1 b is please referred to, Fig. 1 b is the process signal of the methods of exhibiting of text interactive information provided in an embodiment of the present invention Figure.This method may include:
In step s101, the content of text and the preset text interactive information of text content for needing to show are obtained.
Text file reader is installed in the embodiment of the present invention, in terminal and applies (Application), and is read using the text Read the methods of exhibiting that device executes text interactive information, wherein text file reader, alternatively referred to as letter reader are used as readding Read common language application software, can read Simple Syndication (RSS, Really Simple Syndication) and The text of the cannonical formats such as Atom (format for subscribing to net annal).
It is understood that terminal first can download to terminal sheet from network side by content of text and text interactive information Ground, and text interactive information directly can be obtained from network side from terminal local extraction text interactive information or terminal, herein It is not especially limited.
Wherein, text interactive information refer to the information for reading user and carrying out interaction, text interactive information can be with It is set along by text author, publisher or advertiser etc. when issuing content of text, i.e., for each text for having interactive demand This, to being correspondingly provided with text interactive information.
For example, text interactive information can be desirable to read user and issue comment, provide and suggest, ask and the comments letter such as praise Breath, while being also possible to advertising information, such as text author's others works information, relevant to text content some other Information, or other advertising informations etc., are not especially limited herein.
In step s 102, the size information of occupy-place paragraph is determined according to text interactive information.
For example, determining need according to text interactive information after getting the preset text interactive information of content of text The size information for the occupy-place paragraph to be arranged, such as format information, content type according to text interactive information, determine to account for The size information of position paragraph.
In the embodiment of the present invention, the format that occupy-place paragraph refers to paragraph occupies a fixed position, it is believed that be one A blank paragraph such as adds interaction form control in order to add content on the blank paragraph.
Wherein, determine that the implementation of the size information of occupy-place paragraph has very much, such as at certain according to text interactive information In a little embodiments, " size information of occupy-place paragraph is determined according to text interactive information " may include:
(1) size information of the interaction form control needed is determined according to text interactive information.
(2) size information of occupy-place paragraph is determined according to the size information of interaction form control.
For example, first determining the interaction forms control needed according to the format information of text interactive information, content type etc. The size information of part, wherein format information refers to preset font, the paragraph etc. that text interactive information is needed when showing Format information, content type include needing to read user to issue comment, provide and suggest, ask and comment informations or the advertisement such as praise Information, etc..
Further, since the interaction form control needs to be added in occupy-place paragraph, it is therefore desirable to according to determination The size information of interaction form control out determines the size information of occupy-place paragraph, and according to the size information of the occupy-place paragraph, Generate occupy-place paragraph of corresponding size.
Wherein, interaction form control can be regarded as collecting the white space of data, in embodiments of the present invention, interaction forms Control is exactly for adding and the form control of text exhibition interactive information.
In step s 103, occupy-place paragraph corresponding with size information is inserted into the specified chapters and sections position of text content.
For example, after generating occupy-place paragraph of corresponding size, needing first to determine to need in the size information according to occupy-place paragraph It is inserted into the occupy-place paragraph and specifies chapters and sections position, after determining, just specify chapters and sections position to be inserted into the occupy-place paragraph at this.
Wherein, it specifies chapters and sections position to can be chapters and sections beginning, chapter-end etc., this is based on, " in the finger of text content Determine chapters and sections position and be inserted into corresponding with size information occupy-place paragraph " it can be with specifically: in the chapter-end insertion of text content Occupy-place paragraph corresponding with size information.
It is understood that the specified chapters and sections position can be set to one or more, correspondingly, the occupy-place paragraph of insertion It is also possible to one or more, can sets according to actual needs, such as under normal circumstances, chapter-end insertion occupy-place can be set in Paragraph, if also may be set in chapters and sections beginning under the more scene of some chapters and sections contents and be also inserted into occupy-place paragraph, etc., this Place's citing does not constitute a limitation of the invention.
Further, in embodiments of the present invention, " text content specified chapters and sections position insertion and size information phase It, can be with when the occupy-place paragraph answered ": setting transparent for the color of the content of text of the occupy-place paragraph.Not only can be The interaction form control occupy-place being added later, has reserved position, while the content user for having also achieved occupy-place paragraph is invisible Effect.
In some embodiments, occupy-place section corresponding with size information is inserted into the specified chapters and sections position of text content When falling, the content of text that the occupy-place paragraph also can be set is blank, equally can achieve the content user of occupy-place paragraph not Visible effect, the present invention are not especially limited this.
In step S104, typesetting is carried out to the content of text for inserting occupy-place paragraph, obtains typesetting as a result, simultaneously basis should Typesetting on the occupy-place paragraph as a result, be put into interactive form control of corresponding size.
In step s105, text interactive information is shown in the interaction form control.
In embodiments of the present invention, " typesetting is carried out to the content of text for inserting occupy-place paragraph, obtain typesetting result " Implementation has very much, for example, in some embodiments, may include:
A1, according to preset page formatting information, the text fragment information and occupy-place paragraph that the page can be shown, generate row Version information.
B1, according to composition information, typesetting is carried out to the content of text for inserting occupy-place paragraph, obtains typesetting result.
It is understood that carrying out typesetting again after inserting occupy-place paragraph in content of text, it is believed that in original chapter It saves and joined interactive page progress typesetting together in the typesetting logic of content, without executing the spy for having judged whether mostly interactive page The step of different logic, substantially increases and the convenience and flexibility of interaction form control is added in chapters and sections content, reduces typesetting and goes out Wrong probability.
In this embodiment, it can directly can be shown according to the pre-set page formatting information of content of text, the page Text fragment information and the occupy-place paragraph of insertion generate composition information, and according to the composition information, are added to occupy-place section to this The content of text fallen carries out typesetting and paging.
Wherein, page formatting information refers to the format informations such as font, the paragraph for needing to show in page form control, the page The text fragment information that can be shown refers to, the information such as open ended text fragment or text character in page form control, herein Occupy-place paragraph refer to the occupy-place paragraph that size information and insertion position has been determined.
For another example, in some embodiments, " typesetting is carried out to the content of text for inserting occupy-place paragraph, obtains typesetting It as a result " can be specific as follows:
A2, current reading progress msg is obtained.
B2, according to preset page formatting information, the text fragment information and occupy-place paragraph that the page can be shown, generate row Version information.
C2, according to composition information and the reading progress msg, typesetting is carried out to the content of text for inserting occupy-place paragraph, Obtain typesetting result.
The embodiment is compared to a upper embodiment, the considerations of joined to current reading progress msg, i.e., into Before row typesetting, current reading progress msg is first obtained, then according to the current reading progress msg, that determines not read works as The preceding content of text for needing typesetting, and according to composition information and current reading progress msg, it does not read in text what is determined Hold and carry out typesetting and paging, due to being to carry out typesetting paging to the content of text that do not read, the processing of terminal can be reduced Operating efficiency can be improved in data volume.
In embodiments of the present invention, " according to composition information, typesetting is carried out to the content of text for inserting occupy-place paragraph, is obtained To typesetting result " after, it is also necessary to content of text is shown, e.g., can also include:
(1) according to the typesetting as a result, obtaining the content of text that current page needs to show.
(2) it needs the content of text shown to render current page, obtains textual image.
(3) text picture is shown in preset page form control.
It is understood that in text file reader, the considerations of for performance, content of text needs to be rendered to picture progress It shows, firstly, according to typesetting paging as a result, extracting current page needs the content of text that shows, it is then current for this The page needs the content of text shown to be rendered, and generates a textual image for user's viewing, text picture is pasted Enter preset page form control, to be shown to text picture.
Wherein, page form control can be regarded as the white space that terminal page collects data, in embodiments of the present invention, The size of page form control may be configured as the size of terminal page, can be used for text exhibition content, and it is smaller to place other sizes Form control, such as interaction form control, etc..
In some embodiments, it if current page includes the occupy-place paragraph, also needs to add in page form control Enter interactive form control, is based on this, terminal is " according to the typesetting as a result, being put into interactive window of corresponding size on the occupy-place paragraph Body control " can with specifically includes the following steps:
(1) if determining that current page includes occupy-place paragraph according to typesetting result, believed according to the size of interaction form control Breath generates interactive form control of corresponding size.
(2) coordinate information for placing interaction form control is determined in the position of current page according to the occupy-place paragraph.
(3) in the page form control, interactive form control of corresponding size is placed into coordinate information instruction On position, so that being put into interactive form control of corresponding size on occupy-place paragraph.
That is, that is, current page is the page comprising specifying chapters and sections position if current page includes the occupy-place paragraph Face, in addition to be rendered to the content of text of current page, other than obtaining textual image and showing, it is also necessary to add in the page Add interactive form control, with the text exhibition interactive information in the interaction form control.
It can be specifically, generating interactive forms control of corresponding size first according to the size information of determining interaction form control Part, alternatively, it is also possible to select to generate different types of interactive form control according to the type of text interactive information;Interaction forms After control generates, according to occupy-place paragraph in the position of current page, its coordinate information is extracted, places the interaction window to would know that Then interaction form control is placed on the position of coordinate information instruction, i.e., in page forms by the coordinate information of body control It is inserted into the place of occupy-place paragraph in control, is put into interactive form control of corresponding size, text interactive information is finally pasted into friendship Mutual form control, to be shown to text interactive information.
It can be seen from the above, the methods of exhibiting of text interactive information provided in this embodiment, obtains in the text for needing to show Hold and corresponding text interactive information, and determine according to text interactive information the size information of occupy-place paragraph, then in this article Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of this content, to the content of text for inserting occupy-place paragraph Typesetting together is carried out, i.e., occupy-place is carried out to interaction form control using occupy-place paragraph, when being shown according to typesetting result, only Interactive form control of corresponding size need to be put on the occupy-place paragraph to greatly improve without re-starting typesetting in chapter Save interaction form control is added in content convenience and flexibility.
Citing, is described in further detail by described method according to first embodiment below.
Firstly, the displaying device of text interactive information is integrated in the terminal, it is equipped in the terminal general for reading Application software --- the text file reader of logical text, and utilize the displaying side of text reader execution following context interactive information Method.Wherein, text reader may include multiple functional modules, execute corresponding operation respectively to complete following context interaction The methods of exhibiting of information can refer to Fig. 2 a, be the functional module structure schematic diagram in text reader, below first respectively to every A functional module does simple introduction:
Page form module 21: for showing the form control of each page content, and the various interaction behaviour of user are received Make.
Page forms proxy module 22: being the information source of page forms, is page for receiving the command calls of page forms Face-port body provides content to be presented, interaction form control, at the same can also be provided for the page forms text it is current read into Whether degree currently needs to be loaded into the information such as interactive form control.
Interactive information management module 23: for pulling the corresponding interaction letter of current text content (such as current chapters and sections content) Breath, and the corresponding chapters and sections information of content of text is cached, the interface for obtaining text interactive information is provided for page forms proxy module.
Interaction forms generation module 24: for calculating interactive form control according to the text interactive information pre-typesetting of input Size (such as height), and interactive form control of corresponding size is generated according to the text interactive information of input.
Content of text processing module 25: for including being loaded into raw text content, this paper interactive information is read, and according to text This interactive information is inserted into corresponding occupy-place paragraph in specified chapters and sections position (such as chapter-end).
Composition information generation module 26: cutting page for typesetting, i.e., is divided into the chapters and sections content containing occupy-place paragraph corresponding Page, and every page of open ended content of text is calculated, it include the data knot of paragraph information by text generation one of every page then Structure is supplied to rendering module and is rendered.
Rendering module 27: the content of text for including by the page generates a figure according to corresponding paragraph information and is put into Page form module is shown.
Based on functional module described above, the methods of exhibiting of text interactive information will be described in detail below.Please Refering to Fig. 2 b, Fig. 2 b is another flow diagram of the methods of exhibiting of text interactive information provided in an embodiment of the present invention.Wherein This method can be specific as follows:
In step s 201, page form module 21 sends to page forms proxy module 22 and reads instruction.
For example, pass through the application homepage of page form control text exhibition reader, it is more using being provided in homepage at this A control instruction button, such as reading button, download button and exit button, user is by electrolysis reading button, to the page Forms proxy module 22, which is sent, reads instruction, and reading instruction shows corresponding current text content for requesting.
It is understood that the content of text in the embodiment of the present invention can refer to the cannonical formats such as some RSS and Atom Text.Its particular content can be any written material content, refer to the form of expression of written language, from the perspective of from the angle of literature, Usually there is a complete, sentence of system meaning or the combination of multiple sentences;One text can be a sentence, one Paragraph or a chapter (chapters and sections), are not especially limited herein.
In step S202, reading instruction is forwarded to content of text processing module 25 by page forms proxy module 22.
In step S203, content of text processing module 25 is instructed according to the reading, is loaded into the text for needing to read accordingly This content.
Wherein, page forms proxy module 22 is used to receive the command calls of page forms, provides for page forms wait open up The content shown, therefore reading instruction is forwarded to content of text processing module 25, content of text by page forms proxy module 22 Processing module 25 can be from network side or the local content of text for being loaded into needs corresponding with reading instruction and reading.
In step S204, interactive information management module 23 is calculated according to the corresponding text interactive information of content of text The size information of the interaction form control needed, and the size information of text interactive information and interaction form control is back to text This content processing module 25.
While content of text processing module 25 is loaded into the content of text for needing to read accordingly, interactive information manages mould Block 23 can be loaded into text interactive information corresponding with text content, and the friendship of needs is calculated according to text interactive information The size information of mutual form control.
Wherein, text interactive information refer to the information for reading user and carrying out interaction, text interactive information can be with It is set along by text author, publisher or advertiser etc. when issuing content of text, i.e., for each text for having interactive demand This, to being correspondingly provided with text interactive information.
For example, text interactive information can be desirable to read user and issue comment, provide and suggest, ask and the comments letter such as praise Breath, while being also possible to advertising information, such as text author's others works information, relevant to text content some other Information, or other advertising informations etc., are not especially limited herein.
In the embodiment, interactive information management module 23 is calculated according to the corresponding text interactive information of content of text The size information of the interaction form control needed can specifically include: according to the format information of text interactive information, content type Etc., determine the size information height of form control (i.e. interactive) of the interaction form control needed, wherein format information is Refer to that the format informations such as preset font, the paragraph that text interactive information is needed when showing, content type include needing to read User is read to issue comment, provide and suggest, ask and the comment informations or advertising information, etc. such as praise.
Then, interactive information management module 23 returns to the size information of text interactive information and interaction form control together To content of text processing module 25.
In step S205, content of text processing module 25 is according to the size information for interacting form control, in content of text Chapter-end be inserted into the corresponding occupy-place paragraph of size, and set transparent for the content of text color attribute of the occupy-place paragraph.
For example, the height that content of text processing module 25 is needed according to interaction form control, at the chapters and sections end of content of text Tail is inserted into an occupy-place paragraph, wherein the section high setting of occupy-place paragraph is the height of interaction form control, the text of occupy-place paragraph The color attribute of content is set as transparent.
In the embodiment of the present invention, the format that occupy-place paragraph refers to paragraph occupies a fixed position, it is believed that be one A blank paragraph such as adds interaction form control in order to add content on the blank paragraph.
It is the setting schematic diagram of occupy-place paragraph please also refer to Fig. 2 c, in this embodiment, occupy-place paragraph is arranged in chapter End is saved, if also may be set in chapters and sections beginning under the more scene of some chapters and sections contents and be also inserted into occupy-place paragraph, that is, be inserted into The number of occupy-place paragraph is not limited to one, or multiple, citing does not constitute a limitation of the invention herein.
Further, as shown in Figure 2 c, in chapter-end it is inserted into an occupy-place paragraph and by the color attribute of content of text It is set as transparent, the interaction form control occupy-place that not only can be added for after has reserved position, had also achieved simultaneously The sightless effect of the content user of occupy-place paragraph.
It is understood that for ease of understanding, occupy-place paragraph shown in Fig. 2 c is indicated with dotted line frame, and actually this is accounted for Position paragraph is sightless effect.
In some embodiments, when chapter-end is inserted into an occupy-place paragraph, the occupy-place paragraph also can be set Content of text is blank, equally can achieve the sightless effect of content user of occupy-place paragraph, and the present invention does not make this to have Body limits.
In step S206, page forms proxy module 22 is obtained from content of text processing module 25 with occupy-place paragraph Content of text, and the content of text with occupy-place paragraph and current reading progress msg are sent to composition information and generated Module 26.
Since page forms proxy module 22 can provide the information of the current reading progress of text, at content of text After occupy-place paragraph is added in content of text in reason module 25, page forms proxy module 22 is obtained from content of text processing module 25 Content of text with occupy-place paragraph, and composition information generation module 26 is sent to together with current reading progress msg.
In step S207, text fragment information that composition information generation module 26 can be shown according to the page, preset page Face format information generates composition information, and combines current reading progress msg, carries out to the content of text with occupy-place paragraph Typesetting.
For example, composition information generation module 26 according to current reading progress msg, determine not read currently need to arrange The content of text of version, the chapters and sections content containing occupy-place paragraph that wherein text content is not read as, according to preset page lattice Formula information, such as paragraph and font format information carry out Format adjusting to the chapters and sections content, can accommodate so as to calculate every page Content of text, the chapters and sections content that this is then contained occupy-place paragraph is divided into corresponding page, and by every page of text generation one Data structure comprising paragraph information.
Due to being to carry out typesetting paging to the content of text that do not read in the embodiment, the processing of terminal can be reduced Data volume, operating efficiency can be improved.
In step S208, content of text that rendering module 27 includes according to corresponding paragraph information, to current page into Row rendering, generates textual image.
It is understood that in text file reader, the considerations of for performance, content of text needs to be rendered to picture progress It shows, rendering module 27 reads the corresponding paragraph information of current page according to the result of typesetting paging, so as to current The content of text that the page includes is rendered, and a textual image for user's viewing is generated.
In step S209, textual image is pasted into page form control and shown by page form module 21.
Page form module 21 reads the text of current page by page forms proxy module 22 from rendering module 27 Textual image is pasted into page form control and is shown by picture, page form module 21, and such text exposition is just It completes.
Further, if current page includes the occupy-place paragraph, i.e., current page is the page comprising specifying chapters and sections position Face, in addition to be rendered to the content of text of current page, other than obtaining textual image and showing, it is also necessary to add in the page Add interactive form control, with text exhibition interactive information.For example, specifying chapters and sections position is chapter-end, then such as in the present embodiment Fruit current page is last page, it is necessary to add interaction form control in the page.
Such as, it can be determined whether to need to be loaded into interaction form control by page forms proxy module 22, if it is, to Page form module 21 provides the information, and requests transmission to generate from page form module 21 to interaction forms generation module 24 Interaction form control.
In step S210, interaction forms generation module 24 generates corresponding big according to the size information of interaction form control Small interaction form control, and it is back to page form module 21.
It can be specifically, firstly, page form module 21 receives the message for needing that interaction form control is added, then from interaction Text interactive information is read in information management module 23, after reading, by interaction forms generation module 24 according to interaction form control Size information, generate interactive form control of corresponding size, and be back to page form module 21.
In step S211, composition information generation module 26, in the position of current page, is determined and is placed according to occupy-place paragraph The coordinate information of interaction form control.
Further, page form module 21 first requests offer interaction form control should to page forms proxy module 22 The information of the position of addition, then requested from page forms proxy module 22 to composition information generation module 26, composition information generates Module 26 is back to page after determining the coordinate information for placing interaction form control in the position of current page according to occupy-place paragraph Face-port body proxy module 22, and the coordinate information for placing interaction form control is back to the page by page forms proxy module 22 Form module 21.
In step S212, page form module 21 places interaction form control on occupy-place paragraph according to coordinate information, And text interactive information is shown in the interaction form control.
It is understood that first generating interactive window of corresponding size according to the size information of determining interaction form control Body control, alternatively, it is also possible to select to generate different types of interactive form control according to the type of text interactive information;Interaction After form control generates, according to occupy-place paragraph in the position of current page, its coordinate information is extracted, places the friendship to would know that Then interaction form control is placed on the position of coordinate information instruction, i.e., in the page by the coordinate information of mutual form control It is inserted into the place of occupy-place paragraph in form control, is put into interactive form control of corresponding size, finally pastes text interactive information Enter interactive form control, to be shown to text interactive information.
Fig. 2 d can be referred to together, in occupy-place paragraph place interaction form control, and using interaction form control in it is right The structural schematic diagram that text interactive information is shown, for ease of understanding, shown in Fig. 2 d interaction form control dotted line frame into Row indicates that actually the occupy-place paragraph is sightless effect, that is, by special designing, is added one before typesetting renders and accounts for The method of the transparent paragraph of position gives interaction form control to leave position in advance, and interaction form control is regenerated after complete and is added to pair It answers on position.
It should be noted that when it is implemented, above each functional module can be used as independent entity to realize, it can also To carry out any combination, realized as same or several entities, the division of above each functional module by way of example only, It is easy to understand and describes, do not constitute a limitation of the invention.
It can be seen from the above, the methods of exhibiting of text interactive information provided in this embodiment, obtains in the text for needing to show Hold and corresponding text interactive information, and determine according to text interactive information the size information of occupy-place paragraph, then in this article Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of this content, to the content of text for inserting occupy-place paragraph Typesetting together is carried out, i.e., occupy-place is carried out to interaction form control using occupy-place paragraph, when being shown according to typesetting result, only Interactive form control of corresponding size need to be put on the occupy-place paragraph to greatly improve without re-starting typesetting in chapter Save interaction form control is added in content convenience and flexibility.I.e. by special designing, one is added before typesetting renders and is accounted for The method of the transparent paragraph of position gives interaction form control to leave position in advance, and interaction form control is regenerated after complete and is added to pair It answers on position, not only maintains the high efficiency of rendering, while complicated interaction form control rapidly and efficiently can also be added, make It must develop and maintenance work is simple and easy.
For the methods of exhibiting convenient for better implementation text interactive information provided in an embodiment of the present invention, the embodiment of the present invention A kind of device of methods of exhibiting based on above-mentioned text interactive information is also provided.Wherein the meaning of noun interacts letter with above-mentioned text Identical in the method for the displaying of breath, specific implementation details can be with reference to the explanation in embodiment of the method.
Fig. 3 a is please referred to, Fig. 3 a is the structural representation of the displaying device of text interactive information provided in an embodiment of the present invention Figure, the displaying device 300 of text interactive information may include first acquisition unit 301, the first determination unit 302, insertion list Member 303, typesetting unit 304 and display unit 305.
The wherein first acquisition unit 301, it is preset for obtaining the content of text for needing to show and text content Text interactive information.
Text file reader application is installed in the embodiment of the present invention, in terminal, and executes this article using text reader The methods of exhibiting of this interactive information, wherein text file reader, alternatively referred to as letter reader are used as reading common language Application software can read the text of the cannonical formats such as Simple Syndication RSS and Atom (format for subscribing to net annal).
It is understood that terminal first can download to terminal sheet from network side by content of text and text interactive information Ground, and text interactive information directly can be obtained from network side from terminal local extraction text interactive information or terminal, herein It is not especially limited.
Wherein, text interactive information refer to the information for reading user and carrying out interaction, text interactive information can be with It is set along by text author, publisher or advertiser etc. when issuing content of text, i.e., for each text for having interactive demand This, to being correspondingly provided with text interactive information.
For example, text interactive information can be desirable to read user and issue comment, provide and suggest, ask and the comments letter such as praise Breath, while being also possible to advertising information, such as text author's others works information, relevant to text content some other Information, or other advertising informations etc., are not especially limited herein.
First determination unit 302, for determining the size information of occupy-place paragraph according to text interactive information.
For example, determining need according to text interactive information after getting the preset text interactive information of content of text The size information for the occupy-place paragraph to be arranged, such as format information, content type according to text interactive information, determine to account for The size information of position paragraph.
In the embodiment of the present invention, the format that occupy-place paragraph refers to paragraph occupies a fixed position, it is believed that be one A blank paragraph such as adds interaction form control in order to add content on the blank paragraph.
It is inserted into unit 303, for being inserted into occupy-place corresponding with the size information in the specified chapters and sections position of text content Paragraph.
For example, after generating occupy-place paragraph of corresponding size, needing first to determine to need in the size information according to occupy-place paragraph It is inserted into the occupy-place paragraph and specifies chapters and sections position, after determining, just specify chapters and sections position to be inserted into the occupy-place paragraph at this.
Wherein, it specifies chapters and sections position to can be chapters and sections beginning, chapter-end etc., is based on this, the insertion unit 303, tool Body is used to be inserted into occupy-place paragraph corresponding with the size information in the chapter-end of text content.
It is understood that the specified chapters and sections position can be set to one or more, correspondingly, the occupy-place paragraph of insertion It is also possible to one or more, can sets according to actual needs, such as under normal circumstances, chapter-end insertion occupy-place can be set in Paragraph, if also may be set in chapters and sections beginning under the more scene of some chapters and sections contents and be also inserted into occupy-place paragraph, etc., this Place's citing does not constitute a limitation of the invention.
Typesetting unit 304 obtains typesetting as a result, simultaneously root for carrying out typesetting to the content of text for inserting occupy-place paragraph According to the typesetting as a result, being put into interactive form control of corresponding size on the occupy-place paragraph.
Display unit 305 is shown text interactive information in the interaction form control.
It is understood that carrying out typesetting again after inserting occupy-place paragraph in content of text, it is believed that in original chapter It saves and joined interactive page progress typesetting together in the typesetting logic of content, without executing the spy for having judged whether mostly interactive page The step of different logic, substantially increases and the convenience and flexibility of interaction form control is added in chapters and sections content, reduces typesetting and goes out Wrong probability.
Please also refer to Fig. 3 b, Fig. 3 b is another knot of the displaying device of text interactive information provided in an embodiment of the present invention Structure schematic diagram, in the displaying device 300 of text interactive information, the first determination unit 302 can be specifically included:
(1) first determines subelement 3021, for determining the interaction form control needed according to text interactive information Size information.
(2) second determine subelement 3022, for determining occupy-place paragraph according to the size information of the interaction form control Size information.
For example, first determining the interaction forms control needed according to the format information of text interactive information, content type etc. The size information of part, wherein format information refers to preset font, the paragraph etc. that text interactive information is needed when showing Format information, content type include needing to read user to issue comment, provide and suggest, ask and comment informations or the advertisement such as praise Information, etc..
Further, since the interaction form control needs to be added in occupy-place paragraph, it is therefore desirable to according to determination The size information of interaction form control out determines the size information of occupy-place paragraph, and according to the size information of the occupy-place paragraph, Generate occupy-place paragraph of corresponding size.
Wherein, interaction form control can be regarded as collecting the white space of data, in embodiments of the present invention, interaction forms Control is exactly for adding and the form control of text exhibition interactive information.
As shown in Figure 3b, the displaying device 300 of text interactive information can also include setting unit 306, in this article When the chapter-end of this content is inserted into occupy-place paragraph corresponding with the size information, by the color of the content of text of the occupy-place paragraph It is set as transparent.
The interaction form control occupy-place that not only can be added for after, has reserved position, while having also achieved and accounting for The sightless effect of content user of position paragraph.
In some embodiments, occupy-place section corresponding with size information is inserted into the specified chapters and sections position of text content When falling, the content of text that the occupy-place paragraph also can be set in setting unit 306 is blank, equally can achieve occupy-place paragraph The sightless effect of content user, the present invention are not especially limited this.
In embodiments of the present invention, typesetting unit 304 carries out typesetting to the content of text for inserting occupy-place paragraph, is arranged The implementation of version result has very much, for example, in some embodiments, typesetting unit 304 can be directly pre- according to content of text The occupy-place paragraph of the page formatting information, the text fragment information that the page can be shown and the insertion that are first arranged generates composition information, And according to the composition information, typesetting and paging are carried out to the content of text for being added to occupy-place paragraph.
Wherein, page formatting information refers to the format informations such as font, the paragraph for needing to show in page form control, the page The text fragment information that can be shown refers to, the information such as open ended text fragment or text character in page form control, herein Occupy-place paragraph refer to the occupy-place paragraph that size information and insertion position has been determined.
For another example, in some embodiments, as shown in Figure 3b, typesetting unit 304 can specifically include:
Subelement 3041 is obtained, for obtaining current reading progress msg.
Generate subelement 3042, for according to preset page formatting information, text fragment information that the page can be shown with And occupy-place paragraph, generate composition information.
Typesetting subelement 3043, for according to composition information and the reading progress msg, to inserting occupy-place paragraph Content of text carries out typesetting, obtains typesetting result.
The embodiment is compared to a upper embodiment, the considerations of joined to current reading progress msg, i.e., into Before row typesetting, current reading progress msg is first obtained, then according to the current reading progress msg, that determines not read works as The preceding content of text for needing typesetting, and according to composition information and current reading progress msg, it does not read in text what is determined Hold and carry out typesetting and paging, due to being to carry out typesetting paging to the content of text that do not read, the processing of terminal can be reduced Operating efficiency can be improved in data volume.
In embodiments of the present invention, in typesetting unit 304 according to composition information, to the content of text for inserting occupy-place paragraph After progress typesetting, it is also necessary to be shown to content of text, be the displaying device of text interactive information please also refer to Fig. 3 c Another structural schematic diagram, wherein the displaying device 300 of text interactive information can also include:
Second acquisition unit 307, for according to typesetting as a result, obtaining current page needs the content of text that shows.
Rendering unit 308 obtains textual image for needing the content of text shown to render current page.
The display unit 305, for being shown in preset page form control to text picture.
It is understood that in text file reader, the considerations of for performance, content of text needs to be rendered to picture progress It shows, firstly, according to typesetting paging as a result, extracting current page needs the content of text that shows, it is then current for this The page needs the content of text shown to be rendered, and generates a textual image for user's viewing, text picture is pasted Enter preset page form control, to be shown to text picture.
Wherein, page form control can be regarded as the white space that terminal page collects data, in embodiments of the present invention, The size of page form control may be configured as the size of terminal page, can be used for text exhibition content, and it is smaller to place other sizes Form control, such as interaction form control, etc..
In some embodiments, as shown in Figure 3c, it if current page includes the occupy-place paragraph, also needs in page window Interaction form control is added in body control, is based on this, the displaying device 300 of text interactive information can also include:
Generation unit 309, if for determining that current page includes the occupy-place paragraph according to typesetting result, according to interaction window The size information of body control generates interactive form control of corresponding size.
Second determination unit 310, for, in the position of current page, determining according to the occupy-place paragraph and placing interaction forms control The coordinate information of part.
Placement unit 311, in the page form control, interactive form control of corresponding size to be placed into the seat On the position for marking information instruction, so that being put into interactive form control of corresponding size on the occupy-place paragraph.
That is, that is, current page is the page comprising specifying chapters and sections position if current page includes the occupy-place paragraph Face, in addition to be rendered to the content of text of current page, other than obtaining textual image and showing, it is also necessary to add in the page Add interactive form control, with text exhibition interactive information.
It can be specifically, generating interactive forms control of corresponding size first according to the size information of determining interaction form control Part, alternatively, it is also possible to select to generate different types of interactive form control according to the type of text interactive information;Interaction forms After control generates, according to occupy-place paragraph in the position of current page, its coordinate information is extracted, places the interaction window to would know that Then interaction form control is placed on the position of coordinate information instruction, i.e., in page forms by the coordinate information of body control It is inserted into the place of occupy-place paragraph in control, is put into interactive form control of corresponding size, text interactive information is finally pasted into friendship Mutual form control, to be shown to text interactive information.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
The displaying device of text interactive information specifically can integrate in the terminal, which may include mobile phone, notes The equipment that type computer, tablet PC etc. have storage element and be equipped with microprocessor.
It can be seen from the above, the displaying device of text interactive information provided in this embodiment, obtains in the text for needing to show Hold and corresponding text interactive information, and determine according to text interactive information the size information of occupy-place paragraph, then in this article Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of this content, to the content of text for inserting occupy-place paragraph Typesetting together is carried out, i.e., occupy-place is carried out to interaction form control using occupy-place paragraph, when being shown according to typesetting result, only Interactive form control of corresponding size need to be put on the occupy-place paragraph to greatly improve without re-starting typesetting in chapter Save interaction form control is added in content convenience and flexibility.
The embodiment of the present invention also provides a kind of terminal, as shown in figure 4, the terminal 400 may include have one or one with The memory 401 of upper computer readable storage medium, sensor 402, input unit 403, display unit 404, power supply 405 and Include one or more than one the equal components of processor 406 of processing core.It will be understood by those skilled in the art that in Fig. 4 The restriction of the terminal structure shown not structure paired terminal may include or combining certain than illustrating more or fewer components A little components or different component layouts.
Memory 401 can be used for storing application program and data.It include that can hold in the application program that memory 401 stores Line code.Application program can form various functional modules.Processor 406 is stored in the application journey of memory 401 by operation Sequence, thereby executing various function application and data processing.In addition, memory 401 may include high-speed random access memory, It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are deposited Memory device.Correspondingly, memory 401 can also include Memory Controller, right to provide processor 406 and input unit 403 The access of memory 401.
Terminal may also include at least one sensor 402, such as optical sensor, gravity accelerometer and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel, and proximity sensor can close display panel when terminal is moved in one's ear And/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as terminal The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Input unit 403 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Specifically Ground, in a specific embodiment, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, collect user on it or nearby touch operation (such as user using finger, touching The operations of any suitable object or attachment on touch sensitive surface or near touch sensitive surface such as pen), and according to preset Formula drives corresponding attachment device.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processing Device 406, and order that processor 406 is sent can be received and executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray And the multiple types such as surface acoustic wave realize touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other inputs Equipment.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volume control button, switch Key etc.), fingerprint recognition mould group, trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 404 can be used for showing information input by user or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display Unit 404 may include display panel.Optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, OrganicLight-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to Device 406 is followed by subsequent processing device 406 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although touch sensitive surface and display panel are to realize input and input as two independent components in Fig. 4 Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Terminal further includes the power supply 405 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system and processor 406 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 405 can also include one or more direct current or AC power source, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Processor 406 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the application program being stored in memory 401, and call the data being stored in memory 401, execute The various functions and processing data of terminal, to carry out integral monitoring to terminal.Optionally, processor 406 may include one or Multiple processing cores;Preferably, processor 406 can integrate application processor and modem processor, wherein application processor Main processing operation system, user interface and application program etc..
Although not shown in fig 4, terminal can also include camera, bluetooth module, network module etc., no longer go to live in the household of one's in-laws on getting married herein It states.
Specifically in the present embodiment, the processor 406 in terminal can be according to following instruction, will be one or more The corresponding executable code of the process of application program is loaded into memory 401, and is run by processor 406 and be stored in storage Application program in device 401, to realize various functions:
Obtain the content of text and the preset text interactive information of text content for needing to show;
The size information of occupy-place paragraph is determined according to text interactive information;
Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of text content;
Typesetting is carried out to the content of text for inserting occupy-place paragraph, obtains typesetting as a result, and according to typesetting as a result, accounting at this Interactive form control of corresponding size is put on the paragraph of position;
Text interactive information is shown in the interaction form control.
Wherein, it is inserted into occupy-place paragraph corresponding with the size information in the specified chapters and sections position of text content, can wrap It includes: being inserted into occupy-place paragraph corresponding with the size information in the chapter-end of text content.
Processor 406 determines that the size information of occupy-place paragraph may include: according to the text according to text interactive information Interactive information determines the size information of the interaction form control needed;Occupy-place is determined according to the size information of the interaction form control The size information of paragraph.
When occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of content of text, it is also used to account for this The color of the content of text of position paragraph is set as transparent.
Processor 406 carries out typesetting to the content of text for inserting occupy-place paragraph
Obtain current reading progress msg;According to preset page formatting information, the text fragment that the page can be shown is believed Breath and occupy-place paragraph generate composition information;According to composition information and the reading progress msg, to inserting occupy-place paragraph Content of text carries out typesetting, obtains typesetting result.
Further, according to the typesetting as a result, obtaining the content of text that current page needs to show;Current page is needed The content of text of displaying is rendered, and textual image is obtained;Text picture is opened up in preset page form control Show.
Processor 406 is according to the typesetting as a result, being put into interactive form control of corresponding size on occupy-place paragraph, comprising:
If determining that current page includes the occupy-place paragraph according to the typesetting result, believed according to the size of interaction form control Breath generates interactive form control of corresponding size;According to the occupy-place paragraph in the position of current page, determines and place interaction forms The coordinate information of control;In the page form control, interactive form control of corresponding size is placed into the coordinate information and is referred to On the position shown, so that being put into interactive form control of corresponding size on the occupy-place paragraph.
It can be seen from the above, obtaining the content of text and corresponding text for needing to show in terminal provided in this embodiment Interactive information, and determine according to text interactive information the size information of occupy-place paragraph, then in the specified chapters and sections of text content Occupy-place paragraph corresponding with the size information is inserted into position, carries out typesetting together to the content of text for inserting occupy-place paragraph, i.e., Occupy-place is carried out to interaction form control using occupy-place paragraph, it, only need to be in the occupy-place paragraph when being shown according to typesetting result On be put into interactive form control of corresponding size, without re-starting typesetting, greatly improve to be added in chapters and sections content and interact The convenience and flexibility of form control.
In addition, the embodiment of the present invention also provides a kind of storage medium, it is stored thereon with computer instruction, wherein the instruction quilt The step of processor loads and executes the methods of exhibiting such as the text interactive information provided in above-described embodiment.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description of the methods of exhibiting above with respect to text interactive information, details are not described herein again.
The displaying device of the text interactive information provided in an embodiment of the present invention, is for example computer, tablet computer, tool There is the mobile phone etc. of touch function, the text interactive information of the text interactive information shown in device and foregoing embodiments Methods of exhibiting belongs to same design, can run the text interactive information on the displaying device of the text interactive information Either offer method in methods of exhibiting embodiment, the methods of exhibiting that specific implementation process is detailed in the text interactive information are real Example is applied, details are not described herein again.
It should be noted that for the methods of exhibiting of text interactive information of the present invention, this field common test people Member is understood that realize all or part of the process of the methods of exhibiting of text interactive information described in the embodiment of the present invention, is that can lead to Computer program is crossed to control relevant hardware and complete, the computer program can be stored in a computer-readable storage and be situated between It in matter, is such as stored in the memory of terminal, and is executed by least one processor in the terminal, can be wrapped in the process of implementation Include the process of the embodiment of the methods of exhibiting such as the text interactive information.Wherein, the storage medium can be magnetic disk, light Disk, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) Deng.
For the displaying device of the text interactive information of the embodiment of the present invention, each functional module be can integrate In one processing chip, it is also possible to modules and physically exists alone, one can also be integrated in two or more modules In a module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module It realizes.If the integrated module is realized and when sold or used as an independent product in the form of software function module, Also it can store in a computer readable storage medium, the storage medium is for example read-only memory, disk or light Disk etc..
Be provided for the embodiments of the invention above methods of exhibiting, device and the storage medium of a kind of text interactive information into It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to According to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification It should not be construed as limiting the invention.

Claims (15)

1. a kind of methods of exhibiting of text interactive information characterized by comprising
Obtain the content of text and the preset text interactive information of the content of text for needing to show;
The size information of occupy-place paragraph is determined according to the text interactive information;
Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position of the content of text;
To insert the occupy-place paragraph content of text carry out typesetting, obtain typesetting as a result, and according to the typesetting as a result, Interactive form control of corresponding size is put on the occupy-place paragraph;
The text interactive information is shown in the interactive form control.
2. the methods of exhibiting of text interactive information according to claim 1, which is characterized in that described mutual according to the text Dynamic information determines that the size information of occupy-place paragraph includes:
The size information of the interaction form control needed is determined according to the text interactive information;
The size information of occupy-place paragraph is determined according to the size information of the interactive form control.
3. the methods of exhibiting of text interactive information according to claim 1, which is characterized in that in the finger of the content of text When determining chapters and sections position insertion occupy-place paragraph corresponding with the size information, further includes:
Set transparent for the color of the content of text of the occupy-place paragraph.
4. the methods of exhibiting of text interactive information according to claim 2, which is characterized in that described pair inserts occupy-place section The content of text fallen carries out typesetting, and obtaining typesetting result includes:
Obtain current reading progress msg;
According to preset page formatting information, the text fragment information and occupy-place paragraph that the page can be shown generate composition information;
According to composition information and the reading progress msg, typesetting is carried out to the content of text for inserting occupy-place paragraph, is obtained Typesetting result.
5. the methods of exhibiting of text interactive information according to claim 4, which is characterized in that it is described according to composition information, Typesetting is carried out to the content of text for inserting occupy-place paragraph, after obtaining typesetting result, further includes:
According to the typesetting as a result, obtaining the content of text that current page needs to show;
It needs the content of text shown to render current page, obtains textual image;
The textual image is shown in preset page form control.
6. the methods of exhibiting of text interactive information according to claim 5, which is characterized in that described according to the typesetting knot Fruit, interactive form control of corresponding size is put on the occupy-place paragraph includes:
If determining that current page includes the occupy-place paragraph according to the typesetting result, believed according to the size of interaction form control Breath generates interactive form control of corresponding size;
According to the occupy-place paragraph in the position of current page, the coordinate information for placing interaction form control is determined;
In the page form control, interactive form control of corresponding size is placed into the position of the coordinate information instruction On, so that being put into interactive form control of corresponding size on the occupy-place paragraph.
7. the methods of exhibiting of text interactive information according to any one of claims 1 to 6, which is characterized in that described in institute Occupy-place paragraph corresponding with the size information is inserted into the specified chapters and sections position for stating content of text, comprising:
Occupy-place paragraph corresponding with the size information is inserted into the chapter-end of the content of text.
8. a kind of displaying device of text interactive information characterized by comprising
First acquisition unit, for obtaining the content of text for needing to show and the preset text interaction letter of the content of text Breath;
First determination unit, for determining the size information of occupy-place paragraph according to the text interactive information;
It is inserted into unit, for being inserted into occupy-place section corresponding with the size information in the specified chapters and sections position of the content of text It falls;
Typesetting unit obtains typesetting as a result, and according to institute for carrying out typesetting to the content of text for inserting the occupy-place paragraph Typesetting is stated as a result, being put into interactive form control of corresponding size on the occupy-place paragraph;
Display unit is shown the text interactive information in the interactive form control.
9. the displaying device of text interactive information according to claim 8, which is characterized in that the first determination unit packet It includes:
First determines subelement, for determining the size information of the interaction form control needed according to the text interactive information;
Second determines subelement, for determining the size information of occupy-place paragraph according to the size information of the interactive form control.
10. the displaying device of text interactive information according to claim 8, which is characterized in that described device further includes setting Set unit, for the content of text chapter-end be inserted into occupy-place paragraph corresponding with the size information when, will described in The color of the content of text of occupy-place paragraph is set as transparent.
11. the displaying device of text interactive information according to claim 9, which is characterized in that the typesetting unit includes:
Subelement is obtained, for obtaining current reading progress msg;
Subelement is generated, is used for according to preset page formatting information, text fragment information and occupy-place section that the page can be shown It falls, generates composition information;
Typesetting subelement is used for according to composition information and the reading progress msg, in the text for inserting occupy-place paragraph Hold and carry out typesetting, obtains typesetting result.
12. the displaying device of text interactive information according to claim 11, which is characterized in that described device further include:
Second acquisition unit, for according to the typesetting as a result, obtaining current page needs the content of text that shows;
Rendering unit obtains textual image for needing the content of text shown to render current page;
The display unit, for being shown in preset page form control to the textual image.
13. the displaying device of text interactive information according to claim 12, which is characterized in that described device further include:
Generation unit, if for determining that current page includes the occupy-place paragraph according to the typesetting result, according to interaction window The size information of body control generates interactive form control of corresponding size;
Second determination unit, for, in the position of current page, determining the seat for placing interaction form control according to the occupy-place paragraph Mark information;
Placement unit, in the page form control, interactive form control of corresponding size to be placed into the coordinate On the position of information instruction, so that being put into interactive form control of corresponding size on the occupy-place paragraph.
14. according to the displaying device of the described in any item text interactive informations of claim 8 to 13, which is characterized in that described to insert Enter unit, is inserted into occupy-place paragraph corresponding with the size information specifically for the chapter-end in the content of text.
15. a kind of storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is loaded and executed by processor As described in any one of claim 1 to 7 the step of the methods of exhibiting of text interactive information.
CN201710922943.3A 2017-09-30 2017-09-30 Method and device for displaying text interactive information and storage medium Active CN109597981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710922943.3A CN109597981B (en) 2017-09-30 2017-09-30 Method and device for displaying text interactive information and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710922943.3A CN109597981B (en) 2017-09-30 2017-09-30 Method and device for displaying text interactive information and storage medium

Publications (2)

Publication Number Publication Date
CN109597981A true CN109597981A (en) 2019-04-09
CN109597981B CN109597981B (en) 2022-05-17

Family

ID=65956300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710922943.3A Active CN109597981B (en) 2017-09-30 2017-09-30 Method and device for displaying text interactive information and storage medium

Country Status (1)

Country Link
CN (1) CN109597981B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110348000A (en) * 2019-07-16 2019-10-18 仲恺农业工程学院 Typesetting document interactive computing method, device, equipment and computer readable medium
CN110784753A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Interactive video playing method and device, storage medium and electronic equipment
CN111475762A (en) * 2020-04-10 2020-07-31 掌阅科技股份有限公司 Method for processing published page, computing device and storage medium
CN114125566A (en) * 2021-12-29 2022-03-01 阿里巴巴(中国)有限公司 Interaction method and system and electronic equipment
WO2023124936A1 (en) * 2021-12-31 2023-07-06 北京字节跳动网络技术有限公司 Reading typesetting method and apparatus, device, and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002304142A (en) * 2001-04-03 2002-10-18 Neeburu:Kk Method and device for advertisement placing processing and program
CN101320369A (en) * 2007-06-06 2008-12-10 新部广告公司 Method and system for inserting targeted data in available spaces of a webpage
CN101404080A (en) * 2008-10-31 2009-04-08 北大方正集团有限公司 Advertisement imbedding and indication method and apparatus
KR20090046670A (en) * 2008-04-21 2009-05-11 주식회사 아리아드 Interactive ads in-sight system by keywords with contents heatmap frame
US20120185787A1 (en) * 2011-01-13 2012-07-19 Microsoft Corporation User interface interaction behavior based on insertion point
US20130174017A1 (en) * 2011-12-29 2013-07-04 Chegg, Inc. Document Content Reconstruction
CN105264517A (en) * 2013-05-20 2016-01-20 微软技术许可有限责任公司 Ink to text representation conversion
CN105373545A (en) * 2014-08-25 2016-03-02 阿里巴巴集团控股有限公司 Picture display method and device
CN105912227A (en) * 2016-04-13 2016-08-31 广州阿里巴巴文学信息技术有限公司 Text information display method, device and mobile device
CN106407199A (en) * 2015-07-27 2017-02-15 广州市动景计算机科技有限公司 Network article comment processing method and apparatus
CN107180041A (en) * 2016-03-09 2017-09-19 广州市动景计算机科技有限公司 Web page content review method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002304142A (en) * 2001-04-03 2002-10-18 Neeburu:Kk Method and device for advertisement placing processing and program
CN101320369A (en) * 2007-06-06 2008-12-10 新部广告公司 Method and system for inserting targeted data in available spaces of a webpage
KR20090046670A (en) * 2008-04-21 2009-05-11 주식회사 아리아드 Interactive ads in-sight system by keywords with contents heatmap frame
CN101404080A (en) * 2008-10-31 2009-04-08 北大方正集团有限公司 Advertisement imbedding and indication method and apparatus
US20120185787A1 (en) * 2011-01-13 2012-07-19 Microsoft Corporation User interface interaction behavior based on insertion point
US20130174017A1 (en) * 2011-12-29 2013-07-04 Chegg, Inc. Document Content Reconstruction
CN105264517A (en) * 2013-05-20 2016-01-20 微软技术许可有限责任公司 Ink to text representation conversion
CN105373545A (en) * 2014-08-25 2016-03-02 阿里巴巴集团控股有限公司 Picture display method and device
CN106407199A (en) * 2015-07-27 2017-02-15 广州市动景计算机科技有限公司 Network article comment processing method and apparatus
CN107180041A (en) * 2016-03-09 2017-09-19 广州市动景计算机科技有限公司 Web page content review method and system
CN105912227A (en) * 2016-04-13 2016-08-31 广州阿里巴巴文学信息技术有限公司 Text information display method, device and mobile device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110348000A (en) * 2019-07-16 2019-10-18 仲恺农业工程学院 Typesetting document interactive computing method, device, equipment and computer readable medium
CN110348000B (en) * 2019-07-16 2023-12-26 仲恺农业工程学院 Typesetting document interaction calculation method, device, equipment and computer readable medium
CN110784753A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Interactive video playing method and device, storage medium and electronic equipment
CN111475762A (en) * 2020-04-10 2020-07-31 掌阅科技股份有限公司 Method for processing published page, computing device and storage medium
CN111475762B (en) * 2020-04-10 2023-07-18 掌阅科技股份有限公司 Publication page processing method, computing device and storage medium
CN114125566A (en) * 2021-12-29 2022-03-01 阿里巴巴(中国)有限公司 Interaction method and system and electronic equipment
CN114125566B (en) * 2021-12-29 2024-03-08 阿里巴巴(中国)有限公司 Interaction method, interaction system and electronic equipment
WO2023124936A1 (en) * 2021-12-31 2023-07-06 北京字节跳动网络技术有限公司 Reading typesetting method and apparatus, device, and storage medium

Also Published As

Publication number Publication date
CN109597981B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN109597981A (en) A kind of methods of exhibiting, device and the storage medium of text interactive information
CN106168978B (en) Method and device for processing popup in webpage
KR101493630B1 (en) Method, apparatus and system for interacting with content on web browsers
US8769398B2 (en) Animation control methods and systems
US8453051B1 (en) Dynamic display dependent markup language interface
US20150012818A1 (en) System and method for semantics-concise interactive visual website design
US20150149951A1 (en) Live previews for multitasking and state management
US20130238975A1 (en) Off-line presentation of web content
JP2015502606A (en) Cross window animation
JP2007249989A5 (en)
EP2574213A1 (en) Orientation-dependent processing of input files by an electronic device
US11671696B2 (en) User interfaces for managing visual content in media
US9460059B2 (en) Method and apparatus for visualizing the underlying structure of a document using an interactive viewport overlay
CN109635683A (en) Method for extracting content and terminal device in a kind of image
CN107533568A (en) It is determined that the system and method using zoom level
CN108763544A (en) A kind of display methods and terminal
CN104281560B (en) Display method, device and terminal of memory text information
CN103034686A (en) Method and device for loading picture toolbar window
CN102981877A (en) Method and device for loading picture toolbar
CN103294351A (en) Display method and electronic device
CN109634487A (en) Information display method, device and storage medium
JP2016085547A (en) Electronic apparatus and method
JP2009015610A (en) Page action start device, page action start control method, and page action start control program
US20180285940A1 (en) Web advertisement placement
JP4151974B2 (en) Document display device, document display method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant