From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: allow italic quote marks? org-emphasis-regexp-components Date: Thu, 18 Jun 2015 20:58:16 +0200 Message-ID: <87mvzwx2rb.fsf@gmx.us> References: <87ioap46w5.fsf@gmail.com> <87zj3x7mz5.fsf@stevenarntson.com> <87k2v13111.fsf@mbork.pl> <87wpz1xbgp.fsf@gmail.com> <877fr03m60.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5f1R-0006BD-76 for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 14:58:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5f1N-0005ue-UH for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 14:58:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:51314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5f1N-0005ua-OB for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 14:58:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z5f1J-0005pi-Th for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 20:58:38 +0200 Received: from 46.166.188.244 ([46.166.188.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jun 2015 20:58:37 +0200 Received: from rasmus by 46.166.188.244 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jun 2015 20:58:37 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Marcin Borkowski writes: > On 2015-06-18, at 18:02, Kaushal wrote: > >> A quick google search comes up this these: >> >> http://tex.stackexchange.com/questions/83440/inputenc-error-unicode-char-u8-not-set-up-for-use-with-latex >> http://tex.stackexchange.com/questions/4268/inputenc-error-unicode-char-u8-error-while-trying-to-write-a-degree-symbol >> >> Based on those solutions, may be you can add >> >> \DeclareUnicodeCharacter{200b}{} >> >> I haven't tried it, so cannot guarantee if that will work. > > Thanks, I'll check it in my Spare Time™. I use something like this: (defcustom rasmus/org-latex-unicode-to-tex '((" " "~") (" " "\\,") ("​" "")) "list of re rep pairs which are replaced during latex export") (defun rasmus/org-latex-unicode-to-tex (text backend info) "Replace unicode strings with their TeX equivalents. Currently: ' ' (no break space) to '~' ' ' (thin space) to '\,' '​' (zero width space) to ''." (when (org-export-derived-backend-p backend 'latex) (cl-loop for (re rep) in rasmus/org-latex-unicode-to-tex do (setq text (replace-regexp-in-string re rep text t t))) text)) (add-to-list 'org-export-filter-final-output-functions 'rasmus/org-latex-unicode-to-tex) -- Sådan en god dansk lagereddike kan man slet ikke bruge mere