Server IP : 111.118.215.189 / Your IP : 18.117.158.174 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/international/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:11 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/international/ogonek.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'ogonek nil "Change the encoding of Polish diacritic characters." :prefix "ogonek-" :group 'i18n) #@323 The constant `ogonek-name-encoding-alist' is a list of (NAME.LIST) pairs. Each LIST contains codes for 18 Polish diacritic characters. The codes are given in the following order: Aogonek Cacute Eogonek Lslash Nacute Oacute Sacute Zacute Zdotaccent aogonek cacute eogonek lslash nacute oacute sacute zacute zdotaccent. (defconst ogonek-name-encoding-alist '(("ascii" 65 67 69 76 78 79 83 90 90 97 99 101 108 110 111 115 122 122) ("iso8859-2" 161 198 202 163 209 211 166 172 175 177 230 234 179 241 243 182 188 191) ("mazovia" 143 149 144 156 165 163 152 160 161 134 141 145 146 164 162 158 166 167) ("windows-EE" 165 198 202 163 209 211 140 143 175 185 230 234 179 241 243 156 159 191) ("windows-PL" 165 198 202 163 209 211 140 143 175 185 230 234 179 241 243 156 159 191) ("latin-2" 164 143 168 157 227 224 151 141 189 165 134 169 136 228 162 152 171 190) ("CP852" 164 143 168 157 227 224 151 141 189 165 134 169 136 228 162 152 171 190) ("MeX" 129 130 134 138 139 211 145 153 155 161 162 166 170 171 243 177 185 187) ("CorelDraw" 197 242 201 163 209 211 255 225 237 229 236 230 198 241 243 165 170 186) ("Amiga" 194 202 203 206 207 211 212 218 219 226 234 235 238 239 243 244 250 251) ("Mac" 132 140 162 252 193 238 229 143 251 136 141 171 184 196 151 230 144 253)) (#$ . 684)) (defconst ogonek-informacja " FUNKCJE INTERAKCYJNE UDOST/EPNIANE PRZEZ BIBLIOTEK/E `ogonek'.\n\nJe/sli czytasz ten tekst, to albo przegl/adasz plik /xr/od/lowy\nbiblioteki `ogonek.el', albo wywo/la/le/s polecenie `ogonek-jak'.\nW drugim przypadku mo/zesz usun/a/c tekst z ekranu, stosuj/ac\npolecenie `M-x kill-buffer'.\n\nNiniejsza biblioteka dostarcza funkcji do zmiany kodowania polskich\nznak/ow diakrytycznych. Funkcje te mo/zna pogrupowa/c nast/epuj/aco.\n\n 1. `ogonek-recode-region' oraz `ogonek-recode-buffer'\n przekodowuj/a zaznaczony fragment wzgl/ednie ca/ly buffor.\n Po wywo/laniu interakcyjnym funkcji zadawane s/a\n pytania o parametry przekodowania: nazw/e kodowania\n w tek/scie /xr/od/lowym i nazw/e kodowania docelowego.\n Poni/zsze przyk/lady powinny wyja/sni/c, jakich parametr/ow\n oczekuj/a wymienione funkcje:\n\n (ogonek-recode-region (poczatek-fragmentu) (koniec-fragmentu)\n nazwa-kodowania-w-tekscie-zrodlowym nazwa-kodowania-docelowa)\n (ogonek-recode-buffer\n nazwa-kodowania-w-tekscie-zrodlowym nazwa-kodowania-docelowa)\n\n 2. `ogonek-prefixify-region' oraz `ogonek-prefixify-buffer'\n s/lu/z/a do wprowadzania notacji prefiksowej.\n\n (ogonek-prefixify-region (poczatek-fragmentu) (koniec-fragmentu)\n nazwa-kodowania-w-tekscie-zrodlowym znak-prefiksu)\n (ogonek-prefixify-buffer\n nazwa-kodowania-w-tekscie-zrodlowym znak-prefiksu)\n\n 3. `ogonek-deprefixify-region' oraz `ogonek-deprefixify-buffer'\n s/lu/z/a do usuwania notacji prefiksowej.\n\n (ogonek-deprefixify-region (poczatek-fragmentu) (koniec-fragmentu)\n znak-prefiksu nazwa-kodowania-docelowa)\n (ogonek-prefixify-buffer\n znak-prefiksu nazwa-kodowania-docelowa)\n\n U/zycie klawisza TAB w trybie interakcyjnym powoduje wy/swietlenie\n listy dopuszczalnych nazw kod/ow, pami/etanych w sta/lej\n `ogonek-name-encoding-alist'.\n\n Funkcje biblioteki odwo/luj/a si/e do pi/eciu zmiennych, kt/ore\n przechowuj/a podpowiedzi do zadawanych pyta/n. Nazwy tych zmiennych\n oraz ich warto/sci domy/slne s/a nast/epuj/ace:\n\n ogonek-from-encoding iso8859-2\n ogonek-to-encoding ascii\n ogonek-prefix-char /\n ogonek-prefix-from-encoding iso8859-2\n ogonek-prefix-to-encoding iso8859-2\n\n Powy/zsze warto/sci domy/slne mo/zna zmieni/c przez umieszczenie w pliku\n konfiguracyjnym `~/.emacs' odpowiednich przypisa/n, na przyk/lad:\n\n (setq ogonek-prefix-char ?/)\n (setq ogonek-prefix-to-encoding \"iso8859-2\")\n\n Zamiast wczytywania ca/lej biblioteki `ogonek.el' mo/zna w pliku\n `~/.emacs' za/z/ada/c wczytania wybranych funkcji, na dodatek dopiero\n w chwili ich rzeczywistego u/zycia:\n\n (autoload 'ogonek-jak \"ogonek\")\n (autoload 'ogonek-recode-region \"ogonek\")\n (autoload 'ogonek-prefixify-region \"ogonek\")\n (autoload 'ogonek-deprefixify-region \"ogonek\")\n\n Cz/esto wyst/epuj/ace kombinacje wywo/la/n funkcji mo/zna dla wygody\n skr/oci/c i przypisa/c klawiszom. Oto praktyczne przyk/lady:\n\n (defun deprefixify-iso8859-2-region (start end)\n (interactive \"*r\")\n (ogonek-deprefixify-region start end ?/ \"iso8859-2\"))\n (global-set-key \"\\C-cd\" 'deprefixify-iso8859-2-region) ; ctrl-c d\n\n (defun mazovia-to-iso8859-2 (start end)\n (interactive \"*r\")\n (ogonek-recode-region start end \"mazovia\" \"iso8859-2\"))\n (global-set-key \"\\C-cr\" 'mazovia-to-iso8859-2) ; ctrl-c r\n\n (defun prefixify-iso8859-2-region (start end)\n (interactive \"*r\")\n (ogonek-prefixify-region start end \"iso8859-2\" ?/))\n (global-set-key \"\\C-cp\" 'prefixify-iso8859-2-region) ; ctrl-c p\n\n Ka/zd/a operacj/e przekodowania mo/zna w ca/lo/sci odwo/la/c\n przez wykonanie polecenia `undo'.") #@66 Display `ogonek-informacja' in an auxiliary *ogonek-jak* buffer. (defalias 'ogonek-jak #[nil "\301\302!q\210c\210\303\302!\210eb\207" [ogonek-informacja get-buffer-create " *ogonek-jak*" switch-to-buffer] 2 (#$ . 5776) nil]) (defconst ogonek-information " THE INTERACTIVE FUNCTIONS PROVIDED BY THE LIBRARY `ogonek'.\n\nIf you read this text then you are either looking at the library's\nsource text or you have called the `ogonek-how' command. In the\nlatter case you may remove this text using `M-x kill-buffer'.\n\nThe library provides functions for changing the encoding of Polish\ndiacritic characters, the ones with an `ogonek' below or above them.\nThe functions come in the following groups.\n\n 1. `ogonek-recode-region' and `ogonek-recode-buffer' to change\n between one-character encodings, such as `iso-8859-2', `mazovia',\n plain `ascii' or `TeX'. As the names suggest you may recode\n either the entire current buffer or just a marked region\n in it. You may use the functions interactively as commands.\n Once you call a command you will be asked about the code\n currently used in your text and the target encoding, the one\n you want to get. The following example shows a non-interactive\n use of the functions in a program. This also illustrates what\n type of parameters the functions expect to be called with:\n\n (ogonek-recode-region\n (region-beginning) (region-end) from-code-name to-code-name)\n (ogonek-recode-buffer from-code-name to-code-name)\n\n 2. `ogonek-prefixify-region' and `ogonek-prefixify-buffer' for\n introducing prefix notation:\n\n (ogonek-prefixify-region\n (region-beginning) (region-end) from-code-name prefix-char)\n (ogonek-prefixify-buffer from-code-name prefix-char)\n\n 3. `ogonek-deprefixify-region' and `ogonek-deprefixify-buffer' for\n removing prefix notation:\n\n (ogonek-deprefixify-region\n (region-beginning) (region-end) prefix-char to-code-name)\n (ogonek-prefixify-buffer prefix-char to-code-name)\n\n The TAB character used in interactive mode makes `emacs'\n display the list of encodings recognized by the library. The list\n is stored in the constant `ogonek-name-encoding-alist'.\n\n The `ogonek' functions refer to five variables in which the suggested\n answers to dialogue questions are stored. The variables and their\n default values are:\n\n ogonek-from-encoding iso8859-2\n ogonek-to-encoding ascii\n ogonek-prefix-char /\n ogonek-prefix-from-encoding iso8859-2\n ogonek-prefix-to-encoding iso8859-2\n\n The above default values can be changed by placing appropriate settings\n in your init file:\n\n (setq ogonek-prefix-char ?/)\n (setq ogonek-prefix-to-encoding \"iso8859-2\")\n\n Instead of loading the whole library `ogonek' it may be better\n to autoload the needed functions, for example by adding the\n following lines to your init file:\n\n (autoload 'ogonek-how \"ogonek\")\n (autoload 'ogonek-recode-region \"ogonek\")\n (autoload 'ogonek-prefixify-region \"ogonek\")\n (autoload 'ogonek-deprefixify-region \"ogonek\")\n\n The most frequent function calls can be abbreviated and assigned to\n keyboard keys. Here are a few practical examples:\n\n (defun deprefixify-iso8859-2-region (start end)\n (interactive \"*r\")\n (ogonek-deprefixify-region start end ?/ \"iso8859-2\"))\n (global-set-key \"\\C-cd\" 'deprefixify-iso8859-2-region) ; ctrl-c d\n\n (defun mazovia-to-iso8859-2 (start end)\n (interactive \"*r\")\n (ogonek-recode-region start end \"mazovia\" \"iso8859-2\"))\n (global-set-key \"\\C-cr\" 'mazovia-to-iso8859-2) ; ctrl-c r\n\n (defun prefixify-iso8859-2-region (start end)\n (interactive \"*r\")\n (ogonek-prefixify-region start end \"iso8859-2\" ?/))\n (global-set-key \"\\C-cp\" 'prefixify-iso8859-2-region) ; ctrl-c p\n\n Each recoding operation can be called off using the `undo' command.") #@67 Display `ogonek-information' in an auxiliary *recode-how* buffer. (defalias 'ogonek-how #[nil "\301\302!q\210c\210\303\302!\210eb\207" [ogonek-information get-buffer-create " *ogonek-how*" switch-to-buffer] 2 (#$ . 9761) "*"]) #@57 List of ogonek encodings. Used only for customization. (defvar ogonek-encoding-choices (byte-code "\301\302\303\"B\207" [ogonek-name-encoding-alist choice mapcar #[(x) "\301@D\207" [x const] 2]] 4) (#$ . 9995)) (byte-code "\301\302\303\304\305\306\307&\210\301\310\311\312\305\306\307&\210\301\313\314\315\305\316\306\307&\210\301\317\303\320\305\306\307&\210\301\321\303\322\305\306\307&\207" [ogonek-encoding-choices custom-declare-variable ogonek-from-encoding "iso8859-2" "Encoding in the source file of recoding." :type :group ogonek ogonek-to-encoding "ascii" "Encoding in the target file of recoding." ogonek-prefix-char 47 "Prefix character for prefix encodings." character ogonek-prefix-from-encoding "Encoding in the source file subject to prefixation." ogonek-prefix-to-encoding "Encoding in the target file subject to deprefixation."] 8) #@200 Read encoding name with completion based on `ogonek-name-encoding-alist'. Store the name in the parameter-variable DEFAULT-NAME-VAR. PROMPT is a string to be shown when the user is asked for a name. (defalias 'ogonek-read-encoding #[(prompt default-name-var) "\304\305\306\307 !#\n\310\311$ \312\230\203 \307 !\202 L\210\307 !)\207" [prompt default-name-var ogonek-name-encoding-alist encoding completing-read format "%s (default %s): " eval nil t ""] 6 (#$ . 10864)]) #@175 Read a prefix character for prefix notation. The result is stored in the variable DEFAULT-PREFIX-VAR. PROMPT is a string to be shown when the user is asked for a new prefix. (defalias 'ogonek-read-prefix #[(prompt default-prefix-var) "\303\304\305\306\307 !!#!\211G\310V\203 \311\312!\202. \n\313\230\203&