Re: Language learning stacks

2010-07-12 Thread Curt Ford
I have a project (commercial, except for my own students) that focuses  
on vocabulary and provides a number of different activities  
(flashcards, multiple choice, scrambled words, dictation, and others).  
There's also support for images, multiple sounds per item, short video  
clips, examples  notes, and integrated google search.


It's been used with a number of languages including Russian, Japanese,  
and Irish (though languages with right-to-left writing systems haven't  
been tested much). My web site has a pretty extensive set of word  
lists for Russian and a sample for Irish phrases, and there's a  
built-in list creator for making your own lists.


You can find more information  a demo version at

http://www.sonasoftware.com/vocab/

--feel free to try it out  let me know what you think!

Curt


Dr. Curtis Ford
Sona Software LLC


Curt Ford
Sona Software LLC

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


how to tell whether external file is unicode formatted or not

2009-12-20 Thread Curt Ford
My app reads in external files that are stored as plain text, but the encoding 
can vary. Is there a way to tell whether the encoding is Unicode or not, so I 
can tell how to process the text (without asking the user, who may not know)?

thanks,

Curt


Curt Ford
Sona Software LLC
www.sonasoftware.com



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


[ANN] Sona Vocabulary Assistant 1.0

2009-07-22 Thread Curt Ford
I'm pleased to announce the release of Sona Vocabulary Assistant, an  
internet-aware, media-friendly product for language students. There  
are lots of vocabulary apps out there but none with the features I  
wanted, so I made one myself.  : )


Many thanks to Richard Gaskin, Ken Ray, and everyone who contributes  
to this list.. and of course everyone at  runrev.com for making this  
terrific tool.


http://www.sonasoftware.com/vocab

best

Curt

Dr. Curtis Ford
Founder, Sona Software
Senior Instructor of Russian, University of South Carolina




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


error with revIDEHandleMouseUp ?

2009-06-10 Thread Curt Ford
A substack which has so far been behaving itself is acting strangely..  
when I open the substack from its mainstack (via a pulldown menu), the  
IDE seems to freeze; after a minute or so I get an error:


'The handler: revIDEHandleMouseUp has reached the recursion limit of:  
40. Execution will be terminated to prevent hang.'


I can click 'OK' out of that, and if I click the pointer tool for edit  
mode immediately, I can work a little with the stack; as soon as I  
choose the browse tool to run it, it gets stuck again  shows the same  
error.


I can open the substack from the application browser but it freezes up  
immediately again when I choose the browse tool.


I didn't see anything about revIDEHandleMouseUp in the Quality Control  
Centre. Any suggestions how to start troubleshooting?


Running 3.5; upgraded to Mac OS X 10.5.7 just last night.. hmm..

thanks!

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


problems with Cyrillic input on Windows standalone: SOLVED

2009-01-28 Thread Curt Ford

Homework graded, I finally get back to this issue...

I flailed around making builds with different combinations of textFont  
settings, etc., tried 2.9 with the same results, and was about to post  
answers to Devin's questions, when I remembered my wife's iMac still  
has the old copy of 2.8.1.


Took the file over, made a quick build and there it is - the Cyrillic  
works great everywhere, including Windows standalones.


That'll teach me not to test EVERYTHING on both platforms when a new  
version comes out. Should I try to work out a simple recipe  post  
this as a 2.9/3.0 bug?


Of course now I can't use the unicodeTitle that I'd been so glad to  
see introduced in 2.9.. and should probably check on other possible  
issues like that


Thanks, everyone who contributed thoughts!

Curt




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


re: problems with Cyrillic input on Windows standalone

2009-01-27 Thread Curt Ford

Hi Devin  others,

It sounds like your suggestion is a good one for when the user should  
definitely type in Russian, or another language the project might plan  
for. In an ideal world (!), I'd like my project to work with any  
language the user's computer supports, and it's OK if they need to  
switch the input method themselves.


I've been experimenting with another sample stack; the results seem to  
be that for success, the textFont of the stack needs to be empty, and  
the textFont of the field needs to be Arial.


In my main project the plot thickens - there are two (of nine) cards  
where users might enter text. One card has fields where they enter  
info to create a word list; the other has a dictation exercise. Last  
week neither was accepting Cyrillic in the Windows standalone.


This morning I set the textFont of the stack to empty, which helped  
some: the word list screen started accepting Cyrillic again, the  
dictation exercise still doesn't.


A further wrinkle: if I open the Windows standalone and go directly  
from the main menu (first) card to the word list card, Cyrillic works;  
but if I go to any other card, then back to the main menu, and then to  
the word list card, the word list shows the same problems with  
Cyrillic as the dictation card. I'm looking for something in card  
scripts of the other cards that could cause this but haven't found  
anything likely. Each card does have a preOpenCard handler that calls  
this stack script:


on ChangeFontsForWindows
if the platform = Win32 then
 repeat with i = the num of fields of this card
  set the textFont of fld i to Arial
 end repeat
end if
end ChangeFontsForWindows

..but since that's in the word list card too, I don't think it's the  
culprit.


I'd hoped to figure this out without going to a consultant but the  
time I have for this issue is running out.. any ideas what else I  
could look at?


Thanks!!

Curt



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


problems with Cyrillic input on Windows standalone

2009-01-24 Thread Curt Ford
I'm using Rev 3.0 on a Mac for a project includes a field that users  
should be able to type into in Russian. Until recently this worked  
fine in Windows standalones but in recent builds, typing with the  
Russian keyboard selected gives gibberish (numbers  symbols like :B; 
5BO) instead of Russian in the Windows standalone only. The textFont  
of the field is Arial.


To isolate the problem I made a separate stack with just a card  a  
field with textFont set to Arial, textSize 18. This worked fine for  
Russian in a Windows standalone.


I tried copying this working field into my project without changing  
anything about the field; its textFont was still Arial. When I tried  
this is a Windows standalone, typing in Russian gave gibberish again.


I can't find anything in the card script that affects the fields of  
this card. In the stack script I do have


 if the platform = Win32 then
set the textfont of this stack to Arial
set the textsize of this stack to 14
--but don't make the pulldowns too big on Windows!
set the textsize of group Menubar to 12
  else if the platform = MacOS then
set the textfont of this stack to Lucida Grande
set the textSize of this stack to 12
  end if

But pasting this into the stack script of the separate stack didn't  
cause a problem in the Windows standalone.


Any ideas what's going on here, or what to look at?

-Curt




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


re: problems with Cyrillic input on Windows standalone

2009-01-24 Thread Curt Ford
Благодаря, Richard, for the quick response - I'm not sure what  
I would do with the fontLanguage - ? I've looked at useUnicode as well  
but thought that was only for working with NumToChar and CharToNum  
functions.


I'd hoped to avoid changing the code since it had been working well  
before (and still is in the Mac IDE and Mac standalone); in fact,  
throughout the project I've avoided mucking around with Unicode as  
much as possible, trying to stick to HTMLText properties for writing  
out text  reading it in from external files.


FWIW I found the last working Windows standalone (version 99h3) and  
the first Windows standalone where the problem appears (99h5), but  
couldn't find a difference in the code. I've just  tried making a new  
standalone from 99h3 using both Rev 3.0 and 2.9 - both show the  
problem. My original version 99h3 dates from March 8 2008 - don't  
remember now which version of Rev I was using then..??


-Curt








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


re: problems with Cyrillic input on Windows standalone

2009-01-24 Thread Curt Ford

Извинете Ричмънд!

My app needs to allow users to type in information, then save it to a  
text file (or custom property of a separate stack). In another part of  
the app info from these files is read in, displayed  manipulated in  
various ways - so it's all got to be dynamic. Using HTMLText has  
worked well for Russian and several other languages, and info can be  
written out and read in on either platform; I'd gotten the tip from  
some of Devin Asay's materials, like at


http://www.runrev.com/newsletter/december/issue62/newsletter2.php

It's just this strange input problem on Windows standalones that's  
come up - none of the fields, on several cards, take Cyrillic anymore.


Curt




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


sending Unicode strings that include punctuation to search engines with revGoURL

2007-05-18 Thread Curt Ford
My app allows users to send a word to a search engine for more  
examples of usage. With help from the list I've gotten it to work  
with languages using the Latin alphabet, Russian, even Hindi..


It does fail, though, when I send a search string in Russian that  
includes any punctuation or space. For example, the search string for  
ой! (a two-letter word followed by an exclamation mark) shows up in  
the engines as http://www.google.com/search?q=%04%1E%049! .


Does anyone have suggestions on how to tweak this so terms like  
'как-то' or 'потому что' can be sent to the search  
engines?


Existing code:

When the user displays a new term, the word to search for is set up  
like this:


on changeWord
global gWord, gWordToSearch

  --use an invisible field so we can check its effectiveTextFont to  
see if it's Unicode

 set the HTMLText of fld invisibleWordToSearch to gWord

  set the useUnicode to true

  --if the field contains Unicode text..
  if the effective textFont of word 1 of field  
invisibleWordToSearch contains comma then

--next line works for Russian
put urlEncode(unidecode(fld invisibleWordToSearch, utf8)) into  
gWordToSearch

  else
--next line works for Roman alphabet
put  fld invisibleWordToSearch into gWordToSearch
  end if

end changeWord

The 'search' button has this script:

on mouseUp
  global gWordToSearch

  revGoURL (the cSearchEngine of this stack  gWordToSearch)
end mouseUp


thanks

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


re: dynamically adding links with textStyle..

2007-04-04 Thread Curt Ford
Thanks, Devin, I had been making this much harder than necessary,  
worrying about whether I'd need to manipulate HTML or Unicode  
directly if the selectedText was in Russian, but this works fine now  
for setting a link, regardless of language:


on mouseUp
  --save the selection before the 'ask..' makes it go away
  put the selectedChunk into tSelection
  --tSelection will now contain something like char 1 to 4 of fld 1
  ask Please enter a link:
  put it into tLink
  select tSelection
  set the linkText of the selectedText to tLink
  set the textStyle of the selectedText to link
  put the HTMLText of fld source into fld resultHTML
end mouseUp

To let the user edit an existing link, this works well too:
on mouseUp
  --save the selection and its linkText before the 'ask..' makes it  
go away

  put the selectedChunk into tSelection
  put the linkText of the selectedChunk into tOldLink
  ask Please edit the link: with tOldLink
  put it into tNewLink
  --reselect what was selected before
  select tSelection
  set the linkText of the selectedText to tNewLink
  set the textStyle of the selectedText to link
  put the HTMLText of fld source into fld resultHTML
end mouseUp

..where the last lines are just a check to see what I end up with.  
Thanks!


-Curt


Dr. Curtis Ford
Instructor of Russian and Linguistics
Dept of Languages, Literatures and Cultures
University of South Carolina


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


dynamically adding links with textStyle, linkText, and an ask dialog

2007-04-03 Thread Curt Ford
In my project I want to let users enter text into a field, then  
highlight some text to add a link; the field contents are then saved  
to a text file to be read in later  displayed with an active link.


This works fine, attached to a button for adding a link:

on mouseUp
  set the textStyle of the selectedText to link
  set the linkText of the selectedText to http://www.google.com;
  put the HTMLText of fld source into fld resultHTML  --a check  
to see how it looks

end mouseUp

But when I try to let the user enter a link with:

on mouseUp
  ask Please enter a link:
  put it into tLink
  set the textStyle of the selectedText to link
  set the linkText of the selectedText to tLink
  put the HTMLText of fld source into fld resultHTML
end mouseUp

..the link ends up following the text that was selected; so if in  
one two three the two was highlighted, the result is:


pfont face=Genevaone twoa href=www.google.com/a three/ 
font/p


Is there a way I can keep the ask dialog box from interfering with  
the selection?


Curt





Dr. Curtis Ford
Instructor of Russian and Linguistics
Dept of Languages, Literatures and Cultures
University of South Carolina

cford at sc.edu


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


re: writing to external file from Windows standalone: empty files: solved!

2007-02-28 Thread Curt Ford
Many thanks to Sarah, Bill, and Mark for your responses - commenting  
out the 'open file ... for update' line did the trick. Works great  
now.  : )


This was one of the first things I wrote in the project, when I was  
*really* just starting in Revolution, and I think I used 'open  
file..' and then 'write to file.' Several sources then recommended  
using 'put .. into URL..' so I put that in without deleting the 'open  
file.' The Mac version never minded - I'd made dozens of lists with  
the Mac standalone - guess Windows was pickier about the syntax.


I will probably need to deal with the permissions issue at some point  
but I'm glad it's not now!


-Curt

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


re: clearing a field through a variable holding the name of the field

2007-01-31 Thread Curt Ford

Ah, that did it. Thanks Mark!

best,

Curt


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


newbie-ish question: is QT required on Windows for audio in a player?

2006-10-10 Thread Curt Ford

I may just be missing this in the docs, but..

Do windows users have to have QT installed to hear mp3 audio played  
through a player object?


My project uses lots of external audio, played through a player.  
Sometimes an entire file, more often a portion, using startTime and  
endTime; sometimes the .mp3 is local, sometimes accessed over the  
net. Works great on OSX.


A few Windows users have had trouble getting the external audio (this  
was discussed a few weeks ago by me  others). I'd hoped playing the  
files locally would help but a tester has reported getting a few  
seconds of audio for one clip, then nothing, even when playing local  
files. She said she had had QuickTime, but uninstalled it a while  
back. Is there something else needed, winAmp or something else, on XP  
for playing mp3 files through a player?


thanks!

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