1. 24 Mar, 2013 3 commits
    • Mathieu Bridon's avatar
      i18n: Add Mainland China translation · 4ec6d2b4
      Mathieu Bridon authored
      4ec6d2b4
    • Mathieu Bridon's avatar
      Work around integer overflow in pygobject on 32 bits systems · 6fe71050
      Mathieu Bridon authored
      This is causing a bug for us, where all input from the user is doubled
      on 32 bits systems.
      
      The workaround is not pretty, but it's needed until most distros ship a
      fixed version. :(
      6fe71050
    • Mathieu Bridon's avatar
      Stop bundling pycanberra · e61f3513
      Mathieu Bridon authored
      It came to my attention that pycanberra is LGPLv2 only, while IBus
      Cangjie is LGPLv3+.
      
      The mix of the two, bundled together might be problematic, so to avoid
      any issue, dropping our copy of pycanberra is the easiest way out.
      
      The code was already handling errors to play sound anyway (no sound
      would be played, so let's generalize that to the case where pycanberra
      is just not available.
      e61f3513
  2. 14 Mar, 2013 3 commits
    • Mathieu Bridon's avatar
      Really automatically clear on errors · 8a6dca08
      Mathieu Bridon authored
      Commit 07c6055d introduced a fix for issue #22, so that we now
      automatically clear the current input on a user mistake.
      
      This commit just makes sure we actually always do that.
      
      Specifically, we were missing the case where we had already reached the
      maximum input length.
      
      This commit also adds a unit test, to make sure we do not regress in the
      future.
      8a6dca08
    • Mathieu Bridon's avatar
      Simplify some code · 5a48eb3c
      Mathieu Bridon authored
      If we're using the overridden constructor from 1.5, we might as well use
      it completely, as it creates the IBus.Text for us.
      5a48eb3c
    • Mathieu Bridon's avatar
      Fallback to the IBus.Property.new() constructor · 9fd4cf74
      Mathieu Bridon authored
      IBus 1.5.x introduced some very nice GI overrides for its classes, which
      make the API much more Python-friendly.
      
      I had refrained from using them though, because I wanted to keep the
      compatibility with Python 1.4.2 as it is still used on (at least) Ubuntu
      13.04 and Debian Sid.
      
      However, when I worked on the IBus.Property stuff, I didn't pay enough
      attention and used the overridden constructor, which doesn't exist on
      IBus 1.4.2.
      
      This fixes issue #23.
      9fd4cf74
  3. 10 Mar, 2013 13 commits
  4. 21 Feb, 2013 1 commit
    • Mathieu Bridon's avatar
      Port to the new pycangjie API · 70ec844c
      Mathieu Bridon authored
      Note that characters are not sorted by frequency for us any more, but
      instead libcangjie gives us objects which have the frequency as one
      of their attributes, so we're now sorting ourselves.
      70ec844c
  5. 09 Feb, 2013 12 commits
  6. 05 Feb, 2013 5 commits
    • Mathieu Bridon's avatar
      Regenerate our translations · 1c1be1db
      Mathieu Bridon authored
      1c1be1db
    • Mathieu Bridon's avatar
      Make the property label translatable · 4ee32bfa
      Mathieu Bridon authored
      This solution sucks, because we're hardcoding the gettext package in
      src/config.py.
      
      The only alternative I could think of was to generate src/config.py at
      build time, as it used to be.
      
      But then that was making unit testing impossibly hard.
      
      So if I have to choose between (i18n + unit tests) and "code purity",
      the former appears **much** more appealing.
      
      At least I'm adding a FIXME item and a note in configure.ac.
      4ee32bfa
    • Mathieu Bridon's avatar
      setup: Move the version combobox entirely to the UI file · 0fbc9bc8
      Mathieu Bridon authored
      This is just much nicer than how we were handling the model of the
      combobox.
      
      Also, it means these strings are finally translatable!
      0fbc9bc8
    • Mathieu Bridon's avatar
      De-uglify some code · 292252f0
      Mathieu Bridon authored
      292252f0
    • Mathieu Bridon's avatar
      Make config.py a proper Python source · 545dfd28
      Mathieu Bridon authored
      This was just a huge pain to deal with in the autootls boilerplate when
      building or installing, and it's becoming impossible with unit tests.
      
      The scripts are already generated (mainly because the path to Python in
      the shebang is computed at configure time), so let's move all the
      configure/build time generation there.
      545dfd28
  7. 03 Feb, 2013 3 commits
    • Mathieu Bridon's avatar
      Drop useless method · 601138b5
      Mathieu Bridon authored
      This now doesn't do anything more than the parent method.
      601138b5
    • Mathieu Bridon's avatar
      Don't clear the input for all commits · 4371a97e
      Mathieu Bridon authored
      In some case, we want to commit a character but not clear the input.
      
      This is desired for example when inputting a fullwidth character.
      
      The proper fix is to only clear when needed, and not in the commit_text
      method.
      4371a97e
    • Mathieu Bridon's avatar
      quick: Don't treat * as a wildcard · ec4b1660
      Mathieu Bridon authored
      The concept of wildcards makes no sense in Quick. As such, we need to
      treat the star key differently for Quick and Cangjie.
      ec4b1660