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
- branching selection
- structure electrical
- editing
- branching
- 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
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 present invention relates to computer software technical field more particularly to a kind of realization branching selection structure electrical documents editings
System and method.
Background technique
Technology develops therewith, and electronic reading (E-book Reading) has been not limited solely to personal computer (Personal
Computer), more and more electronic digital equipment and mobile communication equipment have had the function of e-book reading, and occur
Dedicated for the terminal device of e-book reading.Really, e-book (E-book) with respect to papery books have it is portable, easy-to-use,
The advantages that large capacity, energy conservation and environmental protection, can also rationally utilize chip time, realizes more attractive design and increase multimedia function;
But electronic reading at this stage still reads that reading method for passively receiving the design of author's plot without departing from tradition.
In recent years, with the electronic digital equipment of touch screen type and mobile communication terminal fast development and universal, because it is good
Man-machine interaction experience effect praised highly deeply by consumer, the concept that interactive mode is read generates therewith.Currently, interactive read electronic
Book application mainly stresses the less subject matter of preschool education, this kind of non-fiction text amount of children stories.The interaction of above-mentioned subject matter
Formula reading electronic book, which is applied, is arranged contact generally by such interactive reading electronic book, and passes through the click etc. of reader
The interaction with regard to the contact content is realized in operation.However, the literary works of this kind of subject matter are abundant in content by taking novel as an example, there is company
Continuous plot and complex environment are described.Obviously, above-mentioned interactive reading electronic book application can not be suitable for novel, prose
Etc. the reading of this kind of literary works.
It is a kind of to realize that system and method that interactive electronic is read and equipment can be realized above-mentioned novel class subject matter literature and make
The interactive electronic of product is read.The system and method and equipment that the realization interactive electronic is read mainly are played by branching selection
The interaction for realizing reader and e-book allows reader even to determine the developing direction of works plot by Mutual Impacts, improves
The enjoyment and property of participation of reading.
But E-book edition device currently on the market, such as EXE E-book edition device, CHM E-book edition device, UMD electricity
Philosophical works editing machine etc., it is clear that such interactive reading electronic book of generation cannot be edited.A kind of realization branching selection interactive mode reading
The editor that the system and method and client of e-book can be realized above-mentioned interactive reading electronic book generates;It mainly passes through volume
Branching selection structure electrical document is collected, and then realizes that the editor of above-mentioned interactive reading electronic book generates.
Summary of the invention
The present invention provides a kind of system and method for realizing branching selection structure electrical documents editing, to solve branch's choosing
Editor's problem of structure electrical document is selected, and then realizes that the editor of novel class subject matter interactive mode reading electronic book generates.
The embodiment of the present invention provides a kind of system for realizing branching selection structure electrical documents editing, including Data Serialization
Module, interface editing module, text editing module, node label module;Wherein,
Data Serialization module described in A, the creation of the data structure for the branching selection structure electrical document;Specifically
To create node listing, node action list, chapters and sections node listing, extension information list in the memory of editing equipment;Wherein,
The node listing, for the set for nodal information to be written;The node is the branching selection structure electrical
Document and the interactive reading electronic book thus generated realize the minimum carrier of branching selection playing function, are branch's choosings
Select the minimum unit of structure electrical document;The branching selection structure electrical document is by N number of (N >=2, N is integer) node group
At;
Further, the nodal information is indexed comprising node, affiliated chapters and sections information, node type information, content of text;Its
In,
The node index refers to the identification code for accessing the nodal information;Only by accessing and reading nodal information,
The node could be played accordingly;
The chapters and sections of the affiliated chapters and sections information, the specially the node affiliated chapters and sections in the interactive reading electronic book
Index;
The node type information, the type for flag node;The node is divided into plain edition node by node type
With button-type node;The plain edition node, can only describe word content, not have interactive function;The button-type node, both remembered
Word content is stated, and has interactive function;
The content of text refers to several texts for describing the interactive reading electronic book works content;
Further, the nodal information also includes point spread information, for realizing extension of the node when playing
Function, such as audio plays, picture load;
The node action list, for the set for node action information to be written;The node action refers to the section
The movement that node in point list can call after broadcasting, the node action are directed toward the subsequent section of connection for describing the node
The case where point;One node action energy and the subsequent node connection that a node can only be described;The node is present node;
One present node has M subsequent node (M >=0, M is integer);
Further, the node action information is indexed comprising node action, node action type, subsequent node information;Its
In,
The node action index refers to the identification code for accessing the node action information;Only by accessing and reading node
Action message is just capable of calling the node action, and then plays its subsequent node for being directed toward connection;The node index and the section
Point movement index is indicated by numerical value;The node of the present node is indexed calls the node action of node action to index with it
Numerical value is identical;
The node action type includes Next type, Select type, Break type, Continue type, Jump type;Wherein,
Next type, for describing direct and unique connection relationship between present node and its subsequent node;It is described current
Node is father node, and the subsequent node is child node;One father node has and can only have a child node (i.e. M=1);
Select type, for describing a kind of optional connection relationship between present node and its subsequent node;It is described to work as
Front nodal point is branch's father node, and the subsequent node is option child node;One branch's father node has P option section
Point (P >=1, P is integer);
Break type does not reconnect subsequent node (i.e. M=0) for describing present node;The present node also referred to as interrupts
Node;
Continue type, for describing direct and unique connection relationship between present node and its subsequent node, and institute
Former and later two nodes stated belong to different chapters and sections;The present node is preceding chapters and sections father node, and the subsequent node is subsequent chapter
Knot node;The preceding chapters and sections father node has and can only have a following sections child node (i.e. M=1);
Jump type is to jump relationship for describing present node with its subsequent node;The subsequent node is other non-
Any one of present node;
Further, the option child node is button-type node, other nodes are plain edition node;
The subsequent node information, the specially node action are directed toward the node index of the subsequent node of connection;
The chapters and sections node listing, for the set for chapters and sections information to be written;The chapters and sections information include chapters and sections index and
Section name;
The extension information list, for the interactive mode for the branching selection structure electrical document to be written and is generated by it
The set of the extension information of reading electronic book;The extension information includes its cover, works brief introduction, author, works type etc.
Information;
Interface editing module described in B, for realizing the visual edit of the branching selection structure electrical document;Specifically
To open the visualization interface of the editing equipment, creating in the visualization interface, edit the branching selection structured documents
Accordingly update the branching selection structure electrical document data structure of the Data Serialization module creation;Wherein,
B1 creates the interactive reading electronic book an of blank on the editing equipment or opens an existing interaction
While formula reading electronic book, the visual edit interface of the editing equipment is opened;
When a newly-built interactive reading electronic book, after opening the visual edit interface, generate in text
Holding is empty start node information, is inserted into the branching selection structure electrical document data knot of the Data Serialization module creation
In the node listing of structure, while blank start node is rendered at the visual edit interface;
The blank start node refers to the node for describing the content of text of the interactive reading electronic book starting,
Content of text is sky;
When having the interactive reading electronic book for opening one, the existing interactive mode is parsed by unserializing
Reading electronic book obtains the data structure of its branching selection structure electrical document and is loaded into the memory of the editing equipment, root
The branching selection structured documents are rendered at the visual edit interface according to its data structure;
Then B2 conceives according to author, by calling and loading node action functional unit and blank node component, in institute
It states in visual edit interface and creates, edits branching selection structured documents, while correspondence updates the Data Serialization module
The branching selection structure electrical document data structure of creation;
Further, it is corresponding to update the branching selection structure electrical text when node action functional unit is called
The node action list of file data structure, while the node action is rendered at the visual edit interface;
The type of the node action functional unit corresponds to the section in the branching selection structure electrical document data structure
Point type of action;
When the blank node component is called, the corresponding update branching selection structure electrical document data structure
Node listing, while the blank node is rendered at the visual edit interface;
The blank node is that content of text is empty node;The type of the blank node component corresponds to branch's choosing
Select the node type in structure electrical document data structure;
Editor's branching selection structured documents are specially added, are modified, deleting in the branching selection structured documents
Node or relationships between nodes (the i.e. described nodal function component);While editor's branching selection structured documents, accordingly
The branching selection structure electrical document data structure is updated, is specially inserted correspondingly into, modifies, deleting the branching selection knot
Corresponding list information in structure data for electronic documents structure;
Text editing module described in C, specifically, the branching selection structured documents described in the visual edit interface editing
The content of text of interior joint, while accordingly updating the text of the branching selection structure electrical document data structure interior joint list
This content;The editor is specially to create, change or delete the content of text and text formatting editor;
Node label module described in D, for marking the node in the branching selection structured documents, so as to more efficiently
It searches the node in the branching selection structured documents and edits the branching selection structured documents;
Further, the node label module, specifically, full traversal mode marks in the branching selection structured documents
Whole nodes;The mark refers to the node action of the type and its calling according to the branching selection structured documents interior joint
The difference of type renders the node using different color and/or shape.
The embodiment of the present invention provides a kind of method for realizing branching selection structure electrical documents editing, comprising:
S1 creates the data structure of the branching selection structure electrical document;Specifically, being created in the memory of editing equipment
Build node listing, node action list, chapters and sections node listing, extension information list;Wherein,
The node listing, node action list, chapters and sections information list, the extension for example above-mentioned realization branching selection of information list
In the branching selection structure electrical document data structure of the building of Data Serialization module described in structure electrical document editing system
Node listing, node action list, chapters and sections information list, extension information list described in;
S2 opens the visualization interface of the editing equipment, creates in the visualization interface, edits the branching selection
Structured documents and accordingly update the branching selection structure electrical document data structure;Specifically,
The interactive reading electronic book an of blank is created on the editing equipment or opens an existing interactive mode
While reading electronic book, the visual edit interface of the editing equipment is opened;When the newly-built one interactive reading electricity
When the philosophical works, after opening the visual edit interface, generating content of text is empty start node information, is inserted into described point
Branch selects in the node listing of structure electrical document data structure, while initially saving in visual edit interface rendering blank
Point;When having the interactive reading electronic book for opening one, the existing interactive reading is parsed by unserializing
E-book obtains the data structure of its branching selection structure electrical document and is loaded into the memory of the editing equipment, according to it
Data structure renders the branching selection structured documents at the visual edit interface;
The blank start node refers to the node for describing the content of text of the interactive reading electronic book starting,
Content of text is sky;
Then conceived according to author, by calling and loading node action functional unit and blank node component, described
It created in visual edit interface, edit branching selection structured documents, while accordingly updating the branching selection structure electrical
Document data structure;
Further, it is corresponding to update the branching selection structure electrical text when node action functional unit is called
The node action list of file data structure, while the node action is rendered at the visual edit interface;The blank section
When point component is called, the corresponding node listing for updating the branching selection structure electrical document data structure, while described
Visual edit interface renders the blank node;Editor's branching selection structured documents specially add, modify, delete institute
State the node or relationships between nodes (the i.e. described nodal function component) in branching selection structured documents;In editor's branching selection
While structured documents, the branching selection structure electrical document data structure is accordingly updated, is specially inserted correspondingly into, repairs
Change, delete corresponding list information in the branching selection structure electrical document data structure;
The type of the node action functional unit corresponds to the section in the branching selection structure electrical document data structure
Point type of action;The blank node is that content of text is empty node;Corresponding described point of the type of the blank node component
Branch selects the node type in structure electrical document data structure;
The content of text of S3 branching selection structured documents interior joint described in the visual edit interface editing, simultaneously
Accordingly update the content of text of the branching selection structure electrical document data structure interior joint list;
The editor is specially to create, change or delete the content of text and text formatting editor;
S4 marks the node in the branching selection structured documents, more efficiently to search the branching selection structure
Node and editor's branching selection structured documents in document;
Further, specifically, marking whole nodes in the branching selection structured documents using full traversal mode;It is described
Label, refers to the difference of the node action type of the type and its calling according to the branching selection structured documents interior joint, adopts
The node described in different color and/or shape tag.
The present invention provides a kind of system and method for realizing branching selection structure electrical documents editing, first in editing equipment
The data structure of branching selection structure electrical document is created in memory;And then newly-built by the visualization interface in editing equipment,
It edits branching selection structured documents and accordingly updates branching selection structure electrical document data structure;And editor's branching selection
It the content of text of structured documents interior joint and accordingly updates and is saved in the branching selection structure electrical document data structure simultaneously
The content of text of point list;Mark the node in branching selection structured documents finally to search and follow-up editor.By above-mentioned
The system and method for realizing branching selection structure electrical documents editing, solve the problems, such as the editor of branching selection structure electrical document,
And then realize that the editor of novel class subject matter interactive mode reading electronic book generates.The interactive mode reading electronic book realizes reader and electricity
The interaction of the philosophical works, allow reader by Mutual Impacts even determine works plot developing direction, improve reading enjoyment and
Property of participation.
Detailed description of the invention
Fig. 1 is a kind of composition for system for realizing branching selection structure electrical documents editing that the embodiment of the present invention 1 provides
Structural schematic diagram;
Fig. 2 is a kind of process for method for realizing branching selection structure electrical documents editing that the embodiment of the present invention 2 provides
Figure.
Specific embodiment
To keep the purpose, technical solution and the beneficial effect of acquirement of the embodiment of the present invention clearer, with reference to the accompanying drawing,
Technical solution in the embodiment of the present invention is clearly and completely stated.It is understood that embodiment described herein is only
For instruction and explanation of the present invention, it is not intended to limit the present invention.Based on the embodiments of the present invention, those skilled in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of composition for system for realizing branching selection structure electrical documents editing that the embodiment of the present invention 1 provides
Structural schematic diagram, as shown in Figure 1, the system includes Data Serialization module 101, interface editing module 102, text editing module
103, node label module 104;Wherein,
Data Serialization module 101, the creation of the data structure for the branching selection structure electrical document;Specially
Node listing, node action list, chapters and sections node listing, extension information list are created in the memory of editing equipment;Wherein,
The node listing, for the set for nodal information to be written;The node is the branching selection structure electrical
Document and the interactive reading electronic book thus generated realize the minimum carrier of branching selection playing function, are branch's choosings
Select the minimum unit of structure electrical document;The branching selection structure electrical document is by N number of (N >=2, N is integer) node group
At;
The nodal information is indexed comprising node, affiliated chapters and sections information, node type information, content of text, nodal information;
Wherein,
The node index refers to the identification code for accessing the nodal information;Only by accessing and reading nodal information,
The node could be played accordingly;
The chapters and sections of the affiliated chapters and sections information, the specially the node affiliated chapters and sections in the interactive reading electronic book
Index;
The node type information, the type for flag node;The node is divided into plain edition node by node type
With button-type node;The plain edition node, can only describe word content, not have interactive function;The button-type node, both remembered
Word content is stated, and has interactive function;
The content of text refers to several texts for describing the interactive reading electronic book works content;
The point spread information, for realizing extension function of the node when playing;
The node action list, for the set for node action information to be written;The node action refers to the section
The movement that node in point list can call after broadcasting, the node action are directed toward the subsequent section of connection for describing the node
The case where point;One node action energy and the subsequent node connection that a node can only be described;The node is present node;
One present node has M subsequent node (M >=0, M is integer);
The node action information is indexed comprising node action, node action type, subsequent node information;Wherein,
The node action index refers to the identification code for accessing the node action information;Only by accessing and reading node
Action message is just capable of calling the node action, and then plays its subsequent node for being directed toward connection;The node index and the section
Point movement index is indicated by numerical value;The node of the present node is indexed calls the node action of node action to index with it
Numerical value is identical;
The node action type includes Next type, Select type, Break type, Continue type, Jump type;Wherein,
Next type, for describing direct and unique connection relationship between present node and its subsequent node;It is described current
Node is father node, and the subsequent node is child node;One father node has and can only have a child node (i.e. M=1);
Select type, for describing a kind of optional connection relationship between present node and its subsequent node;It is described to work as
Front nodal point is branch's father node, and the subsequent node is option child node;One branch's father node has P option section
Point (P >=1, P is integer);
Break type does not reconnect subsequent node (i.e. M=0) for describing present node;The present node also referred to as interrupts
Node;
Continue type, for describing direct and unique connection relationship between present node and its subsequent node, and institute
Former and later two nodes stated belong to different chapters and sections;The present node is preceding chapters and sections father node, and the subsequent node is subsequent chapter
Knot node;The preceding chapters and sections father node has and can only have a following sections child node (i.e. M=1);
Jump type is to jump relationship for describing present node with its subsequent node;The subsequent node is other non-
Any one of present node;
Further, the option child node is button-type node, other nodes are plain edition node;
The subsequent node information, the specially node action are directed toward the node index of the subsequent node of connection;
The chapters and sections node listing, for the set for chapters and sections information to be written;The chapters and sections information include chapters and sections index and
Section name;
The extension information list, for the interactive mode for the branching selection structure electrical document to be written and is generated by it
The set of the extension information of reading electronic book;The extension information includes its cover, works brief introduction, author, works type etc.
Information;
Interface editing module 102, for realizing the visual edit of the branching selection structure electrical document;Specifically,
The visualization interface for opening the editing equipment, create in the visualization interface, edit the branching selection structured documents and
Accordingly update the branching selection structure electrical document data structure of the Data Serialization module creation;Wherein,
The interactive reading electronic book an of blank is created on the editing equipment or opens an existing interactive mode
While reading electronic book, the visual edit interface of the editing equipment is opened;
When a newly-built interactive reading electronic book, after opening the visual edit interface, generate in text
Holding is empty start node information, is inserted into the branching selection structure electrical document data knot of the Data Serialization module creation
In the node listing of structure, while blank start node is rendered at the visual edit interface;
The blank start node refers to the node for describing the content of text of the interactive reading electronic book starting,
Content of text is sky;
When having the interactive reading electronic book for opening one, the existing interactive mode is parsed by unserializing
Reading electronic book obtains the data structure of its branching selection structure electrical document and is loaded into the memory of the editing equipment, root
The branching selection structured documents are rendered at the visual edit interface according to its data structure;
Then conceived according to author, by calling and loading node action functional unit 1021 and blank node component
1022, it created in the visual edit interface, edit branching selection structured documents 1023, while correspondence updates the number
The branching selection structure electrical document data structure created according to serialization module;
Further, it is corresponding to update the branching selection structure electrical text when node action functional unit is called
The node action list of file data structure, while the node action is rendered at the visual edit interface;
The type of the node action functional unit corresponds to the section in the branching selection structure electrical document data structure
Point type of action;
When the blank node component is called, the corresponding update branching selection structure electrical document data structure
Node listing, while the blank node is rendered at the visual edit interface;
The blank node is that content of text is empty node;The type of the blank node component corresponds to branch's choosing
Select the node type in structure electrical document data structure;
Editor's branching selection structured documents are specially added, are modified, deleting in the branching selection structured documents
Node or relationships between nodes (the i.e. described nodal function component);While editor's branching selection structured documents, accordingly
The branching selection structure electrical document data structure is updated, is specially inserted correspondingly into, modifies, deleting the branching selection knot
Corresponding list information in structure data for electronic documents structure;
Text editing module 103, specifically, in the branching selection structured documents described in the visual edit interface editing
The content of text of node, while accordingly updating the text of the branching selection structure electrical document data structure interior joint list
Content;The editor is specially to create, change or delete the content of text and text formatting editor;
Node label module 104, for marking the node in the branching selection structured documents, more efficiently to look into
Look for the node and editor's branching selection structured documents in the branching selection structured documents;
Further, the node label module, specifically, full traversal mode marks in the branching selection structured documents
Whole nodes;The mark refers to the node action of the type and its calling according to the branching selection structured documents interior joint
The difference of type renders the node using different color and/or shape.
The embodiment of the present invention 2 provides a kind of method for realizing branching selection structure electrical documents editing, as shown in Fig. 2, should
Method includes:
Step 201, the data structure of the branching selection structure electrical document is created;Specifically, in editing equipment
Deposit middle creation node listing, node action list, chapters and sections node listing, extension information list;Wherein, the node listing, section
In point action lists, chapters and sections information list, extension information list such as above-mentioned realization branching selection structure electrical document editing system
Node listing, node action column in the branching selection structure electrical document data structure of the Data Serialization module building
Table, extends described in information list chapters and sections information list;
Step 202, the visualization interface for opening the editing equipment, the visualization interface it is newly-built, described point of editor
Branch selects structured documents and accordingly updates the branching selection structure electrical document data structure;Specifically,
The interactive reading electronic book an of blank is created on the editing equipment or opens an existing interactive mode
While reading electronic book, the visual edit interface of the editing equipment is opened;When the newly-built one interactive reading electricity
When the philosophical works, after opening the visual edit interface, generating content of text is empty start node information, is inserted into described point
Branch selects in the node listing of structure electrical document data structure, while initially saving in visual edit interface rendering blank
Point;When having the interactive reading electronic book for opening one, the existing interactive reading is parsed by unserializing
E-book obtains the data structure of its branching selection structure electrical document and is loaded into the memory of the editing equipment, according to it
Data structure renders the branching selection structured documents at the visual edit interface;The blank start node, refers to description
The node of the content of text of the interactive mode reading electronic book starting, content of text are sky;
Then conceived according to author, by calling and loading node action functional unit and blank node component, described
It created in visual edit interface, edit branching selection structured documents, while accordingly updating the branching selection structure electrical
Document data structure;Specifically, when the node action functional unit is called, it is corresponding to update the branching selection structure electricity
The node action list of subdocument data structure, while the node action is rendered at the visual edit interface;The sky
When white node component is called, the corresponding node listing for updating the branching selection structure electrical document data structure, while
The visual edit interface renders the blank node;Editor's branching selection structured documents, specially add, modify, delete
Except the node or relationships between nodes (the i.e. described nodal function component) in the branching selection structured documents;In the editor branch
While selecting structured documents, the branching selection structure electrical document data structure is accordingly updated, is specially accordingly inserted
Enter, modify, deleting corresponding list information in the branching selection structure electrical document data structure;
The type of the node action functional unit corresponds to the section in the branching selection structure electrical document data structure
Point type of action;The blank node is that content of text is empty node;Corresponding described point of the type of the blank node component
Branch selects the node type in structure electrical document data structure;
Step 203, in the text of branching selection structured documents interior joint described in the visual edit interface editing
Hold, while accordingly updating the content of text of the branching selection structure electrical document data structure interior joint list;The volume
Collect is specially to create, change or delete the content of text and text formatting editor;
Step 204, the node in the branching selection structured documents is marked, more efficiently to search branch's choosing
It selects the node in structured documents and edits the branching selection structured documents;Specifically, marking described point using full traversal mode
Branch selects whole nodes in structured documents;The label refers to the type according to the branching selection structured documents interior joint
And its difference for the node action type called, using node described in different color and/or shape tag.
A kind of system and method for realizing branching selection structure electrical documents editing provided in above-described embodiment solve to divide
Branch selects editor's problem of structure electrical document, and then realizes that the editor of novel class subject matter interactive mode reading electronic book generates.It should
Interactive reading electronic book realizes the interaction of reader and e-book, and reader is allow even to determine that works are acute by Mutual Impacts
The developing direction of feelings improves the enjoyment and property of participation of reading.
Finally, it should be noted that the above examples are only used to illustrate the technical scheme of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, and those skilled in the art is it is understood that it still can be right
Technical solution documented by foregoing embodiments is modified or equivalent replacement of some of the technical features;And this
It modifies or replaces, the spirit and model of technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution
It encloses.
Claims (10)
1. a kind of system for realizing branching selection structure electrical documents editing, which is characterized in that including Data Serialization module, boundary
Face editor module, text editing module, node label module;Wherein,
Data Serialization module described in A, the creation of the data structure for the branching selection structure electrical document;Specially exist
Node listing, node action list, chapters and sections node listing, extension information list are created in the memory of editing equipment;Wherein,
The node listing, for the set for nodal information to be written;The node is the branching selection structure electrical document
And the interactive reading electronic book thus generated realizes the minimum carrier of branching selection playing function, is the branching selection knot
The minimum unit of structure electronic document;The branching selection structure electrical document is made of N number of node, and wherein N is whole not less than 2
Number;
The node action list, for the set for node action information to be written;The node action refers to the node column
The movement that node in table can call after broadcasting, the node action are used to describe the node and are directed toward connection subsequent node
Situation;
The chapters and sections node listing, for the set for chapters and sections information to be written;
The extension information list, for the interactive reading for the branching selection structure electrical document to be written and is generated by it
The set of the extension information of e-book;
Interface editing module described in B, for realizing the visual edit of the branching selection structure electrical document;Specifically, beating
The visualization interface for opening the editing equipment creates in the visualization interface, edits branching selection structured documents and right
Update the branching selection structure electrical document data structure of the Data Serialization module creation with answering;
Text editing module described in C, specifically, being saved in the branching selection structured documents described in the visual edit interface editing
The content of text of point, while accordingly updating in the text of the branching selection structure electrical document data structure interior joint list
Hold;
Node label module described in D, for marking the node in the branching selection structured documents.
2. a kind of system for realizing branching selection structure electrical documents editing according to claim 1, which is characterized in that
The nodal information is indexed comprising node, affiliated chapters and sections information, node type information, content of text;Wherein,
The node index refers to the identification code for accessing the nodal information;
The chapters and sections index of chapters and sections information belonging to described, the specially the node affiliated chapters and sections in the interactive reading electronic book;
The node type information, the type for flag node;The node by node type be divided into plain edition node and by
Button type node;The plain edition node, can only describe word content, not have interactive function;The button-type node, both describes text
Word content, and have interactive function;
The content of text refers to several texts for describing the interactive reading electronic book works content.
3. a kind of system for realizing branching selection structure electrical documents editing according to claim 2, which is characterized in that
The nodal information also includes point spread information, for realizing extension function of the node when playing.
4. a kind of system for realizing branching selection structure electrical documents editing according to claim 2, which is characterized in that one
A node action energy and the subsequent node connection that the node can only be described;The node is present node;One
A present node has M subsequent node, and wherein M is nonnegative integer;
The node action information is indexed comprising node action, node action type, subsequent node information;Wherein,
The node action index refers to the identification code for accessing the node action information;
The node action type includes Next type, Select type, Break type, Continue type, Jump type;Wherein,
The Next type, for describing direct and unique connection relationship between the present node and its subsequent node;It is described
Present node is father node, and the subsequent node is child node;One father node has and can only have the child node;
The Select type, for describing a kind of optional connection relationship between the present node and its subsequent node;Institute
Stating present node is branch's father node, and the subsequent node is option child node;One branch's father node has P option
Child node, wherein P is positive integer;
The Break type does not reconnect subsequent node for describing the present node;The present node also referred to as interrupts section
Point;
The Continue type, for describing direct and unique connection relationship between the present node and its subsequent node,
And former and later two described nodes belong to different chapters and sections;The present node is preceding chapters and sections father node, after the subsequent node is
Continuous chapters and sections child node;The preceding chapters and sections father node has and can only have a following sections child node;
The Jump type is to jump relationship for describing the present node with its subsequent node;The subsequent node is other
Any one of non-present node;
The option child node is the button-type node, other described nodes are the plain edition node;
The subsequent node information, the specially node action are directed toward the node index of the subsequent node of connection.
5. a kind of system for realizing branching selection structure electrical documents editing according to claim 1, which is characterized in that institute
The realization process for stating interface editing module includes,
B1 creates the interactive reading electronic book an of blank on the editing equipment or opens an existing interactive mode and reads
While reading e-book, the visual edit interface of the editing equipment is opened;
When a newly-built interactive reading electronic book, after opening the visual edit interface, generating content of text is
Empty start node information, is inserted into the branching selection structure electrical document data structure of the Data Serialization module creation
In node listing, while blank start node is rendered at the visual edit interface;
When having the interactive reading electronic book for opening one, the existing interactive reading is parsed by unserializing
E-book obtains the data structure of its branching selection structure electrical document and is loaded into the memory of the editing equipment, according to it
Data structure renders the branching selection structured documents at the visual edit interface;
Then B2 conceives according to author, by calling and loading node action functional unit and blank node component, it is described can
Depending on changing newly-built, editor's branching selection structured documents in editing interface, while correspondence updates the Data Serialization module creation
Branching selection structure electrical document data structure.
6. a kind of system for realizing branching selection structure electrical documents editing according to claim 5, which is characterized in that institute
When the node action functional unit stated is called, the corresponding node for updating the branching selection structure electrical document data structure is dynamic
Make list, while rendering the node action at the visual edit interface;
When the blank node component is called, the corresponding node for updating the branching selection structure electrical document data structure
List, while the blank node is rendered at the visual edit interface;
Editor's branching selection structured documents are specially added, are modified, deleting node in the branching selection structured documents
Or relationships between nodes (the i.e. described nodal function component);While editor's branching selection structured documents, accordingly update
The branching selection structure electrical document data structure is specially inserted correspondingly into, modifies, deleting the branching selection structure electricity
Corresponding list information in subdocument data structure.
7. a kind of system for realizing branching selection structure electrical documents editing according to claim 1, which is characterized in that institute
Labeling module is stated, specifically, full traversal mode marks whole nodes in the branching selection structured documents;The mark is
The difference for referring to the node action type of the type and its calling according to the branching selection structured documents interior joint, using different
Color and/or shape render the node.
8. a kind of method for realizing branching selection structure electrical documents editing characterized by comprising
S1 creates the data structure of the branching selection structure electrical document;Specifically, creating section in the memory of editing equipment
Point list, node action list, chapters and sections node listing, extension information list;
The node listing, for the set for nodal information to be written;The node is the branching selection structure electrical document
And the interactive reading electronic book thus generated realizes the minimum carrier of branching selection playing function, is the branching selection knot
The minimum unit of structure electronic document;The branching selection structure electrical document is made of N number of node, and wherein N is whole not less than 2
Number;
The node action list, for the set for node action information to be written;The node action refers to the node column
The movement that node in table can call after broadcasting, the node action are used to describe the node and are directed toward connection subsequent node
Situation;
The chapters and sections node listing, for the set for chapters and sections information to be written;
The extension information list, for the interactive reading for the branching selection structure electrical document to be written and is generated by it
The set of the extension information of e-book;
S2 opens the visualization interface of the editing equipment, creates in the visualization interface, edits the branching selection structure
Document and accordingly update branching selection structure electrical document data structure;
The content of text of S3 branching selection structured documents interior joint described in the visual edit interface editing, it is corresponding simultaneously
Ground updates the content of text of the branching selection structure electrical document data structure interior joint list;
S4 marks the node in the branching selection structured documents.
9. a kind of method for realizing branching selection structure electrical documents editing according to claim 8, which is characterized in that
The node listing, node action list, chapters and sections information list, extension information list are any described with claim 1-7
A kind of system for realizing branching selection structure electrical documents editing in node listing, node action list, chapters and sections information column
Table, extension information list.
10. a kind of method for realizing branching selection structure electrical documents editing according to claim 8, which is characterized in that
Described creates, edits the branching selection structured documents and accordingly updates branching selection structure electrical text in visualization interface
File data structure, specifically,
The interactive reading electronic book an of blank is created on the editing equipment or opens an existing interactive reading
While e-book, the visual edit interface of the editing equipment is opened;When the newly-built one interactive reading electronic book
When, after opening the visual edit interface, generating content of text is empty start node information, is inserted into the data sequence
In the node listing for changing the branching selection structure electrical document data structure of module creation, while at the visual edit interface
Render blank start node;It is described by unserializing parsing when having the interactive reading electronic book for opening one
The interactive reading electronic book having obtains the data structure of its branching selection structure electrical document and is loaded into the editing equipment
Memory in, which is rendered at the visual edit interface according to its data structure;
Then conceived according to author, by calling and loading node action functional unit and blank node component, described visual
Change in editing interface and create, edit branching selection structured documents, while correspondence updates the Data Serialization module creation
Branching selection structure electrical document data structure;It is corresponding to update the branch when node action functional unit is called
The node action list of structure electrical document data structure is selected, while rendering the node at the visual edit interface and moving
Make;When the blank node component is called, the corresponding node for updating the branching selection structure electrical document data structure
List, while the blank node is rendered at the visual edit interface;Editor's branching selection structured documents, specially add
Add, modify, deleting node or relationships between nodes (the i.e. described nodal function component) in the branching selection structured documents;Institute
While stating editor's branching selection structured documents, the branching selection structure electrical document data structure is accordingly updated, specifically
To be inserted correspondingly into, modifying, deleting corresponding list information in the branching selection structure electrical document data structure;
Node in the mark branching selection structured documents, specifically, marking the branching selection knot using full traversal mode
Whole nodes in structure document;The label refers to type and its calling according to the branching selection structured documents interior joint
Node action type difference, using node described in different color and/or shape tag.
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 |
CN111831782B (en) * | 2019-04-15 | 2023-03-28 | 北京智启蓝墨信息技术有限公司 | Intelligent teaching material packaging book forming method and device |
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 | 英业达股份有限公司 | E-book making implements platform system and method thereof |
CN101616224A (en) * | 2008-06-23 | 2009-12-30 | 富士施乐株式会社 | Document file management system, document management apparatus 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 | 英业达股份有限公司 | E-book making implements platform system and method thereof |
CN101616224A (en) * | 2008-06-23 | 2009-12-30 | 富士施乐株式会社 | Document file management system, document management apparatus 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 | |
Dourish | The stuff of bits: An essay on the materialities of information | |
CN102136199A (en) | On-line electronic book reader and on-line electronic book editor | |
CN106681698B (en) | Dynamic list generation method and device | |
CN109933675A (en) | A kind of display methods of mind map, device, equipment and storage medium | |
CN104317563A (en) | Online courseware cooperation development system | |
CN106202024B (en) | A kind of system, method and client for realizing branching selection structure electrical book editor | |
CN104516861A (en) | Multimedia interactive document processing method | |
CN110020356A (en) | A kind of code generating method of page module, apparatus and system | |
CN103853438A (en) | Atlas picture switching method and browser | |
CN100356371C (en) | Method of inserting and playing slide in file | |
CN107133206A (en) | A kind of digital content makes and demonstration tool and its application | |
CN111694563B (en) | Visual design system and method for user interface mode | |
CN105164739A (en) | Display apparatus for studying mask and method for displaying studying mask | |
CN106250007B (en) | A kind of system and method realizing branching selection and playing | |
CN104156209B (en) | Cross-platform interface modeling method and device | |
CN109885816A (en) | Production method, device and the storage medium of PowerPoint | |
CN102104741B (en) | Method and device for arranging multi-language captions | |
CN114518876A (en) | Visual editing and generating method of HTML webpage source code | |
CN106294293A (en) | A kind of realize interactive electronic read system, method and apparatus | |
CN103365895A (en) | Web page resource monitoring method and device | |
KR101089357B1 (en) | An e-learning contents development system based on object units | |
CN101867888A (en) | Method and system for sending multimedia message | |
CN106710324A (en) | Electronic reading device of rich media taking knowledge point structure as basis | |
CN105912247A (en) | Digital content processing method and device, and information equipment |
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 |