Re: Non-Ascii Chars in Filenames

2014-01-10 Thread Richmond
It shouldn't be necessary to ask these questions; ASCII went out with 
the ark,

and in this respect Livecode is seriously backward.

Richmond.

___
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: Non-Ascii Chars in Filenames

2014-01-10 Thread Martin Baxter
On 10/01/14 02:28, Ender Nafi Elekcioglu wrote:
 The situation starts to be clarified a little bit.
 
 First, if *ağaç.txt* opens in Linux as Martin stated but not in OS X and iOS, 
 then the underlying OS has a big role.  
 
 It seems that in OS X and iOS, Livecode accepts only those chars with a 
 unicode hex point up to U+00FF;  
 That’s why *épøtç†.png* worked for John.
 Which, btw, I also tried and saw that works.
 
 But, like I said, I can’t control the editors’ input.  
 I’ve already told them strictly not to use anything except Ascii-128.
 Still they enter filenames like *sophora-japonica-”pendula”.jpeg*
 At first look, it seems that it’ll work because that *a with breve* has a 
 lesser code point than FF;
 but it’s a messed up name.
 Try to copy that char, you won’t be able to.
 There are two more invisible chars after *â*.
 I wonder how they {editor guys} managed to achieve this :))
 
 Nevertheless, they blame me and my app;   
 because it works on their desktop and on the website;
 but not on the iOS app :/
 
 How can we make it work even with chars greater than U+00FF?  
 Isn’t there any Japanese or Chinese or Russian Livecoders?
 I wonder what they do about these kinda issues…
 
 So, I’m still open to additional ideas :)
 
 
 Best,  
 
 ~ Ender 

Ender,

Did you try using the answer file command to get the filepath and open
the image directly from that by script?

What happened?

Martin


___
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: Visual Effect Zoom Open and Zoom Close

2014-01-10 Thread Randy Hengst
Hi Klaus,

Got it… thank you.

be well,
randy
-
On Jan 9, 2014, at 9:54 AM, Klaus major-k kl...@major-k.de wrote:

 Hi Randy,
 
 Am 09.01.2014 um 15:22 schrieb Randy Hengst iowahen...@mac.com:
 
 ...but where in your scripts is Zoom Open or closed? I couldn't find it. 
 Sounds worked.
 
 ...
 put visual effect  the selectedText of field Effect Name   the label 
 of button Speed into cmd
 ## more strings added to CMD
 ## ...
 ## CMD will later be DOne :-)
 ...
 
 be well,
 randy
 
 Best
 
 Klaus
 
 --
 Klaus Major
 http://www.major-k.de
 kl...@major-k.de
 
 
 ___
 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


multiple child nodes in xml

2014-01-10 Thread FORD JR., CURT
I’m stuck on getting the values in some multiple child nodes in xml… trying to 
base the code on the sample at 
http://lessons.runrev.com/s/lessons/m/4071/l/7011-how-to-read-in-data-from-an-xml-file
 .

I’m getting the list of prompts that I need, but I can’t get the list of 
answers: one way I’ve tried gets the first answer only for each question, three 
times; another try (commented out) gave blanks for the answers. Am I missing 
something basic in how to set up the inner repeat loop, or the syntax for 
getting the answers in revXMLNodeContents?

My xml file looks like this:

?xml version=1.0 encoding=UTF-8?
quiz
items
item
promptWhat is the capital of Russia?/prompt
answers
answerMoscow./answer
answerOmsk./answer
answerTomsk./answer
/answers
/item
item
promptHow's the weather?/prompt
answers
answerPretty cold./answer
answerNot bad./answer
answerToo hot./answer
/answers
/item
/items
/quiz


Here’s what the command is like now:

private command processQuizTree pTree

   local tItems
   put revXMLChildNames(pTree, quiz/items, return, item, true) into tItems
   answer tItems is  tItems
   --answer tItems[1] is   tItems[1]
   --answer line 1 of tItems is   line 1 of tItems

   local tListOfPrompts
   repeat for each line tItem in tItems

  put revXMLNodeContents(pTree, quiz/items/  tItem  /prompt) into 
tCurrentPrompt
  answer tCurrentPrompt is   tCurrentPrompt
  put tCurrentPrompt  return after tListOfPrompts

  --get the child names of the answers node
  put revXMLChildNames(pTree, quiz/items/item/answers, return, answer, 
true) into tAnswers
  answer tAnswers is  tAnswers

  local tListOfAnswers
  repeat for each line tAnswer in tAnswers
 --gets first answer only, 3 times??
 put revXMLNodeContents(pTree, quiz/items/  tItem  tAnswer  
/answers/answer) into tCurrentAnswer
 answer tCurrentAnswer is   tCurrentAnswer
 put tCurrentAnswer  return after tListOfAnswers

 --gets blank item? 3 times
 --put revXMLNodeContents(pTree, quiz/items/  tItem  tAnswer  
/answers) into tCurrentAnswer
 --answer tCurrentAnswer is   tCurrentAnswer
 --put tCurrentAnswer  return after tListOfAnswers
  end repeat

   end repeat

   delete the last char of tListOfItems --trailing return

   answer tListOfPrompts is  tListOfPrompts
   answer tListOfAnswers is  tListOfAnswers

end processQuizTree

-thanks for any help -

Curt
___
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: Non-Ascii Chars in Filenames

2014-01-10 Thread Richard Gaskin

Richmond wrote:


It shouldn't be necessary to ask these questions; ASCII went out with
the ark,
and in this respect Livecode is seriously backward.


Yes, one might be tempted to think that the folks at RunRev took our 
three-quarters-of-a-million-dollars and simply went to the beach in the 
south of France living it up on good Champagne with nary a thought about 
work.


But it seems what's actually happening is far less glamorous - for a 
good understand of the scope of their Unicode challenge and the progress 
they've been making, see this article from their newsletter:


Slaying the Unicode Monster
http://newsletters.livecode.com/august/issue155/newsletter1.php


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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] lcStackbrowser V2 Released

2014-01-10 Thread Peter Haworth
Hi Peter,
Right now, all my products for which I charge a fee have their scripts
password protected so will not function in the Community version.  I have
to admit that I have not so far been able to come up with a way to make
them available in an open source form that I'm comfortable with.

On the Linux issue, I do not have access to a Linux box so have not been
able to test but I believe my plugins should work under Linux as I have
tried to deal with the obvious things like where the standard home
directories are for each platform.

The one standalone I have, SQLiteAdmin, is not currently available for
Linux but I'd be happy to build a Linux version if anyone is interested.

HTH

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html


On Thu, Jan 9, 2014 at 10:39 PM, Peter Alcibiades 
palcibiades-fi...@yahoo.co.uk wrote:

 Peter, could you post which of your packages work

 (i) with the community version
 (ii) with linux?

 Thanks

 Peter



 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/ANN-lcStackbrowser-V2-Released-tp4674585p4674593.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

___
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: Non-Ascii Chars in Filenames

2014-01-10 Thread Ender Nafi Elekcioglu
Martin,  

I’ve tried it, for test purposes of course because it’s no use in iOS; though 
still no luck.  

_answer file “select file…”  
_put it into tFilename
_set the filename of image 1 to tFilename
_put tFilename  cr  the filename of image 1 into field 1

Results are same, Ascii-255 works fine that is up to U+00FF;  
beyond that it’s pure unicode - no ascii support.

The image looks empty in Livecode   
and the unicode chars of the filename appears as ?.
/Users/endernafi/Desktop/sophorica-japon?c??.png

There isn’t any workaround, I guess :/  
so, we’ll wait Livecode 7 and in the meantime find a way to dodge customers’ 
complaints :)


Best,  

~ Ender Nafi 
___
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: Non-Ascii Chars in Filenames

2014-01-10 Thread J. Landman Gay

On 1/10/14 12:00 PM, Ender Nafi Elekcioglu wrote:


There isn’t any workaround, I guess :/ so, we’ll wait Livecode 7 and
in the meantime find a way to dodge customers’ complaints :)


I tried several things yesterday and couldn't make it work either. Would 
it be possible for you to run a script on the server and change the file 
names there?


--
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: Non-editable Android multiline control

2014-01-10 Thread J. Landman Gay

On 1/6/14 7:05 PM, J. Landman Gay wrote:

I want an Android multiline input control that scrolls but is not
editable, and which supports copying from the text. I have this when I
create the control:

   mobileControlSet displayInput, editable, false

but it is always editable.


In case anyone is following this, I did some searching and found out 
that the editable property has been deprecated on Android. It will still 
work with SDK 11 (I think that's Froyo) and earlier, but fails on any OS 
newer than that. The SDK provides no clear alternative. Stack Overflow 
has many questions about how to create a non-editable text field that 
still allows copying, and there are apparently some kludgy workarounds 
if you are doing it in Java, but there's nothing I could see that will 
help us in LiveCode.


--
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: Non-Ascii Chars in Filenames

2014-01-10 Thread Ender Nafi Elekcioglu
Hello Jacque,  

Thanks for your effort.  
I suggested it to my customer, they didn’t accept it.
They are a bit *dummkopf*, sorry for that but they’re what they are :)

Though, I have a dedicated folder for the mobile app in the ftp server.  
Now, a colleague of mine {web guy} is trying to create a php script to put 
there.
I’ll pull the filenames through that php script which will convert the 
filenames to ascii.
It’s hard though, as he stated, because the database is too big and he’s afraid 
of muddling it up :)

This seems the only way, right?  

~ Ender Nafi 
___
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: Non-Ascii Chars in Filenames

2014-01-10 Thread Richmond

On 10/01/14 17:29, Richard Gaskin wrote:

Richmond wrote:


It shouldn't be necessary to ask these questions; ASCII went out with
the ark,
and in this respect Livecode is seriously backward.


Yes, one might be tempted to think that the folks at RunRev took our 
three-quarters-of-a-million-dollars and simply went to the beach in 
the south of France living it up on good Champagne with nary a thought 
about work.


But it seems what's actually happening is far less glamorous - for a 
good understand of the scope of their Unicode challenge and the 
progress they've been making, see this article from their newsletter:


Slaying the Unicode Monster
http://newsletters.livecode.com/august/issue155/newsletter1.php


Ha, Ha, ha,: charming imagery: and, quite frankly, I think the RunRev 
folk, for their work, probably deserve a good 2 weeks at the seaside.


However, I am not referring to RECENTLY, I am referring to the fact that 
Mac OS 9 and Windows XP were fully Unicode compliant

donkeys' years ago.

Richmond.




--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: First MetaCard Demo running in Android

2014-01-10 Thread Mark Schonewille

Hi Alejandro,

I can't install the APK on my tablet, because I get a warning that it 
will replace another application, but I don't know which one. Probably, 
you didn't change the standalone settings and it would replace one of my 
own apps that I'm currently testing.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com


Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/

On 1/9/2014 04:14, Alejandro Tejada wrote:

Hi All,

Some time ago, I made this APK for Android and I want to ask you
to install and run on your Android tablet and share your results:

https://dl.dropboxusercontent.com/u/3834621/Demo.apk

This was the first MetaCard's demo.

You can download the stack in LiveCode format from:
https://dl.dropboxusercontent.com/u/3834621/demoMC27.livecode

If your OS or LiveCode version have problems playing sounds
download this version:
https://dl.dropboxusercontent.com/u/3834621/demoMC27_no_sounds.livecode

This is an old stack, so play it isolated...


Thanks in advance!

Al





___
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


lcVCS Beta

2014-01-10 Thread Monte Goulding
Hi LiveCoders

lcVCS 1.0 is now in beta. If you're interested in version control for LiveCode 
then head on over to the new Version Control forum under LiveCode Open Source 
on the forums: http://forums.runrev.com/viewforum.php?f=77

Cheers

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!





___
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] lcStackbrowser V2 Released

2014-01-10 Thread Mark Wieder
Pete-

Friday, January 10, 2014, 9:09:23 AM, you wrote:

 On the Linux issue, I do not have access to a Linux box so have not been
 able to test but I believe my plugins should work under Linux as I have
 tried to deal with the obvious things like where the standard home
 directories are for each platform.

...and it mostly does.
You *have to* run the installer... copying the stack to the plugins
folder doesn't work. Then after the installer has run, you copy the
stack from the zip file in place of the zero-length file that the
installer put into your plugins folder.
Then for some reason the bvgDocu installer is launched (you can't skip
this step), which doesn't work on linux, but it doesn't do any harm,
and does create a sqlite database which you can ignore.

Other than that, lcStackbrowser seems to do everything the Project
Browser *should* do.

-- 
-Mark Wieder
 ahsoftw...@gmail.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


Am I missing something (numberFormat again)

2014-01-10 Thread Geoff Canyon
Is there some way to change the default numberFormat? It consumed about
half my day today. I need precision for what I'm doing, and the six decimal
place default won't cut it. I was working on JSON import/export, and the
fact that the debugger also defaults to six decimal places makes it really
tedious to figure out where exactly you're losing precision. In the end, a
fit of frustration led to me putting

set the numberFormat to 0.##

at the start of about twenty handlers. Some combination of that fixed the
problem -- I still don't know where it was exactly. In any case I'm now
happily importing and exporting, on to rendering:

{

 Titan: {

  z8: .,

  dx-6: 000,

  dz-6: 000,

  name: Titan,

  radius: 2576000,

  p: 0,

  x8: 14267.2540,

  r: 0,

  mass: 13452000,

  dp: 0,

  dr: 0,

  w: 0,

  G8: 0.0008977649568,

  dy-6: 000,

  x: 142672540,

  y8: 12.2187,

  y: 122187,

  z: ,

  dw: 0,

  dx: 0.00,

  dy: 0.00,

  dz: 0.00},

 Haumea: {

  z8: .,

  dx-6: 000,

  dz-6: 000,

  name: Haumea,

  radius: 575000,

  p: 0,

  x8: 64840.,

  r: 0,

  mass: 401000,

  dp: 0,

  dr: 0,

  w: 0,

  G8: 0.267620984,

  dy-6: 000,

  x: 64840,

  y8: .,

  y: ,

  z: ,

  dw: 0,

  dx: 0.00,

  dy: 0.00,

  dz: 0.00},

etc.
___
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: Am I missing something (numberFormat again)

2014-01-10 Thread dunbarx
Hi..


Its local, all right, always has been. I think it would be a great suggestion 
in the forum to make it global, or at least as an option.


Craig


-Original Message-
From: Geoff Canyon gcan...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Fri, Jan 10, 2014 10:52 pm
Subject: Am I missing something (numberFormat again)


Is there some way to change the default numberFormat? It consumed about
half my day today. I need precision for what I'm doing, and the six decimal
place default won't cut it. I was working on JSON import/export, and the
fact that the debugger also defaults to six decimal places makes it really
tedious to figure out where exactly you're losing precision. In the end, a
fit of frustration led to me putting

set the numberFormat to 0.##

at the start of about twenty handlers. Some combination of that fixed the
problem -- I still don't know where it was exactly. In any case I'm now
happily importing and exporting, on to rendering:

{

 Titan: {

  z8: .,

  dx-6: 000,

  dz-6: 000,

  name: Titan,

  radius: 2576000,

  p: 0,

  x8: 14267.2540,

  r: 0,

  mass: 13452000,

  dp: 0,

  dr: 0,

  w: 0,

  G8: 0.0008977649568,

  dy-6: 000,

  x: 142672540,

  y8: 12.2187,

  y: 122187,

  z: ,

  dw: 0,

  dx: 0.00,

  dy: 0.00,

  dz: 0.00},

 Haumea: {

  z8: .,

  dx-6: 000,

  dz-6: 000,

  name: Haumea,

  radius: 575000,

  p: 0,

  x8: 64840.,

  r: 0,

  mass: 401000,

  dp: 0,

  dr: 0,

  w: 0,

  G8: 0.267620984,

  dy-6: 000,

  x: 64840,

  y8: .,

  y: ,

  z: ,

  dw: 0,

  dx: 0.00,

  dy: 0.00,

  dz: 0.00},

etc.
___
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