ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Печать в Emacs.
@ 2003-10-09  3:43 Alexander Kirey
  2003-10-09  6:19 ` Maxim Tyurin
  2003-10-09 11:09 ` Alexej Kryukov
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Kirey @ 2003-10-09  3:43 UTC (permalink / raw)
  To: community

Здравствуйте!

После установки Emacs, при попытке распечатать buffer
по команде C-u M-x ps-print-buffer:
$ emacs -nw
Fatal error (11).Segmentation fault

При самой печати был запрос к ps-print.elc, как я успел заметить.
только он почему-то был сжат ps-print.elc.bz2.

cd /usr/share/emacs/21.3/lisp
ls ps*
ps-bdf.elc ps-mule.elc ps-print.elc.bz2

После распаковки в /usr/share/emacs/21.3/lisp/ps-print.elc
ps файл получился.
Может это мои локальные проблемы, что он не распаковался...

И еще, спотыкается на русском тексте:
font for characters not found, continue anyway? (y or n)

Как его научить понимать русский текст?
Emacs использует ghostscript? и если использует, то почему
не находит путь к фонтам ghostscript, или что-то я не правильно
понимаю... 

В системе:
emacs-w3-4.0-alt0.7.pre.47
emacs-speedbar-0.14-alt0.8.beta4
emacs-common-21.3-alt4.1
emacs-ognus-0.24-alt1
emacsen-startscripts-0.0.3-alt3
emacs-X11-21.3-alt4.1

и 

xemacs-apel-1.26-alt1
xemacs-base-1.78-alt1
xemacsen-0.1-alt10
xemacs-fsf-compat-1.12-alt1
xemacs-minimal-21.4.12-alt3
xemacs-mule-base-1.43-alt1
xemacs-mule-minimal-21.4.12-alt3
xemacs-mule-nextaw-21.4.12-alt3

-- 
Александр Кирей




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] Печать в Emacs.
  2003-10-09  3:43 [Comm] Печать в Emacs Alexander Kirey
@ 2003-10-09  6:19 ` Maxim Tyurin
  2003-10-09 11:09 ` Alexej Kryukov
  1 sibling, 0 replies; 3+ messages in thread
From: Maxim Tyurin @ 2003-10-09  6:19 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

On Thu, Oct 09, 2003 at 09:43:03AM +0600, Alexander Kirey wrote:
> Здравствуйте!
> 
> После установки Emacs, при попытке распечатать buffer
> по команде C-u M-x ps-print-buffer:
> $ emacs -nw
> Fatal error (11).Segmentation fault
> 
> При самой печати был запрос к ps-print.elc, как я успел заметить.
> только он почему-то был сжат ps-print.elc.bz2.
> 
> cd /usr/share/emacs/21.3/lisp
> ls ps*
> ps-bdf.elc ps-mule.elc ps-print.elc.bz2
> 
> После распаковки в /usr/share/emacs/21.3/lisp/ps-print.elc
> ps файл получился.
> Может это мои локальные проблемы, что он не распаковался...
> 
> И еще, спотыкается на русском тексте:
> font for characters not found, continue anyway? (y or n)
> 
> Как его научить понимать русский текст?
> Emacs использует ghostscript? и если использует, то почему
> не находит путь к фонтам ghostscript, или что-то я не правильно
> понимаю... 
<scip>

Я решил проблему достаточно грубо: отказавшись от postscript print
buffer и дописав в ~/.emacs
(setq lpr-command "enscript")
(setq lpr-switches '("-B"))


-- 

With Best Regards, Maxim Tyurin
JID:	MrKooll@jabber.pibhe.com
			

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] Печать в Emacs.
  2003-10-09  3:43 [Comm] Печать в Emacs Alexander Kirey
  2003-10-09  6:19 ` Maxim Tyurin
@ 2003-10-09 11:09 ` Alexej Kryukov
  1 sibling, 0 replies; 3+ messages in thread
From: Alexej Kryukov @ 2003-10-09 11:09 UTC (permalink / raw)
  To: community

On Thursday 09 October 2003 07:43, Alexander Kirey wrote:
> Здравствуйте!
>
> После установки Emacs, при попытке распечатать buffer
> по команде C-u M-x ps-print-buffer:
> $ emacs -nw
> Fatal error (11).Segmentation fault
>
> При самой печати был запрос к ps-print.elc, как я успел заметить.
> только он почему-то был сжат ps-print.elc.bz2.

Давно не имел дела с AltLinux, поэтому не знаю, почему он оказался
упакованным. Никогда такого не видел.

> И еще, спотыкается на русском тексте:
> font for characters not found, continue anyway? (y or n)
>
> Как его научить понимать русский текст?
> Emacs использует ghostscript? 

да.

> и если использует, то почему
> не находит путь к фонтам ghostscript, или что-то я не правильно
> понимаю...

Просто шрифты для печати в emacs задаются отдельно, они не зависят
от экранных. Можно использовать либо именно шрифты ghostscript
(но тогда ghostscript действительно должен о них знать, в документ
они не встраиваются), либо растровые bdf (не pcf, а именно
некомпилированные bdf), но тогда они должны быть налицо и путь
к ним должен быть указан. Делается это так (фрагмент из моего
.emacs):

;; Загрузить это хозяйство явным образом, иначе
;; при автозагрузке будут сбиты настройки
(require 'mule-util)
(require 'mule)
(require 'ps-print)
(require 'ps-bdf)

;; Указываем, где искать bdf-шрифты
(setq bdf-directory-list
      (cons "~/fonts/bdf/latin1" bdf-directory-list))
(setq bdf-directory-list
      (cons "~/fonts/bdf/cyrillic" bdf-directory-list))

;; Только для win32
(if (memq system-type '(ms-dos windows-nt))
    (setq w32-bdf-filename-alist (w32-find-bdf-fonts
     bdf-directory-list)))

;; Настройки печати
(setq ps-print-color-p 'black-white)
(setq ps-use-face-background nil)
(setq ps-paper-type 'a4)
(setq ps-font-size 10)
(setq ps-print-control-characters nil)

(setq ps-multibyte-buffer nil)

;; Для печати bdf-шрифтами -- должны быть указаны точные имена файлов.
;; Кириллические шрифты должны быть в кодировке iso-8859-5!
;; Шрифты надо брать не меньше 12x24, иначе будет смотреться совсем
;; плохо.
(setq ps-mule-font-info-database-default
   '((ascii (normal bdf "12x24.bdf" nil 1))
    (latin-iso8859-1 (normal bdf "12x24.bdf" iso-latin-1 1))
    (cyrillic-iso8859-5 (normal bdf "12x24cyr.bdf" cyrillic-iso-8bit
     1))))

;; А вот так -- для шрифтов Ghostscript. Нужно указать имена шрифтов
;; ghostscript, как они указаны в Fontmap.GS.
(setq ps-mule-font-info-database-default
   '((ascii (normal builtin "Times-Roman" nil 1))
    (latin-iso8859-1 (normal builtin "Times-Roman" iso-latin-1 1))
    (cyrillic-iso8859-5 (normal builtin "Times-Roman" cyrillic-iso-8bit
     1))))


Возможно, что-то пропустил, но в принципе печать из-под emacs
настраивают именно так.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-09 11:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09  3:43 [Comm] Печать в Emacs Alexander Kirey
2003-10-09  6:19 ` Maxim Tyurin
2003-10-09 11:09 ` Alexej Kryukov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git