Dictionary rewrite - thoughts, please

This forum is a working group for community contributors to the LiveCode IDE included in the main LiveCode distribution.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Re: Dictionary rewrite - thoughts, please

Postby Brahmanathaswami » Thu Feb 23, 2017 4:17 am

Ok I already am using the new dictionary splitter now in the middle of dev... added to my plug ins... anyone like the idea of a custom minimize button on the UI?

idea is if you are not in the dictionary, to save screen space.. click the button and it drops to 40,40, 120,120... off to the topleft of the main screen. I use this kind of thing in my own utilities... we probably should leave it a palette.

on mouseup
if the mode of this stack is 4 then
set the width of this stack to 700
set the height of this stack to 500
toplevel this stack
set the icon of me to 1059
set the loc of this stack to the screenloc
else
set the topleft of this stack to 20,40
set the width of this stack to 206
set the height of this stack to 235
palette this stack
set the icon of me to 1058

end if

end mouseup

If you need a suitable icon I have tons... but they are common
Brahmanathaswami
 
Posts: 46
Joined: Mon Jun 24, 2013 4:10 am
Location: Hawaii

Re: Dictionary rewrite - thoughts, please

Postby Simon Knight » Thu Feb 23, 2017 2:27 pm

Excellent work! In my opinion Bernd's Dictionary Splitter Stack is so much clearer than the standard Dictionary supplied with LC8.

I think it would be useful if it were possible to add example use cases either entered by the end user or from a community database, these would have to be carried over to new dictionaries as and when updates are issued.

Skids
best wishes
Skids
Simon Knight
 
Posts: 320
Joined: Wed Nov 04, 2009 11:41 am
Location: Gunthorpe, North Lincs, UK

Re: Dictionary rewrite - thoughts, please

Postby SparkOut » Thu Feb 23, 2017 4:01 pm

Bernd has made a brilliant version which behaves nicely compared to lc 9 dictionary on Windows ( slow, disappears, won't give back focus to script window after looking up, etc).
A great job and I will be using it in future instead of the built-in.
SparkOut
 
Posts: 1601
Joined: Sun Sep 23, 2007 4:58 pm

Re: Dictionary rewrite - thoughts, please

Postby capellan » Thu Feb 23, 2017 4:41 pm

Hi Bernd,

bn wrote:What you see in Windows a small square is an "invisible" (at least on a Mac) sign I started to use to mark sections. When I rewrite the parsing I will probably get rid of it.


Jacque uses a numtochar(127) for a similar purpose. Could this works in this case?

bn wrote:I don't understand what exactly you are trying to do. Do you want to test the script examples? They are not all functional. It is planned that all examples will compile and work. Devin Asay is doing a great job reworking the dictionary and also the examples. Please explain what you have in mind.


A Dictionary that runs it's demo scripts using small datasets created on the fly (like lists of numbers and random characters) or stored in custom properties of the Dictionary stack (like small images, small sound files, etc...)
capellan
 
Posts: 330
Joined: Wed Aug 15, 2007 11:09 pm

Re: Dictionary rewrite - thoughts, please

Postby jameshale » Fri Feb 24, 2017 3:54 am

Looking good. Well done.

Notice that the "Value" and "Parameters" fields of the dictionary entries are not yet included.
Given these are presented in the current dictionary as tables I can understand why.
jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 174
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: Dictionary rewrite - thoughts, please

Postby bn » Fri Feb 24, 2017 10:27 am

Hi all,

thanks for the kind words.

I am currently out of town for the weekend and be back home tuesday.

Please keep making suggestions or comments. I will try to reply in detail next week.

Kind regards
Bernd
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 3166
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Dictionary rewrite - thoughts, please

Postby capellan » Fri Feb 24, 2017 6:28 pm

Now that I think more about it...

Instead of including this functionality inside the Dictionary
it's better to add a link to another stack that runs these demo scripts
using small datasets created on the fly (like lists of numbers and
random characters) or data stored in custom properties of the
Demo stack (like small images, small sound files, etc...)

Or...

We could create Interactive Demonstrations using the new feature
introduced with Livecode 8:
https://livecode.com/livecode-interactive-tutorials/
Last edited by capellan on Sat Feb 25, 2017 3:40 pm, edited 1 time in total.
capellan
 
Posts: 330
Joined: Wed Aug 15, 2007 11:09 pm

Re: Dictionary rewrite - thoughts, please

Postby Hans-Helmut » Fri Feb 24, 2017 7:29 pm

Thank you for the dictionary. It is a really nice piece of work ).

I am working on Windows. So far, I can only say that it works fine.

Here are small suggestions:

1. Icons (arrows, watch, ...) do not render nicely. There are better ones I guess.

2. For history, I would like to see another additional possibility for a limited number of tabs created so that it is possible to show more than one at the same time.

3. If would just be great if such tabs could be torn off the windows and be in their own window. moving them back would allow to insert them again (through drag and drop). // This is similar to tabs in Browsers which can stay separately within their own windows and even allow their own tabs.

4. Search: Most people know Googe search. I suggest that putting words into hyphens " ... "would allow searching exactly that phrase. For example, instead of finding "Postscript" searching for "post" the exact word match would be found. And here it would just be the command "post".

5. Since I believe many users could profit from the way such application has been built, it would be great if somehow this could be explained and documented. The script documentation is already quite nice. But where to start going through scripts? How is the application built - asking for its architecture?
Hans-Helmut
 
Posts: 57
Joined: Sat Jan 14, 2017 6:44 pm

Re: Dictionary rewrite - thoughts, please

Postby bn » Wed Mar 01, 2017 11:23 am

Hi all,

thanks for all the encouraging words.

here is a new version of the dictionary,

newVersion.png
newVersion.png (6.48 KiB) Viewed 530 times


DictionarySplitter_0_7_6_0.livecode.zip
(51.08 KiB) Downloaded 30 times



Changes: new link parser, now more robust, link color slightly blueish

Removed "invisible" character I use as section marker. Should not appear in display on Windows anymore.

Search behavior as previously: match of search string anywhere in string.
now additionally:
Starting search with a quote will find search string from beginning of string
Closing search with quote in addition to start quote will only show exact match.

Icons now all widgets. Should render better.

in LC 9 DP5 alternating colors of table will not get out of sync for long (more than about 1800 lines) thanks to fix of bug 14238

I hope that for LIvecode Script the dictionary is nearing completion.

I will try to add Livecode Builder next.

After the addition of Livecode Builder to the dictionary tweaks to interface and preferences and help.

Kind regards
Bernd
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 3166
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Dictionary rewrite - thoughts, please

Postby [-hh] » Wed Mar 01, 2017 4:51 pm

What an exciting stack!
Thanks to Bernd, and thanks to all who are working on the entries (especially Devin).

Upper part: Arial bold, lower part: Arial black, dark theme
(click to see actual size)
Attachments
dict_0760.png
shiftLock happens
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Livecode Membership
 
Posts: 1377
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Dictionary rewrite - thoughts, please

Postby Brahmanathaswami » Wed Mar 01, 2017 6:56 pm

Bernd, really grateful for this contribution! Do you have paypal?
Brahmanathaswami
 
Posts: 46
Joined: Mon Jun 24, 2013 4:10 am
Location: Hawaii

Re: Dictionary rewrite - thoughts, please

Postby bn » Wed Mar 01, 2017 10:10 pm

@ Brahma,
Do you have paypal?

thank you for asking. But this is a fun project and no need to support it via paypal.

Your feedback is much appreciated and remuneration enough.

Kind regards
Bernd
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 3166
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Dictionary rewrite - thoughts, please

Postby Mikey » Wed Mar 01, 2017 10:20 pm

This brings up another topic that I've been thinking about, but we should really launch it on another thread - having a microcrowdfunding platform for stuff we want done but aren't willing to wait for the mothership to complete. Currently, fees eat up to 10% of crowdfunding projects. We can do better than that, and we can get more people to get into working on the platform, with a little extra coin, perhaps.
Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 504
Joined: Fri Jun 27, 2008 9:00 pm

Re: Dictionary rewrite - thoughts, please

Postby Brahmanathaswami » Thu Mar 02, 2017 2:06 am

yep... I'd like to raise $7,500 for the browser widget upgrade (that was a quote from HQ) We also need a model that will not necessarily have a time limit.
Brahmanathaswami
 
Posts: 46
Joined: Mon Jun 24, 2013 4:10 am
Location: Hawaii

Re: Dictionary rewrite - thoughts, please

Postby Mikey » Thu Mar 02, 2017 2:12 am

Ok, moving this because it needs its own thread: viewtopic.php?f=5&t=28928
Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 504
Joined: Fri Jun 27, 2008 9:00 pm

PreviousNext

Return to IDE Contributors

Who is online

Users browsing this forum: No registered users and 1 guest