From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: make a drawing with Emacs Date: Thu, 24 Sep 2020 18:09:23 +0300 Message-ID: <20200924150923.GD20935@protected.rcdrun.com> References: <87imcz4ish.fsf@ebih.ebihd> <20200831073639.GA18053@tuxteam.de> <878sdu36fg.fsf@ebih.ebihd> <87a6ya1qs4.fsf@ebih.ebihd> <20200901081804.GA4108@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9401"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.14.0 (2020-05-02) Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 24 17:11:22 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 1kLSu1-0002J8-6w for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 17:11:21 +0200 Original-Received: from localhost ([::1]:35752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLSu0-0003VO-8h for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 11:11:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLSsG-0002Az-Th for help-gnu-emacs@gnu.org; Thu, 24 Sep 2020 11:09:32 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:60881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLSsE-0002OK-I7 for help-gnu-emacs@gnu.org; Thu, 24 Sep 2020 11:09:32 -0400 Original-Received: from localhost ([::ffff:197.157.34.162]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000005A140.000000005F6CB6A7.00007F30; Thu, 24 Sep 2020 08:09:26 -0700 Content-Disposition: inline In-Reply-To: <20200901081804.GA4108@tuxteam.de> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/24 09:53:31 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [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, 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:124167 Archived-At: * 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