JezK
Edit File: org-odt.elc
;ELC ;;; Compiled by mockbuild@buildfarm03-new.corp.cloudlinux.com on Wed Aug 19 23:53:29 2026 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-odt.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311\312\313& \207" [require org-lparse custom-declare-group org-export-odt nil "Options specific for ODT export of Org-mode files." :tag "Org Export ODT" :group org-export :version "24.1"] 10) (defalias 'org-odt-insert-toc #[nil "eb\210\301\302\303\304#\203 \305\306!\210\202 b\210\307 c\207" [org-lparse-dyn-first-heading-pos re-search-forward "\\(<text:p [^>]*>\\)?\\s-*\\[TABLE-OF-CONTENTS\\]\\s-*\\(</text:p>\\)?" nil t replace-match "" org-odt-format-toc] 4]) (defalias 'org-odt-end-export #[nil "\303 \210\304 \210eb\210\305\306\307\310#\203 \311\312!\210\202 eb\210eb\210\307\211\211\313`\314\"\211\203J \315\n\314\"\313\n\314\"\nb\210\n |\210\316\317\320\321\"\"c\210\202$ +eb\210\322\323!\203X \311\312!\210\324ed\325#\207" [n end beg org-odt-insert-toc org-odt-fixup-label-references re-search-forward "<text:p\\( text:style-name=\"Text_20_body\"\\)?>[ \n ]*</text:p>" nil t replace-match "" next-single-property-change org-whitespace get-text-property format "<span style=\"visibility:hidden;\">%s</span>" make-string 120 looking-at "\\s-+\n" remove-text-properties (display t)] 5]) (defvar org-odt-suppress-xref nil) #@52 Regular expressions for special string conversion. (defconst org-export-odt-special-string-regexps '(("\\\\-" . "­\\1") ("---\\([^-]\\)" . "—\\1") ("--\\([^-]\\)" . "–\\1") ("\\.\\.\\." . "…")) (#$ . 1750)) #@109 Location of ODT exporter. Use this to infer values of `org-odt-styles-dir' and `org-export-odt-schema-dir'. (defconst org-odt-lib-dir (file-name-directory load-file-name) (#$ . 1992)) #@116 Data directory for ODT exporter. Use this to infer values of `org-odt-styles-dir' and `org-export-odt-schema-dir'. (defvar org-odt-data-dir nil (#$ . 2183)) #@252 List of directories to search for OpenDocument schema files. Use this list to set the default value of `org-export-odt-schema-dir'. The entries in this list are populated heuristically based on the values of `org-odt-lib-dir' and `org-odt-data-dir'. (defconst org-odt-schema-dir-list (byte-code "\205 \301\302\"\303D\207" [org-odt-data-dir expand-file-name "./schema/" "/usr/share/emacs/etc/org/schema/"] 3) (#$ . 2347)) #@721 Directory that contains OpenDocument schema files. This directory contains: 1. rnc files for OpenDocument schema 2. a "schemas.xml" file that specifies locating rules needed for auto validation of OpenDocument XML files. Use the customize interface to set this variable. This ensures that `rng-schema-locating-files' is updated and auto-validation of OpenDocument XML takes place based on the value `rng-nxml-auto-validate-flag'. The default value of this variable varies depending on the version of org in use and is initialized from `org-odt-schema-dir-list'. The OASIS schema files are available only in the org's private git repository. It is *not* bundled with GNU ELPA tar or standard Emacs distribution. (custom-declare-variable 'org-export-odt-schema-dir '(let* ((schema-dir (catch 'schema-dir (message "Debug (org-odt): Searching for OpenDocument schema files...") (mapc (lambda (schema-dir) (when schema-dir (message "Debug (org-odt): Trying %s..." schema-dir) (when (and (file-readable-p (expand-file-name "od-manifest-schema-v1.2-cs01.rnc" schema-dir)) (file-readable-p (expand-file-name "od-schema-v1.2-cs01.rnc" schema-dir)) (file-readable-p (expand-file-name "schemas.xml" schema-dir))) (message "Debug (org-odt): Using schema files under %s" schema-dir) (throw 'schema-dir schema-dir)))) org-odt-schema-dir-list) (message "Debug (org-odt): No OpenDocument schema files installed") nil))) schema-dir) '(#$ . 2779) :type '(choice (const :tag "Not set" nil) (directory :tag "Schema directory")) :group 'org-export-odt :version "24.1" :set #[(var value) "\n\304\305\306 \"!\203\"