Server IP : 111.118.215.189 / Your IP : 18.224.51.27 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:21 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/htmlfontify.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\207" [require faces custom font-lock cus-edit] 2) (defconst htmlfontify-version 0.21) #@57 The generator meta tag for this version of htmlfontify. (defconst hfy-meta-tags (format "<meta name=\"generator\" content=\"emacs %s; htmlfontify %0.2f\" />" emacs-version htmlfontify-version) (#$ . 701)) #@1768 Copy and convert buffers and files to HTML, adding hyperlinks between files (driven by etags) if requested. Interactive functions: `htmlfontify-buffer' `htmlfontify-run-etags' `htmlfontify-copy-and-link-dir' `htmlfontify-load-rgb-file' `htmlfontify-unload-rgb-file' In order to: fontify a file you have open: \[htmlfontify-buffer] prepare the etags map for a directory: \[htmlfontify-run-etags] copy a directory, fontifying as you go: \[htmlfontify-copy-and-link-dir] The following might be useful when running non-windowed or in batch mode: (note that they shouldn't be necessary - we have a built in map) load an X11 style rgb.txt file: \[htmlfontify-load-rgb-file] unload the current rgb.txt file: \[htmlfontify-unload-rgb-file] And here's a programmatic example: (defun rtfm-build-page-header (file style) (format "#define TEMPLATE red+black.html #define DEBUG 1 #include <build/menu-dirlist|>\n html-css-url := /css/red+black.css title := rtfm.etla.org ( %s / src/%s ) bodytag := head <=STYLESHEET;\n %s STYLESHEET main-title := rtfm / %s / src/%s\n main-content <=MAIN_CONTENT;\n" rtfm-section file style rtfm-section file)) (defun rtfm-build-page-footer (file) "\nMAIN_CONTENT\n") (defun rtfm-build-source-docs (section srcdir destdir) (interactive "s section[eg- emacs / p4-blame]:\nD source-dir: \nD output-dir: ") (require 'htmlfontify) (hfy-load-tags-cache srcdir) (let ((hfy-page-header 'rtfm-build-page-header) (hfy-page-footer 'rtfm-build-page-footer) (rtfm-section section) (hfy-index-file "index")) (htmlfontify-run-etags srcdir) (htmlfontify-copy-and-link-dir srcdir destdir ".src" ".html"))) (defconst htmlfontify-manual "Htmlfontify Manual" (#$ . 914)) (byte-code "\302\303\304\305\306\307\310\311\312\313& \210\314\315\316\317\306\303\320\321\322\323& \210\314\324\304\325\306\303\320\326\322\327& \210\314\330\331\332\306\303\320\333\322\334& \210\314\335\336\337\306\303\320\340\322\341& \210\314\342\343\344\306\303\320\345\322\346& \210\314\347\350\351\306\303\320\352\322\353& \210\314\354\304\355\306\303\320\356\322\357& \210\314\360\361\362\306\303\320\363\322\364& \210\314\365\366\367\306\303\320\370\322\371& \210\314\372\373\374\306\303\320\375\322\376& \210\314\377\201@ \201A \306\303\320\201B \322\201C & \210\201D \201E \201F \304#\210\201G \304\211\203\342 @\201E N\203\333 \201F N\204\333 \201H \201F \201E N#\210 A\211\204\272 *\201I \201E \201F \201J #\210\314\201F \201K \201L \306\303\320\201M \322\201N & \210\201D \201O \201P \304#\210\201G \304\211\203F @\201O N\203?\201P N\204?\201H \201P \201O N#\210 A\211\204*\201I \201O \201P \201Q #\210\314\201P \304\201R \306\303\320\201S \201T \201U \322\201V &\210\314\201W \304\201X \306\303\320\201Y \322\201Z & \210\314\201[ \201\\ \201] \306\303\320\201^ \322\201_ & \210\314\201` \201a \201b \306\303\320\201c \322\201d & \207" [prop --dolist-tail-- custom-declare-group htmlfontify nil "Convert buffers and files to HTML." :group applications :link (variable-link htmlfontify-manual) :prefix "hfy-" custom-declare-variable hfy-page-header 'hfy-default-header "Function called to build the header of the HTML source.\nThis is called with two arguments (the filename relative to the top\nlevel source directory being etag'd and fontified), and a string containing\nthe <style>...</style> text to embed in the document.\nIt should return a string that will be used as the header for the\nhtmlfontified version of the source file.\n\nSee also `hfy-page-footer'." :tag "page-header" :type (function) hfy-split-index "Whether or not to split the index `hfy-index-file' alphabetically.\nIf non-nil, the index is split on the first letter of each tag.\nUseful when the index would otherwise be large and take\na long time to render or be difficult to navigate." "split-index" (boolean) hfy-page-footer 'hfy-default-footer "As `hfy-page-header', but generates the output footer.\nIt takes only one argument, the filename." "page-footer" (function) hfy-extn ".html" "File extension used for output files." "extension" (string) hfy-src-doc-link-style "text-decoration: underline;" "String to add to the '<style> a' variant of an htmlfontify CSS class." "src-doc-link-style" (string) hfy-src-doc-link-unstyle " text-decoration: none;" "Regex to remove from the <style> a variant of an htmlfontify CSS class." "src-doc-link-unstyle" (string) hfy-link-extn "File extension used for href links.\nUseful where the htmlfontify output files are going to be processed\nagain, with a resulting change in file extension. If nil, then any\ncode using this should fall back to `hfy-extn'." "link-extension" (choice string (const nil)) hfy-link-style-fun 'hfy-link-style-string "Function to customize the appearance of hyperlinks.\nSet this to a function, which will be called with one argument\n(a \"{ foo: bar; ...}\" CSS style-string) - it should return a copy of\nits argument, altered so as to make any changes you want made for text which\nis a hyperlink, in addition to being in the class to which that style would\nnormally be applied." "link-style-function" (function) hfy-index-file "hfy-index" "Name (sans extension) of the tag definition index file produced during\nfontification-and-hyperlinking." "index-file" (string) hfy-instance-file "hfy-instance" "Name (sans extension) of the tag usage index file produced during\nfontification-and-hyperlinking." "instance-file" (string) hfy-html-quote-regex "\\([<\"&>]\\)" "Regex to match (with a single back-reference per match) strings in HTML\nwhich should be quoted with `hfy-html-quote' (and `hfy-html-quote-map')\nto make them safe." "html-quote-regex" (regexp) defvaralias hfy-init-kludge-hooks hfy-init-kludge-hook (saved-value saved-variable-comment) put make-obsolete-variable "23.2" '(hfy-kludge-cperl-mode) "List of functions to call when starting `htmlfontify-buffer' to do any\nkludging necessary to get highlighting modes to behave as you want, even\nwhen not running under a window system." "init-kludge-hooks" (hook) hfy-post-html-hooks hfy-post-html-hook "24.3" "List of functions to call after creating and filling the HTML buffer.\nThese functions will be called with the HTML buffer as the current buffer." "post-html-hooks" :options (set-auto-mode) (hook) hfy-default-face-def "Fallback `defface' specification for the face 'default, used when\n`hfy-display-class' has been set (the normal htmlfontify way of extracting\npotentially non-current face information doesn't necessarily work for\n'default).\n\nExample: I customize this to:\n\n((t :background \"black\" :foreground \"white\" :family \"misc-fixed\"))" "default-face-definition" (alist) hfy-etag-regex (concat ".*" "" "\\([^\n]+\\)" "" "\\([0-9]+\\)" "," "\\([0-9]+\\)$" "\\|" ".*[0-9]+,[0-9]+$") "Regex used to parse an etags entry: must have 3 subexps, corresponding,\nin order, to:\n\n 1 - The tag\n 2 - The line\n 3 - The char (point) at which the tag occurs." "etag-regex" (regexp) hfy-html-quote-map '(("\"" """) ("<" "<") ("&" "&") (">" ">")) "Alist of char -> entity mappings used to make the text HTML-safe." "html-quote-map" (alist :key-type (string))] 13) (defconst hfy-e2x-etags-cmd "for src in `find . -type f`;\ndo\n ETAGS=%s;\n case ${src} in\n *.ad[absm]|*.[CFHMSacfhlmpsty]|*.def|*.in[cs]|*.s[as]|*.src|*.cc|\\\n *.hh|*.[chy]++|*.[ch]pp|*.[chy]xx|*.pdb|*.[ch]s|*.[Cc][Oo][Bb]|\\\n *.[eh]rl|*.f90|*.for|*.java|*.[cem]l|*.clisp|*.lisp|*.[Ll][Ss][Pp]|\\\n [Mm]akefile*|*.pas|*.[Pp][LlMm]|*.psw|*.lm|*.pc|*.prolog|*.oak|\\\n *.p[sy]|*.sch|*.scheme|*.[Ss][Cc][Mm]|*.[Ss][Mm]|*.bib|*.cl[os]|\\\n *.ltx|*.sty|*.TeX|*.tex|*.texi|*.texinfo|*.txi|*.x[bp]m|*.yy|\\\n *.[Ss][Qq][Ll])\n ${ETAGS} -o- ${src};\n ;;\n *)\n FTYPE=`file ${src}`;\n case ${FTYPE} in\n *script*text*)\n ${ETAGS} -o- ${src};\n ;;\n *text*)\n SHEBANG=`head -n1 ${src} | grep '#!' -c`;\n if [ ${SHEBANG} -eq 1 ];\n then\n ${ETAGS} -o- ${src};\n fi;\n ;;\n esac;\n ;;\n esac;\ndone;") (defconst hfy-etags-cmd-alist-default (byte-code "\301B\302B\207" [hfy-e2x-etags-cmd "emacs etags" (("exuberant ctags" . "%s -R -f -"))] 2)) (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\300\312\313\314\304\305\306\315\310\316& \210\300\317\320\321\304\305\306\322\310\323& \210\300\324\325\326\304\305\306\327\310\330& \207" [custom-declare-variable hfy-etags-cmd-alist hfy-etags-cmd-alist-default "Alist of possible shell commands that will generate etags output that\n`htmlfontify' can use. '%s' will be replaced by `hfy-etags-bin'." :group htmlfontify :tag "etags-cmd-alist" :type (alist :key-type (string) :value-type (string)) hfy-etags-bin "etags" "Location of etags binary (we begin by assuming it's in your path).\n\nNote that if etags is not in your path, you will need to alter the shell\ncommands in `hfy-etags-cmd-alist'." "etags-bin" (file) hfy-shell-file-name "/bin/sh" "Shell (Bourne or compatible) to invoke for complex shell operations." "shell-file-name" (file) hfy-ignored-properties '(read-only intangible modification-hooks insert-in-front-hooks insert-behind-hooks point-entered point-left) "Properties to omit when copying a fontified buffer for HTML transformation." "ignored-properties" (repeat symbol)] 10) #@64 Return a string indicating which flavor of etags we are using. (defalias 'hfy-which-etags #[nil "\302\303P!\304\305 \"\203 \306\202 \304\307 \"\205 \310)\207" [hfy-etags-bin v shell-command-to-string " --version" string-match "exube" "exuberant ctags" "GNU E" "emacs etags"] 3 (#$ . 10494)]) (byte-code "\304\305\306\307\310\311\312\313\314\315C \316\211\203( @\317\312\n@\nAFBA\211\204 *\320)B& \210\304\321\322\323\310\311\312\324\314\325& \210\304\326\327\330\310\311\312\331\314\332& \210\304\333\316\334\314\335\310\311\312\336\337\340&\210\304\341\342\343\314\344\310\311\312\345& \207" [clist hfy-etags-cmd-alist C --dolist-tail-- custom-declare-variable hfy-etags-cmd (cdr (assoc (hfy-which-etags) hfy-etags-cmd-alist)) "The etags equivalent command to run in a source directory to generate a tags\nfile for the whole source tree from there on down. The command should emit\nthe etags output on stdout.\n\nTwo canned commands are provided - they drive Emacs's etags and\nexuberant-ctags' etags respectively." :group htmlfontify :tag "etags-command" :type (string) nil const choice hfy-istext-command "file %s | sed -e 's@^[^:]*:[ ]*@@'" "Command to run with the name of a file, to see whether it is a text file\nor not. The command should emit a string containing the word 'text' if\nthe file is a text file, and a string not containing 'text' otherwise." "istext-command" (string) hfy-find-cmd "find . -type f \\! -name \\*~ \\! -name \\*.flc \\! -path \\*/CVS/\\*" "Find command used to harvest a list of files to attempt to fontify." "find-command" (string) hfy-display-class "Display class to use to determine which display class to use when\ncalculating a face's attributes. This is useful when, for example, you\nare running Emacs on a tty or in batch mode, and want htmlfontify to have\naccess to the face spec you would use if you were connected to an X display.\n\nSome valid class specification elements are:\n\n '(class color)\n '(class grayscale)\n '(background dark)\n '(background light)\n '(type x-toolkit)\n '(type tty)\n '(type motif)\n '(type lucid)\nMultiple values for a tag may be combined, to indicate that any one or more\nof these values in the specification key constitutes a match, eg:\n\n'((class color grayscale) (type tty)) would match any of:\n\n '((class color))\n '((class grayscale))\n '((class color grayscale))\n '((class color foo))\n '((type tty))\n '((type tty) (class color))\n\nand so on." (alist :key-type (symbol) :value-type (symbol)) "display-class" :options ((type (choice (const :tag "X11" x-toolkit) (const :tag "Terminal" tty) (const :tag "Lucid Toolkit" lucid) (const :tag "Motif Toolkit" motif))) (class (choice (const :tag "Color" color) (const :tag "Grayscale" grayscale))) (background (choice (const :tag "Dark" dark) (const :tag "Bright" light)))) hfy-optimisations (list 'keep-overlays) "Optimizations to turn on: So far, the following have been implemented:\n\n merge-adjacent-tags: If two (or more) span tags are adjacent, identical and\n separated by nothing more than whitespace, they will\n be merged into one span.\n zap-comment-links : Suppress hyperlinking of tags found in comments.\n zap-string-links : Suppress hyperlinking of tags found in strings.\n div-wrapper : Add <div class=\"default\"> </div> tags around the\n output.\n keep-overlays : More of a bell (or possibly whistle) than an\n optimization - If on, preserve overlay highlighting\n (cf ediff or goo-font-lock) as well as basic faces.\n\n body-text-only : Emit only body-text. In concrete terms,\n 1. Suppress calls to `hfy-page-header'and\n `hfy-page-footer'\n 2. Pretend that `div-wrapper' option above is\n turned off\n 3. Don't enclose output in <pre> </pre> tags\n And the following are planned but not yet available:\n\n kill-context-leak : Suppress hyperlinking between files highlighted by\n different modes.\n\nNote: like compiler optimizations, these optimize the _output_ of the code,\nnot the processing of the source itself, and are therefore likely to slow\nhtmlfontify down, at least a little. Except for skip-refontification,\nwhich can never slow you down, but may result in incomplete fontification." (set (const :tag "merge-adjacent-tags" merge-adjacent-tags) (const :tag "zap-comment-links" zap-comment-links) (const :tag "zap-string-links" zap-string-links) (const :tag "skip-refontification" skip-refontification) (const :tag "kill-context-leak" kill-context-leak) (const :tag "div-wrapper" div-wrapper) (const :tag "keep-overlays" keep-overlays) (const :tag "body-text-only" body-text-only)) "optimizations"] 14) #@294 Alist of the form: (("/src/dir/0" . tag-hash0) ("/src/dir/1" tag-hash1) ...) Each tag hash entry then contains entries of the form: "tag_string" => (("file/name.ext" line char) ... ) ie an alist mapping (relative) file paths to line and character offsets. See also `hfy-load-tags-cache'. (defvar hfy-tags-cache nil (#$ . 15422)) #@149 Alist of the form (("/src/dir" . (tag0 tag1 tag2)) ... ) where the tags are stored in descending order of length. See also `hfy-load-tags-cache'. (defvar hfy-tags-sortl nil (#$ . 15763)) #@262 Alist of the form (("/src/dir" . tag-rmap-hash)) where tag-rmap-hash has entries of the form: "tag_string" => ( "file/name.ext" line char ) Unlike `hfy-tags-cache' these are the locations of occurrences of tagged items, not the locations of their definitions. (defvar hfy-tags-rmap nil (#$ . 15959)) #@862 An assoc representing/describing an Emacs face. Properties may be repeated, in which case later properties should be treated as if they were inherited from a 'parent' font. (For some properties, only the first encountered value is of any importance, for others the values might be cumulative, and for others they might be cumulative in a complex way.) Some examples: (hfy-face-to-style 'default) => (("background" . "rgb(0, 0, 0)") ("color" . "rgb(255, 255, 255)") ("font-style" . "normal") ("font-weight" . "500") ("font-stretch" . "normal") ("font-family" . "misc-fixed") ("font-size" . "13pt") ("text-decoration" . "none")) (hfy-face-to-style 'Info-title-3-face) => (("font-weight" . "700") ("font-family" . "helv") ("font-size" . "120%") ("text-decoration" . "none")) (defvar hfy-style-assoc 'please-ignore-this-line (#$ . 16267)) #@216 An assoc with elements of the form (face-name style-name . style-string): '((default "default" . "{background: black; color: white}") (font-lock-string-face "string" . "{color: rgb(64,224,208)}")) (defvar hfy-sheet-assoc 'please-ignore-this-line (#$ . 17198)) #@1090 An assoc of (point . FACE-SYMBOL) or (point . DEFFACE-LIST) and (point . 'end) elements, in descending order of point value (ie from the file's end to its beginning). The map is in reverse order because inserting a <style> tag (or any other string) at `point' invalidates the map for all entries with a greater value of point. By traversing the map from greatest to least point, we still invalidate the map as we go, but only those points we have already dealt with (and therefore no longer care about) will be invalid at any time. '((64820 . end) (64744 . font-lock-comment-face) (64736 . end) (64722 . font-lock-string-face) (64630 . end) (64623 . font-lock-string-face) (64449 . end) (64446 . font-lock-keyword-face) (64406 . end) (64395 . font-lock-constant-face) (64393 . end) (64386 . font-lock-keyword-face) (64379 . end) ;; big similar section elided. You get the idea. (4285 . font-lock-constant-face) (4285 . end) (4221 . font-lock-comment-face) (4221 . end) (4197 . font-lock-constant-face) (4197 . end) (1 . font-lock-comment-face)) (defvar hfy-facemap-assoc 'please-ignore-this-line (#$ . 17484)) #@52 An alist of derived fonts resulting from overlays. (defvar hfy-tmpfont-stack nil (#$ . 18644)) (defconst hfy-hex-regex "[0-9A-Fa-f]") (defconst hfy-triplet-regex (byte-code "\301\211\302\301\211\302\301\211\302\260\f\207" [hfy-hex-regex "\\(" "\\)"] 12)) #@68 Return the intersection (using `eq') of two lists SET-A and SET-B. (defalias 'hfy-interq #[(set-a set-b) "\305\211\203 @A \f>\203 \nB\202 \n+\207" [set-a elt interq sa set-b nil] 3 (#$ . 18908)]) #@187 Where COLOUR is a color name or #XXXXXX style triplet, return a list of three (16 bit) rgb values for said color. If a window system is unavailable, calls `hfy-fallback-colour-values'. (defalias 'hfy-colour-vals #[(colour) "\303 \"\203\f \304\305\306\"\207\n\203 \307\310!\203 \310 !\207\311 !\207\312 !\207" [hfy-triplet-regex colour window-system string-match mapcar #[(x) "\302\303 \"\304\"\305_\207" [x colour string-to-number match-string 16 257] 4] (1 2 3) fboundp color-values x-color-values hfy-fallback-colour-values] 3 (#$ . 19125)]) (defvar hfy-cperl-mode-kludged-p nil) #@119 CPerl mode does its damnedest not to do some of its fontification when not in a windowing system - try to trick it... (defalias 'hfy-kludge-cperl-mode #[nil "?\205 \204 \303\304\305!\210\306)\306\211\207" [hfy-cperl-mode-kludged-p window-system cperl-syntaxify-by-font-lock htmlfontify require cperl-mode t] 2 (#$ . 19719)]) #@23 Is option SYMBOL set. (defalias 'hfy-opt #[(symbol) " >\207" [symbol hfy-optimisations] 2 (#$ . 20057)]) #@144 Default value for `hfy-page-header'. FILE is the name of the file. STYLE is the inline CSS stylesheet (or tag referring to an external sheet). (defalias 'hfy-default-header #[(file style) "\302\303 #\207" [file style format "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <title>%s</title>\n%s\n <script type=\"text/javascript\"><!--\n // this function is needed to work around\n // a bug in IE related to element attributes\n function hasClass(obj)\n {\n var result = false;\n if (obj.getAttributeNode(\"class\") != null)\n {\n result = obj.getAttributeNode(\"class\").value;\n }\n return result;\n }\n\n function stripe(id)\n {\n // the flag we'll use to keep track of\n // whether the current row is odd or even\n var even = false;\n\n // if arguments are provided to specify the colors\n // of the even & odd rows, then use the them;\n // otherwise use the following defaults:\n var evenColor = arguments[1] ? arguments[1] : \"#fff\";\n var oddColor = arguments[2] ? arguments[2] : \"#ddd\";\n\n // obtain a reference to the desired table\n // if no such table exists, abort\n var table = document.getElementById(id);\n if (! table) { return; }\n\n // by definition, tables can have more than one tbody\n // element, so we'll have to get the list of child\n // <tbody>s\n var tbodies = table.getElementsByTagName(\"tbody\");\n\n // and iterate through them...\n for (var h = 0; h < tbodies.length; h++)\n {\n // find all the <tr> elements...\n var trs = tbodies[h].getElementsByTagName(\"tr\");\n\n // ... and iterate through them\n for (var i = 0; i < trs.length; i++)\n {\n // avoid rows that have a class attribute\n // or backgroundColor style\n if (! hasClass(trs[i]) &&\n ! trs[i].style.backgroundColor)\n {\n // get all the cells in this row...\n var tds = trs[i].getElementsByTagName(\"td\");\n\n // and iterate through them...\n for (var j = 0; j < tds.length; j++)\n {\n var mytd = tds[j];\n\n // avoid cells that have a class attribute\n // or backgroundColor style\n if (! hasClass(mytd) &&\n ! mytd.style.backgroundColor)\n {\n mytd.style.backgroundColor =\n even ? evenColor : oddColor;\n }\n }\n }\n // flip from odd to even, or vice-versa\n even = ! even;\n }\n }\n }\n\n function toggle_invis( name )\n {\n var filter =\n { acceptNode:\n function( node )\n { var classname = node.id;\n if( classname )\n { var classbase = classname.substr( 0, name.length );\n if( classbase == name ) { return NodeFilter.FILTER_ACCEPT; } }\n return NodeFilter.FILTER_SKIP; } };\n var walker = document.createTreeWalker( document.body ,\n NodeFilter.SHOW_ELEMENT ,\n filter ,\n false );\n while( walker.nextNode() )\n {\n var e = walker.currentNode;\n if( e.style.display == \"none\" ) { e.style.display = \"inline\"; }\n else { e.style.display = \"none\"; }\n }\n }\n--> </script>\n </head>\n <body onload=\"stripe('index'); return true;\">\n"] 4 (#$ . 20170)]) #@105 Default value for `hfy-page-footer'. FILE is the name of the file being rendered, in case it is needed. (defalias 'hfy-default-footer #[(_file) "\300\207" ["\n </body>\n</html>\n"] 1 (#$ . 24169)]) #@198 Replace the end of a CSS style declaration STYLE-STRING with the contents of the variable `hfy-src-doc-link-style', removing text matching the regex `hfy-src-doc-link-unstyle' first, if necessary. (defalias 'hfy-link-style-string #[(style-string) "\303 \"\203 \304\305\306\307 $\303\n \"\204% \303\310 \"\203% \304\n\306\307 $\311P\207 \207" [hfy-src-doc-link-unstyle style-string hfy-src-doc-link-style string-match replace-match "" fixed-case literal "} *$" " }"] 5 (#$ . 24374)]) #@306 Takes a COLOUR name (string) and return a CSS rgb(R, G, B) triplet string. Uses the definition of "white" to map the numbers to the 0-255 range, so if you've redefined white, (esp. if you've redefined it to have a triplet member lower than that of the color you are processing) strange things may happen. (defalias 'hfy-triplet #[(colour) "\303\304\305\306!\"\303\307\305!\" \205 \310\311\312\303\313\314\"#*\207" [colour rgb16 white mapcar #[(I) "\301T!\207" [I float] 2] hfy-colour-vals "white" #[(I) "\301T!\207" [I float] 2] apply format "#%02x%02x%02x" #[(X) " 8\n8\245\303_\207" [X rgb16 white 255] 3] (0 1 2)] 6 (#$ . 24867)]) (defalias 'hfy-family #[(family) "\301BC\207" [family "font-family"] 2]) (defalias 'hfy-bgcol #[(colour) "\301\302!BC\207" [colour "background" hfy-triplet] 3]) (defalias 'hfy-colour #[(colour) "\301\302!BC\207" [colour "color" hfy-triplet] 3]) (defalias 'hfy-width #[(width) "\301\302!BC\207" [width "font-stretch" symbol-name] 3]) #@34 Font scaling from Emacs to HTML. (custom-declare-variable 'hfy-font-zoom 1.05 '(#$ . 25852) :type 'float :group 'htmlfontify) #@186 Derive a CSS font-size specifier from an Emacs font :height attribute HEIGHT. Does not cope with the case where height is a function to be applied to the height of the underlying font. (defalias 'hfy-size #[(height) "\302!\203 \303\304\305 _\306_\"B\202\"