CN106227716B - A kind of system and method for realizing branching selection structure electrical documents editing - Google Patents
A kind of system and method for realizing branching selection structure electrical documents editing Download PDFInfo
- Publication number
- CN106227716B CN106227716B CN201610578831.6A CN201610578831A CN106227716B CN 106227716 B CN106227716 B CN 106227716B CN 201610578831 A CN201610578831 A CN 201610578831A CN 106227716 B CN106227716 B CN 106227716B
- Authority
- CN
- China
- Prior art keywords
- node
- branch selection
- selection structure
- editing
- electronic document
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000002452 interceptive effect Effects 0.000 claims abstract description 79
- 230000009471 action Effects 0.000 claims description 103
- 230000000007 visual effect Effects 0.000 claims description 65
- 230000006870 function Effects 0.000 claims description 18
- 238000009877 rendering Methods 0.000 claims description 9
- 239000003086 colorant Substances 0.000 claims description 6
- 238000002372 labelling Methods 0.000 claims description 6
- 230000003993 interaction Effects 0.000 abstract description 9
- 238000012800 visualization Methods 0.000 abstract 1
- 238000011161 development Methods 0.000 description 5
- 229910001316 Ag alloy Inorganic materials 0.000 description 2
- BQCADISMDOOEFD-UHFFFAOYSA-N Silver Chemical compound [Ag] BQCADISMDOOEFD-UHFFFAOYSA-N 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
Abstract
The present invention provides a kind of system and method for realizing branching selection structure electrical documents editing, and the data structure of branching selection structure electrical document is created first in editing equipment memory;And then branching selection structure electrical document data structure is created, edits branching selection structured documents and accordingly updated by the visualization interface in editing equipment;And it edits the content of text of branching selection structured documents interior joint and accordingly updates the content of text of the branching selection structure electrical document data structure interior joint list simultaneously;Mark the node in branching selection structured documents finally to search and follow-up editor.By the system and method for above-mentioned realization branching selection structure electrical documents editing, the editor of branching selection structure electrical document is solved the problems, such as, and then realize that the editor of novel class subject matter interactive mode reading electronic book generates.The interactive mode reading electronic book realizes the interaction of reader and e-book, improves the enjoyment and property of participation of reading.
Description
Technical Field
The invention relates to the technical field of computer software, in particular to a system and a method for realizing electronic document editing of a branch selection structure.
Background
With the development of technology, electronic Reading (E-book Reading) has not been limited to personal computers (personal computers), and more electronic digital devices and mobile communication devices have been provided with the function of electronic book Reading, and terminal devices specifically for electronic book Reading have appeared. Admittedly, an electronic book (E-book) has the advantages of portability, easy use, large capacity, energy conservation, environmental protection and the like compared with a paper book, and can also reasonably utilize fragment time, realize more exquisite design and increase multimedia functions; however, electronic reading at the present stage does not depart from the traditional reading mode of passively receiving the plot design of the author.
In recent years, with the rapid development and popularization of touch screen type electronic digital devices and mobile communication terminals, the concept of interactive reading is generated due to the fact that good human-computer interaction experience effect is highly appreciated by consumers. Currently, interactive reading e-book applications focus primarily on non-fiction-like, low-volume material such as preschool education, children's stories, and the like. The interactive reading electronic book application of the subject matter generally sets a contact point in the interactive reading electronic book, and realizes interaction of the content of the contact point through operations such as clicking of a reader and the like. However, in the case of novels, the literary works of such subjects are rich in content, with continuous storyline and complex environmental portrayal. Obviously, the above-mentioned interactive reading ebook application cannot be applied to reading of literary works such as novels, prose, and the like.
A system, a method and a device for realizing interactive electronic reading can realize the interactive electronic reading of the subject literary works of the novel class. The system, the method and the equipment for realizing interactive electronic reading mainly realize the interaction between readers and the electronic book through branch selection playing, so that the readers can influence even determine the development direction of the plot of the work through the interaction, and the interest and the participation of reading are improved.
However, currently, electronic book editors on the market, such as EXE electronic book editor, CHM electronic book editor, UMD electronic book editor, etc., obviously cannot edit and generate such interactive reading electronic books. A system, a method and a client for realizing branch selection interactive reading of an electronic book can realize the editing and generation of the interactive reading of the electronic book; the electronic document with the structure is selected mainly through an editing branch, and then editing and generating of the interactive reading electronic book are achieved.
Disclosure of Invention
The invention provides a system and a method for realizing editing of an electronic document with a branch selection structure, which are used for solving the editing problem of the electronic document with the branch selection structure and further realizing editing and generating of a novel subject interactive reading electronic book.
The embodiment of the invention provides a system for realizing the editing of a branch selection structure electronic document, which comprises a data serialization module, an interface editing module, a text editing module and a node marking module; wherein,
a, the data serialization module is used for creating a data structure of the branch selection structure electronic document; specifically, a node list, a node action list, a chapter node list and an extended information list are created in a memory of editing equipment; wherein,
the node list is a set for writing node information; the node is the minimum carrier for realizing the branch selection playing function of the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document and is the minimum unit of the branch selection structure electronic document; the branch selection structure electronic document consists of N (N > ═ 2, N is an integer) nodes;
further, the node information comprises a node index, belonging chapter information, node type information and text content; wherein,
the node index refers to an identification code for accessing the node information; only by accessing and reading the node information can the node be played accordingly;
the affiliated chapter information is specifically chapter indexes of the affiliated chapters of the node in the interactive reading electronic book;
the node type information is used for marking the type of the node; the nodes are divided into common nodes and button nodes according to node types; the common nodes can only write text contents and have no interactive function; the button type node not only writes text content, but also has an interactive function;
the text content refers to a plurality of words for describing the content of the interactive reading electronic book works;
furthermore, the node information also includes node extension information for implementing extension functions of the node during playing, such as sound effect playing, picture loading, and the like;
the node action list is a set used for writing node action information; the node action refers to an action that a node in the node list can call after playing, and the node action is used for describing the condition that the node points to a connected subsequent node; one node action can describe the subsequent node connection condition of only one node; the node is a current node; one of the current nodes has M subsequent nodes (M > ═ 0, M is an integer);
further, the node action information comprises a node action index, a node action type and subsequent node information; wherein,
the node action index refers to an identification code for accessing the node action information; the node action can be called only by accessing and reading the node action information, and then the node action is played to point to the connected subsequent node; the node index and the node action index are both represented by numerical values; the node index of the current node is the same as the node action index value of the calling node action;
the node action types comprise a Next type, a Select type, a Break type, a Continue type and a Jump type; wherein,
a Next type, which is used for describing a direct and unique connection relationship between the current node and the subsequent nodes thereof; the current node is a father node, and the subsequent nodes are child nodes; one of the parent nodes has and can only have one child node (i.e., M ═ 1);
the Select type is used for describing a selectable connection relation between the current node and the subsequent node; the current node is a branch father node, and the subsequent node is an option child node; one said branch parent node has P option child nodes (P > ═ 1, P is an integer);
break type, which is used to describe that the current node is no longer connected with the subsequent node (i.e. M ═ 0); the current node is also called an interrupt node;
the Continue type is used for describing a direct and unique connection relation between the current node and the subsequent nodes thereof, and the front node and the rear node belong to different chapters; the current node is a parent node of a previous chapter, and the subsequent node is a child node of a subsequent chapter; the previous chapter parent node has one and only one subsequent chapter child node (i.e., M ═ 1);
jump type, which is used to describe the Jump relationship between the current node and the subsequent node; the subsequent node is any one of other nodes which are not current;
furthermore, the option child node is a button type node, and other nodes are common type nodes;
the subsequent node information is specifically a node index of the node action pointing to the connected subsequent node;
the chapter node list is a set for writing chapter information; the chapter information comprises a chapter index and a chapter name;
the extended information list is a set of extended information used for writing the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document; the extended information comprises information of a cover, a brief introduction of a work, an author, a work type and the like of the extended information;
the interface editing module is used for realizing the visual editing of the branch selection structure electronic document; specifically, a visual interface of the editing device is opened, and the branch selection structure document is newly created and edited on the visual interface and the branch selection structure electronic document data structure created by the data serialization module is correspondingly updated; wherein,
b1, creating a blank interactive reading electronic book on the editing equipment or opening an existing interactive reading electronic book, and simultaneously opening a visual editing interface of the editing equipment;
when the interactive reading electronic book is newly built, after the visual editing interface is opened, initial node information with empty text content is generated and inserted into a node list of a branch selection structure electronic document data structure created by the data serialization module, and meanwhile, blank initial nodes are rendered on the visual editing interface;
the blank initial node is a node which describes the initial text content of the interactive reading electronic book, and the text content is blank;
when an existing interactive reading electronic book is opened, the existing interactive reading electronic book is analyzed through deserialization to obtain a data structure of a branch selection structure electronic document of the existing interactive reading electronic book, the data structure is loaded into a memory of the editing equipment, and the branch selection structure document is rendered on the visual editing interface according to the data structure;
b2, according to the author concept, by calling and loading the node action functional component and the blank node component, creating and editing a branch selection structure document in the visual editing interface, and meanwhile, correspondingly updating the branch selection structure electronic document data structure created by the data serialization module;
further, when the node action functional component is called, the node action list of the electronic document data structure of the branch selection structure is correspondingly updated, and the node action is rendered on the visual editing interface;
the type of the node action functional component corresponds to the node action type in the electronic document data structure of the branch selection structure;
when the blank node component is called, correspondingly updating the node list of the electronic document data structure of the branch selection structure, and rendering the blank node on the visual editing interface;
the blank node is a node with empty text content; the type of the blank node component corresponds to the node type in the electronic document data structure of the branch selection structure;
editing the branch selection structure document, specifically adding, modifying, deleting nodes or relationships between nodes (i.e. the node functional components) in the branch selection structure document; correspondingly updating the branch selection structure electronic document data structure while editing the branch selection structure document, specifically correspondingly inserting, modifying and deleting corresponding list information in the branch selection structure electronic document data structure;
the text editing module is specifically used for editing the text contents of the nodes in the document with the branch selection structure in the visual editing interface and correspondingly updating the text contents of the node list in the electronic document data structure with the branch selection structure; the editing is specifically creating, changing or deleting the text content and text format editing;
the node marking module is used for marking the nodes in the branch selection structure document so as to more efficiently search the nodes in the branch selection structure document and edit the branch selection structure document;
further, the node labeling module is specifically configured to label all nodes in the branch selection structure document in a full traversal manner; and the marking is to render the node by adopting different colors and/or shapes according to the difference of the type of the node in the branch selection structure document and the called node action type.
The embodiment of the invention provides a method for realizing the editing of an electronic document with a branch selection structure, which comprises the following steps:
s1 creating a data structure of the branch selection structure electronic document; specifically, a node list, a node action list, a chapter node list and an extended information list are created in a memory of the editing equipment; wherein,
the node list, the node action list, the chapter information list and the extended information list are in the electronic document data structure of the branch selection structure constructed by the data serialization module in the electronic document editing system for realizing the branch selection structure;
s2, opening a visual interface of the editing equipment, and creating and editing the branch selection structure document and correspondingly updating the branch selection structure electronic document data structure on the visual interface; in particular to a method for preparing a high-performance nano-silver alloy,
newly building a blank interactive reading electronic book on the editing equipment or opening an existing interactive reading electronic book, and simultaneously opening a visual editing interface of the editing equipment; when a new interactive reading electronic book is created, after the visual editing interface is opened, generating initial node information with empty text content, inserting the initial node information into a node list of the electronic document data structure of the branch selection structure, and rendering blank initial nodes on the visual editing interface; when an existing interactive reading electronic book is opened, the existing interactive reading electronic book is analyzed through deserialization to obtain a data structure of a branch selection structure electronic document of the existing interactive reading electronic book, the data structure is loaded into a memory of the editing equipment, and the branch selection structure document is rendered on the visual editing interface according to the data structure;
the blank initial node is a node which describes the initial text content of the interactive reading electronic book, and the text content is blank;
then, according to the idea of an author, a node action functional component and a blank node component are called and loaded, a branch selection structure document is newly built and edited in the visual editing interface, and meanwhile, the electronic document data structure of the branch selection structure is correspondingly updated;
further, when the node action functional component is called, the node action list of the electronic document data structure of the branch selection structure is correspondingly updated, and the node action is rendered on the visual editing interface; when the blank node component is called, correspondingly updating the node list of the electronic document data structure of the branch selection structure, and rendering the blank node on the visual editing interface; editing the branch selection structure document, specifically adding, modifying, deleting nodes or relationships between nodes (i.e. the node functional components) in the branch selection structure document; correspondingly updating the branch selection structure electronic document data structure while editing the branch selection structure document, specifically correspondingly inserting, modifying and deleting corresponding list information in the branch selection structure electronic document data structure;
the type of the node action functional component corresponds to the node action type in the electronic document data structure of the branch selection structure; the blank node is a node with empty text content; the type of the blank node component corresponds to the node type in the electronic document data structure of the branch selection structure;
s3 editing the text content of the node in the branch selection structure document in the visual editing interface, and updating the text content of the node list in the branch selection structure electronic document data structure correspondingly;
the editing is specifically creating, changing or deleting the text content and text format editing;
s4 labeling nodes in the branch selection structure document to more efficiently find nodes in the branch selection structure document and edit the branch selection structure document;
further, specifically, all nodes in the branch selection structure document are marked in a full traversal mode; the marking means that different colors and/or shapes are adopted to mark the nodes according to the types of the nodes in the branch selection structure document and the different types of the called node actions.
The invention provides a system and method for realizing the branch selection structure electronic document editing, firstly, the data structure of the branch selection structure electronic document is established in the internal memory of the editing device; creating and editing a branch selection structure document and correspondingly updating a branch selection structure electronic document data structure through a visual interface of editing equipment; editing the text content of the nodes in the branch selection structure document and correspondingly updating the text content of the node list in the branch selection structure electronic document data structure at the same time; finally, marking the nodes in the branch selection structure document so as to search and edit the nodes. By the system and the method for editing the electronic document with the branch selection structure, the problem of editing the electronic document with the branch selection structure is solved, and then editing and generating of a novel subject interactive reading electronic book are realized. The interactive reading electronic book realizes the interaction between readers and the electronic book, so that the readers can influence even determine the development direction of the plot of the work through the interaction, and the reading pleasure and the participation are improved.
Drawings
Fig. 1 is a schematic structural diagram of a system for implementing editing of an electronic document with a branch selection structure according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method for implementing editing of an electronic document with a branch selection structure according to embodiment 2 of the present invention.
Detailed Description
In order to make the purpose, technical scheme and beneficial effects obtained by the embodiments of the present invention clearer, the technical scheme in the embodiments of the present invention is clearly and completely described below with reference to the accompanying drawings. It is to be understood that the embodiments described herein are merely illustrative and explanatory of the invention and are not restrictive thereof. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a system for implementing editing of an electronic document with a branch selection structure according to embodiment 1 of the present invention, and as shown in fig. 1, the system includes a data serialization module 101, an interface editing module 102, a text editing module 103, and a node labeling module 104; wherein,
a data serialization module 101 for creating a data structure of the branch selection structure electronic document; specifically, a node list, a node action list, a chapter node list and an extended information list are created in a memory of editing equipment; wherein,
the node list is a set for writing node information; the node is the minimum carrier for realizing the branch selection playing function of the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document and is the minimum unit of the branch selection structure electronic document; the branch selection structure electronic document consists of N (N > ═ 2, N is an integer) nodes;
the node information comprises a node index, affiliated chapter information, node type information, text content and node information; wherein,
the node index refers to an identification code for accessing the node information; only by accessing and reading the node information can the node be played accordingly;
the affiliated chapter information is specifically chapter indexes of the affiliated chapters of the node in the interactive reading electronic book;
the node type information is used for marking the type of the node; the nodes are divided into common nodes and button nodes according to node types; the common nodes can only write text contents and have no interactive function; the button type node not only writes text content, but also has an interactive function;
the text content refers to a plurality of words for describing the content of the interactive reading electronic book works;
the node extension information is used for realizing the extension function of the node during playing;
the node action list is a set used for writing node action information; the node action refers to an action that a node in the node list can call after playing, and the node action is used for describing the condition that the node points to a connected subsequent node; one node action can describe the subsequent node connection condition of only one node; the node is a current node; one of the current nodes has M subsequent nodes (M > ═ 0, M is an integer);
the node action information comprises a node action index, a node action type and subsequent node information; wherein,
the node action index refers to an identification code for accessing the node action information; the node action can be called only by accessing and reading the node action information, and then the node action is played to point to the connected subsequent node; the node index and the node action index are both represented by numerical values; the node index of the current node is the same as the node action index value of the calling node action;
the node action types comprise a Next type, a Select type, a Break type, a Continue type and a Jump type; wherein,
a Next type, which is used for describing a direct and unique connection relationship between the current node and the subsequent nodes thereof; the current node is a father node, and the subsequent nodes are child nodes; one of the parent nodes has and can only have one child node (i.e., M ═ 1);
the Select type is used for describing a selectable connection relation between the current node and the subsequent node; the current node is a branch father node, and the subsequent node is an option child node; one said branch parent node has P option child nodes (P > ═ 1, P is an integer);
break type, which is used to describe that the current node is no longer connected with the subsequent node (i.e. M ═ 0); the current node is also called an interrupt node;
the Continue type is used for describing a direct and unique connection relation between the current node and the subsequent nodes thereof, and the front node and the rear node belong to different chapters; the current node is a parent node of a previous chapter, and the subsequent node is a child node of a subsequent chapter; the previous chapter parent node has one and only one subsequent chapter child node (i.e., M ═ 1);
jump type, which is used to describe the Jump relationship between the current node and the subsequent node; the subsequent node is any one of other nodes which are not current;
furthermore, the option child node is a button type node, and other nodes are common type nodes;
the subsequent node information is specifically a node index of the node action pointing to the connected subsequent node;
the chapter node list is a set for writing chapter information; the chapter information comprises a chapter index and a chapter name;
the extended information list is a set of extended information used for writing the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document; the extended information comprises information of a cover, a brief introduction of a work, an author, a work type and the like of the extended information;
the interface editing module 102 is configured to implement visual editing of the branch selection structure electronic document; specifically, a visual interface of the editing device is opened, and the branch selection structure document is newly created and edited on the visual interface and the branch selection structure electronic document data structure created by the data serialization module is correspondingly updated; wherein,
newly building a blank interactive reading electronic book on the editing equipment or opening an existing interactive reading electronic book, and simultaneously opening a visual editing interface of the editing equipment;
when the interactive reading electronic book is newly built, after the visual editing interface is opened, initial node information with empty text content is generated and inserted into a node list of a branch selection structure electronic document data structure created by the data serialization module, and meanwhile, blank initial nodes are rendered on the visual editing interface;
the blank initial node is a node which describes the initial text content of the interactive reading electronic book, and the text content is blank;
when an existing interactive reading electronic book is opened, the existing interactive reading electronic book is analyzed through deserialization to obtain a data structure of a branch selection structure electronic document of the existing interactive reading electronic book, the data structure is loaded into a memory of the editing equipment, and the branch selection structure document is rendered on the visual editing interface according to the data structure;
then, according to the idea of an author, by calling and loading a node action function component 1021 and a blank node component 1022, a branch selection structure document 1023 is newly created and edited in the visual editing interface, and meanwhile, the branch selection structure electronic document data structure created by the data serialization module is correspondingly updated;
further, when the node action functional component is called, the node action list of the electronic document data structure of the branch selection structure is correspondingly updated, and the node action is rendered on the visual editing interface;
the type of the node action functional component corresponds to the node action type in the electronic document data structure of the branch selection structure;
when the blank node component is called, correspondingly updating the node list of the electronic document data structure of the branch selection structure, and rendering the blank node on the visual editing interface;
the blank node is a node with empty text content; the type of the blank node component corresponds to the node type in the electronic document data structure of the branch selection structure;
editing the branch selection structure document, specifically adding, modifying, deleting nodes or relationships between nodes (i.e. the node functional components) in the branch selection structure document; correspondingly updating the branch selection structure electronic document data structure while editing the branch selection structure document, specifically correspondingly inserting, modifying and deleting corresponding list information in the branch selection structure electronic document data structure;
the text editing module 103 is specifically configured to edit the text content of the node in the branch selection structure document in the visual editing interface, and simultaneously update the text content of the node list in the branch selection structure electronic document data structure correspondingly; the editing is specifically creating, changing or deleting the text content and text format editing;
a node labeling module 104, configured to label nodes in the branch selection structure document, so as to more efficiently search for nodes in the branch selection structure document and edit the branch selection structure document;
further, the node labeling module is specifically configured to label all nodes in the branch selection structure document in a full traversal manner; and the marking is to render the node by adopting different colors and/or shapes according to the difference of the type of the node in the branch selection structure document and the called node action type.
An embodiment 2 of the present invention provides a method for implementing editing of an electronic document with a branch selection structure, as shown in fig. 2, where the method includes:
step 201, creating a data structure of the branch selection structure electronic document; specifically, a node list, a node action list, a chapter node list and an extended information list are created in a memory of the editing equipment; the node list, the node action list, the chapter information list and the extended information list are in a branch selection structure electronic document data structure constructed by the data serialization module in the branch selection structure electronic document editing system;
step 202, opening a visual interface of the editing equipment, creating and editing the branch selection structure document on the visual interface, and correspondingly updating the branch selection structure electronic document data structure; in particular to a method for preparing a high-performance nano-silver alloy,
newly building a blank interactive reading electronic book on the editing equipment or opening an existing interactive reading electronic book, and simultaneously opening a visual editing interface of the editing equipment; when a new interactive reading electronic book is created, after the visual editing interface is opened, generating initial node information with empty text content, inserting the initial node information into a node list of the electronic document data structure of the branch selection structure, and rendering blank initial nodes on the visual editing interface; when an existing interactive reading electronic book is opened, the existing interactive reading electronic book is analyzed through deserialization to obtain a data structure of a branch selection structure electronic document of the existing interactive reading electronic book, the data structure is loaded into a memory of the editing equipment, and the branch selection structure document is rendered on the visual editing interface according to the data structure; the blank initial node is a node which describes the initial text content of the interactive reading electronic book, and the text content is blank;
then, according to the idea of an author, a node action functional component and a blank node component are called and loaded, a branch selection structure document is newly built and edited in the visual editing interface, and meanwhile, the electronic document data structure of the branch selection structure is correspondingly updated; specifically, when the node action functional component is called, the node action list of the electronic document data structure of the branch selection structure is correspondingly updated, and the node action is rendered on the visual editing interface; when the blank node component is called, correspondingly updating the node list of the electronic document data structure of the branch selection structure, and rendering the blank node on the visual editing interface; editing the branch selection structure document, specifically adding, modifying, deleting nodes or relationships between nodes (i.e. the node functional components) in the branch selection structure document; correspondingly updating the branch selection structure electronic document data structure while editing the branch selection structure document, specifically correspondingly inserting, modifying and deleting corresponding list information in the branch selection structure electronic document data structure;
the type of the node action functional component corresponds to the node action type in the electronic document data structure of the branch selection structure; the blank node is a node with empty text content; the type of the blank node component corresponds to the node type in the electronic document data structure of the branch selection structure;
step 203, editing the text content of the node in the branch selection structure document in the visual editing interface, and simultaneously correspondingly updating the text content of the node list in the branch selection structure electronic document data structure; the editing is specifically creating, changing or deleting the text content and text format editing;
step 204, marking nodes in the branch selection structure document so as to more efficiently search the nodes in the branch selection structure document and edit the branch selection structure document; specifically, all nodes in the branch selection structure document are marked in a full traversal mode; the marking means that different colors and/or shapes are adopted to mark the nodes according to the types of the nodes in the branch selection structure document and the different types of the called node actions.
The system and the method for realizing the editing of the branch selection structure electronic document provided by the embodiment solve the editing problem of the branch selection structure electronic document, and further realize the editing generation of a novel subject interactive reading electronic book. The interactive reading electronic book realizes the interaction between readers and the electronic book, so that the readers can influence even determine the development direction of the plot of the work through the interaction, and the reading pleasure and the participation are improved.
Finally, it should be noted that: the above examples are only for illustrating the technical solutions of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A system for realizing the editing of an electronic document with a branch selection structure is characterized by comprising a data serialization module, an interface editing module, a text editing module and a node marking module; wherein,
a, the data serialization module is used for creating a data structure of the branch selection structure electronic document; specifically, a node list, a node action list, a chapter node list and an extended information list are created in a memory of editing equipment; wherein,
the node list is a set for writing node information; the node is the minimum carrier for realizing the branch selection playing function of the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document and is the minimum unit of the branch selection structure electronic document; the branch selection structure electronic document consists of N nodes, wherein N is an integer not less than 2;
the node action list is a set used for writing node action information; the node action refers to an action that a node in the node list can call after playing, and the node action is used for describing the condition that the node points to a connected subsequent node;
the chapter node list is a set for writing chapter information;
the extended information list is a set of extended information used for writing the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document;
the interface editing module is used for realizing the visual editing of the branch selection structure electronic document; specifically, a visual interface of the editing device is opened, and the branch selection structure document is newly created and edited on the visual interface and the branch selection structure electronic document data structure created by the data serialization module is correspondingly updated;
the text editing module is specifically used for editing the text contents of the nodes in the document with the branch selection structure in the visual editing interface and correspondingly updating the text contents of the node list in the electronic document data structure with the branch selection structure;
and D, the node marking module is used for marking the nodes in the branch selection structure document.
2. The system for implementing branch selection structure electronic document editing according to claim 1,
the node information comprises a node index, affiliated chapter information, node type information and text content; wherein,
the node index refers to an identification code for accessing the node information;
the affiliated chapter information is specifically chapter indexes of the affiliated chapters of the node in the interactive reading electronic book;
the node type information is used for marking the type of the node; the nodes are divided into common nodes and button nodes according to node types; the common nodes can only write text contents and have no interactive function; the button type node not only writes text content, but also has an interactive function;
the text content refers to a plurality of words for describing the content of the interactive reading electronic book works.
3. The system for implementing branch selection structure electronic document editing according to claim 2,
the node information also contains node extension information used for realizing the extension function of the node during playing.
4. The system for implementing branch selection structure electronic document editing according to claim 2, wherein one of the node actions can describe only one of the node's subsequent node connection conditions; the node is a current node; one of the current nodes has M subsequent nodes, where M is a non-negative integer;
the node action information comprises a node action index, a node action type and subsequent node information; wherein,
the node action index refers to an identification code for accessing the node action information;
the node action types comprise a Next type, a Select type, a Break type, a Continue type and a Jump type; wherein,
the Next type is used for describing a direct and unique connection relation between the current node and the subsequent node; the current node is a father node, and the subsequent nodes are child nodes; one parent node has one and only one child node;
the Select type is used for describing a selectable connection relation between the current node and the subsequent node; the current node is a branch father node, and the subsequent node is an option child node; one said branch parent node has P option child nodes, where P is a positive integer;
the Break type is used for describing that the current node is not connected with a subsequent node any more; the current node is also called an interrupt node;
the Continue type is used for describing a direct and unique connection relationship between the current node and the subsequent node thereof, and the front node and the rear node belong to different chapters; the current node is a parent node of a previous chapter, and the subsequent node is a child node of a subsequent chapter; the front section father node has and can only have one subsequent section child node;
the Jump type is used for describing that the current node and the subsequent node thereof are in a Jump relationship; the subsequent node is any one of other nodes which are not current;
the option child node is the button type node, and the other nodes are the common type nodes;
the subsequent node information is specifically a node index of the node action pointing to the connected subsequent node.
5. The system for implementing branch selection structure electronic document editing according to claim 1, wherein the implementation process of the interface editing module includes,
b1, creating a blank interactive reading electronic book on the editing equipment or opening an existing interactive reading electronic book, and simultaneously opening a visual editing interface of the editing equipment;
when the interactive reading electronic book is newly built, after the visual editing interface is opened, initial node information with empty text content is generated and inserted into a node list of a branch selection structure electronic document data structure created by the data serialization module, and meanwhile, blank initial nodes are rendered on the visual editing interface;
when an existing interactive reading electronic book is opened, the existing interactive reading electronic book is analyzed through deserialization to obtain a data structure of a branch selection structure electronic document of the existing interactive reading electronic book, the data structure is loaded into a memory of the editing equipment, and the branch selection structure document is rendered on the visual editing interface according to the data structure;
b2 then creates and edits a branch selection structure document in the visual editing interface by calling and loading a node action function component and a blank node component according to the author concept, and simultaneously updates the branch selection structure electronic document data structure created by the data serialization module correspondingly.
6. The system according to claim 5, wherein the node action function component, when invoked, updates the node action list of the branch selection structure electronic document data structure correspondingly, and renders the node action in the visual editing interface;
when the blank node component is called, correspondingly updating the node list of the electronic document data structure of the branch selection structure, and rendering the blank node on the visual editing interface;
editing the branch selection structure document, specifically adding, modifying, deleting nodes or relationships between nodes (i.e. the node functional components) in the branch selection structure document; and correspondingly updating the branch selection structure electronic document data structure while editing the branch selection structure document, specifically correspondingly inserting, modifying and deleting the corresponding list information in the branch selection structure electronic document data structure.
7. The system for implementing editing of a branch selection structure electronic document according to claim 1, wherein the labeling module labels all nodes in the branch selection structure document in a full traversal manner; and the marking is to render the node by adopting different colors and/or shapes according to the difference of the type of the node in the branch selection structure document and the called node action type.
8. A method for realizing branch selection structure electronic document editing is characterized by comprising the following steps:
s1 creating a data structure of the branch selection structure electronic document; specifically, a node list, a node action list, a chapter node list and an extended information list are created in a memory of the editing equipment;
the node list is a set for writing node information; the node is the minimum carrier for realizing the branch selection playing function of the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document and is the minimum unit of the branch selection structure electronic document; the branch selection structure electronic document consists of N nodes, wherein N is an integer not less than 2;
the node action list is a set used for writing node action information; the node action refers to an action that a node in the node list can call after playing, and the node action is used for describing the condition that the node points to a connected subsequent node;
the chapter node list is a set for writing chapter information;
the extended information list is a set of extended information used for writing the branch selection structure electronic document and the interactive reading electronic book generated by the branch selection structure electronic document;
s2, opening a visual interface of the editing equipment, and creating and editing the branch selection structure document and correspondingly updating a branch selection structure electronic document data structure on the visual interface;
s3 editing the text content of the node in the branch selection structure document in the visual editing interface, and updating the text content of the node list in the branch selection structure electronic document data structure correspondingly;
s4 labels the node in the branch selection structure document.
9. The method of claim 8, wherein the branch selection structure electronic document editing is implemented,
the node list, the node action list, the chapter information list and the extension information list are as set forth in any one of claims 1 to 7.
10. The method according to claim 8, wherein said creating, editing and updating the branch selection structure document data structure correspondingly on the visual interface, specifically,
newly building a blank interactive reading electronic book on the editing equipment or opening an existing interactive reading electronic book, and simultaneously opening a visual editing interface of the editing equipment; when the interactive reading electronic book is newly built, after the visual editing interface is opened, initial node information with empty text content is generated and inserted into a node list of a branch selection structure electronic document data structure created by the data serialization module, and meanwhile, blank initial nodes are rendered on the visual editing interface; when an existing interactive reading electronic book is opened, the existing interactive reading electronic book is analyzed through deserialization to obtain a data structure of a branch selection structure electronic document of the existing interactive reading electronic book, the data structure is loaded into a memory of the editing equipment, and the branch selection structure document is rendered on the visual editing interface according to the data structure;
then, according to the idea of an author, a branch selection structure document is newly built and edited in the visual editing interface by calling and loading a node action functional component and a blank node component, and meanwhile, the branch selection structure electronic document data structure created by the data serialization module is correspondingly updated; when the node action functional component is called, correspondingly updating a node action list of the electronic document data structure of the branch selection structure, and rendering the node action on the visual editing interface; when the blank node component is called, correspondingly updating the node list of the electronic document data structure of the branch selection structure, and rendering the blank node on the visual editing interface; editing the branch selection structure document, specifically adding, modifying, deleting nodes or relationships between nodes (i.e. the node functional components) in the branch selection structure document; correspondingly updating the branch selection structure electronic document data structure while editing the branch selection structure document, specifically correspondingly inserting, modifying and deleting corresponding list information in the branch selection structure electronic document data structure;
marking nodes in the branch selection structure document, specifically, marking all nodes in the branch selection structure document in a full traversal mode; the marking means that different colors and/or shapes are adopted to mark the nodes according to the types of the nodes in the branch selection structure document and the different types of the called node actions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610578831.6A CN106227716B (en) | 2016-07-21 | 2016-07-21 | A kind of system and method for realizing branching selection structure electrical documents editing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610578831.6A CN106227716B (en) | 2016-07-21 | 2016-07-21 | A kind of system and method for realizing branching selection structure electrical documents editing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106227716A CN106227716A (en) | 2016-12-14 |
CN106227716B true CN106227716B (en) | 2019-01-18 |
Family
ID=57531173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610578831.6A Active CN106227716B (en) | 2016-07-21 | 2016-07-21 | A kind of system and method for realizing branching selection structure electrical documents editing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106227716B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092586A (en) * | 2017-04-15 | 2017-08-25 | 上海地阳实业有限公司 | A kind of interactive network fiction editor platform and edit methods |
CN107451265A (en) * | 2017-07-31 | 2017-12-08 | 广州网嘉玩具科技开发有限公司 | A kind of story platform based on Internet of Things and artificial intelligence technology |
CN107644005B (en) * | 2017-08-17 | 2023-12-01 | 珠海云游道科技有限责任公司 | Visual document editing device and method |
CN108829654A (en) * | 2018-05-30 | 2018-11-16 | 互影科技(北京)有限公司 | A kind of interaction script editor's method and apparatus |
CN111831614A (en) * | 2019-04-15 | 2020-10-27 | 北京智启蓝墨信息技术有限公司 | Extended reading editing method, generating method, device and system in intelligent teaching material |
CN115357704B (en) * | 2022-10-19 | 2023-02-10 | 深圳市人马互动科技有限公司 | Processing method and related device for heterogeneous plot nodes in voice interaction novel |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1501282A (en) * | 2002-11-12 | 2004-06-02 | 英业达股份有限公司 | Electronic book making tool platform system and method thereof |
CN101616224A (en) * | 2008-06-23 | 2009-12-30 | 富士施乐株式会社 | Document management system, document management device and document management method |
CN102136199A (en) * | 2011-03-10 | 2011-07-27 | 刘超 | On-line electronic book reader and on-line electronic book editor |
CN102317933A (en) * | 2009-01-02 | 2012-01-11 | 苹果公司 | Content Profiling to Dynamically Configure Content Processing |
CN105335421A (en) * | 2014-08-06 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Method and apparatus for making and displaying e-book expansion content |
US9268754B1 (en) * | 2012-08-02 | 2016-02-23 | Amazon Technologies, Inc. | Adaptive editing in user interface applications |
-
2016
- 2016-07-21 CN CN201610578831.6A patent/CN106227716B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1501282A (en) * | 2002-11-12 | 2004-06-02 | 英业达股份有限公司 | Electronic book making tool platform system and method thereof |
CN101616224A (en) * | 2008-06-23 | 2009-12-30 | 富士施乐株式会社 | Document management system, document management device and document management method |
CN102317933A (en) * | 2009-01-02 | 2012-01-11 | 苹果公司 | Content Profiling to Dynamically Configure Content Processing |
CN102136199A (en) * | 2011-03-10 | 2011-07-27 | 刘超 | On-line electronic book reader and on-line electronic book editor |
US9268754B1 (en) * | 2012-08-02 | 2016-02-23 | Amazon Technologies, Inc. | Adaptive editing in user interface applications |
CN105335421A (en) * | 2014-08-06 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Method and apparatus for making and displaying e-book expansion content |
Also Published As
Publication number | Publication date |
---|---|
CN106227716A (en) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106227716B (en) | A kind of system and method for realizing branching selection structure electrical documents editing | |
CN103492997B (en) | Systems and methods for manipulating user annotations in electronic books | |
CN102136199A (en) | On-line electronic book reader and on-line electronic book editor | |
US12204602B2 (en) | Page display method and electronic device | |
CN105630459A (en) | Method for converting PPT document to HTML page | |
CN105027116A (en) | Flat book to rich book conversion in e-readers | |
CN106202024B (en) | A kind of system, method and client for realizing branching selection structure electrical book editor | |
CN105700925A (en) | APP interface implementation method and apparatus | |
CN208985138U (en) | Electronic device, computer equipment and the data processing system of Display on the same screen | |
CN104462039A (en) | A method and device for generating annotations | |
CN104142778A (en) | Text processing method and device as well as mobile terminal | |
CN106155507A (en) | A kind of page content display method and electronic equipment | |
CN108958731A (en) | Application program interface generation method, device, equipment and storage medium | |
Stolley | How to design and write web pages today | |
CN105786881A (en) | Self-adaptive electronic book and magazine file structure and corresponding methods and devices | |
CN106294293B (en) | It is a kind of realize interactive electronic read system, method and apparatus | |
CN113450762B (en) | Text reading method, text reading device, terminal and storage medium | |
TW201035860A (en) | Method and computer program product for displaying document on mobile device | |
CN105164739A (en) | Display apparatus for studying mask and method for displaying studying mask | |
Huang et al. | How interactive artifacts" change" over time: a visual analysis | |
CN107526597A (en) | User interface edit methods, device, terminal and computer-readable recording medium | |
CN102662497A (en) | Multifunctional point reading pen having screen and method for realizing reading guidance of the Koran | |
Chiasson | Mastering Articulate Storyline | |
Cao et al. | Compositional Structures as Substrates for Human-AI Co-creation Environment: A Design Approach and A Case Study | |
CN103365895A (en) | Web page resource monitoring method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |