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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: =?iso-8859-1?Q?=22Plugin=B0-based?= code Date: Tue, 5 Jun 2018 08:42:49 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <564cec8c-8da9-4e59-a687-5408fd3a429f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 5 Jun 2018 08:42:49 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="8aaff9993e41ca1fb60239103d87d38a"; logging-data="7311"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CdHZ45FxX1Dr+jMwFWZKdaXzi2SXrW64=" User-Agent: Pan/0.141 (Tarzan's Death; 168b179 git.gnome.org/pan2) Cancel-Lock: sha1:moEqRhZf9qdhwTv751yxvLRgBps= Xref: reader02.eternal-september.org comp.lang.ada:52940 Date: 2018-06-05T08:42:49+00:00 List-Id: On Mon, 04 Jun 2018 03:29:24 -0700, mockturtle wrote: > Dear.all, > Let me use an example. Suppose I am writing a program to plot, say, a > GANTT chart. I want the user to be able to choose the output format > (say, PDF, SVG or even LaTeX) by giving a suitable option on the command > line and I want to be able to add new output format easily, maybe even > load the "format handler" as a dynamic library at run-time Not relevant to the actual questior, but a Cairo drawing surface (e.g. as in GTKAda) provides rendering to PDF and SVG directly, which may make life simpler. I don't know how easy it would be to add other formats under Cairo. It may be easier to add other formats above Cairo, and use the same (Cairo) plotter for both those. -- Brian