From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,79c108d8d805d021 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c08.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ada and Internationalization References: <1149026932.554318.202570@i39g2000cwa.googlegroups.com> <5zmch4oseolx.1ghtww9ope9bt$.dlg@40tude.net> <1b6kk4c3suwjg.84fral2281gm$.dlg@40tude.net> From: Stephen Leake Date: Sun, 04 Jun 2006 09:23:07 -0400 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:LKrqNUL/01pmB0ADEjEJlF114wE= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 6728f4482dec5e73ae4a422304 Xref: g2news2.google.com comp.lang.ada:4673 Date: 2006-06-04T09:23:07-04:00 List-Id: "Randy Brukardt" writes: > "Dmitry A. Kazakov" wrote in message > news:1b6kk4c3suwjg.84fral2281gm$.dlg@40tude.net... > ... >> In a recent project I had a similar problem. In place of localization > there >> were different rendering devices: Text, HTML, GTK etc. It ended up with a >> primitive operation defined on objects, that had a class-wide argument >> controlling the output parameters. Needless to say, that I am not > satisfied >> with this design. > > I had a similar problem with the formatting tool that produces the Ada > Reference Manual and other good stuff. (In fact, it is essentially the same > problem.) I ended up defining an "output object" abstract type, with > instances of the type for text, HTML, and RTF. The needed operations for > formatting and the like are defined for the abstract type. The formatting > engine takes an output object and writes to it as needed. > > The design was fairly successful; Stephen Leake created a new type and > object to support TextInfo output. That's "TexInfo" :) > He was able to do that fairly successfully with the interface > already provided. Yes, it is a good design. Can't wait to do it again for Ada 2005 (2006?). Any update on the schedule for that? I gather we are waiting for the ISO process to grind thru. -- -- Stephe