Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Kasper Østerbye
On 21 October 2019 at 21.44.49, Norbert Hartl (norb...@hartl.name) wrote:

I started to use Rubric as text editing component. With this I started to
add text attributes for wysiwyg editing. In a basic attempt I wrote a
converter from text attributes to pillar markup. The text with pillar
markup is stored in my model and the pillar to text reconstructs to
formatted text.
With spec we need to redo such a component. There is a text component. The
plan is to add a rich text component that can have styled text. Both things
together could be a good editor in wysiwyg fashion having pillar as
document model.
In your first post I thought I read you have the same plan. Maybe just
wishful thinking.

Got it.

When googling, it seems like the Cuis-StyledTextEditor (
https://github.com/Cuis-Smalltalk/StyledTextEditor) is the latest attempt,
but it is not Pharo.

As I understand it, it is the plan to get gtk and pharo to work together
somehow. Does gtk have a widget that allow for rich text wysiwyg? Its
underlying text model seems to be similar to smalltalk (attributes).

At the moment I am less interested in (developing) a wysiwyg editor. Also I
am not going to try and make a *full* pillar renderer (I am not a pillar
fan).

As Julien wrote, class comments (and perhaps even regular comments)
rendered in rich-text based on markup is my first goal.

I am still picking up Pharo and all it tooling, so it is slow progress atm.

Btw, in the comments for Rubric a project named TxText is mentioned. I
presume it is either integrated into the system and has lost its name, or
it stalled?

Best,

Kasper


Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread tbrunz
Hi Norbert, Kasper,

I, for one, am /*very*/ interested in being able to edit Pillar documents in
a wysiwyg fashion.  And of course I then want to write out such a document
as a text file with Pillar markup, so that I can commit that document to a
Booklet repo, to be compiled into a PDF.

I was looking for a way to view a Pillar markup text file, as an aid to
composing/proofreading.  There is a plugin for Atom, but it appears to be so
old (and unmaintained) that it no longer renders correctly in the latest
versions of Atom.  So I have been making due with using Markdown preview,
but it's far from ideal.

You have something like this started?  Need help?  And if anyone else has a
suggestion..?

-Ted




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Script to download specific Pharo version

2019-10-21 Thread BrunoBB
Hi,

I forgot to mention the error while try to load Seaside is
aFileDoesNotExistException.

Here is the error:
FileDoesNotExistException:
'/tmp/github--SeasideStSeasidev34x236606819388710396423147085274778742445.zip'

Image: Pharo7.0.4 [Build information:
Pharo-7.0.4+build.168.sha.ccd1f6489120f58ddeacb2cac77cd3a0f0dcfbe6 (64 Bit)]

File>>openForWrite:
Receiver: a File
Arguments and temporary variables: 
writeMode:  false
fileHandle: nil
Receiver's instance variables: 
name: 
'/tmp/github--SeasideStSeasidev34x236606819388710396423147085274778742445...etc...


File>>openForRead
Receiver: a File
Arguments and temporary variables: 
Receiver's instance variables: 
name: 
'/tmp/github--SeasideStSeasidev34x236606819388710396423147085274778742445...etc...
File class>>openForReadFileNamed:
Receiver: File
Arguments and temporary variables: 
aName: 
'/tmp/github--SeasideStSeasidev34x23660681938871039642314708527477874244...etc...
Receiver's instance variables: 
superclass: Object
methodDict: a MethodDictionary(#basename->File>>#basename
#basicOpenForWrite:->...etc...
format: 65537
layout: a FixedLayout
organization:   a ClassOrganization
subclasses: nil
name:   #File
classPool:  a Dictionary(#Registry->a WeakRegistry(...etc...
sharedPools:an OrderedCollection()
environment:a SystemDictionary(lots of globals)
category:   #'Files-Core'
ZipArchive>>readFrom:
Receiver: a ZipArchive
Arguments and temporary variables: 
aStreamOrFileName:  File @
/tmp/github--SeasideStSeasidev34x23660681938871039642...etc...
stream: nil
name: 
'/tmp/github--SeasideStSeasidev34x236606819388710396423147085274778742445...etc...
eocdPosition:   nil
Receiver's instance variables: 
members:an OrderedCollection()
centralDirectorySize:   nil
centralDirectoryOffsetWRTStartingDiskNumber:nil
zipFileComment: ''
writeCentralDirectoryOffset:0
writeEOCDOffset:0
IceMetacelloPharoPlatform(MetacelloPharoPlatform)>>downloadZipArchive:to:
Receiver: an IceMetacelloPharoPlatform
Arguments and temporary variables: 
url:'https://github.com/SeasideSt/Seaside/zipball/v3.4.x'
outputFileName: 
'/tmp/github--SeasideStSeasidev34x23660681938871039642314708527...etc...
Receiver's instance variables: 
bypassProgressBars: false
bypassGoferLoadUpdateCategories:false






--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



[Pharo-users] Script to download specific Pharo version

2019-10-21 Thread BrunoBB
Hi,

We have a Linux script to build our image and was working well until
recently. 
It seems that the failure is related (not confirmed yet) to
https://github.com/pharo-project/pharo/issues/4764

Becuase it fail to load Seaside into the Pharo image.

Is there any way to download a specific build or version like ?
wget -q -O- https://get.pharo.org/64/703 | bash

In this case to download Pharo 7.03

We want to try our script with different Pharo versions, because "wget -O-
https://get.pharo.org/64 | bash" it download the latest.

regards,
bruno



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Norbert Hartl


> Am 21.10.2019 um 19:20 schrieb Kasper Østerbye :
> 
> 
>> 
>> On 21 October 2019 at 18.53.24, Norbert Hartl (norb...@hartl.name) wrote:
>> Looking at the code it seems that there is just a pillar to text conversikn. 
> 
> Yes, I only go from pillar to Text (not just String).
> 
>> Do you have plans to go from text to pillar as well?
> 
> Your question confuses me :-)
> 
> What would be the source of an already formatted Text?
> Is there a “rich text editor”? I did not know there was one?
Well, I‘m in a constant fight with Esteban about it  I started to use Rubric 
as text editing component. With this I started to add text attributes for 
wysiwyg editing. In a basic attempt I wrote a converter from text attributes to 
pillar markup. The text with pillar markup is stored in my model and the pillar 
to text reconstructs to formatted text.
With spec we need to redo such a component. There is a text component. The plan 
is to add a rich text component that can have styled text. Both things together 
could be a good editor in wysiwyg fashion having pillar as document model. 
In your first post I thought I read you have the same plan. Maybe just wishful 
thinking.

Norbert

> Best,
> 
> Kasper


Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Kasper Østerbye
On 21 October 2019 at 18.53.24, Norbert Hartl (norb...@hartl.name) wrote:

Looking at the code it seems that there is just a pillar to text
conversikn.

Yes, I only go from pillar to Text (not just String).

Do you have plans to go from text to pillar as well?

Your question confuses me :-)

   - What would be the source of an already formatted Text?
   - Is there a “rich text editor”? I did not know there was one?

Best,

Kasper


Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Norbert Hartl
Looking at the code it seems that there is just a pillar to text conversikn. Do 
you have plans to go from text to pillar as well?

Norbert

> Am 21.10.2019 um 17:19 schrieb Kasper Østerbye :
> 
> 
> Cheers,
> 
> 
> Rendering the Pillar markup inside the Pharo image
> 
> This is work in (early) progress, but I think it is far enough for a 
> "technology preview".
> 
> Goal of the project
> 
> The goal of the project is to be able to do better in-image documentation. To 
> do this, I am working on several fronts:
> 
> Rendering more pillar, expecially I would like to get a solution for tables.
> Rendering github markdown in addition to pillar markdown. This will allow me 
> to pull markdown from git and display it in-image.
> Giving the "help-system" some love.
> In-image tools for writing markdown - a markdown editor
> A design for keeping the mark-down texts seamlessly outside of the image
> Reg. 1., I can only figure out how to transform a morphic table into an 
> image, and then add that image to the text (not included atm as I find it so 
> ugly a solution). Any other ideas are greatly appreciated.
> 
> Reg. 2. I am nearly done on this one, at least for the easy aspects (headers, 
> lists, emphasis, code-blocks).
> 
> Reg 3 and 4. Only loose ideas atm.
> 
> Trying it out
> 
> Load it using Metacello:
> 
> Metacello new
>baseline: 'PillarRichTextRender';
>repository: 'github://kasperosterbye/PillarRichTextRender';
>load.
> At the moment it will load the whole of Pillar, but I hope to fix that soon.
> 
> Once loaded, the class PRRichTextComposer has some examples on the class side.


Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Julien
Nice work Kasper!

I can’t wait to have a tab with rendered pillar when browsing class comment. :-)

Julien

---
Julien Delplanque
Doctorant à l’Université de Lille
http://juliendelplanque.be/phd.html
Equipe Rmod, Inria
Bâtiment B 40, Avenue Halley 59650 Villeneuve d'Ascq
Numéro de téléphone: +333 59 35 86 40

> Le 21 oct. 2019 à 16:10, Kasper Østerbye  a écrit :
> 
> Cheers,
> 
> 
> Rendering the Pillar markup inside the Pharo image
> 
> This is work in (early) progress, but I think it is far enough for a 
> "technology preview".
> 
>  
> Goal
>  of the project
> 
> The goal of the project is to be able to do better in-image documentation. To 
> do this, I am working on several fronts:
> 
> Rendering more pillar, expecially I would like to get a solution for tables.
> Rendering github markdown in addition to pillar markdown. This will allow me 
> to pull markdown from git and display it in-image.
> Giving the "help-system" some love.
> In-image tools for writing markdown - a markdown editor
> A design for keeping the mark-down texts seamlessly outside of the image
> Reg. 1., I can only figure out how to transform a morphic table into an 
> image, and then add that image to the text (not included atm as I find it so 
> ugly a solution). Any other ideas are greatly appreciated.
> 
> Reg. 2. I am nearly done on this one, at least for the easy aspects (headers, 
> lists, emphasis, code-blocks).
> 
> Reg 3 and 4. Only loose ideas atm.
> 
>  
> Trying
>  it out
> 
> Load it using Metacello:
> 
> Metacello new
>baseline: 'PillarRichTextRender';
>repository: 'github://kasperosterbye/PillarRichTextRender 
> ';
>load.
> At the moment it will load the whole of Pillar, but I hope to fix that soon.
> 
> Once loaded, the class PRRichTextComposer has some examples on the class side.



Re: [Pharo-users] Pillar in-image rendering (was: String concatenation vs. Stream)

2019-10-21 Thread Kasper Østerbye
On 21 October 2019 at 16.17.49, Guillermo Polito (guillermopol...@gmail.com)
wrote:

What if instead of putting tables into text you put text into tables ;).
In other words, think both text and tables as renderable elements (cof cof
morphs).
Then, since we can make a morph from a text, and a table morph, then both
can be combined.

Out of the table thinking :-)

So by putting a table on the outside, I can make the normal paragraphs
individual rows of one column?

To make an actual table, it would be some rows with more columns than one?

Do the tables morphs allow for merged  cells?

I will look into it, but I am not too optimistic that I will be able to get
anything that looks nice.

Best,

Kasper


Re: [Pharo-users] [ANN] HeySql v1.1

2019-10-21 Thread Petter
Thx! Drop me a line if you run into trouble of some kind and I will take a
look!

Petter



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Pillar in-image rendering (was: String concatenation vs. Stream)

2019-10-21 Thread Guillermo Polito
On Sat, Oct 19, 2019 at 1:40 PM Kasper Østerbye 
wrote:

> My main *remaining issue is to do tables* somehow. Any hints on how to
> render tables inside a text?
>

Hi Kasper, some intuition from my part for this.
What if instead of putting tables into text you put text into tables ;).
In other words, think both text and tables as renderable elements (cof cof
morphs).
Then, since we can make a morph from a text, and a table morph, then both
can be combined.

Cheers,
Guille


[Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Kasper Østerbye
Cheers,


Rendering the Pillar markup inside the Pharo image

This is work in (early) progress, but I think it is far enough for a
"technology preview".
Goal
of the project

The goal of the project is to be able to do better in-image documentation.
To do this, I am working on several fronts:

   1. Rendering more pillar, expecially I would like to get a solution for
   tables.
   2. Rendering github markdown in addition to pillar markdown. This will
   allow me to pull markdown from git and display it in-image.
   3. Giving the "help-system" some love.
   4. In-image tools for writing markdown - a markdown editor
   5. A design for keeping the mark-down texts seamlessly outside of the
   image

Reg. 1., I can only figure out how to transform a morphic table into an
image, and then add that image to the text (not included atm as I find it
so ugly a solution). Any other ideas are greatly appreciated.

Reg. 2. I am nearly done on this one, at least for the easy aspects
(headers, lists, emphasis, code-blocks).

Reg 3 and 4. Only loose ideas atm.
Trying
it out

Load it using Metacello:

Metacello new
   baseline: 'PillarRichTextRender';
   repository: 'github://kasperosterbye/PillarRichTextRender';
   load.

At the moment it will load the whole of Pillar, but I hope to fix that soon.

Once loaded, the class PRRichTextComposer has some examples on the class
side.


Re: [Pharo-users] PharoADO

2019-10-21 Thread eftomi
> A question: is PharoCOM and PharoWin32 usable in Pharo 32 bits and 64 bits
on Windows or is it a 32 bit thing?

I haven't tried it yet. Here's a discussion about that:
http://forum.world.st/Microsoft-COM-td5002594.html

Best wishes
Tomaz




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] PharoADO

2019-10-21 Thread Santiago Bragagnolo
Beautiful! this is a great contribution.



El mar., 15 oct. 2019 a las 21:37, eftomi ()
escribió:

> Dear all,
>
> A working prototype of PharoADO is now available at
> https://github.com/eftomi/pharo-ado. I'd be glad if you can find the time
> to
> test it and report your observations to this list or on the GitHub. PRs are
> welcome and much needed :-)
>
> Firstly, I would like to focus on various database data types. When using
> ADOClient and ADORecordset, the availability of data types heavily depends
> from PharoWin32/PharoCOM packages, so we have to update both repositories
> :-)
>
> The PharoADO package is not huge after all, since ActiveX Data Objects
> itself is an abstraction layer and provides much of the needed
> functionalities by itself.
>
> Best wishes,
> Tomaz
>
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>


Re: [Pharo-users] PharoADO

2019-10-21 Thread p...@highoctane.be
A question: is PharoCOM and PharoWin32 usable in Pharo 32 bits and 64 bits
on Windows or is it a 32 bit thing?

Phil

On Tue, Oct 15, 2019 at 9:36 PM eftomi  wrote:

> Dear all,
>
> A working prototype of PharoADO is now available at
> https://github.com/eftomi/pharo-ado. I'd be glad if you can find the time
> to
> test it and report your observations to this list or on the GitHub. PRs are
> welcome and much needed :-)
>
> Firstly, I would like to focus on various database data types. When using
> ADOClient and ADORecordset, the availability of data types heavily depends
> from PharoWin32/PharoCOM packages, so we have to update both repositories
> :-)
>
> The PharoADO package is not huge after all, since ActiveX Data Objects
> itself is an abstraction layer and provides much of the needed
> functionalities by itself.
>
> Best wishes,
> Tomaz
>
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>


Re: [Pharo-users] [ANN] HeySql v1.1

2019-10-21 Thread p...@highoctane.be
Looks interesting. I'll give it a shot.

Same feel about ORMs in general here, so, let's see how it goes.

Phil



On Sat, Oct 19, 2019 at 6:58 PM Petter  wrote:

> Hi, I have just released HeySql, version 1.1 - a database orm for
> Postgresql.
>
> - Support for migrations
> - Generation of migration templates based on classes
> - Models can now be subclassed
> - Updated license to MIT
> - Updated docs
> - Some minor stuff
>
> https://github.com/pegesund/heysql
>
> Petter
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>