From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: input UTF-8 "as is" Date: Tue, 27 May 2014 21:31:34 +0200 Organization: Aioe.org NNTP Server Message-ID: <87vbsrf27d.fsf@debian.uxu> References: <87ha4esiuk.fsf@debian.uxu> <5381a9df$0$3650$426a34cc@news.free.fr> <87ha4dsyzh.fsf@debian.uxu> <5382f985$0$2130$426a74cc@news.free.fr> <87bnujgmup.fsf@debian.uxu> <5384d0ae$0$2036$426a74cc@news.free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401219324 26956 80.91.229.3 (27 May 2014 19:35:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2014 19:35:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 27 21:35:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WpN9a-0000BL-RG for geh-help-gnu-emacs@m.gmane.org; Tue, 27 May 2014 21:35:18 +0200 Original-Received: from localhost ([::1]:37412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpN9a-0005Vp-FC for geh-help-gnu-emacs@m.gmane.org; Tue, 27 May 2014 15:35:18 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: comp.text.tex,gnu.emacs.help Original-Lines: 70 Original-NNTP-Posting-Host: SIvZRMPqRkkTHAHL6NkRuw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:JNZOgssDnt35VUGRCrPwV+09Ii8= Mail-Copies-To: never Original-Xref: usenet.stanford.edu comp.text.tex:435569 gnu.emacs.help:205635 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97905 Archived-At: (gnu.emacs.help readers: relates to aa2u tool that was mentioned in the RTF vs. plain vs. LaTeX discussion - read on!) jfbu writes: > side note: in the code of \ttinput, you can also have > the unicode diagram directly embedded, in place of > the \@@input #1\relax part. You don't have to > mandatorily maintain a separate file that you > \ttinput, although I understand it could be useful to > share it among various documents like one does with > graphics files. Now you made me think. In general, with C, zsh, Elisp, etc., I always want neat short files to reflect themes and areas of activity, if not straight modules, which also go into separate files, of course. However, for LaTeX, without thinking of it, I've had several projects as singular, very long documents and the only thing I kept outside was the file with the Biblatex sources, containing only what didn't relate in particular to my work (i.e., the pages of references I had in the .tex file). So let's see... - no, I think I prefer the Unicode figures in separate files, after all. > What you can't do however is put the unicode diagram > in a macro via \newcommand, and then use that macro: > it would be too late because the tokenizing will have > taken place under the wrong catcode regimes for > spaces and end of lines. > > Inside the unicode diagram, you can have macros, for > example \includegraphics{myfile.png} is perfectly > possible within the diagram. Or some > \usebox{\mysavebox}, where \mysavebox could be some > paragraph of text done in an arbitrary font, and with > the spaces and end-of-lines in their standard catcode > regime. > > Thanks for letting me discover this nice aa2u, I > almost feel like I must find some task requiring > diagrams! ;-) > is there a tool to go back from Unicode to > text-ascii? Most definitely, I usually use tr for that kind of stuff but I don't know if it can be used straight off in this case. But there should be several tools that can be put to do that without too much fuss. aa2u even, perhaps? > because, if you loose the txt files drawing the > diagrams in artist-mode, you might want to > reverse-engineer what > http://elpa.gnu.org/packages/ascii-art-to-unicode.html > allowed to do on ascii input > (perhaps it is in the aa2u thing, I did not try it yet) I also send this reply to gnu.emacs.help because there is the enigmatic lisper who wrote aa2u, and he will the best person to ask, of course. So hailing frequencies should be open. (Next time we will explore the secrets of time travel. Or will that be - the previous time?) -- underground experts united: http://user.it.uu.se/~embe8573