<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Mariano</p>
<p>I think I can live with the fact that storing imported DocBook
XML files as Smalltalk code is not implemented. It is fine that
the XML files are external.<br>
</p>
<p>With your new updates from yesterday -- proper rendering of
bullet lists and ordered lists -- the Docbook features supported
are useful for my purposes. <br>
</p>
<p>But one thing is currently a show stopper when using it for
program documentation: </p>
<p><b>Program listing code can not be selected and copied.</b></p>
<p>The Docbook XML snippet<br>
</p>
<p><programlisting><br>
pandoc -f markdown -t docbook MyDocBookTest1.md -o
MyDocBookTest1.xml<br>
</programlisting></p>
<p>is rendered in a way that the code content can not be used
without retyping it. <br>
</p>
<p>1. A first solution would be to just set the attribute that the
text an be selected.</p>
<p>2. A better solution would be to have a 'copy' button which
copies the content to the clipboard.</p>
<p>3. And a third solution would be to also have some 'guessing
strategy' if the code is Smalltalk and then add a 'do it' button.
For example if the code ends with a full stop. Or just add both
buttons so that the user needs to decide.<br>
</p>
<p>For the moment number 1 would be just fine. The attached debugger
window shows MorphicEruditeDocRenderer>>visitCode: aDocCode.</p>
<p>I do not see where it happens that the text can not be selected
and how that might be fixed.</p>
<p>Kind regards</p>
<p>Hannes<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 12/03/2025 1:53 pm, Mariano Montone
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:8bd81e74-7bf3-409c-b87e-59a672828f04@gmail.com">Hi
Hannes,
<br>
<br>
El 12/3/25 a las 06:19, H. Hirzel escribió:
<br>
<blockquote type="cite">Your example with the two attached files,
one being the book definition is very illustrative.
<br>
<br>
<book xmlns='<a class="moz-txt-link-freetext" href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</a>'
<br>
xmlns:xi='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XInclude">http://www.w3.org/2001/XInclude</a>'
<br>
xml:id="docbook">
<br>
<xi:include href="CuisREADME.docbook"/>
<br>
</book>
<br>
<br>
It means I need to create an individual DocBook file for each
Erudite section (containing also a DocBook section which pandoc
creates by default) and bind them together with the book.xml
file. This is very doable.
<br>
</blockquote>
Correct.
<br>
<blockquote type="cite">
<br>
There is a problem which I guess is easy to fix: after choosing
'store' for the imported book I get
<br>
<br>
EruditeBookStorer >> store
<br>
<br>
self subclassResponsibility
<br>
</blockquote>
<br>
It should be easy, but I haven't implemented it yet :|
<br>
<br>
Mariano
<br>
<br>
</blockquote>
</body>
</html>