<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hilaire,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I've implemented a first sketch of
this.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">To try, git pull Erudite.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Then Feature require:
'EruditeFilesBookStorer'.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Then evaluate this to store a book:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">(EruditeFilesBookStorer on:
EruditeManual new)<br>
storageDirectory: (DirectoryEntry smalltalkImageDirectory /
'EruditeManual');<br>
store.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">To load a book from the files:</div>
<div class="moz-cite-prefix"> <br>
EruditeFilesBookStorer new<br>
storageDirectory: (DirectoryEntry smalltalkImageDirectory /
'EruditeManual');<br>
load :: open</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Once you open a book from the files,
you can save to files directly from Erudite book editor, clicking
on save menu.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Those should work. Please let me know
if they work for you and what you think of it.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Cheers,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"> Mariano</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">El 17/10/22 a las 16:27, Mariano
Montone escribió:<br>
</div>
<blockquote type="cite"
cite="mid:CAHKx1MiAiNXNcd6JCZgLd2GB_cRHVY+A2vARRqnNTK7GJF5AnQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">Ah. XML didn't come to my mind. Good idea.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">El lun., 17 oct. 2022 16:13,
Hilaire Fernandes via Cuis-dev <<a
href="mailto:cuis-dev@lists.cuis.st" moz-do-not-send="true"
class="moz-txt-link-freetext">cuis-dev@lists.cuis.st</a>>
escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Looks good :)<br>
</font></p>
<p><font size="4">For the master document of the book, XML
may not be too verbose and more neutral.<br>
</font></p>
<p>Hilaire<br>
</p>
<div>Le 16/10/2022 à 16:04, Mariano Montone via Cuis-dev a
écrit :<br>
</div>
<blockquote type="cite">
<div>A possible idea for the implementation:</div>
<div><br>
</div>
<div>Have an EruditeBookFilesSerializer that converts
books to and from disk.</div>
<div><br>
</div>
<div>On disk, have a main file with the book title and
sections descriptions, in Smalltalk format.</div>
<div><br>
</div>
<div>Let's say, <a href="http://book.st" target="_blank"
rel="noreferrer" moz-do-not-send="true">book.st</a>:</div>
<div><br>
</div>
<div>EruditeBook new <br>
</div>
<div> title: 'My book';</div>
<div> sections: {'Section1'.</div>
<div> 'Section2' ->
{'Subsection1'. 'Subsection2'}}</div>
<div><br>
</div>
<div>Sections and subsections point to files on disk.<br>
</div>
<div>I thought of using yaml for that file, but Cuis does
not have support.</div>
<div><br>
</div>
<div>Then, each section and subsection lives on its own
file; they have plain Erudite contents.</div>
<div><br>
</div>
<div>Please let me know if you have other ideas for an
implementation.</div>
<div><br>
</div>
</blockquote>
<pre cols="72">--
GNU Dr. Geo
<a href="http://drgeo.eu" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">http://drgeo.eu</a>
<a href="http://blog.drgeo.eu" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">http://blog.drgeo.eu</a></pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank"
rel="noreferrer" moz-do-not-send="true"
class="moz-txt-link-freetext">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>