Discussion:
Word wrapping in Tweak
Fournier Eric
2006-10-19 21:10:02 UTC
Permalink
What's the story with MultiCompositionScanner? The version I have in
my (not too recently updated) Tweak image is used by CTextComposer as
the scanner, and is the reason word wrapping seems broken in Tweak.

I regressed to CompositionScanner, which got word wrapping back at
the cost of multi-lingual compatibility (?).

I was just wondering if MultiCompositionScanner had progressed beyond
12/2002 (timestamps seen in there).

Eric Fournier
University of Minnesota
Office of Information Technology
***@umn.edu
Andreas Raab
2006-10-20 03:25:29 UTC
Permalink
We fixed this a long time ago. If you look at
MultiCharacterScanner>>scanCharactersFrom:to:in:rightX:stopConditions:kern:
this method should be from '05 with the main difference being that the
(broken) call to basicScanCharacters... is taken out.

Cheers,
- Andreas
What's the story with MultiCompositionScanner? The version I have in my
(not too recently updated) Tweak image is used by CTextComposer as the
scanner, and is the reason word wrapping seems broken in Tweak.
I regressed to CompositionScanner, which got word wrapping back at the
cost of multi-lingual compatibility (?).
I was just wondering if MultiCompositionScanner had progressed beyond
12/2002 (timestamps seen in there).
Eric Fournier
University of Minnesota
Office of Information Technology
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Fournier Eric
2006-10-20 14:49:40 UTC
Permalink
I have this version of
MultiCharacterScanner>>scanCharactersFrom:to:in:rightX:stopConditions:ke
rn: in my image:

ar 4/12/2005 19:53 · scanning · 2 implementors · in change sets:
5994-004-systemMod 6651ExternalCleanup 6662WideNames

But word wrapping is still occurring in the middle of words in my image.

I found differences between MultiCompositionScanner and
CompositionScanner in crossedX, notably that breakAtSpace is set to
false in setFont, causing crossedX to drop to the clause at the
bottom commented:

"It wasn't a space, but anyway this is where we break the line."

So, as shipped the class will always break the line anywhere. But
setting breakAtSpace true did not seem to fix to problem. Also, i
tried initializing MultiCharacterScanner:

(MultiCharacterScanner(class)>>initialize

with no effect. I can see the wrapping being broken in the first two
windows you open when Tweak starts up as downloaded straight off impara.

-- Eric
Post by Andreas Raab
We fixed this a long time ago. If you look at
kern: this method should be from '05 with the main difference being
that the (broken) call to basicScanCharacters... is taken out.
Cheers,
- Andreas
Post by Fournier Eric
What's the story with MultiCompositionScanner? The version I have
in my (not too recently updated) Tweak image is used by
CTextComposer as the scanner, and is the reason word wrapping
seems broken in Tweak.
I regressed to CompositionScanner, which got word wrapping back at
the cost of multi-lingual compatibility (?).
I was just wondering if MultiCompositionScanner had progressed
beyond 12/2002 (timestamps seen in there).
Eric Fournier
University of Minnesota
Office of Information Technology
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Continue reading on narkive:
Loading...