Pleco for Android 3.2.7 Beta 4

mikelove

皇帝
Staff member
EDIT: updated to a slightly tweaked Beta 4 with two bug fixes (thanks!)

This is mostly a double-check before releasing 3.2.7 - assuming no more significant bugs we'll probably promote this binary to the official 3.2.7 release in a day or two.

If you previously signed up for beta testing through Google Play, this new beta should show up as an update within a few hours. Otherwise, you can get it:

a) Through Google Play. Sign up for our Android Beta Testing group at:

https://groups.google.com/forum/#!forum/pleco-android-beta-testing

And then sign up for beta versions of Pleco at:

https://play.google.com/apps/testing/com.pleco.chinesesystem

after which you should be able to get it right from them. (this isn't up yet but should be in a few hours)

b) Directly from our website; APK at:

http://cdn.pleco.com/androidapps/plecodroid-150205.apk

Changes

Beta 4:
  • Fixed a crashing bug relating to clipboard reader history.
  • Fixed a bug that could cause the clipboard monitor to trigger upon copying text in Search Cards.

Beta 3:
  • Made the screen orientation lock during imports and exports, so that the dialog won't potentially disappear on a screen rotation (this proved to be much easier than actually keeping that dialog around on a screen rotation, and didn't seem like it would significantly inconvenience anyone).
  • Added a stroke count to the Radicals section of CHARS.
  • Added clipboard history to the settings backup/restore feature.
  • Added options to separately back up settings, history, or both.
  • Added information about how many other categories the card belongs to when deleting a single card in Organize.
  • Added a confirmation when restoring settings/history telling you exactly what you're about to replace.
  • Increased spacing between lines in the clipboard reader so that it now matches the spacing in the text file reader.
  • Made the "custom dict entry + card" option for unknown searches in Settings / Search Interface fall back to just creating a custom flashcard if you haven't purchased our flashcard add-on. (otherwise it would try to create a dictionary entry and give you an error)
  • Slightly increased the delay between strokes in stroke order.
  • Slightly reduced the height of header items in the definition screen.
  • Fixed some bugs in the (little-used) English wildcard search feature that could prevent matches from coming up correctly when they should be.
  • Fixed a bug that could in a few cases cause infinite bundle file downloading loops on startup.
  • Fixed missing checkboxes in Organize Cards with a non-custom sort order. (the rows were checkable but didn't have boxes)
  • Fixed a bug that kept the Move command in Organize from reliably moving cards to Uncategorized.
  • Fixed a bug that kept numeric preference edit boxes from being pre-populated with the current value of their preference.
  • Fixed a bug that could prevent numeric preferences from updating correctly after a new value was entered. (the value would be stored but it wouldn't show up on the screen)
  • Fixed a bug that could cause incorrect character breakdowns or undesirable dictionary switching when your search text ends with a 儿/兒.
  • Fixed a bug that caused tone coloring in example sentences to fail to display correct tones in a flashcard test with examples enabled before the card is revealed.
  • Fixed a crash when using the duplicate card prompt in the document reader or OCR (with tags enabled).
  • Fixed a couple of other crashes and a couple of memory leaks.

Beta 2:
  • Added a brand new backup / restore mechanism for settings and history; it's listed at the bottom of Settings. This exports data in relatively clean XML, so it's hackable, and one type of hack that might be particularly useful would be to export just your color settings, remove any that are not tone colors, and distribute that file as a sort of "tone color profile" which others can use. (we'll be doing a whole lot more with this in future releases) The format is fully cross-platform, so as of our next iOS update it should also be possible to migrate your settings and history from one platform to the other.
  • Added a 'show in dictionary' icon to the top of the flashcard test screen - tap on this button to instantly bring up a dictionary definition screen for the current card. A cool extra feature of this is that it'll also let you rapidly flick through your history of recently reviewed cards in this test by scrolling down with the list scrolling buttons.
  • Increased the maximum length of searches in history and the maximum number of saved entries in history.
  • Updated our 'show in dictionary' icon image (used to bring up a fullscreen dictionary entry from popup reader / OCR / etc, and now also flashcards) to a different design that we hope will be a bit more clear.
  • Made spaces at the end of Chinese character searches prevent longer matches (as they already do with English/Pinyin searches).
  • Tweaked several of our theme colors for better adherence to Material Design + better readability.
  • Made our system for detecting whether or not a copy of Pleco was downloaded from an app store (and should therefore not be updated separately from our website) a bit more aggressive, and added a flag to the version we're uploading to GPlay to totally disable app updates so that any Chinese app stores that both a) rip our app from GPlay without permission and b) don't correctly set the installerPackageName flag on Android will still get the correct no-updates behavior.
  • Made the Organize Cards sort option (but not the search option) available in the free version of our flashcard system.
  • Fixed a bug that could cause intermittently garbled handwriting input display on some Android 5 devices.
  • Fixed a bug that could prevent the handwriting box from retaining its contents on a screen rotate.
  • Fixed a few buggy graphics on XXXHDPI devices.
  • Fixed a bug that could cause OCR history changes to get out of sync between the history screen and the OCR screen.
  • Fixed a bug that caused transparent backgrounds in some dialogs on Android 4.
  • Fixed a bug that could cause the currently highlighted section in the sidebar to not match your actual current section.
  • Fixed incorrect tint / background colors in the flashcard dictionary switch toolbar.
  • Fixed a bug that caused the flashcard + button in the popup reader to fail to update correctly when expanding the selection so that it no longer was a valid word.
  • Fixed a crash when importing user dictionary entries with no simplified character field.
  • Fixed a bug that could cause garbled text in the headers of some dictionary entries (and possibly even an occasional crash).
  • Fixed a few other crashing bugs.

Beta 1:
  • Added a new "Day Mode Color Theme" option in Settings / Colors, allowing you to return to something much like our pre-Material-Design theme (light gray toolbars with dark gray icons) or to pick any of the Material Design colors as the basis for Pleco's app theme. Unlike our earlier toolbar color change support, this is a comprehensive reskin - changes colors of buttons, labels, example sentences / links in dictionary entries, it even changes the color of the toolbar in the Lollipop task switcher.
  • In service of the above, we've completely overhauled the way our app handles color themeing; lots of things that used to rely on fixed, tint-colored images are now generated dynamically, and down the line we should be able to make our Android app almost as customizable as our iOS app is now. We've also finally added custom tint colors to alerts and dialogs (which were missing them before).
  • Added (at long last!) the ability to customize the sort order of categories in Organize Cards. Tap on the sort button next to the magnifying glass button at the top of Organize to enable this. You can sort by anything that you can sort by in Search Cards, can apply a change to a individual category or to a category and all of its children, and can convert a fixed sort order to a custom one if you want to for example sort all of your cards by Pinyin but then adjust that order a bit.
  • Added a brand new search filtering feature for Chinese searches (characters + pronunciation included); to use it, just put a # followed by an English word (or phrase) after the Chinese portion of your search. This will filter the results to only include entries in which that English word / phrase appears. For example, "gao#tall" will return only characters pronounced "gao" with "tall" in their definitions. Prefix searches are supported - "ji#chicken" will match not only "ji" but also "jia," "jian," etc - so if you want to limit it to just the exact search term you entered, put a space before the #.
  • Added a long-press menu option in the document reader to change the speed of TTS (long-press the megaphone icon and you'll see a selectable list of speeds).
  • Added options in Settings / Search Interface to hide the flashcard + edit entry buttons that appear in the search toolbar in two-panel mode.
  • Made search results from custom dictionarly groups only show definitions from dictionaries in that group in the definition screen (rather than aggregating definitions from all dictionaries).
  • Made user dictionaries and flashcards correctly support digits in headwords (useful for old SMS expressions, military unit numbers, etc).
  • Added a "tone skip character" - an inverted question mark ¿ - for user dictionary and flashcard headword and pinyin readings; this is basically a placeholder that eats up a syllable/character on the opposite side, so that tone colors will match up even if (say) you include the number 23 (two characters) in the headword versus the three syllables er-shi-san (you'd write it as 2¿3), or if you have a character with no reading (put a ¿ in its place in the pinyin field) or a reading with no character (put a ¿ in its place in the headword field).
  • Added a "jump to appended word" option in Settings / Search Engine which will cause the search results to automatically scroll down to a newly added word if you're entering a sentence breakdown one-word-at-a-time instead of all at once.
  • Added XXXHDPI icons, for the sake of people with super-high-resolution phones (currently this means the Nexus 6, LG G3 and Galaxy Note 4, but many more are coming this year).
  • Added a stroke count above the radical listing in CHARS.
  • Added a hex color input to the color picker screen (and gave it a title matching the preference you're updating so you know which color you're about to modify).
  • Added a list of the current tag categories to the duplicate card dialog.
  • Added more robust protection against corruption / file format mismatches in saved flashcard sessions, which should result in fewer crashes when updating / reinstalling Pleco with a flashcard session in progress.
  • Made OCR remember + restore its last zoom setting.
  • Added an option in Settings / Miscellaneous to check for app updates (if you have a version of Pleco downloaded outside of an app store).
  • Made Organize Cards default to editing cards instead of categories when editing a category that contains both (matching the behavior on iOS).
  • Added a "browse demo" button to demo items in the Installed tab (not just in Paid) in Add-ons.
  • Excluded demo dictionaries from the Batch "Remap to dict" menu.
  • Started capitalizing the first letter in the edit card / edit entry definition field.
  • Added Facebook / Twitter / website / discussion forum links to our About page.
  • Updated to a slightly newer version of SQLite for a few % increase in user dictionary / flashcard performance.
  • Fixed a whole bunch of crashing bugs, including two nasty ones related to stroke order (one on devices with very old versions of Android, and one on devices with very little free RAM) and one nasty one relating to going back to the OCR screen from a child definition screen, and one which affected users on tablets with restricted profiles.
  • Fixed a bug that could prevent user dictionaries from matching correctly against long Pinyin syllables (zhuang and chuang and shuang).
  • Fixed a bug that could cause unreliable search results with intelligent segmentation and full-text Chinese searches enabled.
  • Fixed a bug that could cause intelligent segmentation to fail to include multi-character results containing characters which don't have their own single-character entries.
  • Fixed a bug that could cause the same dictionary group to be searched twice on a query, resulting in significant slowdowns in some cases.
  • Fixed a bug that could cause occasional failures to return results from valid full-text searches.
  • Fixed a bug that could cause "VARIANT OF" text to appear as part of the first definition for a word instead of above it in cases where the "variant" status applied to all of the definitions.
  • Fixed a bug that kept [+] flashcard icons from appearing in some items in the CHARS tab.
  • Fixed a bug that prevented the launcher icons from preserving the in-app back behavior in a few specific cases.
  • Fixed a bug that could cause some launcher icons to disappear when rebooting a phone with Pleco installed on an SD card.
  • Fixed an extra shadow in the dictionary browser screen.
  • Fixed a bug that made the definition screen header (uselessly) tap-selectable with category tags visible.
  • Fixed a bug that prevented "copy full entry" from working in the long-press menu from the last item in a search results list.
  • Fixed a bug that could cause the optional dictionary slider in the dictionary screen to overlap the bottom of the last definition in a way you couldn't scroll past.
  • Fixed a bug that kept the dictionary slider from reappearing after switching out of and back into the DICT tab.
  • Fixed a bug that could cause the text selection bar to totally overlap the search field (making it unusable).
  • Fixed a bug that could cause formatted text copied out of a dictionary entry to be pasted into the search box with its format preserved.
  • Fixed a bug that could allow text to overlap the search box clear button.
  • Fixed a bug that could make the context menu in Organize Cards available during editing after a move or batch operation (it should always be disabled when editing).
  • Fixed a bug that made the edit controls in Organize Cards grey out after a canceled batch operation.
  • Fixed a bug that caused audio to play on flashcards when returning to a test from Card Info.
  • Fixed a bug that could leave tap-selection boxes visible on characters (and floating over the rest of Pleco's UI) when tapping on the same character repeatedly.
 
Last edited:

HW60

状元
The way clipboard monitoring started from within Pleco (my last post in beta 2) has not changed.
 

Taichi

榜眼
Hi, Clip reader crashes when launched (manually, or by the clipboard monitoring). Sent a coulple of reports.
 

HW60

状元
It seems that you changed the input for the score filter values. So far tapping on END shows an empty field where I can enter the new value. In the latest version the actual value for END is shown with the cursor behind the last digit. As I normally want to enter a new value, it is a little bit uncomfortable to first erase the unwanted digits and to enter the right ones afterwards. But there are greater problems than that one to solve ...

If you want to keep the old value, you could show it marked for erasure, so that I can delete it with one back tab. (The same is true btw for Icon Abbreviation in Manage dictionaries, but since long long ago...).
 
Last edited:

mikelove

皇帝
Staff member
Thanks - we'll fix that selection in the final release (which we're changing anyway since there was a crashing bug in Beta 4 that we missed).
 

HW60

状元
Organize cards, search all cards, edit batch export cards: when I tap "Save" (file), Pleco changes to landscape mode and stops after some seconds (no count of cards). 2 reports sent.
 

ckatt

状元
The multiple choice score subjects still isn't working right. And the for matting is a bit off on the end of cards due message. (See image)
 

Attachments

  • Screenshot_2015-02-07-11-23-22.png
    Screenshot_2015-02-07-11-23-22.png
    158.1 KB · Views: 448

mikelove

皇帝
Staff member
@ckatt - could you email me a backup of your flashcard database? (Can't reproduce this multi-choice issue, nor can we find any relevant code changes in 327)
 

HW60

状元
I just installed a new version from Google Play with the same problem when I export cards. It is all 3.2.7, the Betas now cannot even be distinguished by their bugs ... Edit: I just found the Build information: Feb 6.

Edit:
When I try to install the exported flashcards into a user dictionary, Pleco again imports in the background without reporting the number of flashcards, this time after switching to landscape mode. Now the Betas can be distinguished again ...
 
Last edited:

mikelove

皇帝
Staff member
@Taichi - it sounds like you might be on an older beta; is this with a build date (Settings / About) before February 5th?

EDIT: never mind, seeing your other crash reports now and this one seems to still be around, thanks.

@HW60 -it sounds like your tablet may not be reporting its current orientation correctly, so that instead of simply locking the orientation we end up forcibly switching it - does it work correctly if you start off with your tablet already in landscape mode?
 
Last edited:

mikelove

皇帝
Staff member
@HW60 - so it turns out it's literally impossible to lock the current screen orientation on Android; to lock orientation you have to tell the device what orientation to lock itself in, meaning you have to detect the current orientation, and Android devices do not report their current orientation in a consistent manner. (see this StackOverflow post with many pages of code + complaints that even that code still doesn't work on some devices)

Anyway for now I think we'll take away the orientation locking code altogether and sort out the backgrounding of import/export tasks some other way in a later update.
 

mikelove

皇帝
Staff member
@HW60 - we found some old code (pre-3.0, in fact) that facilitated restoring the import cards dialog after a screen rotate, so that one at least actually should work correctly in 3.2.7 final.
 

HW60

状元
@HW60 -it sounds like your tablet may not be reporting its current orientation correctly, so that instead of simply locking the orientation we end up forcibly switching it - does it work correctly if you start off with your tablet already in landscape mode?
Probably no longer interesting after your last posts, but when I start exporting in landscape mode, Pleco switches in portrait mode and stops - just as with portrait mode first.

Locking of the tablet's orientation works too good when I imported in the background: the landscape mode did not return to portrait mode after import, even when I looked at the Dictionary - I had to exit to restore it.
 
Top