Re: Best way to store videos

2018-08-27 Thread BNig via use-livecode
J. Landman Gay via use-livecode wrote
> On 8/27/18 4:12 PM, Niggemann, Bernd via use-livecode wrote:
>> When using Tiny Dictionary in the option menu either choose "All" and
>> search for "aws" or choose from the option menu "library.aws". If you
>> start your search with a quote it will return whatever starts with "aws".
>> Of course this only works in versions of LC that offer that library. For
>> the aws-library 9.0.
> 
> I should have updated my comment so you wouldn't worry. :) I did find 
> the listings later. I was using the latest LC 9.0.1 when I wrote that, 
> but the dictionary hadn't updated from RC-1. I closed it and re-opened 
> it manually from the Plugins menu and the newer content appeared.
> 
> I'm not sure why it used old data when I launched the latest LC release. 
> I like Tiny Dictionary a lot, so I set it up to open automatically on 
> launch using the plugin settings. That's when it didn't update. Manually 
> closing and re-opening it worked.
> 
> -- 
> Jacqueline Landman Gay 

That baffles me because Tiny Dictionary only "knows" the path to the
documentation folder of the currently running LC. Even when running multiple
versions of LC concurrently it will only ever use the path to the
documentation folder of that specific version regardless of whether it is
opened manually or automatically as a plug-in at launch.

If that should happen again, please tell me so.

Kind regards
Bernd



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Storing Images for use by Custom Controls

2018-07-25 Thread BNig via use-livecode
I am sorry to say that my solution does not work if you paste the group on
the same card. 

However Simons solution works when "of me" is added in the repeat loop 

resolve image is not granular enough to distinguish between groups. Once you
paste the group onto a different card or stack then it works.


It could also be simplified to the following code since the images for icons
of the custom control are known

on newGroup
   set the hilitedIcon of button "bOne" of me to the short id of image
"redQMark" of me
   set the icon of button "bOne" of me to the short id of image "greenRound"
of me
end newGroup

Kind regards



bnig--- via use-livecode wrote
> Hi Simon,
> 
> I think the easiest way would be to copy the images your custom control
> uses
> to the custom controls. 
> then add this code to the group (it is for one button "bOne" and two
> images
> "greenRound" and "redQMark"
> 
> on newGroup
>resolve image "redQMark" relative to button "bOne" of me
>if it is not empty then 
>   set the hilitedIcon of button "bOne" of me to the short id of it
>end if
>resolve image "greenRound" relative to button "bOne" of me
>if it is not empty then 
>   set the icon of button "bOne" of me to the short id of it
>end if
> end newGroup
> 
> "NewGroup" is a message that the custom control gets when you paste it.
> That way the custom control is self contained and when you paste it into a
> new stack it will assign the ids of the images to your buttons.
> 
> Kind regards
> Bernd
> 
> That way they are contained in your custom control and the custom control
> can be self contained, i.e. can be reused in a different stack.





--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Storing Images for use by Custom Controls

2018-07-25 Thread BNig via use-livecode
Simon,

try to add "of me" like below

 repeat with x=1 to the number of images of me 
  put the ID of image x of me into tID 
  put the short name of image x of me into tName 
  put tID into ImageA[tName] 
   end repeat 

Kind regards

Bernd


scott--- via use-livecode wrote
> Well I tried using custom props but did not get very far with them.  My
> solution is to add the image files to the group and hide them behind other
> controls.  I have added the attached handler that sets the button icons to
> the values of the images in the group.  The handler should be called when
> the original control is duplicated but.  
> 
> I used the array to ensure that the handler only finds images that are
> part of the group:
> 
> on newgroup
>-- set the icons for the buttons
>   
>--build an array of refs to images in the group
>repeat with x=1 to the number of images of me
>   put the ID of image x into tID
>   put the short name of image x into tName
>   put tID into ImageA[tName]
>end repeat
>
>--now set the icons
>set the icon of button "add" of me to ImageA["imgPlus"]
>set the icon of button "SortA" of me to ImageA["imgSort"]
>set the icon of button "Delete" of me to ImageA["imgBin"]
>
>set the icon of button "SortB" of me to ImageA["imgSort"]
>set the icon of button "Remove" of me to ImageA["imgLeftArrow"]
>set the icon of button "Use" of me to ImageA["imgLeftArrow"]   
> end newgroup
>> On 24 Jul 2018, at 23:36, scott--- via use-livecode 

> use-livecode@.runrev

>  wrote:
>> 
>> Hello Simon,
>> I see I probably misunderstood what you were trying to do. With a custom
>> control I might be tempted to store the images in a customProp if I
>> wanted multiple resolutions to travel with the group object. Then do
>> something like setting the imageData of the image.
>> —
>> Scott
> 
>>> On Jul 24, 2018, at 8:44 AM, Simon Knight via use-livecode 

> use-livecode@.runrev

>  wrote:
>>> 
>>> Is there an elegant method of storing images for use by a custom
>>> control?  I have tried adding the images to the custom control group but
>>> the buttons in copies of the first group refer back to the first group
>>> so there is no advantage when compared to storing the images on a card
>>> or in a folder.
>>> 
>>> best wishes
>>> 
>>> Simon K.





--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Storing Images for use by Custom Controls

2018-07-25 Thread BNig via use-livecode
Hi Simon,

I think the easiest way would be to copy the images your custom control uses
to the custom controls. 
then add this code to the group (it is for one button "bOne" and two images
"greenRound" and "redQMark"

on newGroup
   resolve image "redQMark" relative to button "bOne" of me
   if it is not empty then 
  set the hilitedIcon of button "bOne" to the short id of it
   end if
   resolve image "greenRound" relative to button "bOne" of me
   if it is not empty then 
  set the icon of button "bOne" to the short id of it
   end if
end newGroup

"NewGroup" is a message that the custom control gets when you paste it.
That way the custom control is self contained and when you paste it into a
new stack it will assign the ids of the images to your buttons.

Kind regards
Bernd

That way they are contained in your custom control and the custom control
can be self contained, i.e. can be reused in a different stack.


Simon Knight via use-livecode wrote
> Hi Scott,
> 
> Thank you for your replies.  I apologise for my question, I should have
> been clearer.  However, I have copied your response to my “hints and tips”
> document for reference in the future as it seems like a useful workflow to
> know.
> 
> To clarify my question; I have created a simple custom control that uses
> two list fields and some buttons.  I will probably want to use the control
> in the future so I am seeking a method of saving the control ready to be
> used in the future.  At the moment the png images, I use to "skin" the
> buttons, are stored on a card on a sub-stack named assets.  I do this
> because I am following some advice that Trevor Devore gave in a video some
> years ago and I know no better.  
> 
> The problem with this storage solution is that my custom control has
> components stored in different locations and they may well become
> separated sometime in the future.
> Initially, I searched the Livecode forum and found a thread where the
> prospect of better encapsulation of custom controls was discussed and Mark
> W. wrote that he was thinking  about it.  This was a few years ago when
> version 6 was current and I wondered if any features have been added to
> Livecode to enable fully encapsulated custom controls to be written.  I
> realise that one answer might be “write a widget” but I don’t really want
> to take time learning a new language and process in an attempt to recreate
> a control that I already have.
> 
> I had not thought of using a customProp to store images and in truth I did
> not know it was an option so I will do some research and see what I can
> learn.
> 
> Thanks again and best wishes
> 
> Simon





--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Datagrids and Nested Behaviors

2018-07-24 Thread BNig via use-livecode
Brian
That is a nice modification, makes it faster and is still only in one place.


>I also noticed that there are extra "stack" references in the code (stack
>_ResourceStack instead of just _ResourceStack 4/10 uses).

to my surprise both versions work.

Kind regards
Bernd


Brian Milby via use-livecode wrote
> Here is my slight modification to the suggestion:
> 
> local sResourceStack
> private function _ResourceStack
>local theStack, theCharNo
> 
>if sResourceStack is empty then
>   put the behavior of me into theStack
> 
>   repeat
>  if trueWord -1 of theStack is "revDataGridLibrary" or theStack is
> empty then
> exit repeat
>  else
> put the behavior of theStack into theStack
>  end if
>   end repeat
> 
>   if theStack is not empty then
>  put offset(" of stack", theStack) into theCharNo
>  delete char 1 to (theCharNo + 3) of theStack
>   end if
>   put theStack into sResourceStack
>end if
> 
>return sResourceStack
> end _ResourceStack
> 
> 
> I also noticed that there are extra "stack" references in the code (stack
> _ResourceStack instead of just _ResourceStack 4/10 uses).
> 
> On Mon, Jul 23, 2018 at 6:53 PM, Brian Milby 

> brian@

>  wrote:
> 
>> What OS are you using? It will be inside the IDE, but will get copied
>> into
>> your app as well. You will probably need admin rights to edit. I would do
>> it in an external editor too.
>>
>> It probably would be an enhancement request (therefore 9.1), but I would
>> be happy to submit a PR against a BZ report.
>> On Jul 23, 2018, 6:04 PM -0500, Bob Sneidar via use-livecode <
>> 

> use-livecode@.runrev

>>, wrote:
>>
>> I found and made a copy of the datagrid library stack on my desktop. I
>> still cannot save the modification you proposed to the script of the
>> datagrid button in this stack. It says it can't open stack script file.
>>
>> Well my workaround is functional, so I'm sticking with that. If the devs
>> want to take your patch and bundle it in with the next release that would
>> be great. I have no idea how to make that happen.
>>
>> Bob S
>>
>>
>> On Jul 23, 2018, at 15:46 , Bob Sneidar via use-livecode <
>> 

> use-livecode@.runrev

>> wrote:
>>
>> I tried this, I apparently don't have permission to save the file once
>> edited. It's probably in the Livecode APP bundle. I'll poke around and
>> test
>> this later.
>>
>> Bob S





--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: representing this character from a pdf

2018-02-08 Thread BNig via use-livecode
maybe he likes

put numToCodepoint(0x2794)

HEAVY WIDE-HEADED RIGHTWARDS ARROW' (U+2794)

Kind regards
Bernd



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: representing this character from a pdf

2018-02-08 Thread BNig via use-livecode
would this do?

put numToCodepoint(0x270D)

from 
http://www.alanwood.net/demos/wingdings.html

Kind regards
Bernd



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: "module format not supported"

2018-02-05 Thread BNig via use-livecode
Hi Ben,

I posted a stack to the forum, that forces recompilation of widgets that
were automatically compiled from 8 to 9 format. 

http://forums.livecode.com/viewtopic.php?f=104=30433=163580#p163580

Kind regards
Bernd



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: FormattedHeight of a field and its contents

2018-02-01 Thread BNig via use-livecode
Hi David,

have a look at
http://berndniggemann.on-rev.com/margins/marginsapp.livecode.zip

It does not explain why but shows what influences the formattedHeight of a
field when changing margins, border size, scrollbars, text height etc.

Kind regards
Bernd



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: regex deconstructor

2018-01-28 Thread BNig via use-livecode
There are nice tests for indentation on Git for Livecode

https://github.com/livecode/livecode-ide/tree/develop/tests/scripteditor/_indentation_tests

especially the if variants are mind boggling

Kind regards

Bernd



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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


[ANN] TinyDictionary updated to work also in LC 8.2.0 DP2 and LC 9 DP10

2017-10-24 Thread BNig via use-livecode
Due to changes how LC organizes dictionary data in LC 8.2 DP2 and LC 9 DP 10
tinyDictionary did not display LCB dictionary entries anymore.

TinyDictionary version 0.8.3 restores that functionality and is backwards
compatible.
Thanks James Hale for the code for the acqusition of the dictionary array.

It has been uploaded to "Sample Stacks" = livecodeshare.

http://livecodeshare.runrev.com/stack/825/TinyDictionary

Kind regards
Bernd



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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


[OT] Stable versions of Livecode

2017-07-21 Thread BNig via use-livecode
In recent month there has been muck ado about the word "stable" in stable
versions of Livecode.

I think there is a serious misunderstanding of the word "stable" here.

It is according to the Oxford Dictionary:

stable (noun)
A building set apart and adapted for keeping horses.
‘the horse was led to its stable’

Of course that can only mean that a stable version of Livecode is a metaphor
indicating that Livecode is the metaphorical horse, maybe even a racehorse,
at least a horse that deserves a nice and clean stable. 
As every schoolboy knows no stable is free of bugs but a new stable is as
close as you can get.

Some might deplore the use of a metaphor in denoting a version of Livecode
but I've seen a lot worse on this list.

Just to mention a few
"skinning of cats"
"reinventing of wheels"
"building of better mousetrap"

but don't forget in metaphors it is the _relations_ that are important, not
the _things_ that are related.

I hope this helps

and take it with a grain of salt

My best wishes to all the Livecode jokeys and stablemen.

Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/OT-Stable-versions-of-Livecode-tp4717337.html
Sent from the Revolution - User mailing list archive at Nabble.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

[ANN] TinyDictionary updated to display Synonyms

2017-07-18 Thread BNig via use-livecode
Brian Milby contributed to tinyDictinary the extraction of synonyms. He also
submitted a pull request to add synonyms to the built-in dictionary

https://github.com/livecode/livecode/pull/5669

Synonyms now are part of the built-in dictionary as of LC9 DP8.
TinyDictionary displays synomyms in LC version 8.1 and up.

TinyDict now is at version 0.8.2

http://livecodeshare.runrev.com/stack/825/TinyDictionary

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-TinyDictionary-updated-to-display-Synonyms-tp4717191.html
Sent from the Revolution - User mailing list archive at Nabble.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


[ANN] north widget

2017-07-12 Thread BNig via use-livecode
North is a widget that indicates north like a compass or direction indicator.

http://forums.livecode.com/viewtopic.php?f=93=29486

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-north-widget-tp4716915.html
Sent from the Revolution - User mailing list archive at Nabble.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: Feature Race: Pick Your Project

2017-07-05 Thread BNig via use-livecode

>> On Jul 5, 2017, at 12:44 , J. Landman Gay via use-livecode 

> use-livecode@.runrev

>  wrote:
> 
>> A subset of users employ datagrids, but everyone needs smooth scrolling
>> in a variety of situations. That's the primary reason I pledged --

That's exactly the reason why I pledged too. I have the feeling that this is
not appreciated enough.

Lets get smooth scrolling and DataGrid2 on top of it.

I just calculated how much money I spend on useless things the last 4 weeks
and boy, that is quite some Euros. They are convertible to Dollars nowadays
and then to British Pounds also...

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Re-Feature-Race-Pick-Your-Project-tp4716154p4716638.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ANN] a gauge widget

2017-06-09 Thread BNig via use-livecode
Thanks Tom,

I had just found out what the problem was,

Now it works as advertised.

will update the .lcb file in the forum to version 0.2.0

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-a-gauge-widget-tp4715635p4715695.html
Sent from the Revolution - User mailing list archive at Nabble.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


[ANN] a gauge widget

2017-06-09 Thread BNig via use-livecode
further experimenting with Livecode Builder I did a Gauge widget that I
posted in the Forum

http://forums.livecode.com/viewtopic.php?f=93=29348


Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-a-gauge-widget-tp4715635.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ANN] tinyDictionary 0_8_1_0

2017-05-04 Thread BNig via use-livecode
pink wrote
> 
> BNig wrote
>> TinyDictionary is a small footprint dictionary for Livecode from version
>> 8.1 and up.
>> 
>> New features are user added notes and import of notes. Some code
>> optimization and cleanup.
>> Should work on Mac, Windows and Linux.
>> See Help from Preferences Menu.
>> 
>> Probably best when used as plug-in. (put tinyDictionary stack into your
>> plugin folder and restart Livecode. Then select it from Development menu
>> -> Plugins)
>> 
>> http://livecodeshare.runrev.com/stack/825/TinyDictionary
>> 
>> Kind regards
>> Bernd
> Would user added notes persist across different versions of LiveCode, or
> would the need to added again each time a new version of LiveCode comes
> out?

As Mike wrote the notes are stored in an arrayEncoded array in Application
Support -> LCTinyDict -> tinyDictNotes.array
They identify a dictionary by a combination of Keyword Type and Library. 

TinyDict uses the current version of LC Dictionary it is running in. That
means regardless of version or license the dictionary is up to date. (all
those differences give you slightly different dictionaries) If that version
of your dictionary has an entry that matches an entry in tinyDictNotes.array
then the note will be shown. No need to rewrite the note. You can take your
tinyDictNotes.array file, zip it and import it into your tinyDict running on
a different computer or send it off to someone else. tinyDictNotes.array
will be merged into your existing notes by appending the imported notes to
the existing notes.

Notes came into being because they were mentioned a couple of times as a
useful feature of a community dictionary. They are primarily intended as a
means to keep personal notes, workarounds, reminders, etc. Not more not
less.

Kind regards
Bernd





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-0-8-1-0-tp4714470p4714501.html
Sent from the Revolution - User mailing list archive at Nabble.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


[ANN] tinyDictionary 0_8_1_0

2017-05-04 Thread BNig via use-livecode
TinyDictionary is a small footprint dictionary for Livecode from version 8.1
and up.

New features are user added notes and import of notes. Some code
optimization and cleanup.
Should work on Mac, Windows and Linux.
See Help from Preferences Menu.

Probably best when used as plug-in. (put tinyDictionary stack into your
plugin folder and restart Livecode. Then select it from Development menu ->
Plugins)

http://livecodeshare.runrev.com/stack/825/TinyDictionary

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-0-8-1-0-tp4714470.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ANN] tinyDictionary

2017-03-23 Thread BNig via use-livecode
Sorry Bob,

I fell foul of Nabble, it is unfortunately broken since the bouncing issue
was resolved.

Since I am on digest for the use-list I use Nabble to post and see current
activity. 

Too bad it is broken since the only other repository that lets you post I
know is gmane that is rebuilding and has not added Livecode yet.

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713287.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ANN] tinyDictionary

2017-03-23 Thread BNig via use-livecode
Bob Sneidar via use-livecode wrote
> Then please also make sure to submit this to Edinburgh.  I want this to be
> my official dictionary.

Thanks Bob,

I think the LiveCode people did a pretty good job reorganizing the
dictionary. The new dictionary, once getting used to it, offers the
different dictionaries in a structured way.

It takes just a lot of screen estate if you don't use a 28 inch monitor.

The scope of tinyDictionary is different: a bare bone dictionary for
developers who know what they are looking for.

So I will not submit this to Edinburgh.

I wrote tinyDictionary also because we had quite some suggestions for
community projects that did not materialize. I wanted to give it a try and
see how far I would get. There was helpful input from the community, not all
of it made it into tinyDict.

The Livecode Dictionary has other problems: more than 3000 files that need
some attention/correction/reformatting. Luckily not all of them but there
are enough. If you find some funny stuff in tinyDictionary please check
against the LiveCode dictionary whether it also looks funny there. Then you
have a good chance to look at an entry that needs care.

Devin Asay is doing a tremendous job at correcting the dictionary.
This could really be something where other native speakers of the community
could help. It is tedious, you have to learn the format and you have to get
familiar with GitHub. But even GitHub is doable :)


>> I want this to be my official dictionary.

That is very easy, just rename the stack to myTinyOfficialDictionary :)


I will upload new versions to Livecodeshare as needed. This should get you
there
http://livecodeshare.runrev.com/stack/825/


Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713282.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ANN] tinyDictionary

2017-03-22 Thread BNig via use-livecode
Skip Kimpel via use-livecode wrote
> On 03/22/2017 12:46 PM, BNig via use-livecode wrote:
> 
>> Hi Mark,
>>
>> tinyDictionary tries on preopenCard -> loadPreferences to find via
>>  put specialFolderPath("support") into tFolderSupport
>> an "application support" folder and there a "LcTinyDict" folder where it
>> tries to create a txt file "tinyPrefs.txt"
>>
>> This is in the card script.
>>
>> If it can not create the folder then the alert appears. I don't know
>> anything about Linux and where that folder might be. Or may be it is a
>> permission thing?
> 
> Ah.
> The good folks at LC haven't found it neccesary to allow more than a 
> handful of folderIdentifiers for linux. And in spite of what the 
> documentation says, the result is *not* set to "folder not found" when a 
> non-supported or nonexistent folderIdentifier is specified - it's just 
> empty, which is somewhat less useful.
> 
> I default saving preferences files to the directory where the saving 
> stack lives, and normally that's my user Plugins folder, and I use the 
> undocumented (http://quality.livecode.com/show_bug.cgi?id=16189) 
> revEnvironmentUserPluginsPath() function to get those.
> 
> -- 
>   Mark Wieder
>   

> ahsoftware@


Thanks Mark,
I will try to implement revEnvironmentUserPluginsPath() function for Linux
in the next version

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713274.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ANN] tinyDictionary

2017-03-22 Thread BNig via use-livecode

> On 03/22/2017 07:37 AM, BNig via use-livecode wrote:
>> I uploaded a compact version of the dictionaries for LC 8.1 and up to
>> Livecodeshare
> 
> Very nice. Thanks. Works well for me on linux.
> What means "unable to create preferences folder"?
> 
> -- 
>   Mark Wieder

Hi Mark,

tinyDictionary tries on preopenCard -> loadPreferences to find via 
 put specialFolderPath("support") into tFolderSupport
an "application support" folder and there a "LcTinyDict" folder where it
tries to create a txt file "tinyPrefs.txt"

This is in the card script.

If it can not create the folder then the alert appears. I don't know
anything about Linux and where that folder might be. Or may be it is a
permission thing?

TinyDict saves on "closeCard" to the preference file the current state to be
able to restore the state on next start. It does not save itself, hence the
prefs file.

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713269.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ANN] tinyDictionary

2017-03-22 Thread BNig via use-livecode
Hi Mike,


Mike Bonner via use-livecode wrote
> This is awesome!  Quick question (feature request) would it be difficult
> to
> add a dictionary selector?  So if I have 13 versions of lc installed, I
> could pick which dict to look at? (and make it work as a standalone at the
> same time?)

If you use tinyDictionary as a plugin then it gathers the current dictionary
of the LC version you use. But it only works for Livecode 8.1 and up because
it leverages the good work of the Livecode people in
"revIDEDocumentationLibrary". It pulls the whole array and dissects it. Of
course you can have more than one LC version open and access tinyDict via
the plugins menu in each of these. It would always be the current dictionary
of that version.

If you have a special use case for standalones please email me so I
understand better what you would like to do.

Kind regards
Bernd

 



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713262.html
Sent from the Revolution - User mailing list archive at Nabble.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


[ANN] tinyDictionary

2017-03-22 Thread BNig via use-livecode
I uploaded a compact version of the dictionaries for LC 8.1 and up to
Livecodeshare

http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7

this is also accessible via "Sample Stacks" from inside LC.

it is the result of Mike Kerners push to have a small footprint dictionary.

James Hale contributed to tinyDict, thanks James.

Comments bug reports either on the use-list or in the forum

http://forums.livecode.com/viewtopic.php?f=67=28731=152646#p152646

or mail me.

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html
Sent from the Revolution - User mailing list archive at Nabble.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: Browser Widget/HTML5/LC Integration

2017-01-29 Thread BNig via use-livecode
Sannyasin Brahmanathaswami wrote:

 > OK, one more SVG example (I believe that's what you were asking for)
 >
 > now you have three
 >
 > http://wiki.hindu.org/uploads/floor-plan.svg # not responsive, but
 > could be
 >
 > http://wiki.hindu.org/uploads/SivaSivaDiagram.svg
 ># not responsive, but could be (though that's not wanted in this
 > scenario
 ># imagine a "map world" you could explore…so it stays full size,
 > user zooms in and out and swipes
 >
 > http://www.himalayanacademy.com/assets/img/khm-logo-full-horizontal.svg

Do those render in LC's SVG widget?


 > So is SKIA in LC's future?

Skia replaced LC's older graphics subsystem many versions ago (5.x?). 
They did such a good job that most folks never noticed.  But where you 
see new capabilities like the SVG widget, those are among the many 
upsides of having switched to this popular graphics system.

-- 
  Richard Gaskin


Peter Thirkell posted a -lcb file that has to be compiled using the
Extension Builder that he uses to display simple color SVGs. No gradients
and no advanced features of SVG.
http://forums.livecode.com/viewtopic.php?f=93=27811=150208#p150208
He parses svg export from Affinity Designer.

That said I scraped two of the above mentioned SVGs, after exporting them
from Affinity Designer I was able to feed the logo to Peter's hacked SVG
Color widget and it displayed fully. Rescalable and everything.

The floor plan lost the annotational text and some fills (because of
gradients) but otherwise rendered ok.

I did not attempt to use the SivaSivaDiagramm because the source code was
full of things Peter's widget can not display.

I recommend anybody interested in widgets to look at Peter's .lcb file and
especially appreciate his parsing handlers.

That all said what the svg widget is lacking is a more advanced svg parser
beyond black and white and transparency. Mark Waddingham had started on
implementing an open source parser but apparently Infinite Livecode kept him
from finishing it yet.
https://github.com/livecode/livecode/pull/3089

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Browser-Widget-HTML5-LC-Integration-tp4712003p4712034.html
Sent from the Revolution - User mailing list archive at Nabble.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: Delete element from array

2017-01-26 Thread BNig via use-livecode

> @Bernd: is your dictionary plug in working in the latest 8+ versions of
> LC? 

That is Björnke who did the plug in.

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Delete-element-from-array-tp4711916p4711957.html
Sent from the Revolution - User mailing list archive at Nabble.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