From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gitsis Christos Subject: Bug: customizing HTML export postamble [8.2.7c (8.2.7c-61-g4b9146-elpa @ /home/christos/.emacs.d/elpa/org-20140908/)] Date: Wed, 8 Oct 2014 21:33:44 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbw3Z-0008ID-P9 for emacs-orgmode@gnu.org; Wed, 08 Oct 2014 14:33:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xbw3Y-0005DE-Et for emacs-orgmode@gnu.org; Wed, 08 Oct 2014 14:33:49 -0400 Received: from mail-ig0-x22a.google.com ([2607:f8b0:4001:c05::22a]:55148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbw3Y-0005D4-3f for emacs-orgmode@gnu.org; Wed, 08 Oct 2014 14:33:48 -0400 Received: by mail-ig0-f170.google.com with SMTP id hn15so768851igb.1 for ; Wed, 08 Oct 2014 11:33:44 -0700 (PDT) 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 Hello, I was trying to translate the postamble in HTML export in order to translate it in greek and I faced multiple issues. 1) Setting org-html-postamble to auto generates a postamble different than setting it to t and leaving org-html-postamble-format to default. The differences are a) the date string is "Created:" in the first case and "Date:" in the second, and b) most importantly, in the second case the Date does not show up at all 2) I added a new language to org-html-postamble-format so that in the end it looked like (("el" "

=CE=A3=CF=85=CE=B3=CE=B3=CF=81=CE=B1=CF=86=CE= =AD=CE=B1=CF=82: %a (%e)

=CE=97=CE=BC=CE=B5=CF=81=CE=BF=CE=BC=CE=B7=CE=BD=CE=AF= =CE=B1: %d

%c

") ("en" "

Author: %a (%e= )

Date: %d

%c

%v

")) I set org-export-default-language to "el" and I got unexpected results. Strangely, I observed that the postamble of my index.html page was translated in greek, but a) the Date was missing (naturally) b) the author field was different (strangely, it was my linux username@my hostname, but ok, I guess, since my index.org is automatically generated and I have no author set for it -- how do I set it by the way?) and c) the rest of the pages were in english, and with org-html-postamble =3D t ("Date:" + empty date) ------------------------------------------------------------------------ Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-09-12 on gandalf Package: Org-mode version 8.2.7c (8.2.7c-61-g4b9146-elpa @ /home/christos/.emacs.d/elpa/org-20140908/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-export-date-timestamp-format "%Y-%m-%d" org-latex-format-headline-function 'org-latex-format-headline-default-func= tion org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-from-is-user-regexp nil org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-export-copy-to-kill-ring t org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-export-with-tags 'not-in-toc org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-with-drawers nil org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'ignore org-babel-load-languages '((ditaa . t)) org-html-format-inlinetask-function 'ignore org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-publish-project-alist '(("website" :components ("website-content")) ("website-content" :language "el" :base-directory "~/org/chessblog/" :base-extension "org" :publishing-directory "~/public_html/chessblog/" :recursive t :publishing-function org-html-publish-to-html :export-with-tags nil :headline-levels 3 :with-toc t :section-numbers nil :auto-sitemap t :sitemap-filename "index.org" :sitemap-title "=CE=A3=CE=BA=CE=B1=CE=BA=CE=B9=CF=83=CF=84=CE=B9=CE=BA= =CE=AE =CE=A0=CF=81=CE=BF=CF=80=CF=8C=CE=BD=CE=B7=CF=83=CE=B7" :timestamp t= :exclude-tags ("noexport" "todo") :exclude "data.org" :html-head-include-default-style nil :html-html5-fancy t :html-link-use-abs-url t :html-link-home "." :html-head " ") ) )