;ELC   
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(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)) (#$ . 205))
(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 `\\[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 #[0 "\301\302!q\210\303!c\210\304\302!\210eb\207" [ogonek-informacja get-buffer-create " *ogonek-jak*" substitute-command-keys switch-to-buffer] 2 (#$ . 5318) 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 `\\[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 #[0 "\301\302!q\210\303!c\210\304\302!\210eb\207" [ogonek-information get-buffer-create " *ogonek-how*" substitute-command-keys switch-to-buffer] 2 (#$ . 9359) "*"])
#@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 #[257 "\300@D\207" [const] 3 "\n\n(fn X)"]] 4) (#$ . 9620))
(byte-code "\301\302\303\304\305DD\306\307\310\311&\210\301\312\303\304\313DD\314\307\310\311&\210\301\315\303\304\316DD\317\307\320\310\311&\210\301\321\303\304\322DD\323\307\310\311&\210\301\324\303\304\325DD\326\307\310\311&\207" [ogonek-encoding-choices custom-declare-variable ogonek-from-encoding funcall function #[0 "\300\207" ["iso8859-2"] 1 #1=""] "Encoding in the source file of recoding." :type :group ogonek ogonek-to-encoding #[0 "\300\207" ["ascii"] 1 #1#] "Encoding in the target file of recoding." ogonek-prefix-char #[0 "\300\207" [47] 1 #1#] "Prefix character for prefix encodings." character ogonek-prefix-from-encoding #[0 "\300\207" ["iso8859-2"] 1 #1#] "Encoding in the source file subject to prefixation." ogonek-prefix-to-encoding #[0 "\300\207" ["iso8859-2"] 1 #1#] "Encoding in the target file subject to deprefixation."] 8)
#@230 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.

(fn PROMPT DEFAULT-NAME-VAR)
(defalias 'ogonek-read-encoding #[514 "\301\302J\"\303\304$\305\230\203 J\202 L\207" [ogonek-name-encoding-alist completing-read format-prompt nil t ""] 7 (#$ . 10713)])
#@207 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.

(fn PROMPT DEFAULT-PREFIX-VAR)
(defalias 'ogonek-read-prefix #[514 "\300\301\302\303!!\"!\211G\304V\203 \305\306!\207\307\230\203\" \303!\202% \310!L\210\303!\207" [read-string format-prompt char-to-string eval 1 error "! Only one character expected" "" string-to-char] 8 (#$ . 11128)])
#@189 Pick up an association for ENCODING in `ogonek-name-encoding-alist'.
Before returning a result test whether the string ENCODING is in
the list `ogonek-name-encoding-alist'.

(fn ENCODING)
(defalias 'ogonek-lookup-encoding #[257 "\301\"\211\204 \302\303\"\207\211A\207" [ogonek-name-encoding-alist assoc error "! Name `%s' not known in `ogonek-name-encoding-alist'"] 5 (#$ . 11605)])
#@76 Build a list of pairs from lists XS and YS of the same length.

(fn XS YS)
(defalias 'ogonek-zip-lists #[514 "\300\203 @@BB\262A\262A\262\202 \207" [nil] 5 (#$ . 11998)])
#@341 Build a table required by Emacs's `translate-region' function.
RECODING-PAIRS is a list of character pairs for which recoding
is not an identity.
By using the built-in `translate-region' function
we gain better performance compared to converting characters
by a hand-written routine as it is done for prefix encodings.

(fn RECODING-PAIRS)
(defalias 'ogonek-build-table #[257 "\300\301\302\"\302\211\301W\203 \211I\210\211T\262\202 \203+ @@@AI\210A\262\202 \207" [make-string 256 0] 6 (#$ . 12187)])
#@181 Recode text in a marked region in one-to-one manner.
When called interactively ask the user for the names of the FROM-
and TO- encodings.

(fn START END FROM-ENCODING TO-ENCODING)
(defalias 'ogonek-recode-region #[1028 "\212\300\301\302\303!\303!\"!#)\207" [translate-region ogonek-build-table ogonek-zip-lists ogonek-lookup-encoding] 12 (#$ . 12707) (byte-code "\300 \210\301 \302 \303\304\305\"\303\306\307\"F\207" [barf-if-buffer-read-only region-beginning region-end ogonek-read-encoding "From code" ogonek-from-encoding "To code" ogonek-to-encoding] 6)])
#@168 Call `ogonek-recode-region' on the entire buffer.
When called interactively ask the user for the names of the FROM-
and TO- encodings.

(fn FROM-ENCODING TO-ENCODING)
(defalias 'ogonek-recode-buffer #[514 "\300ed$\207" [ogonek-recode-region] 7 (#$ . 13280) (byte-code "\300 \210\301\302\303\"\301\304\305\"D\207" [barf-if-buffer-read-only ogonek-read-encoding "From code" ogonek-from-encoding "To code" ogonek-to-encoding] 4)])
(defconst ogonek-prefix-code '(65 67 69 76 78 79 83 88 90 97 99 101 108 110 111 115 120 122))
#@269 In a region, replace FROM-encoded Polish characters with PREFIX pairs.
A PREFIX pair generated consists of PREFIX-CHAR and the respective
character listed in the `ogonek-prefix-code' constant.
PREFIX-CHAR itself gets doubled.

(fn START END FROM-ENCODING PREFIX-CHAR)
(defalias 'ogonek-prefixify-region #[1028 "\302!\303BB\"\212b\210`W\205; \304g\"\211\204' \305u\266\202 \306\305!\210	c\210\211Ac\210T\262\210\202 )\207" [ogonek-prefix-code ogonek-prefix-char ogonek-lookup-encoding ogonek-zip-lists assoc 1 delete-char] 10 (#$ . 13811) (byte-code "\300 \210\301 \302 \303\304\305\"\306\307\310\"F\207" [barf-if-buffer-read-only region-beginning region-end ogonek-read-encoding "From code" ogonek-prefix-from-encoding ogonek-read-prefix "Prefix character" ogonek-prefix-char] 6)])
#@86 Call `ogonek-prefixify-region' on the entire buffer.

(fn FROM-ENCODING PREFIX-CHAR)
(defalias 'ogonek-prefixify-buffer #[514 "\300ed$\207" [ogonek-prefixify-region] 7 (#$ . 14616) (byte-code "\300 \210\301\302\303\"\304\305\306\"D\207" [barf-if-buffer-read-only ogonek-read-encoding "From code" ogonek-prefix-from-encoding ogonek-read-prefix "Prefix character" ogonek-prefix-char] 4)])
#@451 In a region, replace PREFIX pairs with their corresponding TO-encodings.
PREFIX-CHAR followed by a Polish character from the `ogonek-prefix-code'
list is replaced with the corresponding TO-encoded character.  A doubled
PREFIX-CHAR gets replaced with a single one.  A combination of PREFIX-CHAR
followed by a non-Polish character, that is one not listed in the
`ogonek-prefix-code' constant, is left unchanged.

(fn START END PREFIX-CHAR TO-ENCODING)
(defalias 'ogonek-deprefixify-region #[1028 "\301!\302BB\"\212b\210`W\205K \303u\210hU\203 `U\204 \304g\"\211\2047 \303u\266\202 \305u\210\306\307!\210\211Ac\210S\262\210\202 )\207" [ogonek-prefix-code ogonek-lookup-encoding ogonek-zip-lists 1 assoc -1 delete-char 2] 10 (#$ . 15012) (byte-code "\300 \210\301 \302 \303\304\305\"\306\307\310\"F\207" [barf-if-buffer-read-only region-beginning region-end ogonek-read-prefix "Prefix character" ogonek-prefix-char ogonek-read-encoding "To code" ogonek-prefix-to-encoding] 6)])
#@86 Call `ogonek-deprefixify-region' on the entire buffer.

(fn PREFIX-CHAR TO-ENCODING)
(defalias 'ogonek-deprefixify-buffer #[514 "\300ed$\207" [ogonek-deprefixify-region] 7 (#$ . 16014) (byte-code "\300 \210\301\302\303\"\304\305\306\"D\207" [barf-if-buffer-read-only ogonek-read-prefix "Prefix character" ogonek-prefix-char ogonek-read-encoding "To code" ogonek-prefix-to-encoding] 4)])
(provide 'ogonek)
