Skip to content

Commit 21de63b

Browse files
author
delphidabbler
committed
Update re export file v7, fix errors and make clarifications
1 parent 12764d0 commit 21de63b

File tree

1 file changed

+63
-17
lines changed

1 file changed

+63
-17
lines changed

Docs/Design/FileFormats/export.html

Lines changed: 63 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ <h2>
6060
</h2>
6161

6262
<p>
63-
XML export files use UTF-8 encoding without a byte order mark. (In earlier
64-
versions XML generated for submission to the online database is also encoded
65-
in UTF-8. Code submission is no longer supported.)
63+
XML export files use UTF-8 encoding without a byte order mark.
64+
</p>
65+
66+
<p class="pullout">
67+
In earlier versions of CodeSnip, XML files generated for submission to the online database were also encoded in UTF-8. Support for code submission was removed from CodeSnip v4.16.0.
6668
</p>
6769

6870
<p>
@@ -76,8 +78,8 @@ <h2>
7678
</h2>
7779

7880
<p>
79-
There have been six different versions of the XML file format &ndash; v1 to
80-
v6. Tags from all six versions are explained below with notes describing
81+
There have been seven different versions of the XML export file format &ndash; v1 to
82+
v7. Tags used by all versions are explained below, with notes describing
8183
which versions a tag applies to. Where there is no note the tag is valid in
8284
all versions.
8385
</p>
@@ -138,7 +140,7 @@ <h2>
138140
</dt>
139141
<dd>
140142
Identifies version of file. Determines which tags are valid and
141-
establishes rules concerning content. Valid versions are 1..6.
143+
establishes rules concerning content. Valid versions are 1..7.
142144
</dd>
143145
</dl>
144146
</dd>
@@ -155,30 +157,56 @@ <h2>
155157
<strong>codesnip-export/user-info</strong>
156158
</dt>
157159
<dd>
158-
Contains information about user who created the file (omitted for normal
159-
exports &ndash; (In earlier versions this was included with submissions to
160-
the online database. Submission to the database is no longer supported.)
160+
<ul class="squashed">
161+
<li>
162+
<span class="highlight">versions 1..6:</span> Contains information about user who created the file &nbsp; used for submissions to the online database, omitted for other exports.
163+
</li>
164+
<li>
165+
<span class="highlight">version 7:</span> Not supported. Ignored if present.
166+
</li>
167+
</ul>
161168
</dd>
162169

163170
<dt>
164171
<strong>codesnip-export/user-info/name</strong>
165172
</dt>
166173
<dd>
167-
User's name or nickname.
174+
<ul class="squashed">
175+
<li>
176+
<span class="highlight">versions 1..6:</span> User's name or nickname.
177+
</li>
178+
<li>
179+
<span class="highlight">version 7:</span> Not supported. Ignored if present.
180+
</li>
181+
</ul>
168182
</dd>
169183

170184
<dt>
171185
<strong>codesnip-export/user-info/email</strong>
172186
</dt>
173187
<dd>
174-
User's email address.
188+
<ul class="squashed">
189+
<li>
190+
<span class="highlight">versions 1..6:</span> User's email address.
191+
</li>
192+
<li>
193+
<span class="highlight">version 7:</span> Not supported. Ignored if present.
194+
</li>
195+
</ul>
175196
</dd>
176197

177198
<dt>
178199
<strong>codesnip-export/user-info/comments</strong>
179200
</dt>
180201
<dd>
181-
Any comments provided by user.
202+
<ul class="squashed">
203+
<li>
204+
<span class="highlight">versions 1..6:</span> Any comments provided by user.
205+
</li>
206+
<li>
207+
<span class="highlight">version 7:</span> Not supported. Ignored if present.
208+
</li>
209+
</ul>
182210
</dd>
183211

184212
<dt>
@@ -232,8 +260,8 @@ <h2>
232260
of plain text.
233261
</li>
234262
<li>
235-
<span class="highlight">version 6:</span> Content is formatted text
236-
encoded in REML markup. REML v3 is supported.
263+
<span class="highlight">version 6 and later:</span> Content is formatted text
264+
encoded in REML markup. REML v4 is supported.
237265
</li>
238266
</ul>
239267
</dd>
@@ -255,7 +283,7 @@ <h2>
255283
</li>
256284
<li>
257285
<div>
258-
<span class="highlight">version 6:</span>
286+
<span class="highlight">version 6 and later:</span>
259287
</div>
260288
<div class="indent">
261289
<div>
@@ -288,7 +316,7 @@ <h2>
288316
<span class="highlight">versions 1..5:</span> Not supported.
289317
</li>
290318
<li>
291-
<span class="highlight">version 6:</span> Display name of snippet. Can
319+
<span class="highlight">version 6 and later:</span> Display name of snippet. Can
292320
contain any characters and need not be unique. Present only if snippet
293321
has a display name that is different to the value of the <em>name</em>
294322
attribute of the <em>codesnip-data/routines/routine</em> tag.
@@ -376,6 +404,10 @@ <h2>
376404
<span class="highlight">versions 4 and 5:</span> indicates REML
377405
v3.
378406
</li>
407+
<li>
408+
<span class="highlight">versions 6 and later:</span> indicates REML
409+
v4.
410+
</li>
379411
</ul>
380412
</li>
381413
</ul>
@@ -718,6 +750,9 @@ <h2>
718750
A snippet's description is now stored as formatted text using REML markup.
719751
Previously the description was plain text.
720752
</div>
753+
<div class="half-spaced">
754+
The supported version of REML was updated to v4.
755+
</div>
721756
<div class="half-spaced">
722757
The following tags were introduced:
723758
</div>
@@ -730,6 +765,12 @@ <h2>
730765
</li>
731766
</ul>
732767
</dd>
768+
<dt>
769+
Version 7
770+
</dt>
771+
<dd>
772+
The <em>codesnip-export/user-info</em> tag and sub-tags were no longer supported.
773+
</dd>
733774
</dl>
734775

735776
<h3>
@@ -755,7 +796,8 @@ <h3>
755796
<p>
756797
Readers of v1 to v5 files must:
757798
</p>
758-
<ol>
799+
800+
<ul>
759801
<li>
760802
Convert the plain text snippet description read from
761803
<em>codesnip-data/routines/routine/description</em> into the formatted text
@@ -767,6 +809,10 @@ <h3>
767809
</li>
768810
</ul>
769811

812+
<p>
813+
Readers of v1 to v6 files must ignore the <em>codesnip-export/user-info</em> tag and sub-tags, where present.
814+
</p>
815+
770816
</body>
771817

772818
</html>

0 commit comments

Comments
 (0)