1. OCR and alt platforms
Most specifically to Colin Taylor, but also anyone else who wishes to get
involved.
Sorry I haven't answered back to anyone for almost a week, but I have been
doing a severe upgrading to my main translation programme to bring it up to
scratch with BigFont. Bigfont is now fully loaded (it now contains over
49,000 32 X 32 Chinese characters) and operates FLAWLESSLY! Therefore, I
have decided to shift the development of the OCR level forward into this
next week. I will be uploading a sample file (in normal font formating so
everyone can use it) containing several hundred characters from the actual
DaoZang Translation project, and instructions on how to proceed with
helping with this next stage. I intend for this will be more fun than
work! More about this later.
Does anyone know how to write a simple (!) EU routine that will allow one
to use the Enter key rather than the leftside Mouse Click to activate an
Event action in the same manner that that click would? I have tried to
write a clean one, and it is fairly straightforward to mimic everything
else, but for some reason this escapes me. Help!
To all those working towards the porting of EU to Linux. Continue to work
hard; the results are always worth it.
Euphoria just keeps getting better and better...
Norm
2. Re: OCR and alt platforms
At 10:25 AM 7/31/99 -0400, Norm wrote:
>Does anyone know how to write a simple (!) EU routine that will allow one
>to use the Enter key rather than the leftside Mouse Click to activate an
>Event action in the same manner that that click would? I have tried to
>write a clean one, and it is fairly straightforward to mimic everything
>else, but for some reason this escapes me. Help!
Hi Norm,
Try this...
-- example code
include graphics.e -- for sound() routine used in beep
procedure beep()
-- AT&T beep
atom t
sound(400) t = time()+.2 while time() < t do end while
sound(700) t = time()+.2 while time() < t do end while
sound(900) t = time()+.2 while time() < t do end while
sound(0)
end procedure
procedure input_loop()
-- respond to keyboard or mouse input
integer key_press
while 1 do
-- scan for key press
key_press = get_key()
if key_press = 13 then beep() -- enter
elsif key_press = 27 then exit -- escape
-- [scan for more keys...]
end if
-- [scan for mouse input here...]
end while
end procedure
puts(1, "Press <Enter> for beep, <Esc> to quit...\n")
input_loop()
-- end code
Colin Taylor