From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Longtable continuation strings customizable Date: Mon, 28 Oct 2013 18:27:19 +0100 Message-ID: <87li1d9uh4.fsf@gmail.com> References: <87y55fb0kf.fsf@gmail.com> <87txg1agnz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vaqas-0007Z7-Jr for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 13:27:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vaqam-0006Vz-Mr for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 13:27:10 -0400 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:55943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vaqam-0006Vh-Co for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 13:27:04 -0400 Received: by mail-wg0-f50.google.com with SMTP id n12so6946261wgh.17 for ; Mon, 28 Oct 2013 10:27:03 -0700 (PDT) In-Reply-To: (Thomas S. Dye's message of "Mon, 28 Oct 2013 04:55:55 -1000") 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: "Thomas S. Dye" Cc: Org-mode , Carsten Dominik Hello, tsd@tsdye.com (Thomas S. Dye) writes: > Nicolas Goaziou writes: > >> I agree customization is more powerful here (although it means that all >> non-English Org users will need to change it), but so it is for every >> other multilingual string. >> >> Since we didn't choose to make multilingual strings customizable, I find >> it strange that this particular one is. >> >> Also, I you can use a filter to modify that string and make it comply to >> a specific style, if needed. IOW, you also get 1) and 2) with the >> `org-export-dictionary' way, with 1) being more user-friendly and 2) >> more difficult than in the current way. >> >> Am I missing something? > > An example filter? (defun my-personal-table-continuation-strings (row backend info) (when (org-export-derived-backend-p 'latex) (replace-regexp-in-string "multicolumn{[0-9]+}{l}{\\(.*\\)}" "String 1" (replace-regexp-in-string "multicolumn{[0-9]+}{r}{\\(.*\\)}" "String 2" row nil nil 1) nil nil 1))) (add-to-list 'org-export-filter-table-row-functions 'my-personal-table-continuation-strings) Untested. Regards, -- Nicolas Goaziou