Re: TSNet hanging

2019-05-10 Thread J. Landman Gay via use-livecode

On 5/10/19 3:04 PM, J. Landman Gay via use-livecode wrote:
I have one particular file downloading from a server that hangs TSNet 
and freezes the IDE. It hangs on mobile too. In both, it requires a 
force-quit to get out. A similar file from another set loads without 
issues.


The files are saved in UTF8 with Mac carriage returns. They are not 
compressed. I textDecode them and replace the returns with LF. The file 
that fails has some weird characters that don't translate correctly 
using textDecode(,"UTF8"). Firefox has no problem getting the 
file and displaying it as text, but does show the strange characters. 
The same file opened in BBEdit doesn't have a problem, the characters 
are translated as curly quotes.


I don't know if these will come through on the list, but here are examples:

   “interlude.”  -- beginning and ending curly quotes
   name’ -- single curly quote

Would these hang a download? It's the only difference I can find between 
the one that works (no quotes at all) and this one.


BTW, after textDecoding, LC throws an errors for codepointToNum on the 
second example ("error in expression"), and says the curly quotes in the 
first example are either 0 or 1770 (an Arabic glyph.)


I'll ask the client to upload a zip file and see if that will download, 
but I don't think LC will translate the characters correctly anyway. If 
it helps, the original files were exported from FileMaker.




Update: the error is because there are actually three codepoints. When I 
decode them individually I get what came through on the list:


226 - 8364 - 339
Latin Small Letter A With Circumflex - Euro Sign - Latin Small Ligature Oe

Which still isn't a curly quote.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

TSNet hanging

2019-05-10 Thread J. Landman Gay via use-livecode
I have one particular file downloading from a server that hangs TSNet 
and freezes the IDE. It hangs on mobile too. In both, it requires a 
force-quit to get out. A similar file from another set loads without issues.


The files are saved in UTF8 with Mac carriage returns. They are not 
compressed. I textDecode them and replace the returns with LF. The file 
that fails has some weird characters that don't translate correctly 
using textDecode(,"UTF8"). Firefox has no problem getting the 
file and displaying it as text, but does show the strange characters. 
The same file opened in BBEdit doesn't have a problem, the characters 
are translated as curly quotes.


I don't know if these will come through on the list, but here are examples:

  “interlude.”  -- beginning and ending curly quotes
  name’ -- single curly quote

Would these hang a download? It's the only difference I can find between 
the one that works (no quotes at all) and this one.


BTW, after textDecoding, LC throws an errors for codepointToNum on the 
second example ("error in expression"), and says the curly quotes in the 
first example are either 0 or 1770 (an Arabic glyph.)


I'll ask the client to upload a zip file and see if that will download, 
but I don't think LC will translate the characters correctly anyway. If 
it helps, the original files were exported from FileMaker.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Help with Pasting of RTL languages into a field

2019-05-10 Thread Curry Kenworthy via use-livecode



Paul:

> When I paste in RTL text (Arabic for example)
> it is incorrectly Left aligned.

The Dictionary may take a little poetic license with textDirection 
behavior; text renders inline per the rules, but I think par align is 
still up to the coder. You could detect the Unicode block when pasting.


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Lagi Pittas via use-livecode
Hi,

It will be sad, a great loss or even a travesty if the worshops are not
recordered somehow.

Even if by using a couple of mobile phones for good sound and "so so" video.

The simulcast won'rt be anywhere near as useful as it could be without
these Workshops.

If the slides,text, resources  etc ultimately become available that could
go someway towards mitigating the situation,
and not waste of all that programming wisdom by limiting it's access to the
wider community.

We still haven't got our 2000 widgets after nearly 4 years, and  I will let
others decide why this is - I have my own opinions.

Any Workshops -  whether Monty's, Marks Ali's or yours -  should be
recorded (I hope people in the audience don't have their phones confiscated
for making "bootleg" copies).

If LC wants an extra pound of flesh then so be it - but "Say it ain't so".

My 2 Pence worth

Lagi

On Fri, 10 May 2019 at 15:26, Trevor DeVore via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On Fri, May 10, 2019 at 9:18 AM Trevor DeVore 
> wrote:
>
> >
> > I was hoping to just grab the precompiled DLL for it but the downloadable
> > version has a bug in it and would just exit whenever I tried to use it.
> > With Mark Waddingham's help (a lot of it) I now have a basic version
> > working on both macOS and Windows. Even the macOS version required some
> > interesting steps so that the dylibs (pocketsphinx and sphinxbase) would
> > only load the dylibs in the extension's code folder. Wrapping the code
> was
> > also an educational experience and has a number of teaching points that I
> > will bring up in the workshop.
> >
>
> I should also point out that Monte also provided some valuable guidance on
> variable types to use with the API and working with variadic arguments.
> Lots of good stuff for the workshop.
>
> --
> Trevor DeVore
> ScreenSteps
> www.screensteps.com
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Trevor DeVore via use-livecode
On Fri, May 10, 2019 at 9:18 AM Trevor DeVore 
wrote:

>
> I was hoping to just grab the precompiled DLL for it but the downloadable
> version has a bug in it and would just exit whenever I tried to use it.
> With Mark Waddingham's help (a lot of it) I now have a basic version
> working on both macOS and Windows. Even the macOS version required some
> interesting steps so that the dylibs (pocketsphinx and sphinxbase) would
> only load the dylibs in the extension's code folder. Wrapping the code was
> also an educational experience and has a number of teaching points that I
> will bring up in the workshop.
>

I should also point out that Monte also provided some valuable guidance on
variable types to use with the API and working with variadic arguments.
Lots of good stuff for the workshop.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Paul Dupuis via use-livecode

On 5/10/2019 10:18 AM, Trevor DeVore via use-livecode wrote:

Thanks for the suggestion Paul. This ended up being a really good example
to work on.

Wow! Thank you Trevor!

I have slowly (far too slowly) been trying to develop my LCB expertise 
to wrap Sphinx, but the C side of things (building the DLLs and where to 
place them was stumping me). I am pretty sure, with the files in the 
right places and the minimal interface working, I can add functionality 
to a Pocket Sphinx library widget.


-- Paul

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Resize Stack Sent Everytime a Stack Opens?

2019-05-10 Thread Brian Milby via use-livecode
What fullScreenMode are you in when the stack opens?  What mode when the 
rotation happens?

Thanks,
Brian
On May 10, 2019, 10:08 AM -0400, Sannyasin Brahmanathaswami via use-livecode 
, wrote:
> I put a "breakpoint" into
>
> On resizestack x,y,
> Breakpoint
> [snip code]
>
> End resize stack
>
> At least on Android, this being called every time the stack opens.
>
> But it doesn't mention that in the dictionary
>
> OTHO
>
> If you turn for phone sideways (to "landscape") it is not called.
>
> Even though this is in the dictionary (which implies that it is called)
>
> The orientationChanged message is sent before any automatic interface
> rotation takes place thus changes to the orientation lock state and
> allowed set can be made at this point and still have an effect. If you
> wish to perform an action after the interface has been rotated, then
> either do so on receipt of resizeStack or by using a  milliseconds(command)> command..
>
> ??
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Question for LCB FFI workshop attendees at upcoming conference

2019-05-10 Thread Trevor DeVore via use-livecode
On Tue, May 7, 2019 at 12:14 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 5/7/2019 9:35 AM, Trevor DeVore via use-livecode wrote:
> > This is for anyone who plans on attending my workshop on using FFI in LCB
> > at the conference. Is there any code (a macOS Framework, Windows API,
> DLL,
> > dylib, etc.) that is written in Objective-C or that has a C wrapper that
> > you are interested in wrapping with LCB in order to make it available to
> > LiveCode?
> >
> > If so, let me know in a response to this thread and I can take a look at
> it
> > before the workshop to see if I can include it.
> >
>
> I would love to see a sample LCB wrapper for PocketSphinx!
>
> https://cmusphinx.github.io/wiki/tutorialpocketsphinx


Thanks for the suggestion Paul. This ended up being a really good example
to work on.

I was hoping to just grab the precompiled DLL for it but the downloadable
version has a bug in it and would just exit whenever I tried to use it.
With Mark Waddingham's help (a lot of it) I now have a basic version
working on both macOS and Windows. Even the macOS version required some
interesting steps so that the dylibs (pocketsphinx and sphinxbase) would
only load the dylibs in the extension's code folder. Wrapping the code was
also an educational experience and has a number of teaching points that I
will bring up in the workshop.

For those of you who offered up other suggestions - I took a look at the
pages you sent but I didn't see any obvious C interfaces and they also look
like much more involved projects. FFI will not work with C++ right now.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Resize Stack Sent Everytime a Stack Opens?

2019-05-10 Thread Sannyasin Brahmanathaswami via use-livecode
I put a "breakpoint" into 

On resizestack x,y,
  Breakpoint
 [snip code]

End resize stack

At least on Android, this being called every time the stack opens. 

But it doesn't mention that in the dictionary

OTHO 

If you turn for phone sideways (to "landscape") it is not called. 

Even though this is in the dictionary  (which implies that it is called)

The orientationChanged message is sent before any automatic interface
rotation takes place thus changes to the orientation lock state and
allowed set can be made at this point and still have an effect. If you
wish to perform an action after the interface has been rotated, then
either do so on receipt of resizeStack or by using a  command..

??

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android needs 64 bit builds

2019-05-10 Thread Sphere via use-livecode
a minor thing probably i noticed. The 9.1.0DP1 jumped to 9.5.0DP1. Is 
this a typo? or do have to wait longer? Just asking.



Mark Wieder via use-livecode schreef op 2019-05-06 23:26:

On 5/6/19 3:44 PM, Monte Goulding via use-livecode wrote:

Ah. OK. So the problem with running on the pi isn't with building 
form arm devices, but with interacting with the pi os?


I believe it is largely an issue of getting the build configuration 
and toolchains correct for cross compiling for armv6hf. Although given 
Pi 3s are arm64 but Raspbian is still armv6hf I guess we would need a 
build for a number of archs (armv6hf, armv7, arm64) depending on what 
OS people are running.


For us there is the extra step of getting it all setup on vulcan to 
build and package etc.


Ouch. I didn't realize raspbian was still armv6hf, although it makes
sense for older hardware. That thickens the plot a bit. I'd certainly
settle for an arm64-only build of the LC engine, but shoehorning it
into an arm6hf os seems dicey.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode