Results 1 to 8 of 8

Thread: Baby typing.... Maddie

  1. #1
    Guest

    Baby typing.... Maddie

    So my 15 month old (Grace) likes to sit on my lap and pound away on the KB. Which isn't a bad thing, except even if I open word, and let her type, she can do some damage....

    So I found a windows program that kind of does what I want.

    http://home.earthlink.net/~daliblume...ad/Maddie.html

    Its cool. It disables the windows key and the other keys so that she can just type and not affect whats going on.

    I can edit the map and affect what it says on the screen. However, I'd also like it to say the letter over the speakers when she types it.

    Does anyone think this is possible?

    And how hard would it be to port it to Linux??

  2. #2
    Advisor
    Join Date
    Apr 2004
    Location
    orlando
    Posts
    608
    Code:
    /**************************************
     * Copyright (C) 2005 Brandon Niemczyk
     *
     * Description:
     *   Simple program for marks daughter
     *   this needs ncurses, and the "festival" program
     *   to work
     *   to compile:
     *      gcc -o mcangeli mcangeli.c -lcurses
     *
     * ChangeLog:
     *
     * License: GPL Version 2
     *
     * Todo:
     *
     **************************************/
    
    #include <curses.h>
    #include <ctype.h>
    #include <stdio.h>
    
    int main &#40; int argc, char *argv&#91;&#93; &#41;
    &#123;
            int buf;
    
            initscr&#40;&#41;;
            noecho&#40;&#41;;
    
            char festival&#91;&#93; = "echo c | festival --tts";
    
            addstr&#40;"simple prog for mcangeli's girl...\n"
                   "kill with CTRL-c\n"
                   "start typing&#58;\n"&#41;;
    
            refresh&#40;&#41;;
    
            while&#40;&#40;buf = getc&#40;stdin&#41;&#41; != EOF&#41; &#123;
                    if&#40;buf == '\r'&#41;
                            buf = '\n';
    
                    if&#40;!isprint&#40;buf&#41; && buf != '\n'&#41;
                            continue;
    
                    addch&#40;buf&#41;;
                    refresh&#40;&#41;;
    
                    if&#40;isalpha&#40;buf&#41; || isdigit&#40;buf&#41;&#41; &#123;
                            sprintf&#40;festival, "echo %c | festival --tts", &#40;char&#41;buf&#41;;
                            system&#40;festival&#41;;
                    &#125;
            &#125;
    
            endwin&#40;&#41;;
            return 0;
    &#125;
    I didn't actually run the program you linked to, but i looked at the code. It's very windows specific... porting would take a lot more work then it's worth.

    the above program runs in a console and just lets you type away, only accepting printable characters (numbers, letters, and various forms of space), it uses festival to "say" the name of every letter or number.

    it's uh... not very complex or complete... just a quick 5 minute hack hoping it can be of some help.

  3. #3
    Mentor jro's Avatar
    Join Date
    May 2004
    Location
    Pennsylvania, USA
    Posts
    1,206
    Dang mac, just when I thought you could be any bigger of a badass, nice work. I will give this a shot with my kid too, as soon as my rear is well enough to get out of bed. ;-)
    jro - http://jeff.robbins.ws
    Linux counter#:213782
    GnuPG ID: 406238E7

  4. #4
    Mentor
    Join Date
    May 2004
    Location
    Louisiana
    Posts
    1,206
    That maccorin is a good guy!

    Gonna give him some points!

  5. #5
    Advisor
    Join Date
    Apr 2004
    Location
    orlando
    Posts
    608
    w00t points!!

  6. #6
    Senior Member
    Join Date
    Apr 2004
    Location
    Indiana?... We named the dog Indiana!
    Posts
    488

    Re: Baby typing.... Maddie

    Nice one mac .
    Steve

  7. #7
    Advisor
    Join Date
    Apr 2004
    Location
    orlando
    Posts
    608
    so does it work?

  8. #8
    Guest
    Haven't bothered with it yet.

    I have to install festival first.

Similar Threads

  1. Save Time and Effort in Typing URL Addresses
    By regix in forum Windows - General Topics
    Replies: 2
    Last Post: 07-02-2005, 09:55 PM
  2. My new baby
    By Stuart in forum General Chat
    Replies: 7
    Last Post: 06-28-2005, 03:54 AM
  3. New baby
    By Gayle in forum General Chat
    Replies: 8
    Last Post: 06-08-2003, 03:04 PM
  4. Wish Me Luck (LFS, Baby!)
    By stryder144 in forum Linux - General Topics
    Replies: 29
    Last Post: 03-01-2002, 09:16 PM
  5. LFS baby YEAH!
    By Feztaa in forum Linux - Software, Applications & Programming
    Replies: 12
    Last Post: 01-06-2002, 07:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •