From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: text color + highlight Date: Tue, 10 Aug 2010 23:39:19 +0200 Message-ID: <877hjyw3js.wl%dmaus@ictsoc.de> References: <87pqxw5cb1.fsf@gnu.org> <87mxszcsuv.fsf@gmail.com> <87d3tvru38.fsf@gmail.com> <87iq3kkef1.fsf@gmail.com> <4C60EE48.6030106@christianmoe.com> <532CED92-88AD-46F6-BC67-9D0DEDAA6D71@gmail.com> <4C611C24.2030601@christianmoe.com> <87pqxq4icv.fsf@gmail.com> <4C619CB5.70409@christianmoe.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1881314910==" Return-path: Received: from [140.186.70.92] (port=53656 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiwXw-0003jT-L6 for emacs-orgmode@gnu.org; Tue, 10 Aug 2010 17:39:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiwXv-0002rW-67 for emacs-orgmode@gnu.org; Tue, 10 Aug 2010 17:39:44 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:53679) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiwXu-0002rI-S3 for emacs-orgmode@gnu.org; Tue, 10 Aug 2010 17:39:43 -0400 In-Reply-To: <4C619CB5.70409@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org --===============1881314910== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Aug_10_23:39:18_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Tue_Aug_10_23:39:18_2010-1 Content-Type: text/plain; charset=US-ASCII Christian Moe wrote: >Hi, Eric, >Thanks for trying this out -- I should have taken the trouble to write >out sample code myself. >> Just for completeness I'm adding an example of a color handler which can >> be added to a users config to enable colorization of exported text to >> html and latex. >> >> --8<---------------cut here---------------start------------->8--- >> (org-add-link-type >> "color" nil >> (lambda (path desc format) >> (cond >> ((eq format 'html) >> (format "%s" path desc)) >> ((eq format 'latex) >> (format "{\\color{%s}%s}" path desc))))) >> --8<---------------cut here---------------end--------------->8--- >> >A drawback with using links for markup is that the user sees things that >look like links, but do nothing when clicked, except give error messages. It's not just a drawback but a more fundamental problem: This solution abolishes the semantics of a fundamental entity, the link. color:red /means/ something completely different than info:elisp. I'll need some time to read the proposal about this topic but my out-of-the-guts impression is, that the distinction between semantics and markup (or visualization) is not drawn as sharp as it is. For Org it's all about semantics: If we know what a special sequence of characters means, we can provide appropriate actions. One possible action is to provide special colors etc. as a visual aid. So maybe don't focus on how to /implement/ visualization but on the general purpose or meaning of what is /visualized/ (!) by distinct colors. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Tue_Aug_10_23:39:18_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkxhxwYACgkQma24O1pEeObwJwD9EoT98dfaJykoTzaVDWBO0HnV ieCSGc1Mr0KG3wO/lY4BAJMR0yjuZwrHzvyoorlg6zSPPh4pMqr5YHr2C4l4SzLE =HZ4l -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Aug_10_23:39:18_2010-1-- --===============1881314910== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1881314910==--