nicolas-raoul/Anki-Android — pull request #96 by chrisseed (2012-09-03 13:26:03+00:00)
Title: Enhancement to Furigana Regex

Nicolas,

_This is my first attempt at a git pull request, so hopefully I've given you everything you need..._

I've made some improvements to the Regex that's used when matching the furigana/kana/kanji field prefixes which means it will now only match one or more kanji directly preceding the ruby annotation in square brackets.

This means that something like this
引っ越[こ]し
which used to match "っ越" and display こ above both now only matches "越" and displays directly above that instead.

I previously worked around it by putting spaces in but it's not very nice having to do that.

I've tested on my phone and it works, but I haven't written any unit tests I'm afraid - I haven't looked into how testing is done in Anki-Android yet.

Cheers,
Chris.