Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.2.2 OS: Linux In file tooltips preview of txt file doesn't show non-latin1. I don't know which font is used there but: Reasons can be: - font is used which doesn't have those letters - use misc-fixed. AFAIK this is standard X font and should be in most places - encoding isn't properly recognized and/or applied Next three lines is testcase in iso-8859-2 encoding: ł±ka bł±dzi ćwicz±c łódkę »aä
What's your locale encoding?
Subject: Re: File tooltips with txt files dont show non-latin1 letters > What's your locale encoding? iso-8859-2
Subject: Re: New: File tooltips with txt files dont show non-latin1 letters > Reasons can be: > - font is used which doesn't have those letters - use misc-fixed. AFAIK > this is standard X font and should be in most places > - encoding isn't properly recognized and/or applied > Next three lines is testcase in iso-8859-2 encoding: > ł±ka bł±dzi ćwicz±c > łódkę > »aä Hello, I just looked what bugs.kde.org did with my testcase... (utf?) If anybody is interested in fixing it I can send another testcase on priv.
I am making small audit of 'my' bugs: still unresolved.
Created attachment 4036 [details] Testcase for non-latin1 letters in file-tooltips Testcase for bug. My locale is iso-8859-2
Your attachment contains the string "~/h.txt". Apparenly Konqueror sends what you had typed for filename when it can't find/open the file for upload.
Created attachment 4041 [details] Real testcase for iso-8859-2
Subject: Re: File tooltips with txt files dont show non-latin1 letters Dnia Thursday 08 of January 2004 01:22, Thiago Macieira napisał: > ------- Your attachment contains the string "~/h.txt". Apparenly > Konqueror sends what you had typed for filename when it can't find/open > the file for upload. Looks like a bug in Konq. Should evaluate such things like ~. m.
Still doesn't show non-latin1 chars in filetooltips. Also spotted problems with some non-us-ascii chars.
*** Bug 79942 has been marked as a duplicate of this bug. ***
Confirm, and note that this is not easily fixable: it used a special tiny font in share/apps/konqueror/pics/thumbnailfont_7x4.png, under your main KDE prefix to draw things, and that only has latin1-coverage :-(
> Confirm, and note that this is not easily fixable: > it used a special tiny font in > share/apps/konqueror/pics/thumbnailfont_7x4.png, under your main KDE > prefix to draw things, and that only has latin1-coverage :-( This is _not_ special font. This is commonly available misc-fixed in 6pt size font. It has wonderful coverage of utf-8. I understand using directly font from the system would be hard but don't see special obstacles to create: thumbnailfont_iso-8859-1.png, thumbnailfont_iso-8859-2.png thumbnailfont_iso-8859-3.png ... thumbnailfont_iso-8859-15.png plus cyrillic etc. And use it depending on system settings (maybe per file encodings?). Or even create whole big utf table. m.
Still exists for SVN of 10.06.2006
I suggest: 1. allow thumbnailfont_7x4.png grow to cover all needed characters. 2. characters that are not covered by this font be visible, at least as rectangles. The current behaviour (display non-latin1 charactes like spaces) confuses because it seems that on-latin1 file is empty. I have: 1. a patch for kdebase-3.5.8/kioslave/thumbnail/textcreator.cpp that provides suggested behaviour (*very* simple patch) 2. modified thumbnailfont_7x4.png: a) 0x0 character is a rectangle now; b) Cyrillic letters at 0x401, 0x410-0x44f, 0x451. (These letters are quickly drawn by hands, they may be imperfect, but look nice for me). c) all characters between latin1 and cyrillic are now squares like 0x0. I think everyone can add more characters of interest, or re-render the whole 7x4 font onto this file. The size of that png file is 1397 bytes only.
Created attachment 23608 [details] 1. can read bigger thumbnail font file; 2. displays characters uncovered by font file as 0x0 character
Created attachment 23609 [details] font with 1) cyrillics added; 2) squares for unknown characters
Note: these works for me. My system encoding is utf-8. I did not test that on other systems.
Created attachment 24306 [details] The above fonts file with Polish characters added I entered the Polish characters. They should be correctly placed, but I haven't tested it in KDE. The characters that could not be reasonably pictured because of the size constrains are substituted with their latin-1 base characters, but these letters are not that common anyway.
I've tested it with KDE 3.5.9 on Debian. LANG=pl_PL.UTF-8. Non latin-1 characters don't shows up in preview, neither when file is coded in iso-88592-2, nor when file is in utf-8. When file is opened, polish characters looks good.
Ajuc, Did you use the patch of comment #15 together with the font file of comment #18? (actually, patch is required) What do you mean by "don't show up"? Does it look like empty space? Like a rectangle? Could you please file a utf-8 text with polish characters you tested?
In the preview part of dolphin or konqueror svn trunk r828814 the non ascii don't show up, they look like spaces.
Fixed in today trunk - both in konqueror and dolphin