From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: Re: make a drawing with Emacs Date: Thu, 24 Sep 2020 11:53:13 -0500 Message-ID: <863637ktfq.fsf@x201.butler.org> References: <87imcz4ish.fsf@ebih.ebihd> <20200831073639.GA18053@tuxteam.de> <878sdu36fg.fsf@ebih.ebihd> <87a6ya1qs4.fsf@ebih.ebihd> <20200901081804.GA4108@tuxteam.de> <20200924150923.GD20935@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17927"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 24 19:08:53 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLUjj-0004Wx-RH for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 19:08:51 +0200 Original-Received: from localhost ([::1]:53440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLUji-0007p9-RU for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 13:08:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLUjK-0007lf-BU for help-gnu-emacs@gnu.org; Thu, 24 Sep 2020 13:08:26 -0400 Original-Received: from mail-eopbgr660095.outbound.protection.outlook.com ([40.107.66.95]:6417 helo=CAN01-QB1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLUjH-00059a-HI for help-gnu-emacs@gnu.org; Thu, 24 Sep 2020 13:08:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G8CPWxBAOvWwpTcJdSs4k0NQA3ISqwTvyM4S+6AFNJNegnxlJEYcpe7el0IeUnuPD8JOIfqI7gKqGtotxxz1J4g26IuPcvPQ1K4VEqAGpiUocuuDIehibIFR4MHBzM5Gt36sMrERcMKm9U9zbuLFeRXkwUR07oDj3VcuiDJaLiQWvXTgnkdnQakFHfd2NSDDQnfnZHlYI8VxTZn6BaK9Kh2wxtTk7KqeZjoeUWMWzXUNkXvBUjd1ghGE51JrM1jHEXzlqJdpj3GrmzL+yqlu9JK1QTSKCaT0OJC3t9Km8IgtTvI1ajVdwu+RUHPAsO0gyX3exNlCj2NV+KeQso80Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BaXudJQeC1QgJc3/BcASb6fSIOM8f6CHcGCXkReHxQo=; b=LjBxc6NJ9vCa7KdioYBaspTm06y8fyMlV7epmlBBAaWo7uk6mPNQ/UPR5/3sE5aVAI2/Td+k0gM1+PNG8Do6qsecUS5LA82v6BlasdFT94SpqshUfjJ8rOj+54cD+AkZzVNUAV3Kyt21w5aqdTNnYFnFrA48WUSe7khSLfQJ5Kjw0kOuRcVCa1hVKAppg3N90X1RGDNtbP8RAj2NBD2tukfPrEwNQjF6ERomO8p+SJw+qr6WZUdPcK6lj9uLwF0jVsjcrBpLu2tZhPDwblNEXEFGp8oxSrfguxlH4rphjSTArpaT0KHy8WLQCbffHnZ8Q+X1jlEIS49AyxPvGEB5Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BaXudJQeC1QgJc3/BcASb6fSIOM8f6CHcGCXkReHxQo=; b=jVkKgaN5XLH7EkXr/xTTTpmSgH3bbkcA3Yr3a8MAM9NNWWnEHJNm0En4QXAIX0oeYreQYqdL4UjVPvFl44KjGQuLRAbU/+MLhbaGKS442t+9fWouug5WDQN42ctnbCVfs6irxf1J5lPhg88BeoiY46MIX7nR7zOpEhnYXwcGhoQ= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=umanitoba.ca; Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) by YTBPR01MB3181.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:20::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21; Thu, 24 Sep 2020 16:53:17 +0000 Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::d9ac:774a:ace:9c4e]) by YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::d9ac:774a:ace:9c4e%3]) with mapi id 15.20.3412.022; Thu, 24 Sep 2020 16:53:16 +0000 In-Reply-To: <20200924150923.GD20935@protected.rcdrun.com> (Jean Louis's message of "Thu, 24 Sep 2020 18:09:23 +0300") X-ClientProxiedBy: CO2PR04CA0094.namprd04.prod.outlook.com (2603:10b6:104:6::20) To YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from x201 (45.44.33.194) by CO2PR04CA0094.namprd04.prod.outlook.com (2603:10b6:104:6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20 via Frontend Transport; Thu, 24 Sep 2020 16:53:16 +0000 X-Originating-IP: [45.44.33.194] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 218278e7-10e0-487a-173e-08d860aa5578 X-MS-TrafficTypeDiagnostic: YTBPR01MB3181: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7ngS10w6tGnR65OkCcOmqxzkGnhMJaZw0b4tolK87Gc6jul6Oc/sYyDba1QyEEnGM4kh+gVuzbjpU4n/dTnFp1h+2cEDxqK57JmwVoyKxc6CTgItZ+jQ4E58SQtRglmHHeFbJs7xqMkwBk0W2hIMMBOrle1WkcXG6ze6T8T8stYqbWAsf8JcWZjobfND0hGJdxPCMocImfhDFRTEgwjGNDLzOe00dAaF+3B1NkPVaFdjUU/P7N29GnInepwLEttdgis39oZlS3HWlc6RreDbU4SY2095jYlXP/pzoL1vBBuJLLKirERIC3g7mmRPWMKAhmDCJXuh2lNezA+YHoqj1Hb119zckgjC8WvoRTyBJr2ula5Nvx92mBtYh2a4dXR4oaTMtALPKsaC0L7azyYo1g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(346002)(376002)(39860400002)(366004)(136003)(396003)(15188445003)(2906002)(6486002)(16526019)(786003)(956004)(8936002)(478600001)(52116002)(6916009)(5660300002)(316002)(8676002)(66556008)(6496006)(44832011)(6666004)(9686003)(66476007)(186003)(66946007)(966005)(83380400001)(26005)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: XJl7TRpPpKhRCUHz54Y9rNv8B8wYI0DusVJb+nXpoXcV9jluqt/6JFQUYj74jJrH/1cKEahm++Q3vKF09dgKQrgX3ENUEKhVdJLAYsVEshSVlzyTVMvxKIGuwTzc34JfM3u21GuVTvH3ogdievPbRqSIfxn98yBm+WxN8dBarvhYjWUWx4sN97RG3Hxsi0X9OG3eSxbDbd45msslGBCjsht1GvisV2QOMQi9fICFfjQh366YjXuuEmfxoAPHxBj0Y+iNStHovQ8VIuiffe8Ww622htx0MfReQzzaSKu3OnsCkeiqWQJkNkpiB5DN5obX4/oVD92j1gUDsjouN7qJgF6IwM0milo80tgej+iykrXsi103Wl8mBa7G/HdzDkPCosl6vVNMg6n1N0vpUYcMsJ4M0xOaWthMi7oEDz/eCzRwbuN4+q2uI+HWQn//YtJHZAdVjyHHvrBqPuhMMiIC8OK5U6sNjmESdQqIyEzE1izWkZKJ+NMf0IzzgojUnjCtGnwYBJeSsZ11y9DlTwV0TkRTNIkmN+xevEGpoJqhhIbfXI+/8QWUgz8e8TX7bKT6pNSRvlscLcUjywIUECCvy0eFqydBJvHdpSPUfEZ69pUQ5ibN7HMflfE+5C3/nq1klX8idkEMoMv5AYRBe9vrog== X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 218278e7-10e0-487a-173e-08d860aa5578 X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2020 16:53:16.9674 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gzMuvJ+AS8O3REzWwpr4Oif2IUgUg4VL6ALvQGAbKNo3sFh/c+0fB8uoYC9k7fH64U++R3W+ZFAWFoNcczxyLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTBPR01MB3181 Received-SPF: pass client-ip=40.107.66.95; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-QB1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/24 13:08:21 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124170 Archived-At: Jean Louis writes: > ******************************************************** > Caution: This message was sent from outside the University of Manitoba. > ******************************************************** > > * tomas@tuxteam.de [2020-09-01 11:19]: >> On Mon, Aug 31, 2020 at 10:52:59PM +0200, Emanuel Berg via Users list for the GNU Emacs text editor wrote: >> > Yuri Khan wrote: >> > >> > >>> If you are thinking 3D, then OpenSCAD might suit >> > >>> you: pametric, script-centric, text-friendly. >> > >> >> > >> No no, 2D, top-view! Like an old school >> > >> engineering drawing, but less detailed. But with >> > >> real units... >> > > >> > > You want 2D, get LibreCAD. >> > >> > I want to write code (data) and then have it >> > translate into a drawing. See the original post. >> > So no GUI, no actual "drawing". CAD doesn't sound >> > like that, but maybe I'm wrong? >> >> TiKZ and OpenSCAD qualify, but they cover different areas (the one >> is for (gorgeous!) diagranms and the other is for (dimensional) >> drawings. > > Maybe you wish to say 3D dimensional, as if you only mean dimensional, > then anything in this world including any types of graphs are > dimensional. > > So if you do mean that OpenSCAD is 3D dimensional, well, it has that > capacity, but nothing prevents you being 2D dimensional. > > See here for exporting files: > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/STL_Import_and_Export > > For references of the simple drawing language, see here: > http://www.openscad.org/documentation.html?version=2015.03 > > I am using Emacs to simply write the drawing, then such can easily be > exported. It is possible to configure Emacs, if necessary, to open the > exported file and display it after saving such. So the OpenSCAD window > need not be seen at all. > > Just use the automatic preview option in OpenSCAD, edit the file and > OpenSCAD will show the drawing after each saving of the file. > > You do not need to launch the OpenSCAD for quick previews, you could > launch it from command line, upon the emacs save hook so that file is > each time generated as you wish. > > Try following, adapt the font name. > > module logo(logo,size) { > rotate([90]) { > color("gold") text(logo, font = "Impact", size = size, haling = "center", valign = "bottomline"); > } > } > > logo("Emacs"); > > > Jean Thanks for the reference. I was unaware of OpenSCAD, but after looking at the references, it looks quite interesting. Leo