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,6487f59679c615d8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.234.38 with SMTP id ub6mr312244pbc.2.1336787009586; Fri, 11 May 2012 18:43:29 -0700 (PDT) MIME-Version: 1.0 Path: pr3ni15666pbb.0!nntp.google.com!news1.google.com!goblin3!goblin.stu.neva.ru!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada Reference Manual 2012 in info format Date: Fri, 11 May 2012 20:43:23 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <82aa1ud0l3.fsf@stephe-leake.org><20120509131736.63c924c8@vostro><82lil0gxbm.fsf@stephe-leake.org> <20120511040710.52bbc3fd@vostro> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1336787007 23850 69.95.181.76 (12 May 2012 01:43:27 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 12 May 2012 01:43:27 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2012-05-11T20:43:23-05:00 List-Id: "Oliver Kleinke" wrote in message news:20120511040710.52bbc3fd@vostro... > Am Thu, 10 May 2012 11:11:25 +0100 > schrieb Stephen Leake : > >> > A major problem of the formatter/RM sources is that they only >> > provide partial semantic information about the contents, that IS >> > 1995-style. >> >> What, exactly, is missing? Can you give an example? > > I'll provide one example: > > when ARM_Output.Small => > if Indent = 0 then > return "Small"; > elsif Indent = 1 then > return "Notes"; > elsif Indent = 2 then > return "Annotations"; > > As you can easily see the two style attributes 'Small' (paragraph/header > style) and Indent (paragraph indentation) are used to determine the > semantics of the paragraph's contents. So if you are a bright guy, > you'll figure out what's bad about it. I think you're confused. The ARM_Output packages only include formatting information (no semantics of any kind). Any semantics in those is an artifact of earlier versions (where all of the styles were named for their primary semantic use). For instance, in the above, all you are looking at is the names of the styles, which don't necessarily reflect in any way their semantic content - it's just a mnemomic device to make it easy to see if the right styles are applied. You could rename these "Foobar1", "Foobar2", and "Foobar3" without making any difference in the output. An earlier version of the formatter had a batch of completely ad-hoc styles, some including names like the above. (But even then, there was no intent that there was any semantic information involved.) When I pulled the indent out into a separate parameter (something I did relatively recently), I used some cases like the above so the underlying style names didn't need to change (I didn't relish trying to redo the mapping in the RTF, the HTML is much easier to change). There's plenty of semantic information in the original markup, but approximately 0% makes it to any implementation of Arm_Output. If you want to preserve that, you probably will have to do the conversion at a higher level than Arm_Form does. Randy.