Re: [PATCH][RFC] Improve icon view line breaks



Alexander Larsson kirjoitti:
On Sun, 2005-12-11 at 22:11 +0100, Christian Neumair wrote:
The attached patch is meant to improve icon view line breaks by looking
for '.', '_' and CamelCase characters, and inserting pango hints that it
may preferably break at a particular position (i.e. treat it as end of
word). It is meant to fix bug 300790 [1], while the more interesting
discussion was going on in bug 323711 [2] between Behdad and myself.
caveats:
 - Some developers might not like breaking after CamelCase. It looks
more aesthetically, but makes FooFooBar indistinguishable from FooFoo
Bar if we break between the two words. Comments appreciated

I'm not sure handling CamelCase is right. It may be somewhat surprising
to people. What do other people think about that?

I'm inclined to think that breaking CamelCase would be desirable, unsurprising, and unproblematic specifically for developers dealing with CamelCase filenames. That's not to say there might not be other cases where that heuristic would cause surprising results...

(Desirable in this case for same reasons as with other cases; unsurprising because CamelCasing is a hack to indicate word separation without a word separation character; unproblematic because there pretty much categorically are no spaces.)

't.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]