[Pharo-users] Fwd: DateInput5 in Seaside widget preinitialized value view

2021-09-06 Thread Oswall Verny Arguedas C.
Regarding dateInput5 in Seaside.
How a previously initialized date can be displayed in the form's dateInput5
widget.
I use a pre-initialized date type value that is a property of the object to
render on the form.

html label
  for: 'startDate';
  with: 'Start Date:  '.
html dateInput5
  on: #startDate of: self contract;
  id: 'startDate';
  step: 1;
  title: 'Start Date';
  value: self contrato startDate;
  required.

Widget don't render date initialized.
I can't get it to show up.

Thanks,
Oswall


[Pharo-users] Re: The ideal font for Pharo

2021-09-06 Thread Offray Vladimir Luna Cárdenas
Now that we're talking of fonts. I wonder how difficult would be to
support emojis on Pharo and if that could be solved at the font level.
They have become part of day to day conversation and would be really
good to show them in things like sentiment analysis.

Cheers,

Offray

On 30/08/21 2:59 a. m., Guillermo Polito wrote:
> Hi tau,
>
> Thanks for it, I’ll check it :)
>
>> El 26 ago 2021, a las 1:17, tau > > escribió:
>>
>> I've been bothered by the assignement operator (:=) and the way the
>> colon and the equal sign aren't verticaly aligned when coding in
>> Pharo. So I began a quest to find a pharo-friendly font were the
>> colon and equal sign are aligned. Turn out most monospaced fonts
>> don't qualify but I did find the following fonts:
>>
>>   * Fira Code (https://fontlibrary.org/en/font/fira-code
>> ) has a := ligature
>> that doesn't work in Pharo.
>>
>>   * Iosevka extended
>> (https://fontlibrary.org/en/font/iosevka-extended
>> ) also has a :=
>> ligature that doen't work in Pharo.
>>
>>   * Mononoki (https://fontlibrary.org/en/font/mononoki
>> ) has the two
>> characters properly aligned but I dislike the appareance of that
>> font. The @, in particular, looks like it comes from a
>> low-resolution terminal from the early '80s.
>>
>>   * Fantasque Sans Mono
>> (https://fontlibrary.org/en/font/fantasque-sans-mono
>> ) has
>> perfectly aligned colon and equal sign and moreover has a nice
>> informal look.
>>
>>
>> So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.
>


[Pharo-users] Re: The ideal font for Pharo

2021-09-06 Thread Tim Mackinnon
And is an emoji a binary or keyword element?

Which could hilite some interesting programming usage if it would work?

^self 😎

Or 

^a 🙏 b



> On 6 Sep 2021, at 19:53, Offray Vladimir Luna Cárdenas 
>  wrote:
> 
> 
> Now that we're talking of fonts. I wonder how difficult would be to support 
> emojis on Pharo and if that could be solved at the font level. They have 
> become part of day to day conversation and would be really good to show them 
> in things like sentiment analysis.
> 
> Cheers,
> 
> Offray
> 
> On 30/08/21 2:59 a. m., Guillermo Polito wrote:
>> Hi tau,
>> 
>> Thanks for it, I’ll check it :)
>> 
>>> El 26 ago 2021, a las 1:17, tau  escribió:
>>> 
>>> I've been bothered by the assignement operator (:=) and the way the colon 
>>> and the equal sign aren't verticaly aligned when coding in Pharo. So I 
>>> began a quest to find a pharo-friendly font were the colon and equal sign 
>>> are aligned. Turn out most monospaced fonts don't qualify but I did find 
>>> the following fonts:
>>> 
>>> Fira Code (https://fontlibrary.org/en/font/fira-code) has a := ligature 
>>> that doesn't work in Pharo.
>>> Iosevka extended (https://fontlibrary.org/en/font/iosevka-extended) also 
>>> has a := ligature that doen't work in Pharo.
>>> Mononoki (https://fontlibrary.org/en/font/mononoki) has the two characters 
>>> properly aligned but I dislike the appareance of that font. The @, in 
>>> particular, looks like it comes from a low-resolution terminal from the 
>>> early '80s.
>>> Fantasque Sans Mono (https://fontlibrary.org/en/font/fantasque-sans-mono) 
>>> has perfectly aligned colon and equal sign and moreover has a nice informal 
>>> look.
>>> 
>>> So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.
>> 


[Pharo-users] Re: The ideal font for Pharo

2021-09-06 Thread Offray Vladimir Luna Cárdenas
heh, heh, that emoji usage would be pretty cool

^ self 😉🤯

On 6/09/21 2:31 p. m., Tim Mackinnon wrote:
> And is an emoji a binary or keyword element?
>
> Which could hilite some interesting programming usage if it would work?
>
> ^self 😎
>
> Or 
>
> ^a 🙏 b
>
>
>
>> On 6 Sep 2021, at 19:53, Offray Vladimir Luna Cárdenas
>>  wrote:
>>
>> 
>>
>> Now that we're talking of fonts. I wonder how difficult would be to
>> support emojis on Pharo and if that could be solved at the font
>> level. They have become part of day to day conversation and would be
>> really good to show them in things like sentiment analysis.
>>
>> Cheers,
>>
>> Offray
>>
>> On 30/08/21 2:59 a. m., Guillermo Polito wrote:
>>> Hi tau,
>>>
>>> Thanks for it, I’ll check it :)
>>>
 El 26 ago 2021, a las 1:17, tau >>> > escribió:

 I've been bothered by the assignement operator (:=) and the way the
 colon and the equal sign aren't verticaly aligned when coding in
 Pharo. So I began a quest to find a pharo-friendly font were the
 colon and equal sign are aligned. Turn out most monospaced fonts
 don't qualify but I did find the following fonts:

   * Fira Code (https://fontlibrary.org/en/font/fira-code
 ) has a := ligature
 that doesn't work in Pharo.

   * Iosevka extended
 (https://fontlibrary.org/en/font/iosevka-extended
 ) also has a
 := ligature that doen't work in Pharo.

   * Mononoki (https://fontlibrary.org/en/font/mononoki
 ) has the two
 characters properly aligned but I dislike the appareance of
 that font. The @, in particular, looks like it comes from a
 low-resolution terminal from the early '80s.

   * Fantasque Sans Mono
 (https://fontlibrary.org/en/font/fantasque-sans-mono
 ) has
 perfectly aligned colon and equal sign and moreover has a nice
 informal look.


 So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.
>>>


[Pharo-users] Re: The ideal font for Pharo

2021-09-06 Thread Kasper Osterbye
Wrt to emoji, I have at a number of times wanted to use other math symbols as 
binary methods (fx ‘⊕´). 

For some symbols it is allowed, for some allowed the font does not show 
properly, and some are not allowed (eg ‘≌’).

Some letters in non-latin alphabets are allowed as keyword methods (for example 
one can use the ‘ꮐ’ - Cherokee Small Letter Nah) though it does not render.

I was not able to trace down where in Pharo it is decided if something is a 
symbol or a letter, nor where it is decided if a character is legal or not as 
part of a selector. 

But it would be nice if Pharo was actually unicode in a somewhat consistent 
manner. Unicode defines character categories which can be used as definition. 

Whether it is possible to use emoji as both symbols and letters I do not know, 
but both seems “useful”.

— Kasper

> On 6 Sep 2021, at 22.41, Offray Vladimir Luna Cárdenas 
>  wrote:
> 
> heh, heh, that emoji usage would be pretty cool
> 
> ^ self 😉🤯
> 
> On 6/09/21 2:31 p. m., Tim Mackinnon wrote:
>> And is an emoji a binary or keyword element?
>> 
>> Which could hilite some interesting programming usage if it would work?
>> 
>> ^self 😎
>> 
>> Or 
>> 
>> ^a 🙏 b
>>