diff --git a/ox-blackfriday.el b/ox-blackfriday.el index 295b346..b73f09c 100644 --- a/ox-blackfriday.el +++ b/ox-blackfriday.el @@ -852,17 +852,19 @@ contextual information." table-num (caption-html (if (not caption) "" - (let ((caption-str + (let ((caption-prefix-fmt-str (org-html--translate "Table %d:" info)) + (caption-str (org-html-convert-special-strings ;Interpret em-dash, en-dash, etc. (org-export-data-with-backend caption 'html info)))) (setq table-num (org-export-get-ordinal table info nil #'org-html--has-caption-p)) (format (concat "
\n" - " Table %d:\n" + " %s\n" " %s\n" "
\n\n") - table-num caption-str)))) + (format caption-prefix-fmt-str table-num) + caption-str)))) (attr (org-export-read-attribute :attr_html table)) ;; At the moment only the `class' attribute is supported in ;; #+attr_html above tables. diff --git a/ox-hugo.el b/ox-hugo.el index a8eaeac..7cd15ac 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -946,7 +946,7 @@ contents according to the current headline." (unless local (let ((style (plist-get info :md-headline-style)) (loffset (string-to-number (plist-get info :hugo-level-offset))) - (title "Table of Contents")) + (title (org-html--translate "Table of Contents" info))) (org-hugo--headline-title style 1 loffset title)))) (toc-items (mapconcat @@ -1713,11 +1713,11 @@ and rewrite link paths to make blogging more seamless." ;; https://github.com/gohugoio/hugo/issues/4406 ;; gets resolved. "" ;"" - (format (org-html--translate "Figure %d: " info) + (format (org-html--translate "Figure %d:" info) (org-export-get-ordinal useful-parent info nil #'org-html--has-caption-p)) - "" ;"" + " " ;" " caption)))) ;; (message "[ox-hugo-link DBG] inline image? %s\npath: %s" ;; inline-image path) @@ -2067,14 +2067,20 @@ channel." (let* ((src-block-num (org-export-get-ordinal src-block info nil #'org-html--has-caption-p)) + (caption-prefix (let* ((fmt-str (org-html--translate "Listing %d:" info)) + (fmt-str (or (and (string= fmt-str "Listing %d:") + "Code Snippet %d:") + fmt-str))) + (format fmt-str src-block-num))) (caption-str (org-html-convert-special-strings ;Interpret em-dash, en-dash, etc. (org-export-data-with-backend caption 'html info)))) + (format (concat "\n\n
\n" - " Code Snippet %d:\n" + " %s\n" " %s\n" "
") - src-block-num caption-str)))) + caption-prefix caption-str)))) content ret) ;; (message "ox-hugo src [dbg] number-lines: %S" number-lines)