|
Post by vovchik on Aug 25, 2018 13:05:40 GMT 1
Dear Peter and Joe, I modded asc2asl a bit by adding command line arguments (a mode switch and the text). Mode 0 generates individual svgs. Mode 1 generates multi-word text on one line. The next step will be breaking up lines by words for a composite svg with more than one line of text and then automatic generation of a jpg or png. With kind regards, vovchik
|
|
|
Post by Pjot on Aug 26, 2018 13:32:12 GMT 1
Thanks vovchik, I like how small it is. And the SVG pictures allow easy embedding in code BR Peter
|
|
|
Post by bigbass on Aug 26, 2018 15:25:53 GMT 1
Hello vovchik
This is really nice! I like how you did the alpha image and stringing them together we could do other difficult translations with images with this approach
great job!
Joe
|
|
|
Post by vovchik on Aug 26, 2018 18:31:05 GMT 1
Dear Joe and Peter,
Thanks. I was going to do the composite with vertical displacement at spaces, but I have hardware problems at the moment. My main comp is randomly freezing and needs to be rebooted. This is happening every few hours. I have already fsck'd the disk and added an extra fan for cooling, but the problem persists. Very weird. As soon as I figure this one out, I will be back doing that vertical displacement bit.
With kind regards, vovchik
|
|
|
Post by bigbass on Aug 26, 2018 18:48:51 GMT 1
Hello vovchik I once had that type of problem that was difficult to pinpoint quickly the cpu mounting bracket was hair line broken but looked like it was pressing the heat sink to the cpu but wasn't which caused a thermal lockup just replaced the mounting bracket and thermal paste and of course remove your cat from the room and make sure all is clean hope it isn't a failing motherboard BTW I shortened the your RANGE macro a little '--- added a simplified RANGE function ' x is a char or number ' y is the low value of the range ' z is the high value of the range
DEF FN RANGE(x, y, z) = (x > y && x < z)
'IF 5 BETWEEN 0;10 THEN PRINT "Found" IF RANGE(5,0,10 ) THEN PRINT "Found"
Joe
|
|
|
Post by vovchik on Aug 26, 2018 19:42:44 GMT 1
Dear Joe,
Thanks for improving the RANGE function. I like it! The only problem is that it returns false for this:
PRINT RANGE(50, 50, 50)
It should, I think, return true:
DEF FN RANGE(x, y, z) = (x >= y && x <= z)
As for the cpu and bracket, you might be right =- I will do some inspection as soon as I find some thermal past - a tube of which is lying around but I don't know exactly where, since it is a tiny tube. A repairman once told me that if the paste is dry and is of the grey variety, it can be thinned with alcohol.
With kind regards, vovchik
|
|
|
Post by bigbass on Aug 28, 2018 5:37:47 GMT 1
Hello vovchik since I first saw that you used the RANGE syntax I liked the idea and after being shortened and now perfected with the >= <=
DEF FN RANGE(x, y, z) = (x >= y && x <= z)
we have another practical function for a tool
BTW I was trying for fun to decode the math for the rot13
and found another published working example modded it to fit your code
you used this one
o$ = o$ & CHR$(~a - 1 / (~(a | 32) / 13 * 2 - 11) * 13)
this also works replacing the above
o$ = o$ & CHR$(isalpha(a)?tolower(a)<'n'?a+13:a-13:a)
you need this edit also a = s[i] remove the ~
I couldn't figure out this part in the code /13 * 2 - 11 the bit level division is very complex
Joe
|
|
|
Post by vovchik on Oct 3, 2018 9:14:16 GMT 1
Dear all, I worked on the asc2sl (ascii text to sign language) program a bit - there are now four versions (ASL - American Sign Language that handles most Latin-based script, DE, which is German and similar to ASL with a mod or two, Ukrainian and Russian). The program also now allows for line breaks using "|", in addition to spaces. Help (-h or --help) shows the options. If you have rsvg-convert convert installed, you will also get png files generated automatically, in addition to svgs. For svg2png functionality to work, you should first install librsvg2-bin, which contains rsvg-convert. On most Debian-style systems do this: sudo apt-get install librsvg2-bin With kind regards, vovchik Attachments:asc2sl.tar.gz (89.85 KB)
|
|
|
Post by vovchik on Oct 3, 2018 14:36:26 GMT 1
Dear all, And here is Spanish, which treats ch, ll and rr as separate letters. That bit works, too. Just pass a normal word, such as llegar, muchacho, or niño, and asl2ssl should do the right thing. With kind regards, vovchik UPDATED: Reduced vertical white space, reduced width of "space" and fixed up the help text (now lists the digraphs in Spanish and not Polish). Also included the translation table (image) in the archive. Attachments:
as2ssl.tar.gz (236.96 KB)
|
|
|
Post by vovchik on Oct 3, 2018 15:40:38 GMT 1
Dear all, We also have Polish now. Like Spanish, Polish alphabetic sign language uses single signs for certain digraphs (ch, cz, rz and sz). With kind regards, vovchik Attachments:asc2psl.tar.gz (94.65 KB)
|
|
|
Post by bigbass on Oct 3, 2018 18:51:37 GMT 1
Hello vovchik
It had a clean compile and runs correctly did a test with a Spanish example it has very nice display of the images and this would be very useful as a teaching tool
Thanks Joe
Hola amigo siempre estas haciendo cosas chidas
chido is the Mexican version of cool
|
|
|
Post by vovchik on Oct 3, 2018 20:28:26 GMT 1
Gracias Joe! I fixed up the Spanish slightly - same archive above but updated. I am now trying to think how this facility might be used - for instance, for live audio news using real-time voice recognition. Most computers are too slow, but in theory.... With kind regards, vovchik Attachments:
|
|
|
Post by vovchik on Oct 4, 2018 13:15:19 GMT 1
Dear all, And here is a French version using rather nice Gallaudet signs, including digits. The translation table is in the archive. With kind regards, vovchik Attachments:asc2fsl-src.tar.gz (120.46 KB)
|
|
|
Post by Pjot on Oct 4, 2018 19:26:05 GMT 1
Thanks vovchik, Very nice. I tested the Spanish version and it does even accept the 'ñ' symbol Best regards Peter
|
|