cld 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/cld/Makefile.am +28 -0
- data/ext/cld/Makefile.in +790 -0
- data/ext/cld/aclocal.m4 +8895 -0
- data/ext/cld/build_aux/config.guess +1500 -0
- data/ext/cld/build_aux/config.sub +1616 -0
- data/ext/cld/build_aux/depcomp +584 -0
- data/ext/cld/build_aux/install-sh +507 -0
- data/ext/cld/build_aux/ltmain.sh +8745 -0
- data/ext/cld/build_aux/missing +367 -0
- data/ext/cld/configure +17362 -0
- data/ext/cld/configure.ac +14 -0
- data/ext/cld/extconf.rb +2 -0
- data/ext/cld/languages/internal/languages.cc +1 -2
- data/lib/cld.rb +1 -1
- data/lib/cld/version.rb +1 -1
- metadata +13 -3
- data/ext/cld/Makefile +0 -31
data/ext/cld/extconf.rb
CHANGED
@@ -58,8 +58,7 @@ static const LanguageInfo kLanguageInfoTable[] = {
|
|
58
58
|
{ "IRISH", "ga", "gle", NULL},
|
59
59
|
{ "GALICIAN", "gl", "glg", NULL},
|
60
60
|
// Impossible to tell Tagalog from Filipino at the moment.
|
61
|
-
|
62
|
-
{ "TAGALOG", NULL, "fil", NULL},
|
61
|
+
{ "TAGALOG", "tl", "tgl", NULL},
|
63
62
|
{ "TURKISH", "tr", "tur", NULL},
|
64
63
|
{ "UKRAINIAN", "uk", "ukr", NULL},
|
65
64
|
{ "HINDI", "hi", "hin", NULL},
|
data/lib/cld.rb
CHANGED
@@ -16,6 +16,6 @@ module CLD
|
|
16
16
|
end
|
17
17
|
|
18
18
|
GEM_ROOT = File.expand_path("../../", __FILE__)
|
19
|
-
ffi_lib "#{GEM_ROOT}/ext/cld/cld.so"
|
19
|
+
ffi_lib "#{GEM_ROOT}/ext/cld/lib/cld.so"
|
20
20
|
attach_function "detect_language_ext","detectLanguageThunkInt", [:buffer_in, :bool], ReturnValue.by_value
|
21
21
|
end
|
data/lib/cld/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: cld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.7.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jason Toy
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2013-02-14 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|
@@ -51,7 +51,9 @@ files:
|
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
53
53
|
- cld.gemspec
|
54
|
-
- ext/cld/Makefile
|
54
|
+
- ext/cld/Makefile.am
|
55
|
+
- ext/cld/Makefile.in
|
56
|
+
- ext/cld/aclocal.m4
|
55
57
|
- ext/cld/base/basictypes.h
|
56
58
|
- ext/cld/base/build_config.h
|
57
59
|
- ext/cld/base/casts.h
|
@@ -71,7 +73,15 @@ files:
|
|
71
73
|
- ext/cld/base/template_util.h
|
72
74
|
- ext/cld/base/type_traits.h
|
73
75
|
- ext/cld/base/vlog_is_on.h
|
76
|
+
- ext/cld/build_aux/config.guess
|
77
|
+
- ext/cld/build_aux/config.sub
|
78
|
+
- ext/cld/build_aux/depcomp
|
79
|
+
- ext/cld/build_aux/install-sh
|
80
|
+
- ext/cld/build_aux/ltmain.sh
|
81
|
+
- ext/cld/build_aux/missing
|
74
82
|
- ext/cld/cld_encodings.h
|
83
|
+
- ext/cld/configure
|
84
|
+
- ext/cld/configure.ac
|
75
85
|
- ext/cld/encodings/compact_lang_det/#cldutil.cc#
|
76
86
|
- ext/cld/encodings/compact_lang_det/#cldutil.h#
|
77
87
|
- ext/cld/encodings/compact_lang_det/#compact_lang_det_impl.h#
|
data/ext/cld/Makefile
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
CFLAGS=-fPIC -I. -O2 -DCLD_WINDOWS
|
2
|
-
LDFLAGS=-L.
|
3
|
-
CC=g++
|
4
|
-
AR=ar
|
5
|
-
SOURCES=encodings/compact_lang_det/cldutil.cc \
|
6
|
-
encodings/compact_lang_det/cldutil_dbg_empty.cc \
|
7
|
-
encodings/compact_lang_det/compact_lang_det.cc \
|
8
|
-
encodings/compact_lang_det/compact_lang_det_impl.cc \
|
9
|
-
encodings/compact_lang_det/ext_lang_enc.cc \
|
10
|
-
encodings/compact_lang_det/getonescriptspan.cc \
|
11
|
-
encodings/compact_lang_det/letterscript_enum.cc \
|
12
|
-
encodings/compact_lang_det/tote.cc \
|
13
|
-
encodings/compact_lang_det/generated/cld_generated_score_quadchrome_0406.cc \
|
14
|
-
encodings/compact_lang_det/generated/compact_lang_det_generated_cjkbis_0.cc \
|
15
|
-
encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz.cc \
|
16
|
-
encodings/compact_lang_det/generated/compact_lang_det_generated_deltaoctachrome.cc \
|
17
|
-
encodings/compact_lang_det/generated/compact_lang_det_generated_quadschrome.cc \
|
18
|
-
encodings/compact_lang_det/win/cld_htmlutils_windows.cc \
|
19
|
-
encodings/compact_lang_det/win/cld_unilib_windows.cc \
|
20
|
-
encodings/compact_lang_det/win/cld_utf8statetable.cc \
|
21
|
-
encodings/compact_lang_det/win/cld_utf8utils_windows.cc \
|
22
|
-
encodings/internal/encodings.cc \
|
23
|
-
languages/internal/languages.cc \
|
24
|
-
thunk.cc
|
25
|
-
|
26
|
-
install:
|
27
|
-
rm -f *.o
|
28
|
-
rm -f libcld.a
|
29
|
-
$(CC) -c $(CFLAGS) $(SOURCES)
|
30
|
-
$(AR) rcs libcld.a *.o
|
31
|
-
$(CC) -DCLD_WINDOWS -I. -L. -shared -o cld.so -lstdc++ *.o
|