Hello community, here is the log from the commit of package libpinyin for openSUSE:Factory checked in at 2016-09-11 00:54:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpinyin (Old) and /work/SRC/openSUSE:Factory/.libpinyin.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libpinyin" Changes: -------- --- /work/SRC/openSUSE:Factory/libpinyin/libpinyin.changes 2016-08-13 18:30:48.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libpinyin.new/libpinyin.changes 2016-09-11 00:54:40.000000000 +0200 @@ -1,0 +2,10 @@ +Thu Sep 8 08:31:51 UTC 2016 - [email protected] + +- Update to 1.6.0 + * fixes https://github.com/libpinyin/ibus-libpinyin/issues/56 + * fixes pinyin_remember_user_input function + * fixes pinyin_get_character_offset function + * fixes compute_pronunciation_possibility function + * fixes pinyin_get_character_offset function + +------------------------------------------------------------------- Old: ---- libpinyin-1.5.92.tar.gz New: ---- libpinyin-1.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpinyin.spec ++++++ --- /var/tmp/diff_new_pack.K3keZC/_old 2016-09-11 00:54:41.000000000 +0200 +++ /var/tmp/diff_new_pack.K3keZC/_new 2016-09-11 00:54:41.000000000 +0200 @@ -18,7 +18,7 @@ %define soname 9 Name: libpinyin -Version: 1.5.92 +Version: 1.6.0 Release: 0 Summary: Intelligent Pinyin IME License: GPL-2.0+ ++++++ libpinyin-1.5.92.tar.gz -> libpinyin-1.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libpinyin-1.5.92/ChangeLog new/libpinyin-1.6.0/ChangeLog --- old/libpinyin-1.5.92/ChangeLog 2016-07-27 07:36:07.000000000 +0200 +++ new/libpinyin-1.6.0/ChangeLog 2016-09-06 09:14:55.000000000 +0200 @@ -1,3 +1,10 @@ +version 1.6.0 +* bug fixes. + +version 1.5.91 +* change pinyin/phrase tables to use dbm. +* enhance pinyin key representation and pinyin parsers. + version 1.2.0 * bug fixes. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libpinyin-1.5.92/configure.ac new/libpinyin-1.6.0/configure.ac --- old/libpinyin-1.5.92/configure.ac 2016-07-27 07:36:07.000000000 +0200 +++ new/libpinyin-1.6.0/configure.ac 2016-09-06 09:14:55.000000000 +0200 @@ -5,8 +5,8 @@ # if not 1, append datestamp to the version number. m4_define([libpinyin_released], [1]) m4_define([libpinyin_major_version], [1]) -m4_define([libpinyin_minor_version], [5]) -m4_define([libpinyin_micro_version], [92]) +m4_define([libpinyin_minor_version], [6]) +m4_define([libpinyin_micro_version], [0]) m4_define(libpinyin_maybe_datestamp, m4_esyscmd([if test x]libpinyin_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi])) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libpinyin-1.5.92/src/pinyin.cpp new/libpinyin-1.6.0/src/pinyin.cpp --- old/libpinyin-1.5.92/src/pinyin.cpp 2016-07-27 07:36:07.000000000 +0200 +++ new/libpinyin-1.6.0/src/pinyin.cpp 2016-09-06 09:14:55.000000000 +0200 @@ -2488,9 +2488,6 @@ const size_t newstart = key_rest.m_raw_end; - if (newstart > offset) - return true; - const ChewingKey zero_key; if (zero_key == key) { /* assume only one key here for "'" or the last key. */ @@ -2506,7 +2503,10 @@ gfloat pinyin_poss = item.get_pronunciation_possibility(&key); if (pinyin_poss < FLT_EPSILON) - return false; + continue; + + if (newstart > offset) + return true; ++length; @@ -2530,6 +2530,9 @@ pinyin_context_t * context = instance->m_context; PhoneticKeyMatrix & matrix = instance->m_matrix; + if (0 == matrix.size()) + return false; + assert(offset < matrix.size()); _check_offset(matrix, offset); @@ -2973,7 +2976,7 @@ gfloat pinyin_poss = item.get_pronunciation_possibility(&key); if (pinyin_poss < FLT_EPSILON) - return false; + continue; /* push value */ g_array_append_val(cached_keys, key); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libpinyin-1.5.92/src/storage/phonetic_key_matrix.cpp new/libpinyin-1.6.0/src/storage/phonetic_key_matrix.cpp --- old/libpinyin-1.5.92/src/storage/phonetic_key_matrix.cpp 2016-07-27 07:36:07.000000000 +0200 +++ new/libpinyin-1.6.0/src/storage/phonetic_key_matrix.cpp 2016-09-06 09:14:55.000000000 +0200 @@ -497,8 +497,10 @@ PhraseItem & item){ assert(end < matrix->size()); - assert(matrix->get_column_size(start) > 0); - assert(matrix->get_column_size(end) > 0); + if(matrix->get_column_size(start) <= 0) + return 0.; + if(matrix->get_column_size(end) <= 0) + return 0.; g_array_set_size(cached_keys, 0); return compute_pronunciation_possibility_recur
