FEB
21
2002

Kernel Cousin KDE #32 Is Out

Aaron J. Seigo delivers again with Kernel Cousin KDE #32. This week's summary includes talk about DCOP for C programs, bleeding edge adventures, a XSLT KOffice filter, fixes for IRIX, the aRts CVS module and changes to make KDE comply to the Thumbnail Managing Standard.

Comments

The Thumbnail Managing Standard promotes ugly GNOME urls such as file:/// and makes the nice KDE urls like file:/ useless. I think that's annoying and unpleasant in a standard.


By ac at Thu, 2002/02/21 - 6:00am

Have you read the TMS? I ask only because I just finished, and *nowhere* in there does it specify or even mention the file:/// syntax. It does, however, once mention that you can use the file: http: or ftp: syntax to access the thumbnails (the second to last page, iirc). So either I'm missing something, they changed their standard in between when you posted and I read it, or you misread.

HAND.


By David Bishop at Thu, 2002/02/21 - 6:00am

Yes. Do you know what MD5 is? Did you see the examples? You didn't see file:///? Are you blind?

It's not hard to put 2-and-2 together, but if you still don't believe me, I will spell it out.


By ac at Thu, 2002/02/21 - 6:00am

MD5 doesn`t hash "file://".


By Anonymous at Thu, 2002/02/21 - 6:00am

It has to, otherwise http:// ftp:// and all other url:// will clash.


By ac at Thu, 2002/02/21 - 6:00am

Ah, found it the second time through. So, what was your complaint again? IIRC (and I do) file:/// is the *proper* way to specify a local file using a uri: (see http://www.w3.org/Addressing/rfc1738.txt, section 3.10). The fact is that kde provides file:/ as a convenience, that doesn't have to go away. Reread that section, and you'll see how they are talking about the canonical uri, *not* what you'll actually be typing in (no more than you'll have to reference files on the command line by typing vi file:///home/ac/.bashrc). The konq developers are more than able to expand file:/home/foo to file:///home/foo while doing the md5 hash, seeing as they can already expand ~ to /home/foo. To sum up, I still think your blowing it out of proportion, and don't actually understand what's going on.


By David Bishop at Thu, 2002/02/21 - 6:00am

I think you should look at section 3.1 yourself. It applies to "URL schemes that involve the direct use of an IP-based protocol to a specified host on the Internet", which does not apply to the "file" scheme.

// is not just there to help out the : in delimiting the scheme name from the rest of the URL, but it actually has a meaning. The meaning is that an internet hostname follows, hence why it is not used with "mailto" and "news" URLs.

The document recommends its use with "localhost" or an empty string as the internet hostname, but doesn't really delve into the issue much further.


By AC at Fri, 2002/02/22 - 6:00am

My understanding is that the file:// is necessary *for a full uri*, and is then followed by either a hostname or nothing, then the path, which is what gives us that (admittedly ugly) file:///home/foo. So kde apps can keep happily accepting file:/foo, and any requests for the full uri will (happily!) get the "correct" one in response. The same as bash accepts ~ ...

Btw, I'm sorry if at any point in the thread I seemed cross. I certainly didn't mean to appear that way, and have probably not peppered my typing with enough smileys... Here you go: :-)


By David Bishop at Fri, 2002/02/22 - 6:00am

The file:/// is how you're supposed to reference a file on the local system using a URI. GNOME developers didn't make it up. It's following standards.


By Jamin P. Gray at Thu, 2002/02/21 - 6:00am

I agree. I frequently use RMB->Copy Image Location inside Konqueror. When I paste this into a Gimp->File Open I have to remove the "file:/" because it isn't recognized. It's annoying.


By Sean Pecor at Thu, 2002/02/21 - 6:00am

It is annoying that the Gimp tries to enforce a standard by the letter. I agree that it is always good to follow and implement standards.

But comfort is equally important. I like the fact that I can type
e.g. www.gnotices.org in konqueror and it will add http://. Of course yahoo.com is not an URI by the book, but it is good enough for all USERS.

So the right thing would be to fix the limitation in gimp and other GTK/GNOME apps, so that both file:/// and file:/ are accepted like in KDE.


By Moritz Moeller-... at Fri, 2002/02/22 - 6:00am

marked


By joe99 at Sat, 2002/02/23 - 6:00am

Since it's all internal, who cares whether it's file:/// or file:/?


By David Starner at Sat, 2002/02/23 - 6:00am

Can anyone please tell me what "xslt" files are? Thank You!


By me at Thu, 2002/02/21 - 6:00am

XSLT's a language for transforming between XML document formats, although most XSLT implementations usually support folding into HTML (changing eg into or and not using sections, for instance)

I'm not a great fan of it myself because it itself is an XML language, and quickly becomes very byzantine to code in for anything remotely complex, though it is a W3C standard, and has been around since 99 so there's plenty of implementations about.


By Somebody at Thu, 2002/02/21 - 6:00am

A xslt file allows you to convert a xml file in what you want. For example, kword in xsl:fo, rtf, html or your own xml format.

It work with templates. When a template is found ( == a markup), it execute the "code" of the template to generate the output fot this markup and for all the child markup.

Currently, just a xsl:fo xslt file exist in cvs only for tests.


By Robert Jacolin at Fri, 2002/02/22 - 6:00am

"A xslt file allows you to convert a xml file in what you want. For example, kword in xsl:fo, rtf, html or your own xml format."

... or, of course, an Abiword or OpenOffice document, scince AFAIK they all - as well as KOffice - use some XML format. Seems to be a Good Thing.

Unfortunatly, at least KOffice files aren't "plain" XML, but a tarball containing several XML and Non-XML files (no idea about the others, but I wouldn't be surprised if they did something similar), so simply applying a stylesheet will not be enough. Not the best design choice, IMHO.


By Henrik at Sat, 2002/02/23 - 6:00am