Review Request: Improved Text Thumbnailer

Christoph Feck christoph at maxiom.de
Wed Jun 10 18:47:51 BST 2009



> On 2009-06-07 07:32:56, Darío Andrés wrote:
> > As bug 188355 was fixed then this thumbnailer is going to work even with files with non-ascii chars (I'm not an encoding expert :) )
> > 
> > Here, using the last version of the patch on kdelibs svn rev. 978201 / kdebase svn rev. 978202:
> > I tested on a UTF8 text file with special chars "áñ€" and the text thumbnail doesn't show them properly. It prints something like "áñ⟬"
> > My system encoding is es_AR.utf8
> >

Thanks Dario for testing.

I have to admit that I never used the encoding detector, and it may be possible that I have to call it differently. Maybe you could upload a testfile (here? to bko?) and someone in the know could check why if fails to decode the text correctly.


- Christoph


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/760/#review1276
-----------------------------------------------------------


On 2009-05-26 14:29:16, Christoph Feck wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/760/
> -----------------------------------------------------------
> 
> (Updated 2009-05-26 14:29:16)
> 
> 
> Review request for Dolphin and kdelibs.
> 
> 
> Summary
> -------
> 
> I originally posted this to k-c-d, but I did not get any feedback. I fixed the "fixed pitch" issue compared to the initial patch.
> 
> 
> Here is the original description:
> 
> Looking at bug 169381 "Text files preview does not support international 
> symbols" I wondered, if it wouldn't be better to just let Qt render the text, 
> instead of hardcoding a primitive bitmap font.
> 
> What I present here is an initial patch to fix that bug, but I have a few 
> questions/issues, so please give feedback.
> 
> * Not sure if KEncodingDetector should be used here, and if I used it 
> correctly. The idea was that the text thumbnailer should handle any text, but 
> I do not know what types of files (UTF-16?) trigger that thumbnailer.
> 
> * I added code to use standard Base/Text colors, but as all mime icons are 
> white, I commented out that, and used the old hardcoded colors.
> 
> * The font size is set to 7 pixels, but grows up to 10 pixels for larger 
> icons. People that prefer pixel sharp fonts will probably have antialiasing 
> disabled, so please try it with your font setup, if it is actually readable.
> 
> * Not sure if that is a bug fix, or a new feature (4.3 or 4.4 ... )
> 
> 
> This addresses bug 169381.
>     https://bugs.kde.org/show_bug.cgi?id=169381
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdebase/runtime/kioslave/thumbnail/CMakeLists.txt 973058 
>   /trunk/KDE/kdebase/runtime/kioslave/thumbnail/textcreator.h 973058 
>   /trunk/KDE/kdebase/runtime/kioslave/thumbnail/textcreator.cpp 973058 
> 
> Diff: http://reviewboard.kde.org/r/760/diff
> 
> 
> Testing
> -------
> 
> Compiles against trunk, works okay for the text files I have. You may need to delete .thumbnails cache to see the effect.
> 
> 
> Thanks,
> 
> Christoph
> 
>





More information about the kde-core-devel mailing list