From b852b4dfc8d0b85d85c00963eb9b23e12b1b86cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Fri, 26 Oct 2012 00:27:45 +0700 Subject: [PATCH] First commit. --- data/check-data.pl | 85 + data/conjugation-el.xml | 189 + data/conjugation-fr.xml |12458 +++++++++++++++++++++++++ data/conjugation-it.xml | 2142 +++++ data/verbs-el.xml | 35 + data/verbs-fr.xml | 7052 ++++++++++++++ data/verbs-it.xml | 287 + deployment.pri | 126 + main.cpp | 15 + mainwindow.cpp | 114 + mainwindow.h | 51 + mainwindow.ui | 35 + mverbiste.desktop | 11 + mverbiste.pro | 69 + mverbiste.svg | 93 + mverbiste64.png | Bin 0 -> 3400 bytes mverbiste80.png | Bin 0 -> 4945 bytes mverbiste_harmattan.desktop | 11 + qtc_packaging/debian_fremantle/README | 6 + qtc_packaging/debian_fremantle/changelog | 5 + qtc_packaging/debian_fremantle/compat | 1 + qtc_packaging/debian_fremantle/control | 15 + qtc_packaging/debian_fremantle/copyright | 40 + qtc_packaging/debian_fremantle/rules | 91 + qtc_packaging/debian_harmattan/README | 6 + qtc_packaging/debian_harmattan/changelog | 5 + qtc_packaging/debian_harmattan/compat | 1 + qtc_packaging/debian_harmattan/control | 15 + qtc_packaging/debian_harmattan/copyright | 40 + qtc_packaging/debian_harmattan/manifest.aegis | 70 + qtc_packaging/debian_harmattan/rules | 91 + verbiste/FrenchVerbDictionary.cpp | 1253 +++ verbiste/FrenchVerbDictionary.h | 478 + verbiste/Makefile.am | 52 + verbiste/Makefile.in | 845 ++ verbiste/Trie.cpp | 301 + verbiste/Trie.h | 233 + verbiste/c-api.cpp | 315 + verbiste/c-api.h | 256 + verbiste/checkxml.cpp | 95 + verbiste/misc-types.cpp | 114 + verbiste/misc-types.h | 285 + verbiste/verbiste.dox | 921 ++ 43 files changed, 28307 insertions(+) create mode 100755 data/check-data.pl create mode 100644 data/conjugation-el.xml create mode 100644 data/conjugation-fr.xml create mode 100644 data/conjugation-it.xml create mode 100644 data/verbs-el.xml create mode 100644 data/verbs-fr.xml create mode 100644 data/verbs-it.xml create mode 100644 deployment.pri create mode 100644 main.cpp create mode 100644 mainwindow.cpp create mode 100644 mainwindow.h create mode 100644 mainwindow.ui create mode 100644 mverbiste.desktop create mode 100644 mverbiste.pro create mode 100644 mverbiste.svg create mode 100644 mverbiste64.png create mode 100644 mverbiste80.png create mode 100644 mverbiste_harmattan.desktop create mode 100644 qtc_packaging/debian_fremantle/README create mode 100644 qtc_packaging/debian_fremantle/changelog create mode 100644 qtc_packaging/debian_fremantle/compat create mode 100644 qtc_packaging/debian_fremantle/control create mode 100644 qtc_packaging/debian_fremantle/copyright create mode 100755 qtc_packaging/debian_fremantle/rules create mode 100644 qtc_packaging/debian_harmattan/README create mode 100644 qtc_packaging/debian_harmattan/changelog create mode 100644 qtc_packaging/debian_harmattan/compat create mode 100644 qtc_packaging/debian_harmattan/control create mode 100644 qtc_packaging/debian_harmattan/copyright create mode 100644 qtc_packaging/debian_harmattan/manifest.aegis create mode 100755 qtc_packaging/debian_harmattan/rules create mode 100644 verbiste/FrenchVerbDictionary.cpp create mode 100644 verbiste/FrenchVerbDictionary.h create mode 100644 verbiste/Makefile.am create mode 100644 verbiste/Makefile.in create mode 100644 verbiste/Trie.cpp create mode 100644 verbiste/Trie.h create mode 100644 verbiste/c-api.cpp create mode 100644 verbiste/c-api.h create mode 100644 verbiste/checkxml.cpp create mode 100644 verbiste/misc-types.cpp create mode 100644 verbiste/misc-types.h create mode 100644 verbiste/verbiste.dox diff --git a/data/check-data.pl b/data/check-data.pl new file mode 100755 index 0000000..b4b0bd3 --- /dev/null +++ b/data/check-data.pl @@ -0,0 +1,85 @@ +#!/usr/bin/perl -w + +use strict; +use XML::Parser; + + +my $numErrors = 0; +my %personTable = (); +my $curTemplate; +my $curInflection; + + +sub error +{ + my ($msg) = @_; + + print "$0: ERROR: $msg\n"; + $numErrors++; +} + + +sub handleStart +{ + my ($expat, $el, %attr) = @_; + + if ($el eq "template") + { + $curTemplate = $attr{name}; + if (!defined $curTemplate) + { + error("