On Fri, Oct 17, 2014 at 10:41 PM, Offray Vladimir Luna Cárdenas <
offray(a)riseup.net> wrote:
Hi Andrei and thanks for your quick response,
On 10/17/2014 07:40 PM, Andrei Chis wrote:
Hi Offray,
In Glamour a presentation does not know about it's parent so what you
want to do
might not be possible.
Wow... I have been having so much learning/pleasure working with
Glamour.... but this is a stopper... I don't know to circumvent this issue.
No worries. It's not so dramatic :)
Until now I really did bot get into a situation where this was a show
stopper.
Now, it's not very clear for me what you are trying to do. Is the code
available
somewhere?
I'm trying to create and environment to write (interactive) documents
using a tree like metaphor so there are some kind of deep nodes which are
invisible to the exported file. Here is an screen shot of the original tree
in Pharo and the exported file from that tree side by side here:
http://mutabit.com/deltas/repos.fossil/grafoscopio/doc/
tip/Figuras/intro-lado-lado.jpg
The pdf file of a still draft paper which was wrote completely using this
prototype here (in Spanish):
http://mutabit.com/deltas/repos.fossil/grafoscopio/doc/
tip/bootstrapping-objeto-investigacion.pdf
The original format of this file is a STON file with all the "metadata"
and deep nodes:
http://mutabit.com/deltas/repos.fossil/grafoscopio/doc/
tip/bootstrapping-objeto-investigacion.ston
I have added functionality to export to markdown from STON to produce the
pdf (using pandoc). This is the output:
http://mutabit.com/deltas/repos.fossil/grafoscopio/doc/
tip/bootstrapping-objeto-investigacion.markdown
(it can be render from the web site but is better to download it).
The code is hosted here:
http://smalltalkhub.com/#!/~Offray/Ubakye/
And can be installed following this instructions:
http://wiki.hackbo.co/doku.php/herramientas:grafoscopio:instalacion
The script for loading STON is missing the package which causes an error.
Is my first project on Smalltalk (except from some Bots Inc, Etoys and
Scratch approaches) so is rookie code with a lot of errors.
Cool project. It looks already impressive.
Anyway if you can take a look of it and see in there is any way to "save
trees" to files or give any clue on how to solve the issue I really
appreciate it. I will make some test to see if I get some ideas.
Replacing 'browser saveToFile' with 'self saveToFile' should solve the
problem if I'm not missing anything.
UbakyeBrowser is the main browser so it's save to call method on it using
self.
I still get some error when saving as there seem to be some hardcoded path
to the file (/ 'home' / 'offray' / 'Documentos' / 'U' /
'Libertadores' /
'Grafoscopio' / 'bootstrapping-objeto-investigacion.ston')
Let me know if this helps or if you have any other questions.
Cheers,
Andrei
Thanks again,
Offray
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev