Search found 40 matches

by hopkins
Sun Aug 18, 2019 11:29 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing text
Replies: 8
Views: 547

Re: Normalizing text

Cool, thanks :D
by hopkins
Sun Aug 18, 2019 8:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing text
Replies: 8
Views: 547

Re: Normalizing text

Thank you for your answers. I wish there were a simpler way of doing this, but the above code will certainly do the job.
by hopkins
Sat Aug 17, 2019 10:32 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing text
Replies: 8
Views: 547

Normalizing text

Hello,

Is there a way to convert text with accentuation into a "normalized" text ?

For example: transform "Béla Bartók" into "Bela Bartok"

I cannot seem to get the function "normalize" (https://livecode.fandom.com/wiki/NormalizeText) to work, but I may not be using it correctly.
by hopkins
Sat Aug 10, 2019 9:58 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Markdown to HTML in Livecode
Replies: 2
Views: 247

Re: Markdown to HTML in Livecode

Thanks. Will proceed with that.
by hopkins
Fri Aug 09, 2019 11:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Markdown to HTML in Livecode
Replies: 2
Views: 247

Markdown to HTML in Livecode

Hi,

Could not find anyting about this, but maybe I missed something. Is there a way to convert a markdown file into an html file in livecode ? Otherwise, I guess it would have to be done in javascript in a browser widget ?
by hopkins
Mon Jul 22, 2019 10:14 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Briwser widget: open link in application
Replies: 6
Views: 580

Re: Briwser widget: open link in application

Thanks. The solution i mentioned above works, though it is not very "elegant". I rather keep the markdown files simple to edit.
by hopkins
Sun Jul 21, 2019 4:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Briwser widget: open link in application
Replies: 6
Views: 580

Re: Briwser widget: open link in application

linkClicked does not work. A solution would be to store the initial URL of the widget in another property of the widget, then use the "browserNavigateBegin" message to replace the original url in the widget and launch the new url in an app. Something like this ? on browserNavigateBegin pURL if pURL ...
by hopkins
Sun Jul 21, 2019 2:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Briwser widget: open link in application
Replies: 6
Views: 580

Re: Briwser widget: open link in application

Not sure linkclicked works with a browser widget, but will try.
by hopkins
Sun Jul 21, 2019 1:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Briwser widget: open link in application
Replies: 6
Views: 580

Briwser widget: open link in application

I am using livecode to display markdown files that are retrieved from another application ( Logitech Media Server) in html format. I chose to display them using a browser widget. The markdown files contain links. When a link is clicked in the browser widget, is it possible to open the link in a loca...
by hopkins
Mon Jul 15, 2019 11:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: buffering browser widget
Replies: 7
Views: 826

Re: buffering browser widget

I will work with groups. Oddly, setting the visibility of a group in which there is a browser widget is not sufficient, the widget itself has to be hidden as well.
by hopkins
Mon Jul 15, 2019 8:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: buffering browser widget
Replies: 7
Views: 826

Re: buffering browser widget

I was afraid that would be the answer - it is simpler to switch cards then manage everything on one, but will give it a shot.
by hopkins
Mon Jul 15, 2019 7:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: buffering browser widget
Replies: 7
Views: 826

Re: buffering browser widget

thanks. I was aware of how lock / unlock works. Was just wondering if there is anything else to do to buffer a browser widget. My question may not have been very clear.
by hopkins
Mon Jul 15, 2019 5:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: buffering browser widget
Replies: 7
Views: 826

buffering browser widget

Hi, I use a browser widget to display an image grid (sending it html code). The html code with the image links is displayed quickly. Clicking on a image opens another card. When I return to the first card with the widget, there is a delay for the widget to be displayed completely. I would expect tha...
by hopkins
Tue Jan 15, 2019 9:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: jsonExport converts number to scientific notation
Replies: 6
Views: 567

Re: jsonExport converts number to scientific notation

The solution I found is to loop through the array and do:

put format("%u",array_value) into array_value

It is unfortunate I have to do this, but it works.
by hopkins
Tue Jan 15, 2019 7:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: jsonExport converts number to scientific notation
Replies: 6
Views: 567

Re: jsonExport converts number to scientific notation

Yes. Is this a bug or is there something I am missing?

Go to advanced search