commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305\306\307#\210\310\311\312\313\314\315\316\317\320&\207" [require cl-lib format-spec ox org-compat table nil noerror org-export-define-backend odt ((bold . org-odt-bold) (center-block . org-odt-center-block) (clock . org-odt-clock) (code . org-odt-code) (drawer . org-odt-drawer) (dynamic-block . org-odt-dynamic-block) (entity . org-odt-entity) (example-block . org-odt-example-block) (export-block . org-odt-export-block) (export-snippet . org-odt-export-snippet) (fixed-width . org-odt-fixed-width) (footnote-definition . org-odt-footnote-definition) (footnote-reference . org-odt-footnote-reference) (headline . org-odt-headline) (horizontal-rule . org-odt-horizontal-rule) (inline-src-block . org-odt-inline-src-block) (inlinetask . org-odt-inlinetask) (italic . org-odt-italic) (item . org-odt-item) (keyword . org-odt-keyword) (latex-environment . org-odt-latex-environment) (latex-fragment . org-odt-latex-fragment) (line-break . org-odt-line-break) (link . org-odt-link) (node-property . org-odt-node-property) (paragraph . org-odt-paragraph) (plain-list . org-odt-plain-list) (plain-text . org-odt-plain-text) (planning . org-odt-planning) (property-drawer . org-odt-property-drawer) (quote-block . org-odt-quote-block) (radio-target . org-odt-radio-target) (section . org-odt-section) (special-block . org-odt-special-block) (src-block . org-odt-src-block) (statistics-cookie . org-odt-statistics-cookie) (strike-through . org-odt-strike-through) (subscript . org-odt-subscript) (superscript . org-odt-superscript) (table . org-odt-table) (table-cell . org-odt-table-cell) (table-row . org-odt-table-row) (target . org-odt-target) (template . org-odt-template) (timestamp . org-odt-timestamp) (underline . org-odt-underline) (verbatim . org-odt-verbatim) (verse-block . org-odt-verse-block)) :filters-alist ((:filter-parse-tree org-odt--translate-latex-fragments org-odt--translate-description-lists org-odt--translate-list-tables org-odt--translate-image-links)) :menu-entry (111 "Export to ODT" ((111 "As ODT file" org-odt-export-to-odt) (79 "As ODT file and open" (lambda (a s v b) (if a (org-odt-export-to-odt t s v) (org-open-file (org-odt-export-to-odt nil s v) 'system)))))) :options-alist ((:odt-styles-file "ODT_STYLES_FILE" nil nil t) (:description "DESCRIPTION" nil nil newline) (:keywords "KEYWORDS" nil nil space) (:subtitle "SUBTITLE" nil nil parse) (:odt-content-template-file nil nil org-odt-content-template-file) (:odt-display-outline-level nil nil org-odt-display-outline-level) (:odt-fontify-srcblocks nil nil org-odt-fontify-srcblocks) (:odt-format-drawer-function nil nil org-odt-format-drawer-function) (:odt-format-headline-function nil nil org-odt-format-headline-function) (:odt-format-inlinetask-function nil nil org-odt-format-inlinetask-function) (:odt-inline-formula-rules nil nil org-odt-inline-formula-rules) (:odt-inline-image-rules nil nil org-odt-inline-image-rules) (:odt-pixels-per-inch nil nil org-odt-pixels-per-inch) (:odt-styles-file nil nil org-odt-styles-file) (:odt-table-styles nil nil org-odt-table-styles) (:odt-use-date-fields nil nil org-odt-use-date-fields) (:with-latex nil "tex" org-odt-with-latex) (:latex-header "LATEX_HEADER" nil nil newline))] 9) |
|
16 |
#@102 Location of ODT exporter. |
|
17 |
Use this to infer values of `org-odt-styles-dir' and |
|
18 |
`org-odt-schema-dir'. |
|
19 |
(defconst org-odt-lib-dir (byte-code "\301\206 \302 !\207" [load-file-name file-name-directory buffer-file-name] 2) (#$ . 3695)) |
|
20 |
#@109 Data directory for ODT exporter. |
|
21 |
Use this to infer values of `org-odt-styles-dir' and |
|
22 |
`org-odt-schema-dir'. |
|
23 |
(defvar org-odt-data-dir (expand-file-name "../../etc/" org-odt-lib-dir) (#$ . 3934)) |
|
24 |
#@52 Regular expressions for special string conversion. |
|
25 |
(defconst org-odt-special-string-regexps '(("\\\\-" . "­\\1") ("---\\([^-]\\)" . "—\\1") ("--\\([^-]\\)" . "–\\1") ("\\.\\.\\." . "…")) (#$ . 4134)) |
|
26 |
#@245 List of directories to search for OpenDocument schema files. |
|
27 |
Use this list to set the default value of |
|
28 |
`org-odt-schema-dir'. The entries in this list are |
|
29 |
populated heuristically based on the values of `org-odt-lib-dir' |
|
30 |
and `org-odt-data-dir'. |
|
31 |
(defconst org-odt-schema-dir-list (byte-code "\205 \301\302\"\303D\207" [org-odt-data-dir expand-file-name "./schema/" "c:/Program Files/Emacs 26.1/share/emacs/26.1/etc/schema/"] 3) (#$ . 4369)) |
|
32 |
#@207 List of directories to search for OpenDocument styles files. |
|
33 |
See `org-odt-styles-dir'. The entries in this list are populated |
|
34 |
heuristically based on the values of `org-odt-lib-dir' and |
|
35 |
`org-odt-data-dir'. |
|
36 |
(defconst org-odt-styles-dir-list (byte-code "\205 \303\304\"\305\303\306 \"\303\307 \"\303\310\n\"\257\207" [org-odt-data-dir org-odt-lib-dir data-directory expand-file-name "./styles/" "c:/Program Files/Emacs 26.1/share/emacs/26.1/etc/styles/" "../etc/styles/" "./etc/styles/" "./org/"] 7) (#$ . 4818)) |
|
37 |
#@533 Directory that holds auxiliary XML files used by the ODT exporter. |
|
38 |
|
|
39 |
This directory contains the following XML files - |
|
40 |
"OrgOdtStyles.xml" and "OrgOdtContentTemplate.xml". These |
|
41 |
XML files are used as the default values of |
|
42 |
`org-odt-styles-file' and `org-odt-content-template-file'. |
|
43 |
|
|
44 |
The default value of this variable varies depending on the |
|
45 |
version of Org in use and is initialized from |
|
46 |
`org-odt-styles-dir-list'. Note that the user could be using Org |
|
47 |
from one of: Org own private git repository, GNU ELPA tar or |
|
48 |
standard Emacs. |
|
49 |
(defconst org-odt-styles-dir (byte-code "\301\302\"\211\204\f \303\304!\210\211\207" [org-odt-styles-dir-list cl-find-if #[257 "\211\205 \300\301\302\"!\205 \300\301\303\"!\207" [file-readable-p expand-file-name "OrgOdtContentTemplate.xml" "OrgOdtStyles.xml"] 5 "\n\n(fn DIR)"] error "Error (ox-odt): Cannot find factory styles files, aborting"] 3) (#$ . 5340)) |
|
50 |
(defconst org-odt-bookmark-prefix "OrgXref.") |
|
51 |
(defconst org-odt-manifest-file-entry-tag "\n<manifest:file-entry manifest:media-type=\"%s\" manifest:full-path=\"%s\"%s/>") |
|
52 |
(defconst org-odt-file-extensions '(("odt" . "OpenDocument Text") ("ott" . "OpenDocument Text Template") ("odm" . "OpenDocument Master Document") ("ods" . "OpenDocument Spreadsheet") ("ots" . "OpenDocument Spreadsheet Template") ("odg" . "OpenDocument Drawing (Graphics)") ("otg" . "OpenDocument Drawing Template") ("odp" . "OpenDocument Presentation") ("otp" . "OpenDocument Presentation Template") ("odi" . "OpenDocument Image") ("odf" . "OpenDocument Formula") ("odc" . "OpenDocument Chart"))) |
|
53 |
#@43 Template for auto-generated Table styles. |
|
54 |
(defconst org-odt-table-style-format "\n<style:style style:name=\"%s\" style:family=\"table\">\n <style:table-properties style:rel-width=\"%s%%\" fo:margin-top=\"0cm\" fo:margin-bottom=\"0.20cm\" table:align=\"center\"/>\n</style:style>\n" (#$ . 6913)) |
|
55 |
#@539 Registry of automatic styles for various OBJECT-TYPEs. |
|
56 |
The variable has the following form: |
|
57 |
((OBJECT-TYPE-A |
|
58 |
((OBJECT-NAME-A.1 OBJECT-PROPS-A.1) |
|
59 |
(OBJECT-NAME-A.2 OBJECT-PROPS-A.2) ...)) |
|
60 |
(OBJECT-TYPE-B |
|
61 |
((OBJECT-NAME-B.1 OBJECT-PROPS-B.1) |
|
62 |
(OBJECT-NAME-B.2 OBJECT-PROPS-B.2) ...)) |
|
63 |
...). |
|
64 |
|
|
65 |
OBJECT-TYPEs could be "Section", "Table", "Figure" etc. |
|
66 |
OBJECT-PROPS is (typically) a plist created by passing |
|
67 |
"#+ATTR_ODT: " option to `org-odt-parse-block-attributes'. |
|
68 |
|
|
69 |
Use `org-odt-add-automatic-style' to add update this variable.' |
|
70 |
(defvar org-odt-automatic-styles nil (#$ . 7216)) |
|
71 |
#@133 Running counters for various OBJECT-TYPEs. |
|
72 |
Use this to generate automatic names and style-names. See |
|
73 |
`org-odt-add-automatic-style'. |
|
74 |
(defvar org-odt-object-counters nil (#$ . 7811)) |
|
75 |
#@245 Custom paragraph style for colorized source and example blocks. |
|
76 |
This style is much the same as that of "OrgFixedWidthBlock" |
|
77 |
except that the foreground and background colors are set |
|
78 |
according to the default face identified by the `htmlfontify'. |
|
79 |
(defvar org-odt-src-block-paragraph-format "<style:style style:name=\"OrgSrcBlock\" style:family=\"paragraph\" style:parent-style-name=\"Preformatted_20_Text\">\n <style:paragraph-properties fo:background-color=\"%s\" fo:padding=\"0.049cm\" fo:border=\"0.51pt solid #000000\" style:shadow=\"none\">\n <style:background-image/>\n </style:paragraph-properties>\n <style:text-properties fo:color=\"%s\"/>\n </style:style>" (#$ . 7999)) |
|
80 |
(defvar org-odt-embedded-formulas-count 0) |
|
81 |
(defvar org-odt-embedded-images-count 0) |
|
82 |
#@54 Ordered list of methods for determining image sizes. |
|
83 |
(defvar org-odt-image-size-probe-method (byte-code "\300\301\302!\205 \303\304\"\207" [append executable-find "identify" (imagemagick) (emacs fixed)] 3) (#$ . 8776)) |
|
84 |
#@66 Hardcoded image dimensions one for each of the anchor |
|
85 |
methods. |
|
86 |
(defvar org-odt-default-image-sizes-alist '(("as-char" 5 . 0.4) ("paragraph" 5 . 5)) (#$ . 9002)) |
|
87 |
#@44 Limiting dimensions for an embedded image. |
|
88 |
(defvar org-odt-max-image-size '(17.0 . 20.0) (#$ . 9171)) |
|
89 |
#@771 Specify how labels are applied and referenced. |
|
90 |
|
|
91 |
This is an alist where each element is of the form: |
|
92 |
|
|
93 |
(STYLE-NAME ATTACH-FMT REF-MODE REF-FMT) |
|
94 |
|
|
95 |
ATTACH-FMT controls how labels and captions are attached to an |
|
96 |
entity. It may contain following specifiers - %e and %c. %e is |
|
97 |
replaced with the CATEGORY-NAME. %n is replaced with |
|
98 |
"<text:sequence ...> SEQNO </text:sequence>". %c is replaced |
|
99 |
with CAPTION. |
|
100 |
|
|
101 |
REF-MODE and REF-FMT controls how label references are generated. |
|
102 |
The following XML is generated for a label reference - |
|
103 |
"<text:sequence-ref text:reference-format="REF-MODE" ...> |
|
104 |
REF-FMT </text:sequence-ref>". REF-FMT may contain following |
|
105 |
specifiers - %e and %n. %e is replaced with the CATEGORY-NAME. |
|
106 |
%n is replaced with SEQNO. |
|
107 |
|
|
108 |
See also `org-odt-format-label'. |
|
109 |
(defconst org-odt-label-styles '(("math-formula" "%c" "text" "(%n)") ("math-label" "(%n)" "text" "(%n)") ("category-and-value" "%e %n: %c" "category-and-value" "%e %n") ("value" "%e %n: %c" "value" "%n")) (#$ . 9280)) |
|
110 |
#@734 Map a CATEGORY-HANDLE to OD-VARIABLE and LABEL-STYLE. |
|
111 |
|
|
112 |
This is a list where each entry is of the form: |
|
113 |
|
|
114 |
(CATEGORY-HANDLE OD-VARIABLE LABEL-STYLE CATEGORY-NAME ENUMERATOR-PREDICATE) |
|
115 |
|
|
116 |
CATEGORY_HANDLE identifies the captionable entity in question. |
|
117 |
|
|
118 |
OD-VARIABLE is the OpenDocument sequence counter associated with |
|
119 |
the entity. These counters are declared within |
|
120 |
"<text:sequence-decls>...</text:sequence-decls>" block of |
|
121 |
`org-odt-content-template-file'. |
|
122 |
|
|
123 |
LABEL-STYLE is a key into `org-odt-label-styles' and specifies |
|
124 |
how a given entity should be captioned and referenced. |
|
125 |
|
|
126 |
CATEGORY-NAME is used for qualifying captions on export. |
|
127 |
|
|
128 |
ENUMERATOR-PREDICATE is used for assigning a sequence number to |
|
129 |
the entity. See `org-odt--enumerate'. |
|
130 |
(defvar org-odt-category-map-alist '(("__Table__" "Table" "value" "Table" org-odt--enumerable-p) ("__Figure__" "Illustration" "value" "Figure" org-odt--enumerable-image-p) ("__MathFormula__" "Text" "math-formula" "Equation" org-odt--enumerable-formula-p) ("__DvipngImage__" "Equation" "value" "Equation" org-odt--enumerable-latex-image-p) ("__Listing__" "Listing" "value" "Listing" org-odt--enumerable-p)) (#$ . 10275)) |
|
131 |
(defvar org-odt-manifest-file-entries nil) |
|
132 |
#@53 Temporary work directory for OpenDocument exporter. |
|
133 |
(defvar org-odt-zip-dir nil (#$ . 11477)) |
|
134 |
(byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\306\301\316\317\320\321& \210\322\323!\210\310\324\312\313\325DD\326\320\327\306\301\316\317\330\331&\210\310\332\312\313\333DD\334\320\335\306\301\316\336& \210\310\337\312\313\340DD\341\306\301\316\317\320\342& \210\310\343\312\313\344DD\345\306\301\316\346\347\350\320\351&\210\310\352\312\313\353DD\354\306\301\316\317\320\355& \210\310\356\312\313\357DD\360\306\301\316\317\320\361& \210\310\362\312\313\363DD\364\306\301\316\317\320\365& \210\310\366\312\313\367DD\370\306\301\316\317\320\371& \210\372\366\373\374#\210\310\375\312\313\376DD\377\306\301\316\201@ \347\201A \320\313&\210\310\201B \312\313\201C DD\201D \306\301\316\201@ \347\201E \320\313&\210\310\201F \312\313\201G DD\201H \306\301\316\201@ \347\201I \320\313&\210\310\201J \312\313\201K DD\201L \306\301\316\346\347\201M \320\201N &\210\310\201O \312\313\201P DD\201Q \306\301\316\346\347\201R \320\201S &\210\310\201T \312\313\201U DD\201V \306\301\316\201@ \347\201W \320\201X &\210\310\201Y \312\313\201Z DD\201[ \320\201\\ \306\301\316\346\347\201] &\210\310\201^ \312\313\201_ DD\201` \306\301\316\317\320\321& \210\310\201a \312\313\201b DD\201c \320\321\306\301\316\317& \210\310\201d \312\313\201e DD\201f \306\301\316\317\320\201g & \210\310\201h \312\313\201i DD\201j \306\301\316\346\347\201k \320\321&\207" [custom-declare-group org-export-odt nil "Options for exporting Org mode files to ODT." :tag "Org Export ODT" :group org-export custom-declare-variable org-odt-prettify-xml funcall function #[0 "\300\207" [nil] 1] "Specify whether or not the xml output should be prettified.\nWhen this option is turned on, `indent-region' is run on all\ncomponent xml buffers before they are saved. Turn this off for\nregular use. Turn this on if you need to examine the xml\nvisually." :version "24.1" :type boolean require rng-loc org-odt-schema-dir #[0 "\301\302\"\207" [org-odt-schema-dir-list cl-find-if #[257 "\211\205 \300\301\302\"!\205 \300\301\303\"!\205 \304\301\305\"!\207" [file-expand-wildcards expand-file-name "od-manifest-schema*.rnc" "od-schema*.rnc" file-readable-p "schemas.xml"] 5 "\n\n(fn DIR)"]] 3] "Directory that contains OpenDocument schema files.\n\nThis directory contains:\n1. rnc files for OpenDocument schema\n2. a \"schemas.xml\" file that specifies locating rules needed\n for auto validation of OpenDocument XML files.\n\nUse the customize interface to set this variable. This ensures\nthat `rng-schema-locating-files' is updated and auto-validation\nof OpenDocument XML takes place based on the value\n`rng-nxml-auto-validate-flag'.\n\nThe default value of this variable varies depending on the\nversion of org in use and is initialized from\n`org-odt-schema-dir-list'. The OASIS schema files are available\nonly in the org's private git repository. It is *not* bundled\nwith GNU ELPA tar or standard Emacs distribution." (choice (const :tag "Not set" nil) (directory :tag "Schema directory")) :set #[514 "\211\301\302\303\"!\203! \301\302\304\"!\203! \305\302\306\"!\203! \202+ \203* \307\310\"\210\311L\266\2056 \312\313\314\"\207" [org-odt-schema-dir file-expand-wildcards expand-file-name "od-manifest-schema*.rnc" "od-schema*.rnc" file-readable-p "schemas.xml" message "Error (ox-odt): %s has no OpenDocument schema files" nil eval-after-load rng-loc #[0 "\301\302\303\304\"\"\207" [org-odt-schema-dir add-to-list rng-schema-locating-files expand-file-name "schemas.xml"] 5]] 8 "Set `org-odt-schema-dir'.\nAlso add it to `rng-schema-locating-files'.\n\n(fn VAR VALUE)"] org-odt-content-template-file #[0 "\300\207" [nil] 1] "Template file for \"content.xml\".\nThe exporter embeds the exported content just before\n\"</office:text>\" element.\n\nIf unspecified, the file named \"OrgOdtContentTemplate.xml\"\nunder `org-odt-styles-dir' is used." (choice (const nil) (file)) "24.3" org-odt-styles-file #[0 "\300\207" [nil] 1] "Default styles file for use with ODT export.\nValid values are one of:\n1. nil\n2. path to a styles.xml file\n3. path to a *.odt or a *.ott file\n4. list of the form (ODT-OR-OTT-FILE (FILE-MEMBER-1 FILE-MEMBER-2\n...))\n\nIn case of option 1, an in-built styles.xml is used. See\n`org-odt-styles-dir' for more information.\n\nIn case of option 3, the specified file is unzipped and the\nstyles.xml embedded therein is used.\n\nIn case of option 4, the specified ODT-OR-OTT-FILE is unzipped\nand FILE-MEMBER-1, FILE-MEMBER-2 etc are copied in to the\ngenerated odt file. Use relative path for specifying the\nFILE-MEMBERS. styles.xml must be specified as one of the\nFILE-MEMBERS.\n\nUse options 1, 2 or 3 only if styles.xml alone suffices for\nachieving the desired formatting. Use option 4, if the styles.xml\nreferences additional files like header and footer images for\nachieving the desired formatting.\n\nUse \"#+ODT_STYLES_FILE: ...\" directive to set this variable on\na per-file basis. For example,\n\n#+ODT_STYLES_FILE: \"/path/to/styles.xml\" or\n#+ODT_STYLES_FILE: (\"/path/to/file.ott\" (\"styles.xml\" \"image/hdr.png\"))." (choice (const :tag "Factory settings" nil) (file :must-match t :tag "styles.xml") (file :must-match t :tag "ODT or OTT file") (list :tag "ODT or OTT file + Members" (file :must-match t :tag "ODF Text or Text Template file") (cons :tag "Members" (file :tag " Member" "styles.xml") (repeat (file :tag "Member"))))) org-odt-display-outline-level #[0 "\300\207" [2] 1] "Outline levels considered for enumerating captioned entities." "24.4" :package-version (Org . "8.0") integer org-odt-convert-processes #[0 "\300\207" [(("LibreOffice" "soffice --headless --convert-to %f%x --outdir %d %i") ("unoconv" "unoconv -f %f -o %d %i"))] 1] "Specify a list of document converters and their usage.\nThe converters in this list are offered as choices while\ncustomizing `org-odt-convert-process'.\n\nThis variable is a list where each element is of the\nform (CONVERTER-NAME CONVERTER-CMD). CONVERTER-NAME is the name\nof the converter. CONVERTER-CMD is the shell command for the\nconverter and can contain format specifiers. These format\nspecifiers are interpreted as below:\n\n%i input file name in full\n%I input file name as a URL\n%f format of the output file\n%o output file name in full\n%O output file name as a URL\n%d output dir in full\n%D output dir as a URL.\n%x extra options as set in `org-odt-convert-capabilities'." (choice (const :tag "None" nil) (alist :tag "Converters" :key-type (string :tag "Converter Name") :value-type (group (string :tag "Command line")))) org-odt-convert-process #[0 "\300\207" [#1="LibreOffice"] 1 #1#] "Use this converter to convert from \"odt\" format to other formats.\nDuring customization, the list of converter names are populated\nfrom `org-odt-convert-processes'." (choice :convert-widget (lambda (w) (apply 'widget-convert (widget-type w) (eval (car (widget-get w :args))))) `((const :tag "None" nil) ,@(mapcar (lambda (c) `(const :tag ,(car c) ,(car c))) org-odt-convert-processes))) org-odt-convert-capabilities #[0 "\300\207" [(("Text" ("odt" "ott" "doc" "rtf" "docx") (("pdf" "pdf") ("odt" "odt") ("rtf" "rtf") ("ott" "ott") ("doc" "doc" ":\"MS Word 97\"") ("docx" "docx") ("html" "html"))) ("Web" ("html") (("pdf" "pdf") ("odt" "odt") ("html" "html"))) ("Spreadsheet" ("ods" "ots" "xls" "csv" "xlsx") (("pdf" "pdf") ("ots" "ots") ("html" "html") ("csv" "csv") ("ods" "ods") ("xls" "xls") ("xlsx" "xlsx"))) ("Presentation" ("odp" "otp" "ppt" "pptx") (("pdf" "pdf") ("swf" "swf") ("odp" "odp") ("otp" "otp") ("ppt" "ppt") ("pptx" "pptx") ("odg" "odg"))))] 1] "Specify input and output formats of `org-odt-convert-process'.\nMore correctly, specify the set of input and output formats that\nthe user is actually interested in.\n\nThis variable is an alist where each element is of the\nform (DOCUMENT-CLASS INPUT-FMT-LIST OUTPUT-FMT-ALIST).\nINPUT-FMT-LIST is a list of INPUT-FMTs. OUTPUT-FMT-ALIST is an\nalist where each element is of the form (OUTPUT-FMT\nOUTPUT-FILE-EXTENSION EXTRA-OPTIONS).\n\nThe variable is interpreted as follows:\n`org-odt-convert-process' can take any document that is in\nINPUT-FMT-LIST and produce any document that is in the\nOUTPUT-FMT-LIST. A document converted to OUTPUT-FMT will have\nOUTPUT-FILE-EXTENSION as the file name extension. OUTPUT-FMT\nserves dual purposes:\n- It is used for populating completion candidates during\n `org-odt-convert' commands.\n- It is used as the value of \"%f\" specifier in\n `org-odt-convert-process'.\n\nEXTRA-OPTIONS is used as the value of \"%x\" specifier in\n`org-odt-convert-process'.\n\nDOCUMENT-CLASS is used to group a set of file formats in\nINPUT-FMT-LIST in to a single class.\n\nNote that this variable inherently captures how LibreOffice based\nconverters work. LibreOffice maps documents of various formats\nto classes like Text, Web, Spreadsheet, Presentation etc and\nallow document of a given class (irrespective of its source\nformat) to be converted to any of the export formats associated\nwith that class.\n\nSee default setting of this variable for a typical configuration." (choice (const :tag "None" nil) (alist :tag "Capabilities" :key-type (string :tag "Document Class") :value-type (group (repeat :tag "Input formats" (string :tag "Input format")) (alist :tag "Output formats" :key-type (string :tag "Output format") :value-type (group (string :tag "Output file extension") (choice (const :tag "None" nil) (string :tag "Extra options"))))))) org-odt-preferred-output-format #[0 "\300\207" [nil] 1] "Automatically post-process to this format after exporting to \"odt\".\nCommand `org-odt-export-to-odt' exports first to \"odt\" format\nand then uses `org-odt-convert-process' to convert the\nresulting document to this format. During customization of this\nvariable, the list of valid values are populated based on\n`org-odt-convert-capabilities'.\n\nYou can set this option on per-file basis using file local\nvalues. See Info node `(emacs) File Variables'." (choice :convert-widget (lambda (w) (apply 'widget-convert (widget-type w) (eval (car (widget-get w :args))))) `((const :tag "None" nil) ,@(mapcar (lambda (c) `(const :tag ,c ,c)) (org-odt-reachable-formats "odt")))) put safe-local-variable stringp org-odt-format-drawer-function #[0 "\300\207" [#[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]] 1] "Function called to format a drawer in ODT code.\n\nThe function must accept two parameters:\n NAME the drawer name, like \"LOGBOOK\"\n CONTENTS the contents of the drawer.\n\nThe function should return the string to be exported.\n\nThe default value simply returns the value of CONTENTS." "26.1" (Org . "8.3") org-odt-format-headline-function #[0 "\300\207" [org-odt-format-headline-default-function] 1] "Function to format headline text.\n\nThis function will be called with 5 arguments:\nTODO the todo keyword (string or nil).\nTODO-TYPE the type of todo (symbol: `todo', `done', nil)\nPRIORITY the priority of the headline (integer or nil)\nTEXT the main headline text (string).\nTAGS the tags string, separated with colons (string or nil).\n\nThe function result will be used as headline text." (Org . "8.3") org-odt-format-inlinetask-function #[0 "\300\207" [org-odt-format-inlinetask-default-function] 1] "Function called to format an inlinetask in ODT code.\n\nThe function must accept six parameters:\n TODO the todo keyword, as a string\n TODO-TYPE the todo type, a symbol among `todo', `done' and nil.\n PRIORITY the inlinetask priority, as a string\n NAME the inlinetask name, as a string.\n TAGS the inlinetask tags, as a string.\n CONTENTS the contents of the inlinetask, as a string.\n\nThe function should return the string to be exported." (Org . "8.3") org-odt-with-latex #[0 "\207" [org-export-with-latex] 1] "Non-nil means process LaTeX math snippets.\n\nWhen set, the exporter will process LaTeX environments and\nfragments.\n\nThis option can also be set with the +OPTIONS line,\ne.g. \"tex:mathjax\". Allowed values are:\n\nnil Ignore math snippets.\n`verbatim' Keep everything in verbatim\n`dvipng' Process the LaTeX fragments to images. This will also\n include processing of non-math environments.\n`imagemagick' Convert the LaTeX fragments to pdf files and use\n imagemagick to convert pdf files to png files.\n`mathjax' Do MathJax preprocessing and arrange for MathJax.js to\n be loaded.\n\nAny other symbol is a synonym for `mathjax'." (Org . "8.0") (choice (const :tag "Do not process math in any way" nil) (const :tag "Leave math verbatim" verbatim) (const :tag "Use dvipng to make images" dvipng) (const :tag "Use imagemagick to make images" imagemagick) (other :tag "Use MathJax to display math" mathjax)) org-odt-inline-formula-rules #[0 "\300\207" [(("file" . "\\.\\(mathml\\|mml\\|odf\\)\\'"))] 1] "Rules characterizing formula files that can be inlined into ODT.\n\nA rule consists in an association whose key is the type of link\nto consider, and value is a regexp that will be matched against\nlink's path." (Org . "8.0") (alist :key-type (string :tag "Type") :value-type (regexp :tag "Path")) org-odt-inline-image-rules #[0 "\300\207" [(("file" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\)\\'"))] 1] "Rules characterizing image files that can be inlined into ODT.\n\nA rule consists in an association whose key is the type of link\nto consider, and value is a regexp that will be matched against\nlink's path." (Org . "8.3") (alist :key-type (string :tag "Type") :value-type (regexp :tag "Path")) org-odt-pixels-per-inch #[0 "\300\207" [96.0] 1] "Scaling factor for converting images pixels to inches.\nUse this for sizing of embedded images. See Info node `(org)\nImages in ODT export' for more information." float (Org . "8.1") org-odt-create-custom-styles-for-srcblocks #[0 "\300\207" [t] 1] "Whether custom styles for colorized source blocks be automatically created.\nWhen this option is turned on, the exporter creates custom styles\nfor source blocks based on the advice of `htmlfontify'. Creation\nof custom styles happen as part of `org-odt-hfy-face-to-css'.\n\nWhen this option is turned off exporter does not create such\nstyles.\n\nUse the latter option if you do not want the custom styles to be\nbased on your current display settings. It is necessary that the\nstyles.xml already contains needed styles for colorizing to work.\n\nThis variable is effective only if `org-odt-fontify-srcblocks' is\nturned on." org-odt-fontify-srcblocks #[0 "\300\207" [t] 1] "Specify whether or not source blocks need to be fontified.\nTurn this option on if you want to colorize the source code\nblocks in the exported file. For colorization to work, you need\nto make available an enhanced version of `htmlfontify' library." org-odt-table-styles #[0 "\300\207" [(("OrgEquation" "OrgEquation" ((use-first-column-styles . t) (use-last-column-styles . t))) ("TableWithHeaderRowAndColumn" "Custom" ((use-first-row-styles . t) (use-first-column-styles . t))) ("TableWithFirstRowandLastRow" "Custom" ((use-first-row-styles . t) (use-last-row-styles . t))) ("GriddedTable" "Custom" nil))] 1] "Specify how Table Styles should be derived from a Table Template.\nThis is a list where each element is of the\nform (TABLE-STYLE-NAME TABLE-TEMPLATE-NAME TABLE-CELL-OPTIONS).\n\nTABLE-STYLE-NAME is the style associated with the table through\n\"#+ATTR_ODT: :style TABLE-STYLE-NAME\" line.\n\nTABLE-TEMPLATE-NAME is a set of - upto 9 - automatic\nTABLE-CELL-STYLE-NAMEs and PARAGRAPH-STYLE-NAMEs (as defined\nbelow) that is included in `org-odt-content-template-file'.\n\nTABLE-CELL-STYLE-NAME := TABLE-TEMPLATE-NAME + TABLE-CELL-TYPE +\n \"TableCell\"\nPARAGRAPH-STYLE-NAME := TABLE-TEMPLATE-NAME + TABLE-CELL-TYPE +\n \"TableParagraph\"\nTABLE-CELL-TYPE := \"FirstRow\" | \"LastColumn\" |\n \"FirstRow\" | \"LastRow\" |\n \"EvenRow\" | \"OddRow\" |\n \"EvenColumn\" | \"OddColumn\" | \"\"\nwhere \"+\" above denotes string concatenation.\n\nTABLE-CELL-OPTIONS is an alist where each element is of the\nform (TABLE-CELL-STYLE-SELECTOR . ON-OR-OFF).\nTABLE-CELL-STYLE-SELECTOR := `use-first-row-styles' |\n `use-last-row-styles' |\n `use-first-column-styles' |\n `use-last-column-styles' |\n `use-banding-rows-styles' |\n `use-banding-columns-styles' |\n `use-first-row-styles'\nON-OR-OFF := t | nil\n\nFor example, with the following configuration\n\n(setq org-odt-table-styles\n \\='((\"TableWithHeaderRowsAndColumns\" \"Custom\"\n ((use-first-row-styles . t)\n (use-first-column-styles . t)))\n (\"TableWithHeaderColumns\" \"Custom\"\n ((use-first-column-styles . t)))))\n\n1. A table associated with \"TableWithHeaderRowsAndColumns\"\n style will use the following table-cell styles -\n \"CustomFirstRowTableCell\", \"CustomFirstColumnTableCell\",\n \"CustomTableCell\" and the following paragraph styles\n \"CustomFirstRowTableParagraph\",\n \"CustomFirstColumnTableParagraph\", \"CustomTableParagraph\"\n as appropriate.\n\n2. A table associated with \"TableWithHeaderColumns\" style will\n use the following table-cell styles -\n \"CustomFirstColumnTableCell\", \"CustomTableCell\" and the\n following paragraph styles\n \"CustomFirstColumnTableParagraph\", \"CustomTableParagraph\"\n as appropriate..\n\nNote that TABLE-TEMPLATE-NAME corresponds to the\n\"<table:table-template>\" elements contained within\n\"<office:styles>\". The entries (TABLE-STYLE-NAME\nTABLE-TEMPLATE-NAME TABLE-CELL-OPTIONS) correspond to\n\"table:template-name\" and \"table:use-first-row-styles\" etc\nattributes of \"<table:table>\" element. Refer ODF-1.2\nspecification for more information. Also consult the\nimplementation filed under `org-odt-get-table-cell-styles'.\n\nThe TABLE-STYLE-NAME \"OrgEquation\" is used internally for\nformatting of numbered display equations. Do not delete this\nstyle from the list." (choice (const :tag "None" nil) (repeat :tag "Table Styles" (list :tag "Table Style Specification" (string :tag "Table Style Name") (string :tag "Table Template Name") (alist :options (use-first-row-styles use-last-row-styles use-first-column-styles use-last-column-styles use-banding-rows-styles use-banding-columns-styles) :key-type symbol :value-type (const :tag "True" t))))) org-odt-use-date-fields #[0 "\300\207" [nil] 1] "Non-nil, if timestamps should be exported as date fields.\n\nWhen nil, export timestamps as plain text.\n\nWhen non-nil, map `org-time-stamp-custom-formats' to a pair of\nOpenDocument date-styles with names \"OrgDate1\" and \"OrgDate2\"\nrespectively. A timestamp with no time component is formatted\nwith style \"OrgDate1\" while one with explicit hour and minutes\nis formatted with style \"OrgDate2\".\n\nThis feature is experimental. Most (but not all) of the common\n%-specifiers in `format-time-string' are supported.\nSpecifically, locale-dependent specifiers like \"%c\", \"%x\" are\nformatted as canonical Org timestamps. For finer control, avoid\nthese %-specifiers.\n\nTextual specifiers like \"%b\", \"%h\", \"%B\", \"%a\", \"%A\"\netc., are displayed by the application in the default language\nand country specified in `org-odt-styles-file'. Note that the\ndefault styles file uses language \"en\" and country \"GB\". You\ncan localize the week day and month strings in the exported\ndocument by setting the default language and country either using\nthe application UI or through a custom styles file.\n\nSee `org-odt--build-date-styles' for implementation details." (Org . "8.0")] 12) |
|
135 |
#@43 |
|
136 |
|
|
137 |
(fn TIMESTAMP &optional END ISO-DATE-P) |
|
138 |
(defalias 'org-odt--format-timestamp #[769 "\302?\206 |