[Pharo-project] [ANN] Pharo Online Help 1.1. for Pharo 2.0 (now with Markdown support and tutorials)
Phile wrote:
But the "Browse button" invokes a NBWin32Shell class, which doesn't works too well on my Mac.
Yes I know. Thats why I asked http://lists.gforge.inria.fr/pipermail/pharo-project/2013-February/074553.ht... for more browser support in NativeBoost on other platforms. The only answer I got was using OSProcess but I want to have a NativeBoost solution for non-windows platforms too (since NB is already preinstalled) Sven wrote:
I am particularly interested in the Markdown conversion, but I can't find it immediately. Where does the conversion from .md to .html happen in the code ?
Its not solved within Smalltalk - it is done directly in the browser using javscript. It uses https://code.google.com/p/pagedown/ The scripts can be found on OHFileRequestHandler. Anything I do is to write a div to the client html and invoke the script. Bye T.
in mac, you need to do it in cocoa. with the ObjectiveCBridge2 you can do: ws := (ObjectiveCBridge classObjectForName: #NSWorkspace) sharedWorkspace. url := (ObjectiveCBridge classObjectForName: #NSWorkspace) URLWithString: 'http://www.pharo.org' asNSStringUTF8. ws openURL: url. this work with the ObjectiveCBridge2, http://www.squeaksource.com/ObjectiveCBridge2/ and more or less in same way with the Alien-OSX Bridge: http://www.squeaksource.com/Alien/ (curiously, you need the "ConfigurationOfOldAlien" to make it work. it will be a NB out-of-the-box version, but since to communicate with ObjC you need a bridge (not just the ffi stuff), we (Igor and me) still did not find time to work on it... Esteban On Feb 24, 2013, at 12:14 PM, "Torsten Bergmann" <astares@gmx.de> wrote:
Phile wrote:
But the "Browse button" invokes a NBWin32Shell class, which doesn't works too well on my Mac.
Yes I know.
Thats why I asked http://lists.gforge.inria.fr/pipermail/pharo-project/2013-February/074553.ht... for more browser support in NativeBoost on other platforms. The only answer I got was using OSProcess but I want to have a NativeBoost solution for non-windows platforms too (since NB is already preinstalled)
Sven wrote:
I am particularly interested in the Markdown conversion, but I can't find it immediately. Where does the conversion from .md to .html happen in the code ?
Its not solved within Smalltalk - it is done directly in the browser using javscript. It uses https://code.google.com/p/pagedown/
The scripts can be found on OHFileRequestHandler. Anything I do is to write a div to the client html and invoke the script.
Bye T.
EstebanLM wrote
in mac, you need to do it in cocoa.
In NB for Mac OS X, we could do 'system("open http://whatever")', but I couldn't get simple system calls to work in http://forum.world.st/NB-crash-boom-td4669980.html -- View this message in context: http://forum.world.st/ANN-Pharo-Online-Help-1-1-for-Pharo-2-0-now-with-Markd... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
yep... system call is complicated because it uses some weird jumps inside (at least, that's what Igor says... that's way over my understanding :) On Feb 24, 2013, at 12:38 PM, "Sean P. DeNigris" <sean@clipperadams.com> wrote:
EstebanLM wrote
in mac, you need to do it in cocoa.
In NB for Mac OS X, we could do 'system("open http://whatever")', but I couldn't get simple system calls to work in http://forum.world.st/NB-crash-boom-td4669980.html
-- View this message in context: http://forum.world.st/ANN-Pharo-Online-Help-1-1-for-Pharo-2-0-now-with-Markd... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
EstebanLM wrote
yep... system call is complicated because it uses some weird jumps inside (at least, that's what Igor says... that's way over my understanding :)
Ha ha, over mine too. Issue 7583: [ENH]: NB system example https://code.google.com/p/pharo/issues/detail?id=7583 -- View this message in context: http://forum.world.st/ANN-Pharo-Online-Help-1-1-for-Pharo-2-0-now-with-Markd... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (3)
-
Esteban Lorenzano -
Sean P. DeNigris -
Torsten Bergmann