dvorak7min-1.6.1/0000755000175000017500000000000012313651307013147 5ustar martinmartindvorak7min-1.6.1/ChangeLog0000644000175000017500000001144412313651307014725 0ustar martinmartin2003-03-06 Ragnar Hojlasd Espinosa * Released version 1.6.1, aka It's Alive! Alive! Release Changed the ratio stat so it doesn't show negatives, nans or infs. Added yet another header file. 2003-03-05 Kamil Burzynski (aka Nopik) * dvorak7min.c: added some more stats to the last line Also fixed a typo on lesson 18. 2001-02-20 Ragnar Hojlasd Espinosa * Released version 1.6, aka I Need A QWERTY Tutor Now Updated email addresses and URLs. 2000-02-07 Ragnar Hojlasd Espinosa * Released version 1.5, aka Slower Fingers Release The average speed (CPS and CPM) in a lesson won't be counted until you get past of the easy parts (ie. aaa eee uuuu..) 1999-05-30 Tijs van Bakel Added a missing [H]ide keyboard to the lessons prompt 1999-05-25 Ragnar Hojland Espinosa * Released version 1.4, aka Mad Merger Release 1999-05-21 Tijs van Bakel * dvorak7min.c: added new features: Added color support thanks to superior planning by avoozl and zarq. Nastiness mode's CPS hitratio mayhem is now also taken into account. Support for bigger displays (looks nicer in Xterm) Also added an optional visual bell. (myGetch): here one can see how bored i got. There now is some stupid Artificial Intelligent typist active. (do_text): fixed a bug with nastiness mode.. one could cheat and score very high by just having a key pushed down. a cure for gpm will not be found though (initApp): added checks to see if the screensize fits for a game. 1999-05-20 Ragnar Hojland Espinosa * Released version 1.3, aka Windscreen Squashed Bug Release Fixed a couple of missing breaks inside main, as reported by Mat Davis Added -k, --hidekeys which hides the keyboard layout. Mat mentioned he hid it to encourage memory, so I guess there can be more people who find it useful. Hid the hardware cursor, which was more an annoyance than anything else. 1999-02-28 Ragnar Hojland Espinosa * Released version 1.2, aka No Longer 7 Minutes Release Makefile options strike again! MUAHAHAHA.. ahem. They actually define the defaults, which is more convenient than having to specify command line options each time, and doesn't take yet another ~/.dotrc file importText and related functions have somewhat improved error handling and reporting. As well, it will handle more flexibily screen sizes over 80x25. The cps and cpm on screen are now Real Realtime On Screen (tm) ;). Minor/Cosmetic fixes: - some int types have been changed to time_t - added showHelp - you no longer need to have a importText length limit 1999-02-11 Tijs van Bakel * Makefile (INSTALL): all weird options are now commandline options * dvorak7min.c (importText): added a function to read ascii files no more need to train on lesson 27 ! :) go get some Gutenberg books. Most of the weird characters are skipped and simple wrapping is done. (main): added getopt functions to parse --version and --help strings. Useful now dvorak7min understands ascii-file-importing too :) (do_text): added Realtime On Screen cps and cpm. This makes my heart beat even faster when I make those stupid errors when trying to beat my old record on #29 :) (menuInteractive): changed this functions name to fit in an option to skip the menu and type on a ascii file directly. 1999-01-31 Ragnar Hojland Espinosa * Released version 1.1, aka Smoky Release Minor bugfixes: - space at EOL works properly now - removed some apparently useless curses calls some people had problems with (Frank D Anconia ) - added a makefile option to turn beeps off - dvorak7min.c size is nicely a magic number (8192 bytes) - other little thing I don't remember 1999-01-28 Tijs van Bakel * dvorak7min.c: re-indented the source. put the lessons in a separate lessons.c file. (choose): it's now visible what the Nastiness value is set to. (do_text): wait for ESC key so the results are not skipped accidently. (boxed): changed the layout of the keyboard when TRY_TO_BE_PRETTY is not turned on. (do_text): see (boxed) below, changed highlighting (show_layout): see (boxed) below, changed highlighting (boxed): now requested keys are highlighted as well, so a user knows where about he should search for the next key :) * lessons.c (lessons): removed a few stupidity lines from lesson number 29, which is the only lesson I work on :) 1998-11-04 Ragnar Hojland Espinosa * Released version 1.0, aka Urgent Frustration Solver dvorak7min-1.6.1/dvorak7min-1.6.1.lsm0000644000175000017500000000065712313651307016416 0ustar martinmartinBegin3 Title: Dvorak 7min Tutor Version: 1.7 Entered-date: 06MAR03 Description: A ncurses based dvorak typing tutor Keywords: dvorak typing tutor ncurses Author: Ragnar Hojland Espinosa (ragnar@ragnar-hojland.com) Primary-site: http://www.ragnar-hojland.com/dvorak7min-1.6.1.tar.gz Alternate-site: metalab.unc.edu 60kB dvorak7min-1.6.1.tar.gz Copying-policy: GPL End dvorak7min-1.6.1/Makefile0000644000175000017500000000153712313651307014615 0ustar martinmartinINSTALL = /usr/local/games/bin # Uncomment these lines if you want to change the defaults to something else #PRETTINESS = -DNOT_SO_PRETTY #NASTINESS = -DNASTY_AS_USUAL #BEEPS = -DBEEPS_ARENT_IRRITATING #FLASHES = -DFLASHES_ARENT_IRRITATING #COLORS = -DNO_COLORS_PLEASE # Max length of imported texts. Set it to 0 or comment it if you don't want # a limit LIMIT_LENGTH = -DLIMIT_LENGTH=1024 ### That's all ### #CC = gcc PROF = -g0 -O2 CFLAGS = $(PROF) -Wall \ $(PRETTINESS) $(NASTINESS) $(BEEPS) $(FLASHES) $(COLORS) \ $(LIMIT_LENGTH) LDFLAGS = $(PROF) LIBS = -lncurses OBJECTS = dvorak7min.o lessons.o HEADERS = lessons.h TARGET = dvorak7min dvorak7min: $(OBJECTS) $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) all: dvorak7min clean: rm -f $(OBJECTS) $(TARGET) install: install -d $(INSTALL) install -s dvorak7min $(INSTALL) dvorak7min-1.6.1/lessons.c0000644000175000017500000006650312313651307015013 0ustar martinmartin/* * lessons.c - the lessons for Dvorak 7min * Copyright (C) 1998-2001 Ragnar Hojland Espinosa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "lessons.h" /* name of the lesson, text of the lesson.. you can embed \n's except on * the last line. * * lesson name should be shorter than 37 * lesson text should 6 lines or less, with an end of page marker (\x01) * * note that as of version 1.2 using ASCII files is possible too. */ char *lessons[] = { "UH: home row, index fingers", "\x2" "uuuu hhhh uuuu hhhh uuuu hhhh uuuu hhhh uuuu hhhh uuuu hhhh uuuu hhhu\n" "uuuu hhhh uuuu hhhh uuuu hhhh uuuu hhhh huuu uuuh huhu uuhh hhuu uhuh\n" "uh uh uh uh hu hu hu hu huh huh huh huh huh huh uh huh uh huh uh huuh\n" "huh h u uh hu uhh huh uhh h u uh hu uhh huh uhh uhuh huhu huuh hu uhh", "ET: home row, second fingers", "\x2" "eeee tttt eeee tttt eeee tttt eeee tttt eeee tttt eeee tttt eeee tttt\n" "eeee tttt eeee tttt eeee tttt eeee tttt eeee tttt eeee tttt eeee tttt\n" "et et et et et et tee tee tee tee tete tete tete tete eet eet eet eet\n" "t e et te teet tee teet tete et et e et te teet tee teet tete et etet", "EHTU: comprehensive", "eeee hhhh tttt uuuu eeee hhhh tttt uuuu eeee hhhh tttt uuuu eeee hhhh\n" "eeee hhhh tttt uuuu eeee hhhh tttt uuuu eeee hhhh tttt uuuu eeee hhhh\n" "\x2" "hue hue hue hue tutu tutu tutu tutu the the the the he he he he he he\n" "teeth teeth teeth teeth hu hut hut hute thee thee thee thee tutu tutu\n" "eh he hue hut teeth teethe the thee tutu eh he hue hut ethe thee tutu", "ON: home row, third fingers", "\x2" "oooo nnnn oooo nnnn oooo nnnn oooo nnnn oooo nnnn oooo nnnn oooo nnnn\n" "oooo nnnn oooo nnnn oooo nnnn oooo nnnn oooo nnnn oooo nnnn oooo nnnn\n" "oooo nnnn no no no no on on on non non non non non non noon noon noon\n" "oooo nnnn no no no no on on on non non non non non non noon noon noon\n" "ono ono ono ono no non noon on noo ono no non noon on noo ono non oono", "ON: comprehensive", "eeee hhhh nnnn oooo tttt uuuu eeee hhhh nnnn oooo tttt uuuu ehnotuehnotu\n" "\x2" "en en en en ho ho ho ho ne ne ne ne nu nu nu nu oh oh oh oh to to to to\n" "hen hen hen hen hoe hoe hoe hoe hot hot hot hot hun hun hun hun nee nee\n" "nee nee net net net net not not not not nun nun nun nun nut nut nut nut\n" "one one one one out out out out ten ten ten ten tnt toe toe toe toe ton\n" "ton ton ton too too too too tot tot tot tot tun tun tun tun tou tou tou" "\x1" "hone hone hone hone hoot hoot hoot hoot hunt hunt hunt hunt hone hoot hunt\n" "neon neon neon neon none none none none note note note note neon none note\n" "noun noun noun noun onto onto onto onto Otto Otto Otto Otto noun onto Otto\n" "teen teen teen teen tent tent tent tent then then then then teen tent then\n" "thou thou thou thou tone tone tone tone toot toot toot toot thou tone toot\n" "tote tote tote tote tout tout tout tout tune tune tune tune tote tout tune" "\x1" "thou thou thou thou tone tone tone tone toot toot toot toot thou tone toot\n" "tote tote tote tote tout tout tout tout tune tune tune tune tote tout tune\n" "tenet tenet tenet tenet tenth tenth tenth tenth tooth tooth tooth tooth" "\x1" "Tune the tone\n" "Note the teen not the tutu\n" "Ten hot teeth tout the tune\n" "The one nut to tote out the hen\n" "None hunt out the tenth one ton nun\n" "Hunt the neon then toot out the tune onto the tent", "AS: home row, fourth fingers", "\x2" "aaaa ssss aaaa ssss aaaa ssss aaaa ssss aaaa ssss aaaa ssss aaaa ssss\n" "aaaa ssss aaaa ssss aaaa ssss aaaa ssss aaaa ssss aaaa ssss aaaa ssss\n" "as as as as sa sa sa sa sas sas sas sas ass ass ass ass ass ass ss aa\n" "as as as as sa sa sa sa sas sas sas sas ass ass ass ass ass ass ss aa\n" "sass sass sass sass as a sass ass as a sas as a sass ass as a sas asa", "AS: comprehensive", "aaaa eeee hhhh nnnn oooo ssss tttt uuuu aaaa eeee hhhh nnnn oooo ssss\n" "\x2" "ah ah ah ah an an an an at at at at ha ha ha ha so so so so us us use\n" "ash ash ash ash San San San San sat sat sat sat sees sea sea sea ease\n" "ease ease ease east east east east Haas Haas Haas Haas Hans Hans Hans\n" "Hans hash hash hash hash sane sane sane sane sash sash sash sash Sean\n" "Sean Sean Sean seat seat seat seat Stan Stan Stan Stan Stan seat seat" "\x1" "Sean hates tetanus shots\n" "Eat the toast at ten to noon\n" "The Taos sun shone as hot as Santa Anna\n" "Anthea assesses the estate at South Tahoe\n" "Hotshot Hanna uses these shoes that Shannon soon sees\n" "At noon on the teahouse Aunt Tess hushes the nauseous host" "\x1" "Annette senses the sensuous sunset onset on the Athens sea\n" "Tess Sutton notates the tenuous state that southeast Houston has seen\n" "Ethan Ness attests to these Tennessee Senate OSHA statutes to shun Utah", "ID: index fingers stretching home", "\x2" "iiii dddd iiii dddd iiii dddd iiii dddd iiii dddd iiii dddd iiii dddd iiii\n" "id id id id id id id id did did did did did did did did did did did did id\n" "Didi did id did i Didi did id did i Didi did id did i Didi did id did i id\n" "uuuu hhhh iiii dddd uuuu hhhh iiii dddd uuuu hhhh iiii dddd uuuu hhhh iiii\n" "du du du du hi hi hi hi du du du du hi hi hi hi du du du du hi hi hi hi du\n" "di dud dud dud dud hid hid hid hid dud dud dud dud hid hid hid hid hud hud", "Home row", "aaaa dddd eeee hhhh iiii nnnn oooo ssss tttt uuuu\n" "aaaa dddd eeee hhhh iiii nnnn oooo ssss tttt uuuu\n" "\x2" "Tina is on hiatus instead\n" "The statue is sent to Santa Anita\n" "This session is tedious on the tendons" "\x1" "That Thai dish is intense on the sinuses\n" "Onions stain satin so use this Tide on this\n" "Dan Addison detonated the thousandth headstone\n" "Estonian nationhood is a notion hidden in Asia\n" "The tennis enthusiast hides the dots on his hands\n" "Otis said that sand is the seed that Isis sent us\n" "\x1" "Ted Austin insinuated that Tunisia is in Indonesia\n" "The Dissonant in the ninth edition hits on the Saudis\n" "I insist that Adenine is in DNA and that andesine is not\n" "Deanna and Eddie suntanned on the Tahitian seaside oasis\n" "Indiana and Ohio do not need donated tissues and headsets\n" "The attendant initiated an intense sound that suited Odessa\n" "\x1" "The dodo added nine and nineteen and attained nine thousand\n" "Duane nodded to his sis as he situated his sedan in the shade\n" "Dennis Hudson is hidden in a distant Tunisian hashish hideout\n" "Nina and Dana hit the astonished attendee on the head in unison\n" "Auntie Edith tends to hint that Edna heeds the ideas due to Satan\n" "The idea that nineteen studious Dadaists assisted Einstein is asinine" "\x1" "Todd hesitated in his Datsun then hit the Honda in the side in an\n" "instantaneous THUD\n" "The thesis that Dante dated Death is as inane as the attitude that\n" "Sade stood on Sadness\n" "A destitute Sudanese assassin insists that sainthood is indeed a\n" "handout to heathenish idiots", "PG: first fingers up", "\x2" "gggg pppp gggg pppp gggg pppp gggg pppp gggg pppp gggg pppp gggg ppp\n" "gggg pppp gggg pppp gggg pppp gggg pppp gggg pppp gggg pppp gggg ppp\n" "pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg\n" "gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp\n" "gggg hhhh pppp uuuu gggg hhhh pppp uuuu gggg hhhh pppp uuuu\n" "up up up up hug hug hug hug pug pug pug pug pup pup pup pup\n" "ugh ugh ugh ugh Hugh Hugh Hugh Hugh Pugh Pugh Pugh Pugh", "PG: comprehensive", "aaaa dddd eeee gggg hhhh iiii nnnn oooo pppp ssss tttt uuuu\n" "aaaa dddd eeee gggg hhhh iiii nnnn oooo pppp ssss tttt uuuu\n" "\x2" "The Huntington is in Pasadena\n" "He has one pip on his insignia\n" "I did not see Patton Against The Gestapo\n" "I put the sponge onto the peg on the spigot" "\x1" "She did not postpone the hepatitis diagnosis\n" "The USPS sent postage high on August eighteenth\n" "Pete stops as he peeps at the Pepsi and doughnuts\n" "Nothing is as stupendous as an independent opinion\n" "I did not design this gadget that ignites potatoes\n" "Neptune is the sea god and is the god Poseidon too" "\x1" "Do not dispute that pogo is as ingenious as ping pong\n" "The suggestion that toothpaste is poisonous is stupid\n" "I suggest that one not go to Saigon in a ship tonight\n" "Giuseppe pigged out on antipasto and pungent spaghetti\n" "The pianist is a passionate sap and sings insipid songs\n" "Angus thought he needed a tenspot to snap up the headphones" "\x1" "Gina Esposito supposed that the signpost in Spain said STOP\n" "The Spanish poet happened to paint his house indigo and sepia\n" "Gus is assigned to get genuine snapshots inside the USGS ship\n" "This pennant said Hastings on it and that one said Penn State\n" "Gas Seepage in the Peugeot stopped the engine at the guidepost\n" "Patti Eng has a PhD in the thespian sagas on Oedipus and Antigone" "\x1" "Tonight the teenage peasants appease the pagan suntanning goddess\n" "The penguin gasped as its appendage pushed past the Patagonian ship\n" "Seeing an aging ape eating pudding in a teaspoon is not too desponding\n" "In this episode the patient hostages hug and sing despite the gunshots\n" "Espionage at DuPont and Hughes is upsetting to the GOP and the Pentagon\n" "Doug pauses as he puts the poinsettias and sagging petunias in the teapot" "\x1" "The indignant patient ingested a potent dosage to suspend his indigestion\n" "Upsetting gossip at the pageant had Stephanie and Gina sidestepping opponents\n" "\n" "Pat goes sightseeing at the pagoda\n" "in Shanghai despite the gunshots at its apogee" "\x1" "The passage on Pegasus and the Aegean Sea\n" "upon page eight is a poignant adaptation\n" "\n" "In hindsight Stonehenge suggests the\n" "indigenous geniuses had to depend on the sun and its phases" "\x1" "Daphne Stephenson has gone to Ghana and\n" "Ethiopia and Uganda to audiotape the distinguished singing\n" "\n" "The Pope stood in position atop the\n" "highest point in Santiago as an aghast Angie Diego ingested peanuts", ".C: second fingers up", "\x2" "cccc .... cccc .... cccc .... cccc .... cccc .... cccc .... cccc ....\n" "cccc .... cccc .... cccc .... cccc .... cccc .... cccc .... cccc ....\n" "eeee cccc tttt .... eeee cccc tttt .... eeee cccc tttt .... eeee cccc\n" "ec ec ec ec tc tc tc tc ec ec ec ec tc tc tc tc ec tc ec tc ec tc ec\n" "c. c. c. c. t. t. t. t. e. e. e. e. c. c. c. c. t. t. t. t. e. e. e.\n" "etc. etc. etc. etc. etc. etc. etc. etc. etc. etc. etc. etc. etc. etc.", ".C: comprehensive", "aaaa cccc dddd eeee gggg hhhh iiii nnnn oooo pppp ssss tttt uuuu ....\n" "aaaa cccc dddd eeee gggg hhhh iiii nnnn oooo pppp ssss tttt uuuu ....\n" "\x2" "I can accept this pecan pie.\n" "Each disc costs ten cents each.\n" "The census counts us each decade.\n" "Couscous is cheapest in Connecticut." "\x1" "Cincinnati and Chicago...each U.S.A. cities.\n" "The didactic speech on Chopin educated Chad.\n" "Isaac cannot teach us the Chattanooga Choo Choo.\n" "Scott Chen teaches in oceanic science at Antioch.\n" "The cadets deduced that such antics caused chaos.\n" "His stethoscope suggested that Connie had congestion." "\x1" "I contend that a Hitachi scope can decode this speech.\n" "The octopus descended to the Titanic deep in the ocean.\n" "U.N.E.S.C.O. accepted a chance at a conspicuous occupation.\n" "The stagecoach continued to pass the cacti in scenic Tucson.\n" "Capt. P. T. Cohen needs access to a tactician in this section.\n" "Insecticide succeeds in contacting the insect in a picosecond." "\x1" "Cognac and scotch is an inconspicuous choice...thought Candace.\n" "Topnotch associates to authenticate the ancient Cantonese teacups.\n" "Coco said coaching is a cinch...catch and toss...catch and toss....\n" "The catchup accident at the picnic depicted Dutch as an apathetic nuisance.\n" "It is no coincidence that this idiotic sentence has eight concise Cs in it.\n" "The enthusiastic duchess noticed the Pontiac coupe...and decided to chase it." "\1" "I detect a headache...I hope it is not the\n" "Schnapps and Cocoa I had as a nightcap.\n" "\n" "The accountant...the C.P.A...conceded that\n" "he had on occasion hidden cocaine in a coconut." "\x1" "The cautious Canadian statisticians caught\n" "inconsistencies in the second spacesuit design.\n" "\n" "The Ph.D. conducted the Puccini Toccata...\n" "an acoustic succession in succinct cacophonic staccato notes.", ",R: third fingers up", "\x2" "rrrr ,,,, rrrr ,,,, rrrr ,,,, rrrr ,,,, rrrr ,,,, rrrr ,,,,\n" "rrrr ,,,, rrrr ,,,, rrrr ,,,, rrrr ,,,, rrrr ,,,, rrrr ,,,,\n" "nnnn oooo rrrr ,,,, nnnn oooo rrrr ,,,, nnnn oooo rrrr ,,,,\n" "or, or, or, or, or, ro, ro, ro, ro, ro, nor, nor, nor, norn\n" "or, or, or, or, or, ro, ro, ro, ro, ro, nor, nor, nor, norn\n" "Orr, Orr, Orr, Orr, Ron, Ron, Ron, Ron, Orono, Orono, Orono", ",R: comprehensive", "aaaa cccc dddd eeee gggg hhhh iiii nnnn oooo pppp rrrr ssss tttt uuuu ,,,, ..\n" "aaaa cccc dddd eeee gggg hhhh iiii nnnn oooo pppp rrrr ssss tttt uuuu ,,,, ..\n" "\x2" "Schroeder desires a career as an orchestra conductor.\n" "A recurring procedure irrigates the orchard and the prairie.\n" "Harrison, Harriet, Arturo, and Christopher are grandparents.\n" "Reagan arranged an airdrop, near the northern Pretoria corridor." "\x1" "The erratic Richard Rodgers production returned to the Curran Theatre.\n" "Carrie read the transportation report as Rosie rehearsed her transcript.\n" "Roger that, in the circuit, the resistors and transistors are corroded.\n" "The grocer reported that the antiperspirant had deteriorated.\n" "Pierre Renoir regrets that Gerard Depardieu is not in Chatres, as desired.\n" "Horns are characteristic to the rhinoceros and the Triceratops, a dinosaur." "\x1" "Tia Carrere stars, narrates, and is the director in this torrid adaptation.\n" "Gertrude, in her aristocratic grandeur, returned the carrots at the restaurant.\n" "The Enterprise surprised Picard as it crisscrossed the restricted stratosphere.\n" "\n" "Ritter, a character actor, returned an\n" "uproarious retort to the irritating chairperson." "\x1" "The rhetoric, the grandeur, and the\n" "scripture interpretation surprised the churchgoer.\n" "\n" "The choreographer restrained his rather\n" "strong terpsichorean urges, and did not dance." "\x1" "The oceanographer reports that the interior pressure is inappropriate and\n" "erroneous, and orders the radar operator to intercept the pursuer.\n" "\n" "Ed Harris stars as an arrogant and treacherous paratrooper, interpreting, in\n" "error, orders to torture a geriatric instructor. Though his side has\n" "surrendered, he continues to oppress and interrogate the retired grandparent." "\x1" "The aggressor is arrested, arraigned, tried, and, appropriate to the horrors\n" "he practiced, prosecuted and incarcerated. The granddaughter, a stenographer,\n" "nurtures her grandpa, and he recuperates, though his arthritis returns.\n" "\n" "In retrospect, that paragraph incorporated a preposterous R proportion.", "'L: fourth fingers up", "\x2" "llll '''' llll '''' llll '''' llll '''' llll '''' llll '''' llll ''''\n" "llll '''' llll '''' llll '''' llll '''' llll '''' llll '''' llll ''''\n" "LLLL \"\"\"\" LLLL \"\"\"\" LLLL \"\"\"\" LLLL \"\"\"\" LLLL \"\"\"\" LLLL \"\"\"\" LLLL \"\"\"\"\n" "aaaa llll ssss '''' aaaa llll ssss '''' aaaa llll ssss '''' aaaa llll\n" "all all all all all all la la la la la la A's A's A's A's A's A's A'S\n" "ala ala ala ala ala ala l's l's l's l's l's l's s's s's s's s's s's s's\n" "Sal Sal Sal Sal lass lass lass lass lass Sal's Sal's Sal's Sal's Sal's", "'L: comprehensive", "aaaa cccc dddd eeee gggg hhhh iiii llll nnnn\n" "oooo pppp rrrr ssss tttt uuuu '''' ,,,, ....\n" "\x2" "\"Hello,\" Ellen laughed, as she collided into Allen.\n" "In a nutshell, Clinton still had an electoral landslide.\n" "The alcoholic general staged a coup d'etat in Tallahassee.\n" "Lucille and Randall cleaned their plates in the candlelight." "\x1" "Leland alleged that \"Gilligan's Island\" is a little illogical.\n" "Sinead O'Connor's latest single isn't going to appall Russell.\n" "Colonial landlords near London once said \"ain't,\" not \"isn't.\"\n" "Caroline D'Arc is an enrollee at that college in Philadelphia.\n" "Didn't she hear, Cal used lots o' laterals, in the last seconds.\n" "Eileen O'Hare and Pat O'Shea still shouldn't tell Leslie O'Neill." "\x1" "\"This little oriental elephant is a cultural sellout,\" said Helen.\n" "The illegal planeload o' pollutants hasn't landed at Chicago's O'Hare.\n" "She'll call Allison in Honolulu, not a local call, on her cellular phone.\n" "This'll enthrall the linguists...using the letter \"L,\" one can spell\n" "\"chocolate.\"" "\x1" "Allegra, an unparalleled intellectual, calculated the celestial latitudes and\n" "longitudes in her sleep.", "YF: index fingers streching up", "\x2" "ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy\n" "ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy\n" "fy fy fy fy fy fy fy yf yf yf yf yf yf yf ffff gggg hhhh yyyy pppp uuuu\n" "guy guy guy guy guy guy guy guy guy gyp gyp gyp gyp gyp gyp gyp gyp gyp\n" "UHF UHF UHF UHF UHF UHF UHF UHF UHF yuh yuh yuh yuh yuh yuh yuh yuh yuh\n" "huff huff huff huff huff huff huff puff puff puff puff puff puff puff\n" "puffy puffy puffy puffy puffy puffy puppy puppy puppy puppy puppy puppy", "Upper and home rows", "aaaa cccc dddd eeee ffff gggg hhhh iiii llll nnnn\n" "oooo pppp rrrr ssss tttt uuuu yyyy '''' ,,,, ....\n" "aaaa cccc dddd eeee ffff gggg hhhh iiii llll nnnn\n" "oooo pppp rrrr ssss tttt uuuu yyyy '''' ,,,, ...." "\x1" "\x2" "In Lafayette, crayfish and coffee intensify the lifestyle.\n" "\"I defy you,\" cried Finley, \"to find a falcon as feathery as Godfrey.\"\n" "Granny Fay left Cindy a frilly, yet unfortunately frayed, taffeta dress.\n" "In days of yesteryear, typography did not signify only fonts and typefaces.\n" "The youthful fantasy of Goofy and Donald left Francine the fallacy that life is\n" "often funny." "\x1" "\"After the fifteenth forfeiture,\" uttered the referee, \"Stanford is,\n" "officially, ineffectual.\"\n" "\n" "Dreyfuss thought fondly of that hefty eyeful of San Francisco's fog, last\n" "Friday near the ferry." "\x1" "Geoffrey's faculty lecture on crystallography and diffraction patterns is\n" "usually insufficient and faulty.\n" "\n" "If you can differentiate psychotherapy and psychoanalysis, or psychiatry and\n" "psychology, you yourself are a psychologist." "\x1" "Yesterday, as they do each payday, Sydney and Clifford playfully ran off to\n" "the fishery for frothy glasses of Henry's Draft Ale.", "KM: index fingers down", "\x2" "kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm\n" "kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm\n" "km km km km km km km km km km mk mk mk mk mk mk mk mk mk mk\n" "hhhh kkkk mmmm uuuu hhhh kkkk mmmm uuuu hhhh kkkk mmmm uuuu\n" "ku ku ku ku ku ku ku ku ku ku mu mu mu mu mu mu mu mu mu mu\n" "UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK\n" "hum hum hum hum hum mum mum mum mum mum muk muk muk muk muk", "KM: comprehensive", "aaaa cccc dddd eeee ffff gggg hhhh iiii kkkk llll mmmm\n" "nnnn oooo pppp rrrr ssss tttt uuuu yyyy '''' ,,,, ....\n" "aaaa cccc dddd eeee ffff gggg hhhh iiii kkkk llll mmmm\n" "nnnn oooo pppp rrrr ssss tttt uuuu yyyy '''' ,,,, ...." "\x1" "\x2" "Kramer asked for skim milk in a melodramatic manner.\n" "\"My kingdom for a Macintosh,\" Maurice choked out meekly.\n" "It's more sportsmanlike to say \"checkmate\" than \"knockout.\"\n" "Emmet felt homesick until Mom sent him that Hallmark Hanukkah card.\n" "The makeshift cloakroom is a trademark of McKinley's decisionmaking.\n" "Kim's nickname is \"Kimono,\" an irksome mockery of her days in Yokohama." "\x1" "There's not much homemade pumpkin ice cream and Smucker's hot fudge sauce\n" "remaining.\n" "\n" "The filmmaker, in machinelike precision, caught the magma and smoke from the\n" "immense Mt. Krakatoa on film." "\x1" "Stock in Amtrak skyrocketed after McKeon's remark mocking spokesmen,\n" "gimmickery, and smokescreens in the marketplace.\n" "\n" "From Katmandu to Oklahoma, from Stockholm to Kentucky, from Alaska to the\n" "Kremlin, Kodak film is found in many, many cameras.", "JW: second fingers down", "\x2" "jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww\n" "jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww\n" "jw jw jw jw jw jw jw jw jw jw jw wj wj wj wj wj wj wj wj wj\n" "eeee jjjj tttt wwww eeee jjjj tttt wwww eeee jjjj tttt wwww\n" "ewe ewe ewe ewe ewe jet jet jet jet jet Jew Jew Jew Jew Jew\n" "wee wee wee wee wee wee wee wet wet wet wet wet wet wet wet\n" "wet Jewett Jewett Jewett Jewett Jewett Jewett Jewett Jewett", "JW: comprehensive", "aaaa cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm\n" "nnnn oooo pppp rrrr ssss tttt uuuu wwww yyyy '''' ,,,, ....\n" "aaaa cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm\n" "nnnn oooo pppp rrrr ssss tttt uuuu wwww yyyy '''' ,,,, ...." "\x1" "\x2" "Jamestown, New York, that's my home town.\n" "The Joshua Tree National Monument is known worldwide.\n" "Jujitsu makes you use your opponent's weight against himself.\n" "\"Wow,\" he said as his jaw dropped. \"That's a jewel of a wristwatch.\"\n" "Wanting the water to flow, Irwin twisted the faucet counterclockwise.\n" "Woodrow Wilson's popularity went downward after the economic slowdown." "\x1" "The old Jewish widow withdrew further, working with the wooden jigsaw.\n" "Judy wondered if it was worthwhile to walk downtown to the Jewelry store.\n" "I wonder if that Newsweek on the windowsill has the lowdown on Woolworths.\n" "\n" "With awe, Jeremy awkwardly swallowed a whole slew of raisinettes as the\n" "John Waters film started." "\x1" "Wynonna Judd, after a whirlwind tour of the Midwest, waited at the\n" "Waldorf Astoria for two weeks.\n" "\n" "\"Your Majesty,\" wrote Marjorie, \"Nothing justifies prejudice. I can rejoice\n" "only when there is justice.\"" "\x1" "The newsletter whitewashed reports of wiretapping in Congresswoman\n" "Hollingsworth's jurisdiction.\n" "\n" "\"Hallelujah,\" wailed the janitor as he jettisoned the typewriter out the\n" "window. The projectile majestically landed at the junction of Jefferson and\n" "Winslow streets, just jolting, not injuring, a jogging tourist.", "QV: third fingers down", "\x2" "qqqq vvvv qqqq vvvv qqqq vvvv qqqq vvvv qqqq vvvv qqqq vvvv\n" "qqqq vvvv qqqq vvvv qqqq vvvv qqqq vvvv qqqq vvvv qqqq vvvv\n" "qv qv qv qv qv qv qv qv qv qv qv qv qv qv qv qv qv qv qv qv\n" "vq vq vq vq vq vq vq vq vq vq vq vq vq vq vq vq vq vq vq vq\n" "qvq qvq qvq qvq qvq qvq qvq qvq vqv vqv vqv vqv vqv vqv vqv", "QV: comprehensive", "aaaa cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm nnnn\n" "oooo pppp qqqq rrrr ssss tttt uuuu vvvv wwww yyyy '''' ,,,, ....\n" "aaaa cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm nnnn\n" "oooo pppp qqqq rrrr ssss tttt uuuu vvvv wwww yyyy '''' ,,,, ...." "\x1" "\x2" "Mercury and quicksilver are quite the same.\n" "An acquisitive mind helped Pavlov evolve his theories.\n" "QVC's involvement with Paramount may give it new verve.\n" "Vivian's new Volvo unequivocally vanquished her fears of driving.\n" "According to Pravda, Vladivostok was a quiet village in its Soviet days.\n" "This unique, opaque liquor does not quench your thirst, it makes you queasy.\n" "David's vivid imagination and his inquisitive and inventive mind suggest a high IQ." "\x1" "If Iraq was equipped to invade and conquer Tel Aviv, the U.S. may have quashed\n" "that pervasively.\n" "\n" "We've never quantitatively proven that a quaver is equivalent to a quiver, only\n" "qualitatively." "\x1" "This revolutionary cardiovascular technique is representative of the\n" "productivity here in Charlottesville.\n" "\n" "\"I've never had such quality hors d'oeuvres,\" Javier said assertively over the\n" "tranquil sounds of Vivaldi, as he looked over the picturesque headquarters of\n" "the Vancouver Civic Center." "\x1" "Nirvana's inequivalent sequel to their provocative release, Nevermind, is\n" "inconclusive. Nevertheless, this quirky yet vivacious trio has evoked a\n" "progressive sound that very well may give you a new perspective on irreverence.", ";Z: fourth fingers down", "\x2" ";;;; zzzz ;;;; zzzz ;;;; zzzz ;;;; zzzz ;;;; zzzz ;;;; zzzz\n" ";;;; zzzz ;;;; zzzz ;;;; zzzz ;;;; zzzz ;;;; zzzz ;;;; zzzz\n" ";z ;z ;z ;z ;z ;z ;z ;z ;z ;z ;z :z :z :z :z :z :z :z :z :z\n" ";z ;z ;z ;z ;z ;z ;z ;z ;z ;z ;z :z :z :z :z :z :z :z :z :z\n" "Z; Z; Z; Z; Z; Z; Z; Z; Z; Z; Z; Z: Z: Z: Z: Z: Z: Z: Z: Z:", ";Z: comprehensive", "aaaa cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm nnnn oooo\n" "pppp qqqq rrrr ssss tttt uuuu vvvv wwww yyyy zzzz '''' ,,,, .... ;;;;\n" "aaaa cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm nnnn oooo\n" "pppp qqqq rrrr ssss tttt uuuu vvvv wwww yyyy zzzz '''' ,,,, .... ;;;;" "\x1" "\x2" "Zachary MacKenzie froze in amazement; on the radio in his Mazda he heard\n" "pizzicato stanzas of Mozart.\n" "\n" "Carmen Rodriguez is a citizen of Venezuela; her former spouse, Inigo Martinez,\n" "and his new wife, Anna Vasquez, have moved to Swaziland or Tanzania." "\x1" "A crazed gazelle was whizzing around the zoo; a quizzical giraffe guzzled down\n" "pizzas through his muzzle; another one merely grazed and dozed; several\n" "chimpanzees started zigging and zagging; the reptile zone was oozing with\n" "activity; several lizards hazarded the freezing waters and capsized the fish\n" "tanks; a dozen grizzlies were waltzing in the plaza.", "XB: index fingers streching down", "\x2" "bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx\n" "bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx\n" "bx bx bx bx bx bx bx bx bx bx bx bx bx bx bx bx bx bx bx bx\n" "xb xb xb xb xb xb xb xb xb xb xb xb xb xb xb xb xb xb xb xb\n" "bbx xbb bbx xbb bbx xbb bbx xbb bbx xbb bbx xbb bbx xbb bbx\n" "xbx xbx xbx xbx xbx xbx xbx xbx bxb bxb bxb bxb bxb bxb bxb", "All rows", "\x2" "Heathcliff Huxtable was played by the inexorable Bill Cosby.\n" "An inexhaustible supply of benzedrine merely exacerbated his disturbances.\n" "Bruce Boxleitner explained to the extraterrestrial why Babylon Five was built.\n" "\n" "The ambidextrous exhibitor was exhausted by the time he loaded the boxcar\n" "with hobbyhorses." "\x1" "Drop those xeroxes off in the mailbox; I'll get them in the bibliography in\n" "five days maximum.\n" "\n" "Mr. Balboa is pretty flexible with the textbook; it's probably excusable to\n" "fall a bit behind." "\x1" "Why Mr. Baxter went from Bordeaux to the tableaux exhibit in Luxembourg by\n" "taxicab is inexplicable.\n" "\n" "Becky found the Bronx pretty obnoxious; though there was that Caribbean\n" "restaurant that truly excelled." "\x1" "The executives at NBC, CBS, and ABC all found it inexcusable that the BBC was\n" "so inflexible and xenophobic.\n" "\n" "An exuberant Bill Clinton blew into his saxophone before the ambassadors; it\n" "was an extraordinary experience that nobody could explain.", /* end of lessons. do not remove these zeroes */ 0, 0 }; dvorak7min-1.6.1/lessons.h0000644000175000017500000000156612313651307015016 0ustar martinmartin/* * lessons.c - the lessons for Dvorak 7min * Copyright (C) 1998-2000 Ragnar Hojland Espinosa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef LESSONS_H #define LESSONS_H extern char *lessons[]; #endif dvorak7min-1.6.1/COPYING0000644000175000017500000004307612313651307014214 0ustar martinmartin GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. dvorak7min-1.6.1/dvorak7min.c0000644000175000017500000004164712313651307015410 0ustar martinmartin/* * Dvorak 7min 1.6.1, a Dvorak typing tutor * Copyright (C) 1998-2003 Ragnar Hojland Espinosa * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* * It's horrible code. I agree. * I wanted it. I needed it. I now have it. * I hope it ends my frustration learning dvorak. * Otherwise I'm gonna kill someone. Soon. * Do I sound desesperate? * * Try truning on the nastiness option. * You can use the space bar or the enter key interchangeably. * * As far as 1.1, the code doesn't look that bad now thanks to Smoke, * so mental SANity loss is reduced from 1d100 to merely 1d10. * * * Smoke/CRAP here - I just hacked 1.3 up and it's pretty late * a great excuse for messing up the code even more :) * * Hm, 1.5 and I'm pondering on sumbitting it to the Ofuscated C contest... * It'll take a few versions more and some extra "features", and who knows. * This baby is fun :) * */ #include #include #include #include #include #include #include #include #include #include "lessons.h" /* these three represent the visualization of the key on screen */ #define PRESSED_NOT 0 #define PRESSED_REQUESTED 1 #define PRESSED_BY_USER 2 /* Update cp[sm] every LATENCY tenths of second */ #define LATENCY 1 #ifdef NOT_SO_PRETTY int tryToBePretty = 0; #else int tryToBePretty = 1; #endif #ifdef BEEPS_ARENT_IRRITATING int beepsArentIrritating = 1; #else int beepsArentIrritating = 0; #endif #ifdef FLASHES_ARENT_IRRITATING int flashesArentIrritating = 1; #else int flashesArentIrritating = 0; #endif #ifdef NASTY_AS_USUAL int nastiness = 1; #else int nastiness = 0; #endif #ifdef NO_COLORS_PLEASE int colorSupport = 0; #else int colorSupport = 1; #endif #ifdef NO_KEYS int hideKeys = 1; #else int hideKeys = 0; #endif int max_editable_lines = 6; int right_margin = 70; const char *postmortem = "undefined postmortem"; /* all typable characters */ char typables[] = "`1234567890[]',.pyfgcrl/=\\aoeuidhtns-;qjkxbmwvz" "~!@#$%^&*(){}\"<>PYFGCRL?+|AOEUIDHTNS_:QJKXBMWVZ\n "; char map[] = { '`', '~', '1', '!', '2', '@', '3', '#', '4', '$', '5', '%', '6', '^', '7', '&', '8', '*', '9', '(', '0', ')', '[', '{', ']', '}', 0, 3, '\'', '"', ',', '?', '.', '?', 'P', 'Y', 'F', 'G', 'C', 'R', 'L', '/', '?', '=', '+', 0, 5, 'A', 'O', 'E', 'U', 'I', 'D', 'H', 'T', 'N', 'S', '-', '_', '\\', '|', 0, 2, '<', '>', ';', ':', 'Q', 'J', 'K', 'X', 'B', 'M', 'W', 'V', 'Z', 0, 0 }; char colormap[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, -5, -5, -4, -4, -3, -3, -2, -2, 2, 2, 3, 4, 5, 0, 0, 0, 0, 0, 5, -5, -4, -3, -2, -2, 2, 2, 3, 4, 5, 0, 0, 0, 0, 0, 2, 0, 0, -5, -5, -4, -3, -2, -2, 2, 2, 3, 4, 5, 0, 0 }; int helpInterval; int helpLength; time_t nextHelp; int myGetch(char shouldBe) { int deviation; int ch; ch = getch(); if (ch != ERR) { helpInterval = 10000 + (random() % 10000); deviation = random() % 300; nextHelp = time(0) + (helpInterval + deviation) / 1000; helpLength = 1; return ch; } if (time(0) < nextHelp) { return ch; } if ((helpLength--) == 0) { helpInterval = random() % 1000; helpLength = random() % 8; } deviation = random() % 300; nextHelp = time(0) + (helpInterval + deviation) / 1000; if ((random() % 26) == 0) { return KEY_BACKSPACE; } else { return shouldBe; } } /* calculate typing speed in a given interval */ inline float calcSpeed (time_t timeStart, time_t timeFinish, int hits) { return (float) hits / (timeFinish - timeStart); } /* Import an ASCII text to use as a lesson. Allocates memory for *buf. return length of read text on success, -1 on error tabstops are skipped, as are blanks on the beginning and end of lines */ int importText (char const * const fileName, char** buf, unsigned int length) { FILE* file; int c; int i = 0; int lines = 0; int column; struct stat st; file = fopen (fileName, "r"); if (!file) { postmortem = sys_errlist[errno]; return -1; } fstat (fileno(file), &st); if (st.st_size > length) { length = st.st_size; } #if defined(LIMIT_LENGTH) && (LIMIT_LENGTH > 0) if (length > LIMIT_LENGTH) { length = LIMIT_LENGTH; } #endif *buf = (char*) malloc (length+1+1); if (!*buf) { postmortem = "memory allocation failed"; fclose (file); return -1; } column = 0; (*buf[i++]) = '\x2'; while (1) { c = fgetc (file); if (errno) { postmortem = sys_errlist[errno]; fclose (file); return -1; } if (c == EOF) { fclose (file); (*buf)[i] = '\x1'; break; } if (index(typables, c) == NULL) { continue; } if (c == '\n' || column > right_margin) { if (column > right_margin) { (*buf)[i++] = '\n'; } while (i > 0) { if ((*buf)[i-1] == ' ') { --i; } else { break; } } column = 0; ++lines; if (c == ' ') { continue; } } if (lines == max_editable_lines) { lines = 0; (*buf)[i++] = '\x1'; } else { (*buf)[i++] = (char) c; ++column; } if (i >= length - 1) { fclose (file); (*buf)[i] = '\x1'; break; } } /* strip unwanted whitespace from the end */ while (i > 0) { if ((*buf)[i-1] == ' ' || (*buf)[i-1] == '\n' || (*buf)[i-1] == '\x1') { --i; } else { break; } } (*buf)[i] = '\0'; return i; } void boxed(int x, int y, char u, char d, char pressed, int key) { if (pressed == PRESSED_REQUESTED) { attron (A_REVERSE); } if (pressed == PRESSED_BY_USER) { attron (A_BOLD); } if (colorSupport) { attron (COLOR_PAIR (7-abs(colormap[key]))); } if (tryToBePretty) { move (y+0, x); addch (ACS_ULCORNER); addch (ACS_HLINE); addch (ACS_HLINE); addch (ACS_HLINE); addch (ACS_URCORNER); move (y+1, x); addch (ACS_VLINE); addch (u); addch (' '); addch (' '); addch (ACS_VLINE); move (y+2, x); addch (ACS_VLINE); addch (' '); addch (' '); addch (d); addch (ACS_VLINE); move (y+3, x); addch (ACS_LLCORNER); addch (ACS_HLINE); addch (ACS_HLINE); addch (ACS_HLINE); addch (ACS_LRCORNER); } else { mvprintw (y+0, x, ".---."); mvprintw (y+1, x, "|%c |", u); mvprintw (y+2, x, "| %c|", d); mvprintw (y+3, x, "`---'"); } if (colorSupport) { attron (COLOR_PAIR(7)); } if (pressed == PRESSED_REQUESTED) { attroff (A_REVERSE); } if (pressed == PRESSED_BY_USER) { attroff (A_BOLD); } } void show_layout(char pressedKey, char pressed) { int key = 0; int x = 0, y = 0; if (hideKeys) { return; } while (map[key]) { while (map[key]) { char u = map[key]; char d; if (isupper(u)) { /* hack, to fix the keymap i wrote erroneusly.. */ d = u; u = tolower (d); } else { ++key; d = map[key]; } if ((u == pressedKey) || (d == pressedKey)) { boxed (x, y, d, u, pressed, key); } else { if (pressed != PRESSED_REQUESTED) { boxed (x, y, d, u, PRESSED_NOT, key); } } x += 6; ++key; } ++key; y += 4; x = map[key]; ++key; } refresh(); } void myaddnstr (char const * text, int lenght) { char *buf = malloc (lenght); char *obuf = buf; int i = lenght; while (--i) { if (*text != '\x2') { *(buf++) = *(text); } ++text; } addnstr (obuf, lenght); free (obuf); } void do_text (char * const text) { int hits, misses; int this_page_size; time_t timeStart, timeFinish, timeCurrent; float speed; char *p = text; char *i; char *this_page_start; curs_set (FALSE); show_layout(' ', PRESSED_NOT); mvaddstr (LINES - 1, 0, "[ ] Press a key to start"); i = (char*) index (text, 0x1); this_page_start = text; this_page_size = i ? i - this_page_start : strlen(this_page_start); move ((hideKeys ? 0 : 17), 0); myaddnstr (text, this_page_size); hits = 0; misses = 0; refresh(); noecho(); move (LINES - 1, 1); getch(); halfdelay (LATENCY); move (LINES - 1, 0); clrtoeol(); timeStart = 0; nextHelp = time(0) + (helpInterval / 1000); while (*p) { int ch = 0; if (*p == 0x2) { ++p; if (!timeStart) { timeStart = time(0); } } if (*p > 27) { show_layout(*p, PRESSED_REQUESTED); } do { ch = myGetch (*p); if (timeStart) { float ratio = hits - misses; ratio = (ratio < 0) ? 0 : (100.0 * ratio / hits); timeCurrent = time(0); speed = calcSpeed (timeStart, timeCurrent, hits); mvprintw (LINES - 1, 0, "CPS %.2f CPM %.2f Hits: %d Misses: %d Seconds: %d Ratio: %.2f%%", speed, speed * 60, hits, misses, time(0) - timeStart, ratio); clrtoeol(); } } while (ch == ERR); show_layout(ch, PRESSED_BY_USER); if (ch == *p || (*p == '\n' && ch == ' ')) { ++p; ++hits; } else { /* any other possibilities? */ if ( (ch == 8 || ch == KEY_BACKSPACE || ch == KEY_DC || ch == 127) && p > this_page_start) { --p; if (*p == '\x2') { --p; } } else if (ch == 27 || ch == KEY_END) { break; } else { if (beepsArentIrritating) { beep(); } if (flashesArentIrritating) { flash(); } ++misses; if (nastiness && p > this_page_start) { --hits; --p; if (*p == '\x2') { --p; } } } } move ((hideKeys ? 0 : 17), 0); i = this_page_start; attron (A_BOLD); while (i < p) { if (*i != 0x2) { addch(*i); } ++i; } if (*i == '\x2') { ++i; } attroff (A_BOLD); attron (A_REVERSE); if (*i != 0x2) { addch(*i); } ++i; attroff (A_REVERSE); while (*i && i < this_page_start + this_page_size) { if (*i != 0x2) { addch(*i); } ++i; } if (*p == 0x1) { char *next; ++p; next = (char*) index (p, 0x1); this_page_start = p; this_page_size = next ? next - this_page_start : strlen(this_page_start); move ((hideKeys ? 0 : 17), 0); clrtobot(); myaddnstr (this_page_start, this_page_size); } } timeFinish = time(0); speed = calcSpeed(timeStart, timeFinish, hits); clear(); cbreak(); if (!timeStart) { mvprintw (0, 0, "You haven't done enough to get a good benchmark."); } else { float ratio = hits - misses; ratio = (ratio < 0) ? 0 : (100.0 * ratio / hits); mvprintw (0, 0, "Elapsed time: %d seconds", timeFinish - timeStart); mvprintw (1, 0, "Total: %d Misses: %d Ratio: %.2f%%", hits, misses, ratio); mvprintw (2, 0, "CPS: %.2f CPM: %.2f", speed, speed * 60); } mvprintw (4, 0, "[ ] Press ESCAPE to continue."); move (4, 1); refresh(); while (getch() != 27); curs_set (TRUE); echo(); clear(); refresh(); } void menuInteractive() { int i, num; char buf[255]; while (1) { mvprintw (2, 0, "Dvorak7Min, Ragnar Hojland Espinosa, 1998-2003" ); mvprintw (3, 0, "enhanced by Smoke of CRAP, 1999 and Nopik, 2003"); for (i = 0; lessons[i*2]; ++i) { mvprintw (i/2 + 5, (i%2) * 40, "%2d. %s", i+1, lessons[i*2]); } move (21, 0); clrtobot(); mvprintw (21, 0, "Type a lesson number ([N]astiness [H]ide keyboard [Q]uit)? "); refresh(); echo(); getnstr (buf, sizeof(buf)); buf[0] = toupper(buf[0]); if (buf[0] == 'N') { nastiness = !nastiness; if (nastiness) mvprintw (23, 0, "Nastiness is now turned ON. Press any key."); else mvprintw (23, 0, "Nastiness is now turned OFF. Press any key."); getch(); continue; } if (buf[0] == 'H') { hideKeys = !hideKeys; if (hideKeys) mvprintw (23, 0, "Keyboard layout is now OFF. Press any key."); else mvprintw (23, 0, "Keyboard layout is now ON. Press any key."); getch(); continue; } if (buf[0] == 'Q' || buf[0] == 27) { clear(); move (0,0); refresh(); return; } num = atoi (buf); if (!buf[0] || num < 1 || num > i) { mvprintw (23, 0, "Invalid lesson number. Press any key."); getch(); continue; } clear(); refresh(); do_text(lessons[(num-1)*2+1]); } } int initColors() { start_color(); if (!has_colors()) { colorSupport = 0; return -1; } init_pair( 1, COLOR_BLUE , COLOR_BLACK ); init_pair( 2, COLOR_GREEN , COLOR_BLACK ); init_pair( 3, COLOR_CYAN , COLOR_BLACK ); init_pair( 4, COLOR_RED , COLOR_BLACK ); init_pair( 5, COLOR_MAGENTA , COLOR_BLACK ); init_pair( 6, COLOR_YELLOW , COLOR_BLACK ); init_pair( 7, COLOR_WHITE , COLOR_BLACK ); return 0; } void initApp() { initscr(); right_margin = COLS - 10; max_editable_lines = LINES - 18 - 1; helpInterval = 10000 + (random() % 10000); helpLength = 1; if (colorSupport) { initColors(); } } void closeApp() { move (0, 0); clear(); refresh(); endwin(); } int playFile(char *filename) { char *buffer; int r; int len = 0; #ifdef LIMIT_LENGTH len = LIMIT_LENGTH; #endif r = importText (filename, &buffer, len); if (r <= 0) { return -1; } do_text (buffer); return 0; } void showHelp() { printf("Usage: dvorak7min [OPTION]... [FILE]...\n\n" " -b, --bell beep on error\n" " -f, --flash flash the screen on error\n" " -u, --ugly use low ascii for artwork\n" " -n, --nastiness set nastiness on by default\n" " -k, --hidekeys hides keyboard layout\n" " --help display this help and exit\n" " --version output version information and exit\n" "\n"); } void showVersionInfo() { printf ("dvorak 7min tutor hack 1.6 - FREE Software with NO Warranty\n" "(C) 1998-2001 Ragnar Hojland Espinosa \n" "Lessons are (C) 1995 Dan Wood \n" "Enhancements in 1999 by Smoke of Crap aka Tijs van Bakel \n" "and in 2003 by Nopik aka Kamil Burzynski \n" "\n"); } int main ( int argc, char *argv[] ) { struct option long_opts[] = { { "help", 0, 0, 'H' }, { "version", 0, 0, 'V' }, { "nastiness", 0, 0, 'n' }, { "bell", 0, 0, 'b' }, { "flash", 0, 0, 'f' }, { "ugly", 0, 0, 'u' }, { "hidekeys", 0, 0, 'k' }, { 0, 0, 0, 0 } }; int opt_index = 0; int c; while (1) { c = getopt_long(argc, argv, "HVnbfuk", long_opts, &opt_index); if (c == -1) { break; } switch (c) { case 'H': showHelp(); return 1; case 'V': showVersionInfo(); return 1; case 'b': beepsArentIrritating = 1; break; case 'f': flashesArentIrritating = 1; break; case 'n': nastiness = 1; break; case 'u': tryToBePretty = 0; break; case 'k': hideKeys = 1; break; } } initApp(); if (optind < argc) { while (optind < argc) { if (playFile(argv[optind]) < 0) { closeApp(); printf ("%s: %s: %s\n", argv[0], argv[optind], postmortem); return 1; } ++optind; } } else { menuInteractive(); } closeApp(); showVersionInfo(); return 0; } dvorak7min-1.6.1/README0000644000175000017500000000242212313651307014027 0ustar martinmartinFirst of all, please read COPYING. Note that the text of the lessons is courtesy of Dan Wood , and that they are available in the original html format at http://www.karelia.com/abcd/ After that, just type make and when it's done, try running ``./dvorak7min''. If you get screwed up chars on the keyboard layout, you might want to try: rm ~/.terminfo -R and, if that doesn't work, try uncommenting the COLORS and/or the NOT_SO_PRETTY lines in the Makefile, and doing a ``make clean all''. You have a few other options in the Makefile, have a look to them. In addition of the built-in lessons, you can use any ascii file (as Smoke suggests, Gutenberg books are good idea). Just specify the filename as an argument to the program, and you are done. If you are satisfied with the program, simply make install Remember that you can set your keyboard map with loadkeys dvorak.map Btw, the backspace key should work anywhere ;) -- ____/| Ragnar Hojland (ragnar@ragnar-hojland.com) Fingerprint 94C4B \ o.O| 2F0D27DE025BE2302C =(_)= "Thou shalt not follow the NULL pointer for 104B78C56 B72F0822 U chaos and madness await thee at its end." hkp://keys.pgp.com