Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.628.857 Times

lib378 0.2

  Date Added: July 07, 2010  |  Visits: 636

lib378

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



lib378 is a library for predictive text input. The API is very simple and provides dictionary autocompletion and both partial and full matching. The project can be used to get text input from input devices with few keys (like cellphones). Example: #include < stdio.h > #include < termios.h > #include < unistd.h > #include "378.h" char mygetch ( void ) { int ch; struct termios oldt, newt; tcgetattr ( STDIN_FILENO, &oldt ); newt = oldt; newt.c_lflag &= ~( ICANON | ECHO ); tcsetattr ( STDIN_FILENO, TCSANOW, ≠wt ); ch = getchar(); tcsetattr ( STDIN_FILENO, TCSANOW, &oldt ); return ch; } l378_DECLARE(); l378_KEYMAP = { [a] = 2, [b] = 2, [c] = 2, [d] = 3, [e] = 3, [f] = 3, [g] = 4, [h] = 4, [i] = 4, [j] = 5, [k] = 5, [l] = 5, [m] = 6, [n] = 6, [o] = 6, [p] = 7, [q] = 7, [r] = 7, [s] = 7, [t] = 8, [u] = 8, [v] = 8, [w] = 9, [x] = 9, [y] = 9, [z] = 9 }; static FILE* l378_dictionary; int main( const int argc, const char *argv[] ) { char c; char* s = NULL; if( !(l378_dictionary = fopen( "compressed.dict", "r" )) ) return -1; printf( " 1 2 3n" ); printf( " C abc defnn" ); printf( " 4 5 6n" ); printf( " ghi jkl mnonn" ); printf( " 7 8 9n" ); printf( " pqrs tuv wxyznn" ); printf( " TAB 0 - n" ); printf( " auto _ nextnn" ); while( n != (c = mygetch()) ) { switch( c ) { //case 0: // break; case t: if( (s = l378_match()) ) printf( "%sr", s ); continue; case -: break; case 1: printf( "ttttr" ); l378_popc(); break; case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: l378_pushc( c ); break; default: continue; } if( (s = l378_matche()) ) printf( "%sr", s ); else printf( "%sr", l378_pattern ); } printf( "n" ); fclose( l378_dictionary ); return 0; } // eof Whats New in This Release: - The API was cleaned up. - The compression algorithm was improved. - Optional bz2 support was added. - The cellphone example was updated. - A sample English dictionary was added. - Minor code fixes were made..

Requirements: No special requirements
Platforms: Linux
Keyword: Case Dictionary Fileno Others Predictive Text Printf Stdin Text Text Editing Processing
Users rating: 0/10

License: Freeware Size: 3.07 KB
USER REVIEWS
More Reviews or Write Review


LIB378 RELATED
Libraries  -  Text::Graphics 1.0001
Text::Graphics is a text graphics rendering toolkit. This is a toolkit for rendering plain text via an API like that used for graphics rendering in GUI toolkits. This package might be used when you want to do sophisticated rendering of plain...
6.14 KB  
Input Device Utilities  -  LotApps Free PDF to Text Converter 2.0
LotApps PDF To Text Converter LotApps PDF To Text Converter does extract text from PDF files, PDF to Text converter is a standalone Windows application, it does NOT need Adobe Acrobat or Adobe Reader software. PDF to Text processes at high speed...
5.73 MB  
Graphical Text Tools  -  MediaProSoft Free OCR 3.1.4
OCR (Optical Character Recognition) is one thing you always need when dealing with paper documents. It can eliminate retyping all the text that you already have on papers. MediaProSoft Free OCR is an advanced OCR tool to OCR both image and scanned...
7.13 MB  
Word Processing  -  GlobalFind 1.0
GlobalFind can search through text files for specified text and display the results in a list, your search queries are saved in case you need to perform the same search again. There is also a search & replace text option which can replace across...
490 KB  
Arcade Style Games  -  Text Text Revolution 0.11
Text Text Revolution project is a text-based ncurses DDR clone. Text Text Revolution is a text-based Dance Dance Revolution clone. It supports pyDDRs .step file format (which has now been superceeded by the .dance format), and plans to stream...
45.06 KB  
Libraries  -  Text::WikiFormat 0.79
Text::WikiFormat is a Perl module for translating Wiki formatted text into other formats. SYNOPSIS use Text::WikiFormat; my $html = Text::WikiFormat::format($raw); The original Wiki web site had a very simple interface to edit and to add...
28.67 KB  
Libraries  -  OpenOffice::OODoc::Text 2.032
OpenOffice::OODoc::Text is a Perl module for the text processing submodule of OpenOffice::OODoc. This manual chapter describes the text-oriented methods of OpenOffice::OODoc, implemented by the OpenOffice::OODoc::Text class, and inherited by the...
215.04 KB  
Text Editors  -  a2pdf 1.13
a2pdf project converts ASCII text to PDF format, with optional line/page numbering and Perl syntax highlighting. Usage: a2pdf [options] input.txt >output.pdf Options: a2pdf recognises the following command line options: --help Prints...
2.7 MB  
File Utilities  -  MuseTips Text Filter 1.1.0.850
MuseTips Text Filter is a free, lightweight and portable Windows software that lets you read, search and filter text files with ease. Text lines are instantly filtered as you type your search phrase, with all matched terms highlighted in a...
1.8 MB  
MP3 Tools  -  FlipPageMaker PDF to Text 1.0.0
Flippagemaker PDF to Text is small application that lets you perform free instantaneous conversions without the Acrobat software. This freeware is especially designed to convert your PDF (Acrobat) file to plain text. It extracts the PDF file's...
1023.62 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, UTILITIES
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Utilities  -  LPAR2RRD 4.95-4
LPAR2RRD collects performance data and generates actual, historical and future trends utilization graphs of your virtual environment. It is agentless (it receives everything from the management stations like vCenter or HMC). The product supports...
2.25 MB  
Utilities  -  Nessconnect 1.0.2
Nessconnect is a GUI, CLI and API client for Nessus and Nessus compatible servers. With an improved user interface, it provides local session management, scan templates, report generation through XSLT, charts and graphs, and vulnerability trending.
819.2 KB  
Utilities  -  Dynamic Power Management 2.6.16
The Dynamic Power Management (DPM) project explores technologies to improve power conservation capabilities of platforms based on open source software. Of particular interest are techniques applicable to running systems, adjusting power parameters...
30.72 KB  
Utilities  -  Ethernet bridge tables 2.4.37.9
Ethernet bridge tables - Linux Ethernet filter for the Linux bridge. The 2.4-ebtables-brnf package contains the ebtables+bridge-nf patch. Be sure to check out the ebtables hp. This site also contains the arptables userspace tool.
40.96 KB  
Utilities  -  SaraB 1.0.0
SaraB works with DAR (Disk ARchive) to schedule and rotate backups on random-access media (i.e. hard drives, CDs, DVDs, Zip, etc. Basically anything except magnetic tapes.) This reduces hassle for the administrator by providing an automatic backup...
20.48 KB