As I’m using Revision B, I ended up downloading source to a mount point on the sdcard (/mnt/sdcard) as it’s too easy to fill up the 2GB root device otherwise.
I recently upgraded to MediaWiki 1.21 for my personal wiki, and I was annoyed to see that LaTeX support was removed, though it and MathJax are available as extensions.
Once I installed it, I was vexed by sporadic failures in typesetting — texvc would succeed in producing an image about 20% of the time.
Eventually, I found out why — the memory limits on the wfShellExec call were set pretty low, and so most of the time it would fail to malloc the memory it needed.
If you’re having the same problem, give it a try.
Anything you write yourself to parse text will likely miss corner-cases✝ and be un-prepared for other languages.
Since BreakIterator does the job, isn’t difficult to use and has been around jdk 1.2, why not use it?
✝ odd punctuation like this, for example, when reading words.