Analysis of innovative training projects

Posted by billmasters on Thu, 07 Oct 2021 21:11:55 +0200

Analysis of innovative training projects (I)

2021SC@SDUSC

This week, according to the previous json document format, referring to the code in the engine layer and combined with the XML document writing specification, the XML document of SDUDOC was completed, including the basic building elements and the element labels corresponding to each object. It will be updated if there is any expansion in the future

XML element

Header

The header of the article, which contains the basic information of the article

element:

Field nametypemeaning
_titlestringArticle title
_authorstringauthor
_bookstringBooks
_dynastystringDynasty

Example:

<Header>
		<_title>Biography of Li Keyong</_title>
		<_author>Jing Wu</_author>
		<_book>Later Tang Dynasty</_book>
		<_dynasty>Tang</_dynasty>
</Header>

PageList

The editor is used to record the linear sorting of pages in the object pool.

element:

Field nametypemeaning
pagespagesPage sequential array, which records the ID of each page in order, and the sub element is page
_current_pagenumberThe page that the editor is currently editing

pages:

element:

Field nametypemeaning
pagestringpage Id

Example:

<PageList>
		<pages>
    		<page>Page_1</page>
            <page>Page_2</page>
    	</pages>
		<_current_page>1</_current_page>
</PageList>

Elements

The editor is used to record the serialization information of the object pool.

Index

The editor uses to represent the generated maximum value of the corresponding element to prevent ID duplication. These elements are added through plug-ins.

element:

Field nametypemeaning
PagenumberMaximum number of pages
Dot2DnumberDot2D
Line2DnumberLine2D
Polygon2DnumberPolygon2D
CharacternumberCharacter
WordnumberWord
SentencenumberSentence
ParagraphnumberParagraph
ArticlenumberArticle
BooknumberBook

Example:

<Index>
			<Page>2</Page>
			<Dot2D>99</Dot2D>
			<Line2D>22</Line2D>
			<Polygon2D>79</Polygon2D>
			<Character>64</Character>
			<Word>36</Word>
			<Sentence>11</Sentence>
			<Paragraph>3</Paragraph>
			<Article>2</Article>
			<Book>2</Book>
</Index>

Data

The editor uses the information of all elements of the object pool.

child element:

Field nametypemeaning
PageselementMaximum number of pages
Dot2DselementDot2D
Line2DselementLine2D
Polygon2DselementPolygon2D
CharacterselementCharacter
WordselementWord
SentenceselementSentence
ParagraphselementParagraph
ArticleselementArticle
BookselementBook
Pages

Page element, and the sub element is the specific page

page:

child element:

Field nametypemeaning
idstringUnique Id of the page
srcstringpage corresponding UR
widthnumberWidth of the page
heightnumberPage height

Example:

<Pages>
	<page>
		<_id>Page_1</_id>
		<_src>http://211.87.232.197:8080/img/get_by_id?id=2</_src>
		<_width>1030</_width>
		<_height>1832</_height>
	</page>
</Pages>
Dot2Ds

Dot element, and the sub element is the specific dot information Dot2D

Dot2D:

child element:

Field nametypemeaning
idstringUnique Id of the point
pageselementThe parent element of the page element
typenumberWidth of the page
xnumberPage height
ynumber
fatherstring
postionnumber
father1string
father2string

page:

  • The child element of the pages element, which records the page id

Example:

<Dot2Ds>
	<Dot2D>
		<_id>Dot2D_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
		<_type>0</_type>
		<_x>34.315084818068044</_x>
		<_y>174.6949772556199</_y>
		<_father></_father>
		<_position>0</_position>
		<_father1></_father1>
		<_father2></_father2>
	</Dot2D>
    <Dot2D>
		<_id>Dot2D_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
		<_type>0</_type>
		<_x>34.315084818068044</_x>
		<_y>174.6949772556199</_y>
		<_father></_father>
		<_position>0</_position>
		<_father1></_father1>
		<_father2></_father2>
	</Dot2D>
</Dot2Ds>
Line2Ds

A collection of line elements, and the sub elements are specific line information Line2D`

Line2D:

child element:

Field nametypemeaning
idstringUnique Id of line
pageselementThe parent element of the page element
startstringStarting point id
endstringTermination point id

Line2D:

  • The child element of the pages element, which records the page id

Example:

<Line2Ds>
	<Line2D>
		<_id>Line2D_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
		<_start>Dot2D_1</_start>
		<_end>Dot2D_2</_end>
	</Line2D>
    <Line2D>
		<_id>Line2D_2</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
		<_start>Dot2D_3</_start>
		<_end>Dot2D_4</_end>
	</Line2D>
</Line2Ds>
Polygon2Ds

A collection of polygon elements, and the sub elements are specific line information Polygon2D

Polygon2D:

child element:

Field nametypemeaning
idstringUnique Id of polygon
pageselementThe parent element of the page element
pointselementCollection of points
characterstirngText id

point:

  • The child element of the points element, which records the id of the polygon point

Example:

<Polygon2Ds>
	<Polygon2D>
		<_id>Polygon2D_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
		<_points>
        	<point>Dot2D_13</point>
            <point>Dot2D_14</point>
            <point>Dot2D_15</point>
            <point>Dot2D_16</point>
        </_points>
		<_character>Character_1</_character>
	</Polygon2D>
    <Polygon2D>
		<_id>Polygon2D_2</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
		<_points>
        	<point>Dot2D_13</point>
            <point>Dot2D_14</point>
            <point>Dot2D_15</point>
            <point>Dot2D_16</point>
        </_points>
		<_character>Character_2</_character>
	</Polygon2D>
</Polygon2Ds>
Characters

A collection of text elements. The child elements are specific text information characters

Character:

child element:

Field nametypemeaning
idstringUnique Id of polygon
pageselementThe parent element of the page element
charstringSpecific text
remarkstirng
fatherstringid of the attribution word
polygonstringHome polygon id

page:

  • The child element of the pages element, which records the page id

Example:

<Characters>
	<Character>
		<_id>Character_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
		<_char>after</_char>
		<_remark></_remark>
		<_father>Word_10</_father>
		<_polygon>Polygon2D_1</_polygon>
	</Character>
</Characters>
Words

A set of word elements, and the sub elements are specific text information word

word:

child element:

Field nametypemeaning
idstringUnique Id of polygon
pageselementThe parent element of the page element
childrenelementcharacter collection containing
fatherstringid of the sender
pointselementCollection of points

page:

  • The child element of the pages element, which records the page id

Example:

<Words>
	<Word>
		<_id>Word_10</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
        <children>
            <Character>Character_1</Character>
            <Character>Character_2</Character>
        </children>
		<_father>Sentence_1</_father>
		<_points>
			<page id = "Page_1">
                <point>Dot2D_2</point>
                <point>Dot2D_3</point>
                <point>Dot2D_4</point>
                <point>Dot2D_5</point>
                <point>Dot2D_6</point>
                <point>Dot2D_7</point>
            </page>
		</_points>
	</Word>
</Words>
Sentences

A set of sentence elements, and the sub elements are specific text messages

sentence:

child element:

Field nametypemeaning
idstringUnique Id of sent
pageselementThe parent element of the page element
childrenelementContained word collection
fatherstringid of the belonging paragraph
pointselementCollection of points

page:

  • The child element of the pages element, which records the page id

Example:

<Sentences>
	<Sentence>
		<_id>Sentence_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
        <children>
            <Word>Word_10</Word>
            <Word>Word_11</Word>
        </children>
		<_father>Paragraph_1</_father>
		<_points>
			<page id = "Page_1">
                <point>Dot2D_2</point>
                <point>Dot2D_3</point>
                <point>Dot2D_4</point>
                <point>Dot2D_5</point>
                <point>Dot2D_6</point>
                <point>Dot2D_7</point>
            </page>
		</_points>
	</Sentence>
</Sentences>
Paragraphs

A collection of Paragraph elements, and the sub elements are specific text information Paragraph

Paragraph:

child element:

Field nametypemeaning
idstringUnique Id of sent
pageselementThe parent element of the page element
childrenelementContains the sentence collection
fatherstringid of the article
pointselementCollection of points

page:

  • The child element of the pages element, which records the page id

Example:

<Paragraphs>
	<Paragraph>
		<_id>Paragraph_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
        <children>
            <Sentence>Sentence_1</Sentence>
            <Sentence>Sentence_2</Sentence>
        </children>
		<_father>Article_1</_father>
		<_points>
			<page id = "Page_1">
                <point>Dot2D_2</point>
                <point>Dot2D_3</point>
                <point>Dot2D_4</point>
                <point>Dot2D_5</point>
                <point>Dot2D_6</point>
                <point>Dot2D_7</point>
            </page>
		</_points>
	</Paragraph>
</Paragraphs>
Articles

A collection of Article elements, and the sub elements are specific text information Article

Article:

child element:

Field nametypemeaning
idstringUnique Id of sent
pageselementThe parent element of the page element
childrenelementContains a collection of paragraph s
fatherstringid of the home book
pointselementCollection of points

page:

  • The child element of the pages element, which records the page id

Example:

<Articles>
	<Article>
		<_id>Article_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
        <children>
            <Paragraph>Paragraph_1</Paragraph>
            <Paragraph>Paragraph_2</Paragraph>
        </children>
		<_father>Book_1</_father>
		<_points>
			<page id = "Page_1">
                <point>Dot2D_2</point>
                <point>Dot2D_3</point>
                <point>Dot2D_4</point>
                <point>Dot2D_5</point>
                <point>Dot2D_6</point>
                <point>Dot2D_7</point>
            </page>
		</_points>
	</Article>
</Articles>
Books

A collection of book elements, and the child elements are specific text information books

book:

child element:

Field nametypemeaning
idstringUnique Id of sent
pageselementThe parent element of the page element
childrenelementCollection of included article s
fatherstring
pointselementCollection of points

page:

  • The child element of the pages element, which records the page id

Example:

<Books>
	<Book>
		<_id>Book_1</_id>
		<_pages>
        	<page>Page_1</page>
            <page>Page_2</page>
        </_pages>
        <children>
            <Paragraph>Article_1</Paragraph>
            <Paragraph>Article_2</Paragraph>
        </children>
		<_father></_father>
		<_points>
			<page id = "Page_1">
                <point>Dot2D_2</point>
                <point>Dot2D_3</point>
                <point>Dot2D_4</point>
                <point>Dot2D_5</point>
                <point>Dot2D_6</point>
                <point>Dot2D_7</point>
            </page>
		</_points>
	</Book>
</Books>

Topics: Javascript xml html