Article View: news.software.readers
Article #7545Re: European character sets
From: Kosta Kostis
Date: Thu, 27 Jan 1994 14:56
Date: Thu, 27 Jan 1994 14:56
102 lines
5567 bytes
5567 bytes
In <2i2ktk$i3b@erinews.ericsson.se> etxmesa@eos.ericsson.se (Michael Salmon) writes: >In article <0uBRtAiFBh107h@live.blues.sub.de> >kosta@live.blues.sub.de (Kosta Kostis) writes: >|> In <OzzQtAmHBh107h@live.blues.sub.de> kosta@live.blues.sub.de (Kosta Kostis) writes: >|> >In <1994Jan19.164402.24871@ericsson.se> etxmesa@eos.ericsson.se (Michael Salmon) writes: >|> >>GNU has distributed recode that takes care of most of the world's >|> >>character sets, you might like to try it out. >|> >|> >You claim recode covers "most of the world's character sets"? >|> >That's interesting. Which ones actually do you talk about? >It doesn't handle Adobe's standard encoding vector and I don't think it >handles koi8-r. I was going to post a list but I guess that it handles >around 100 character set I didn't bother. To be more precise, GNU recode is now based on RFC-1345. RFC-1345 contains errors and uses very bogus and unnecessary mnemonics for describing Character Encodings. This statement may sound a bit rude, but it describes the reality. Recode 3.3 is far from being universal. It started as a specialized tool for French encodings and has become some sort of "monster" now. IMHO it's design roots renders it hard to maintain and extend. Although it's nice it "speaks" some TeX-input variants and stuff like that, this is not needed for the task we were initially talking about. We were talking about Code Converters suitable for *Usenet* software and considering the size and some other factors, GNU recode sure is is not the best choice. Usually you need a converter from/to the "native" Encoding and the "Network" Encoding and not zillions of options to choose from eating up your memory (especially under DOS). I've had a look at tcs these days. Although it's quite impressive how many 16-bit Character Encodings are supported, the program does not really use a very much superior design compared to recode. Conversions are done either using some sort of algorithm (and therefore some special code) or using numeric tables. Image yourself trying to find a "bug" in such a table. Don't! :) Try to compile the packages under MS-DOS. It's a pain, if not "impossible" (meaning far too much work). The package mentioned below compiles independend from the OS and only requires ANSI-C. ftp.uni-erlangen.de:pub/doc/ISO/charsets/trans096.tar.gz The approach used for the package is somehow different. The idea behind it is that coding in binary isn't advised, if you have an assembler. =;^) Actually all Character Encoding Description Files are readable text files using ISO/IEC 10646 names. If you want to add a new Character Encoding to the package, just add a Description File. A program called "transtab" generates, depending on the parameters given: a) a complete ANSI-C program source (*.c, *.h, *.tab) b) an ANSI-C conversion table only (*.tab) c) a binary conversion table file (*.xlt) So, you see, it's a program *generator*. The programs generated are very, very small and fit even into MS-DOS memory. Using the generated table files, inclusion in your own programs is easy. If you like, you can write your own programs based on the Character Encoding Description Files. IMHO this is far more flexible, extensible and maintainable than the other ones and the analogy "binary" vs. "assembler" is quite true. When I started working on Character Encoding Conversion Programs, I used the same approach recode and tcs use, namely numeric tables, but this just drives you nuts after a while. Using RFC-1345 as done in recode is a little better, but why introduce yet another naming scheme for characters after ISO/IEC 10646 is published? And why use buggy descriptions? No wonder there are bugs in RFC-1345 considering the mnemonics. =;^) When RFC-1345 was published ISO/IEC 10646 was almost finished. I wonder why Keld insisted on creating his own mnemonics. Perhaps he just had too much (payed) spare time... =;^) (OK, enough beating on Keld... ;)). To end this, I'd like to ask you to have a closer look at things before you judge them or "guess" about them. ;) Regards Kosta -- kosta@blues.sub.de (home) kostis@rz.fh-frankfurt.d400.de (mails >50 KB go here, please) Kosta Kostis, Talstr. 25, D-63322 R�dermark, Germany Mata ne - Kosuta Kosutisu
Technical Details
Message-ID:
<bqCStAdGBh107h@live.blues.sub.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.msdos.mail-news.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!math.fu-berlin.de!odb!incom!blues!live!kostaReferences:
<0uBRtAiFBh107h@live.blues.sub.de> <OzzQtAmHBh107h@live.blues.sub.de> <2hji69$adl@hasle.oslonett.no> <nwvEjK54OveHyarn@uta.fi> <oKnDjyr285wM053yn@crl.com> <palbertCJMq2u.MuM@netcom.com> <tigerCJEDAr.9Mn@netcom.com> <1994Jan19.164402.24871@ericsson.se> <2i2ktk$i3b@erinews.ericsson.se>Show Full Headers
Complete Article Headers
Message-ID: <bqCStAdGBh107h@live.blues.sub.de> Subject: Re: European character sets Date: Thu, 27 Jan 1994 14:56:59 +0000 From: kosta@live.blues.sub.de (Kosta Kostis) References: <0uBRtAiFBh107h@live.blues.sub.de> <OzzQtAmHBh107h@live.blues.sub.de> <2hji69$adl@hasle.oslonett.no> <nwvEjK54OveHyarn@uta.fi> <oKnDjyr285wM053yn@crl.com> <palbertCJMq2u.MuM@netcom.com> <tigerCJEDAr.9Mn@netcom.com> <1994Jan19.164402.24871@ericsson.se> <2i2ktk$i3b@erinews.ericsson.se> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.msdos.mail-news.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!math.fu-berlin.de!odb!incom!blues!live!kosta Newsgroups: alt.usenet.offline-reader,news.software.readers,comp.os.msdos.mail-news Organization: Rhythm Injection Lines: 101 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit