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!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Text_IO, was: Re: Something I don't understand Date: Thu, 20 Feb 2014 12:53:58 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <4a3e55f6-9f54-4084-9f37-96efd4b0d349@googlegroups.com> <0b358700-871b-4603-addd-65e07c7d59e5@googlegroups.com> <5305ec51$0$9502$9b4e6d93@newsspool1.arcor-online.net> Injection-Date: Thu, 20 Feb 2014 12:53:58 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="2173"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vCpBb0SO3T7IHS7quf4DiyrmO5+0/S0c=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:5qvo7NoYs7eVTnb5apxP1YNNB4k= Xref: news.eternal-september.org comp.lang.ada:18703 Date: 2014-02-20T12:53:58+00:00 List-Id: On 2014-02-20, G.B. wrote: > On 20.02.14 02:09, Simon Clubley wrote: > >> Are you familiar with the VMS $FAO directive (which is the way VMS does >> template formatting) ? >> >> Background material on $FAO is at: >> >> http://h71000.www7.hp.com/doc/82final/4527/4527pro_047.html >> [... !%S] >> Something like that would handle this problem rather cleanly. > > Would this address the needs of international language processing? > Even English has plural words without 's'; other grammars might > need different ways of representing plurals altogether; I understand > that doubling a word or syllable or symbol is a scheme for expressing > plurals in East Asia, for example. > That's why VMS Engineering added the option to $FAO which allows a application specified word to be inserted based on the value of the previous number. I'm not saying we should duplicate this exactly. I just mentioned it as a real world example of a template formatting system which has conditional formatting built into it. > Handling natural language issues is a bit too tricky > to be part of a regular programming formalism, I think. > It's certainly not easy. I wonder how something like gettext would handle this problem ? (I've never had to support foreign languages in my code so I don't know the answer to that question.) Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world