Re: [Gnoga-list] Selection_Type Value and Apostrophes

2021-12-18 Thread Blady via Gnoga-list

> Le 15 déc. 2021 à 11:50, Jeffrey R. Carter via Gnoga-list 
>  a écrit :
> 
> These work for my situation, thanks.
> 
> I'm a bit surprised no unquote operation is needed. 

Gnoga server sent always data encapsulated in a JS script which is interpreted 
by the JS boot code load in your browser at beginning of connection.
On the other way, the data sent by the boot code is just parsed by Ada code not 
interpreted ;-)
For instance keyboard event parsing:
https://sourceforge.net/p/gnoga/code/ci/dev_1.7/tree/src/gnoga-gui-base.adb#l156

Regards, Pascal.
https://blady.pagesperso-orange.fr




___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Selection_Type Value and Apostrophes

2021-12-15 Thread Jeffrey R. Carter via Gnoga-list
These work for my situation, thanks.

I'm a bit surprised no unquote operation is needed.

⁣--
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python and the Holy Grail​

On Dec 13, 2021, 21:01, at 21:01, Blady  wrote:
>
>
>> Le 8 déc. 2021 à 23:24, Jeffrey R. Carter via Gnoga-list
> a écrit :
>>
>> I encountered this storing file names. I suppose I could add my own
>encoding for apostrophes before adding, & decoding when retrieving.
>Presumably that would be needed for quotation marks as well.
>
>Hello Jeff,
>
>I've pushed some modifications on SF (GNOGA dev_1.7):
>https://sourceforge.net/p/gnoga/code/ci/82e37a37853c92188c4df3a979ac9c5586db0f14/
>
>I haven't tested them extensively but made some review on the code.
>Please keep me informed if it solves your issue without side effect.
>
>I've also taken the opportunity to suppress PragmARC from GNOGA as you
>proposed previously.
>
>Regards, Pascal.
>https://blady.pagesperso-orange.fr
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Selection_Type Value and Apostrophes

2021-12-13 Thread Blady via Gnoga-list


> Le 8 déc. 2021 à 23:24, Jeffrey R. Carter via Gnoga-list 
>  a écrit :
> 
> I encountered this storing file names. I suppose I could add my own encoding 
> for apostrophes before adding, & decoding when retrieving. Presumably that 
> would be needed for quotation marks as well.

Hello Jeff,

I've pushed some modifications on SF (GNOGA dev_1.7):
https://sourceforge.net/p/gnoga/code/ci/82e37a37853c92188c4df3a979ac9c5586db0f14/

I haven't tested them extensively but made some review on the code.
Please keep me informed if it solves your issue without side effect.

I've also taken the opportunity to suppress PragmARC from GNOGA as you proposed 
previously.

Regards, Pascal.
https://blady.pagesperso-orange.fr




___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Selection_Type Value and Apostrophes

2021-12-08 Thread Jeffrey R. Carter via Gnoga-list
I encountered this storing file names. I suppose I could add my own encoding 
for apostrophes before adding, & decoding when retrieving. Presumably that 
would be needed for quotation marks as well.

⁣--
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python and the Holy Grail​

On Dec 8, 2021, 20:41, at 20:41, Blady  wrote:
>
>> Le 6 déc. 2021 à 06:57, Jeffrey R. Carter via Gnoga-list
> a écrit :
>>
>> Probably it's line 1544, since I used Add_Option.
>
>Hello Jeff,
>
>Yes and also many other locations are concerned.
>Strings have to be parsed against quotes in particular cases of HTML
>attributes but also for Javascript code.
>Instead of cumulating string parsings which will decrease performances,
>I will try to target only what is necessary.
>
>In the meantime, as a workaround, if your source code is appropriate
>with literal strings for instance, you may replace apostrophes with the
>HTML equivalent .
>
>Best, Pascal.
>https://blady.pagesperso-orange.fr
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Selection_Type Value and Apostrophes

2021-12-08 Thread Blady via Gnoga-list

> Le 6 déc. 2021 à 06:57, Jeffrey R. Carter via Gnoga-list 
>  a écrit :
> 
> Probably it's line 1544, since I used Add_Option.

Hello Jeff,

Yes and also many other locations are concerned.
Strings have to be parsed against quotes in particular cases of HTML attributes 
but also for Javascript code.
Instead of cumulating string parsings which will decrease performances, I will 
try to target only what is necessary.

In the meantime, as a workaround, if your source code is appropriate with 
literal strings for instance, you may replace apostrophes with the HTML 
equivalent .

Best, Pascal.
https://blady.pagesperso-orange.fr




___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Selection_Type Value and Apostrophes

2021-12-05 Thread Jeffrey R. Carter via Gnoga-list
Probably it's line 1544, since I used Add_Option.

⁣--
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python and the Holy Grail​

On Dec 4, 2021, 19:52, at 19:52, Blady  wrote:
>
>> Le 4 nov. 2021 à 14:07, J Carter via Gnoga-list
> a écrit :
>>
>> Somewhere in the intersection of Gnoga 1.6, GNAT 11.2, and Firefox
>94.0 on Xubuntu 20.10 I have encountered this "feature". If the Value
>supplied for an option of a Selection_Type contains an apostrophe ('),
>the Value function for that option discards the apostrophe and all
>characters after it. I'm not sure if this is expected behavior.
>
>Hello Jeff,
>
>I can reproduce.
>The offending line is here:
>https://sourceforge.net/p/gnoga/code/ci/dev_1.6/tree/src/gnoga-gui-element-form.adb#l1599
>
>Escaping quotes at multilevel of Javascript evaluation strings is a
>nightmare ;-)
>I'll look for a global fix as many locations are concerned.
>
>Best, Pascal.
>https://blady.pagesperso-orange.fr
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Selection_Type Value and Apostrophes

2021-12-04 Thread Blady via Gnoga-list

> Le 4 nov. 2021 à 14:07, J Carter via Gnoga-list 
>  a écrit :
> 
> Somewhere in the intersection of Gnoga 1.6, GNAT 11.2, and Firefox 94.0 on 
> Xubuntu 20.10 I have encountered this "feature". If the Value supplied for an 
> option of a Selection_Type contains an apostrophe ('), the Value function for 
> that option discards the apostrophe and all characters after it. I'm not sure 
> if this is expected behavior.

Hello Jeff,

I can reproduce.
The offending line is here:
https://sourceforge.net/p/gnoga/code/ci/dev_1.6/tree/src/gnoga-gui-element-form.adb#l1599

Escaping quotes at multilevel of Javascript evaluation strings is a nightmare 
;-)
I'll look for a global fix as many locations are concerned.

Best, Pascal.
https://blady.pagesperso-orange.fr




___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] Selection_Type Value and Apostrophes

2021-11-04 Thread J Carter via Gnoga-list
Somewhere in the intersection of Gnoga 1.6, GNAT 11.2, and Firefox 94.0 on 
Xubuntu 20.10 I have encountered this "feature". If the Value supplied for an 
option of a Selection_Type contains an apostrophe ('), the Value function for 
that option discards the apostrophe and all characters after it. I'm not sure 
if this is expected behavior.

--Jeff Carter"Now go away or I shall taunt you a second time."Monty Python and 
the Holy Gral___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list