Skip to content

Commit

Permalink
add more languages detection functions from https://bitbucket.org/med…
Browse files Browse the repository at this point in the history
…oc/uchardet-enhanced ; add test cases; add language extention generate tool
  • Loading branch information
yhfudev committed Jan 19, 2015
1 parent 33b534a commit 39327f5
Show file tree
Hide file tree
Showing 109 changed files with 986,663 additions and 395 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBDIRS=src pkgconfig utils
SUBDIRS=src pkgconfig utils langstats
DISTCLEANFILES =

EXTRA_DIST=autogen.sh autoclean.sh ChangeLog
Expand Down
3 changes: 2 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ aclocal
automake -a -c
autoconf

./configure --enable-static --enable-shared --enable-debug --prefix=`pwd`/aaa --disable-icu
./configure --enable-static --enable-shared --enable-debug --prefix=/usr --disable-icu
make clean
make ChangeLog
make dist
#make
#make distclean

1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ AC_OUTPUT(Makefile
pkgconfig/Makefile
pkgconfig/libucd.pc
rpm/libucd.spec
langstats/Makefile
utils/Makefile
)
AC_OUTPUT
63 changes: 63 additions & 0 deletions langstats/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@

EXTRA_DIST = mkpairmodel.py README.txt
EXTRA_DIST += \
french/french_WINDOWS-1252.txt \
french/charstats_french_WINDOWS-1252.txt \
$(NULL)

noinst_PROGRAMS=mkcharstats
#bin_PROGRAMS=mkcharstats

noinst_HEADERS = \
$(NULL)

mkcharstats_SOURCES= \
mkcharstats.cpp \
$(NULL)

# force the autoconf use g++ to link the c program with c++ lib
#dummy.cpp:
# touch $@

mkcharstats_LDADD=

# add the required lib to the end of link command line
#mkcharstats_LDADD+=$(LIBUCD_CFLAGS) $(LIBUCD_LIBS)

#mkcharstats_CPPFLAGS = $(LIBUCD_CFLAGS) $(AM_CPPFLAGS)
#mkcharstats_LDFLAGS = $(LIBUCD_LIBS) $(AM_LDFLAGS)

AM_LDFLAGS=$(OPTS)
AM_CPPFLAGS=$(OPTS)

DEFS+= \
`getconf LFS_CFLAGS` \
`getconf LFS64_CFLAGS` \
-D_GNU_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-DHAVE_MMAP64=1 \
-DUSE_FINDHTML=1 \
$(NULL)

#AM_CPPFLAGS+= \
-I$(top_srcdir)/src \
-I$(top_builddir)/include/ \
$(NULL)

#AM_LDFLAGS += \
-L$(top_builddir)/src/ \
`getconf LFS_LDFLAGS` \
`getconf LFS64_LDFLAGS` \
$(NULL)

if DEBUG
# use "valgrind --tool=memcheck --leak-check=yes" to check memory leak, MemWatch will drag the program.
#DEFS+=-DMEMWATCH
DEFS+= -DDEBUG=1
AM_LDFLAGS += -lbfd
AM_CPPFLAGS+=-g -Wall

else
AM_CPPFLAGS+=-O3 -Wall
endif

Binary file added langstats/czech/charstats_czech_iso-8859-2.txt
Binary file not shown.
Loading

0 comments on commit 39327f5

Please sign in to comment.