[fix] making transliteration path relative to data dir
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#define LIBPOSTAL_DICTIONARIES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "dictionaries"
|
#define LIBPOSTAL_DICTIONARIES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "dictionaries"
|
||||||
#define LIBPOSTAL_GEONAMES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geonames"
|
#define LIBPOSTAL_GEONAMES_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geonames"
|
||||||
#define LIBPOSTAL_GEODB_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geodb"
|
#define LIBPOSTAL_GEODB_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "geodb"
|
||||||
|
#define LIBPOSTAL_TRANSLITERATION_DIR LIBPOSTAL_DATA_DIR PATH_SEPARATOR "transliteration"
|
||||||
|
|
||||||
#define GEODB_BLOOM_FILTER_SIZE 100000000
|
#define GEODB_BLOOM_FILTER_SIZE 100000000
|
||||||
#define GEODB_BLOOM_FILTER_ERROR 0.001
|
#define GEODB_BLOOM_FILTER_ERROR 0.001
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#define LATIN_ASCII "latin-ascii"
|
#define LATIN_ASCII "latin-ascii"
|
||||||
|
|
||||||
#define DEFAULT_TRANSLITERATION_PATH "../data/transliteration/transliteration.dat"
|
#define DEFAULT_TRANSLITERATION_PATH LIBPOSTAL_TRANSLITERATION_DIR PATH_SEPARATOR "transliteration.dat"
|
||||||
|
|
||||||
#define MAX_TRANS_NAME_LEN 100
|
#define MAX_TRANS_NAME_LEN 100
|
||||||
|
|
||||||
@@ -170,4 +170,4 @@ bool transliteration_table_save(char *filename);
|
|||||||
bool transliteration_module_setup(char *filename);
|
bool transliteration_module_setup(char *filename);
|
||||||
void transliteration_module_teardown(void);
|
void transliteration_module_teardown(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user