--- reports/tools.el 2004/01/18 06:07:58 1.1 +++ reports/tools.el 2016/07/15 04:32:00 1.4 @@ -5,5 +5,23 @@ (end-of-line) (while (> num (- (line-end-position) (line-beginning-position))) (insert " ")) - (next-line 1) (beginning-of-line)) + +(defun convert-utf-to-html-entites () + "Convert utf entities to html" + (interactive) + (save-excursion + (beginning-of-buffer) + (while (search-forward "«" nil t) + (replace-match "«" nil t)) + (while (search-forward "»" nil t) + (replace-match "»" nil t)) + (while (search-forward "Є" nil t) ; YE + (replace-match "Є" nil t)) + (beginning-of-buffer) + (while (search-forward "і" nil t) ; i + (replace-match "і" nil t)) + (beginning-of-buffer) + (while (search-forward "ї" nil t) ; yi + (replace-match "ї" nil t)) + ))