Hello community, here is the log from the commit of package ibus-libzhuyin for openSUSE:Factory checked in at 2015-12-29 12:59:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ibus-libzhuyin (Old) and /work/SRC/openSUSE:Factory/.ibus-libzhuyin.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ibus-libzhuyin" Changes: -------- --- /work/SRC/openSUSE:Factory/ibus-libzhuyin/ibus-libzhuyin.changes 2015-10-12 10:02:33.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ibus-libzhuyin.new/ibus-libzhuyin.changes 2015-12-29 12:59:23.000000000 +0100 @@ -1,0 +2,12 @@ +Fri Dec 25 06:47:28 UTC 2015 - [email protected] + +- Update to 1.7.6 + * clean up getCursorRight method + * fixes getCursorRight and selectCandidate method + * fixes getCursorRight method + * fixes probe_section_start function + * fixes getCursorRight method + * fixes processSpace method + * fixes prepareCandidates method + +------------------------------------------------------------------- Old: ---- ibus-libzhuyin-1.7.4.tar.gz New: ---- ibus-libzhuyin-1.7.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ibus-libzhuyin.spec ++++++ --- /var/tmp/diff_new_pack.oGg1JU/_old 2015-12-29 12:59:24.000000000 +0100 +++ /var/tmp/diff_new_pack.oGg1JU/_new 2015-12-29 12:59:24.000000000 +0100 @@ -17,7 +17,7 @@ Name: ibus-libzhuyin -Version: 1.7.4 +Version: 1.7.6 Release: 0 Summary: New Zhuyin engine based on libzhuyin for IBus License: GPL-2.0 ++++++ ibus-libzhuyin-1.7.4.tar.gz -> ibus-libzhuyin-1.7.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ibus-libzhuyin-1.7.4/configure.ac new/ibus-libzhuyin-1.7.6/configure.ac --- old/ibus-libzhuyin-1.7.4/configure.ac 2015-08-19 05:36:26.000000000 +0200 +++ new/ibus-libzhuyin-1.7.6/configure.ac 2015-12-11 07:12:26.000000000 +0100 @@ -22,7 +22,7 @@ m4_define([ibus_released], [1]) m4_define([ibus_major_version], [1]) m4_define([ibus_minor_version], [7]) -m4_define([ibus_micro_version], [4]) +m4_define([ibus_micro_version], [6]) m4_define(ibus_maybe_datestamp, m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi])) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ibus-libzhuyin-1.7.4/po/zh_TW.po new/ibus-libzhuyin-1.7.6/po/zh_TW.po --- old/ibus-libzhuyin-1.7.4/po/zh_TW.po 2015-08-19 05:36:26.000000000 +0200 +++ new/ibus-libzhuyin-1.7.6/po/zh_TW.po 2015-12-11 07:12:26.000000000 +0100 @@ -8,14 +8,14 @@ "Project-Id-Version: ibus-libpinyin 1.2.99\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-08-11 13:56+0800\n" -"PO-Revision-Date: 2015-06-07 15:01+0800\n" +"PO-Revision-Date: 2015-08-19 23:35+0800\n" "Last-Translator: Cheng-Chia Tseng <[email protected]>\n" "Language-Team: Peng Huang <[email protected]>\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.1\n" +"X-Generator: Poedit 1.8.4\n" #: ../src/ZYZhuyinProperties.cc:40 ../src/ZYZhuyinProperties.cc:105 msgid "Chinese" @@ -99,11 +99,11 @@ #: ../src/ZYMain.cc:108 msgid "New Zhuyin (debug)" -msgstr "新注音 (調試)" +msgstr "新注音 (除錯)" #: ../src/ZYMain.cc:109 msgid "New Zhuyin input method (debug)" -msgstr "新注音輸入法 (調試)" +msgstr "新注音輸入法 (除錯)" #: ../setup/main.py:242 msgid "Please choose a file" @@ -184,11 +184,11 @@ #: ../setup/ibus-libzhuyin-preferences.ui.h:18 msgid "Use Space Key to Show Candidates" -msgstr "" +msgstr "用空白鍵叫出候選字詞" #: ../setup/ibus-libzhuyin-preferences.ui.h:19 msgid "Show Candidates After the Cursor" -msgstr "" +msgstr "游標後方挑選候選字詞" #: ../setup/ibus-libzhuyin-preferences.ui.h:20 msgid "Inputting" @@ -200,11 +200,11 @@ #: ../setup/ibus-libzhuyin-preferences.ui.h:22 msgid "Candidate Choose Keys" -msgstr "候選詞選擇鍵" +msgstr "候選字詞選擇鍵" #: ../setup/ibus-libzhuyin-preferences.ui.h:23 msgid "Candidates per Page" -msgstr "候選詞每頁顯示個數" +msgstr "候選字詞每頁顯示個數" #: ../setup/ibus-libzhuyin-preferences.ui.h:24 msgid "Keyboard" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ibus-libzhuyin-1.7.4/src/ZYEnhancedText.cc new/ibus-libzhuyin-1.7.6/src/ZYEnhancedText.cc --- old/ibus-libzhuyin-1.7.4/src/ZYEnhancedText.cc 2015-08-19 05:36:26.000000000 +0200 +++ new/ibus-libzhuyin-1.7.6/src/ZYEnhancedText.cc 2015-12-11 07:12:26.000000000 +0100 @@ -281,6 +281,7 @@ String type, lookup, choice; get_symbol_section (enhanced_text, start_pos, end_pos, type, lookup, choice); + start_pos = end_pos; --cursor; } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ibus-libzhuyin-1.7.4/src/ZYZPhoneticEditor.cc new/ibus-libzhuyin-1.7.6/src/ZYZPhoneticEditor.cc --- old/ibus-libzhuyin-1.7.4/src/ZYZPhoneticEditor.cc 2015-08-19 05:36:26.000000000 +0200 +++ new/ibus-libzhuyin-1.7.6/src/ZYZPhoneticEditor.cc 2015-12-11 07:12:26.000000000 +0100 @@ -79,6 +79,8 @@ loadEasySymbolFile (path) || loadEasySymbolFile (PKGDATADIR G_DIR_SEPARATOR_S "easysymbol.txt"); g_free(path); + + m_moved_left = FALSE; } PhoneticEditor::~PhoneticEditor (void) @@ -122,6 +124,12 @@ STATE_USER_SYMBOL_SHOWN == m_input_state) { m_input_state = STATE_INPUT; + + if (m_moved_left) { + moveCursorRight (); + m_moved_left = FALSE; + } + update (); return TRUE; } @@ -293,6 +301,12 @@ switch (keyval) { case IBUS_Down: case IBUS_KP_Down: + if (m_config.candidatesAfterCursor () && + m_cursor == get_enhanced_text_length (m_text)) { + moveCursorLeft (); + m_moved_left = TRUE; + } + /* check phonetic or symbol section here */ prepareCandidates (); break; @@ -301,6 +315,12 @@ case IBUS_KP_Up: m_lookup_table.clear (); m_input_state = STATE_INPUT; + + if (m_moved_left) { + moveCursorRight (); + m_moved_left = FALSE; + } + break; default: @@ -581,6 +601,9 @@ if (0 == offset) return FALSE; + if (!m_config.candidatesAfterCursor ()) + m_cursor --; + erase_input_sequence (m_text, m_cursor, 1); insert_symbol (m_text, m_cursor, symbols->getType (), symbols->getLookup (), symbols->getChoice ()); @@ -713,7 +736,7 @@ section_t type = probe_section_quick (enhanced_text, start_pos); - /* only when in phonetic section, need adjustments. */ + /* when in phonetic section, need adjustments. */ if (PHONETIC_SECTION == type) { String section; get_phonetic_section (enhanced_text, start_pos, end_pos, section); @@ -725,7 +748,7 @@ assert (cursor < section_len); assert (parsed_len <= section_len); - /* only when in parsed phonetic section, need adjustments. */ + /* when in parsed phonetic section, need adjustments. */ if (cursor < parsed_len) { guint16 offset = 0; zhuyin_get_zhuyin_key_rest_offset (instance, cursor, &offset); @@ -753,6 +776,7 @@ } } + /* for symbol section. */ return m_cursor + 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ibus-libzhuyin-1.7.4/src/ZYZPhoneticEditor.h new/ibus-libzhuyin-1.7.6/src/ZYZPhoneticEditor.h --- old/ibus-libzhuyin-1.7.4/src/ZYZPhoneticEditor.h 2015-08-19 05:36:26.000000000 +0200 +++ new/ibus-libzhuyin-1.7.6/src/ZYZPhoneticEditor.h 2015-12-11 07:12:26.000000000 +0100 @@ -130,6 +130,11 @@ zhuyin_instance_vec m_instances; SymbolLookup m_easy_symbols; + + /* move left one character when cursor is at the end, + * only in candidates after cursor option. + */ + gboolean m_moved_left; }; };
