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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.Ry1GfOCil8z4iThfpbQjlA.user.gioia.aioe.org!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Ada++ Date: Sat, 13 Jun 2020 05:11:10 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <50711230-5b14-4278-b9d8-d197bbe3c93b@googlegroups.com> <9320040f-5486-4d1e-847d-f81b0a59fcfa@googlegroups.com> <51cfeba9-7426-4477-936c-cb9364129f40o@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: Ry1GfOCil8z4iThfpbQjlA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:59070 Date: 2020-06-13T05:11:10-05:00 List-Id: On 6/13/2020 5:03 AM, gautier_niouzes@hotmail.com wrote: >> It is not possible to do this in Ada. Well, it is, but it will >> be very very cumbersome. >> >> Here are some very basic examples using Ruby, Perl and C++ >> >> https://www.12000.org/my_notes/here_document/index.htm > >> It is not possible to do this in Ada. Well, it is, but it will >> be very very cumbersome. > > No, it's piece of cake! Just use the right editor :-) . > >> Here are some very basic examples using Ruby, Perl and C++ >> >> https://www.12000.org/my_notes/here_document/index.htm > > Done with LEA in a few mouse clicks and key strokes (lines truncated here because of the max columns of newsgroups). > > with HAC_Pack; use HAC_Pack; > > procedure Easy is > begin > Put_Line("\documentclass[12pt,titlepage]{article} _"); > Put_Line("\begin{document} _"); > Put_Line("\title{%(title)s} _"); > Put_Line("\date{%(date)s} _"); > Put_Line(" _"); > Put_Line("The following in known equation $\sin^2(x)+\cos^2(x)=1$_"); > Put_Line("is 100%(p)s correct. This was written on %(date)s and t_"); > Put_Line("string ""I am a string"" and this is \n which is left a_"); > Put_Line(" _"); > Put_Line("\end{document} _"); > end; > Thanks, But that is my point. I do not want to do that, even if it is done by an editor. I'd rather just write, for example, in Python: s =r""" \documentclass[12pt,titlepage]{article} \begin{document} \title{%(title)s} \date{%(date)s} The following in known equation $\sin^2(x)+\cos^2(x)=1$ and this is 100%(p)s correct. This was written on %(date)s and this is a string "I am a string" and this is \n which is left as is. \end{document} """ Which I can do in any editor, even using notepad.exe on windows :) And if I have to edit it again (add/remove stuff), which happens all the time, much easier to edit the raw string, than your version. --Nasser