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!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Fri, 02 Jun 2006 20:22:48 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1149026932.554318.202570@i39g2000cwa.googlegroups.com> <5zmch4oseolx.1ghtww9ope9bt$.dlg@40tude.net> <1b6kk4c3suwjg.84fral2281gm$.dlg@40tude.net> Subject: Re: Ada and Internationalization Date: Fri, 2 Jun 2006 20:23:24 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-eFd8xVDbbubr3nJ+3zpVb3A6E0PF9sYyoZ7s0u3FmTzYq/tBfMcUKNywz3a4hMZBxsgkg1Gz5Nw7isK!6f6UgZZrjf7nQ7VVyNEqqKMowKLc/OILmo7/9YAxXoqBr8HO4lPSEF7A9OiSY6jPR4JT/BY0eAxA!BEMsk6DENVz6xA== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:4659 Date: 2006-06-02T20:23:24-05:00 List-Id: "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. He was able to do that fairly successfully with the interface already provided. Randy Brukardt