I hope you team to change something to fix this problem. If you want
my help, just let me know.
Yes, this problem is known. In FBReader C++ we use liblinebreak
library for breaking text in any language including Chinese. For
FBReaderJ we plan to write a Java wrapper for liblinebreak and then it
will be possible to support Chinese too.
Best,
-- Nikolay
Thanks.
for (int charPos = offset; charPos < end; ++charPos) {
final char ch = data[charPos];
// if ((ch == ' ') || (ch <= 0x0D)) {
// if (firstNonSpace != -1) {
// addWord(data, firstNonSpace, charPos - firstNonSpace, myOffset + (firstNonSpace - offset));
// elements.add(hSpace);
// spaceInserted = true;
// firstNonSpace = -1;
// } else if (!spaceInserted) {
// elements.add(hSpace);
// spaceInserted = true;
// }
// } else if (firstNonSpace == -1) {
// firstNonSpace = charPos;
// }
if ((ch == ' ') || (ch <= 0x0D)) {
elements.add(hSpace);
}else{
addWord(data,charPos,1,myOffset+(charPos-offset));
> --
>
> You received this message because you are subscribed to the Google Groups "FBReader" group.
> To post to this group, send email to fbre...@googlegroups.com.
> To unsubscribe from this group, send email to fbreader+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fbreader?hl=en.
>
>