LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cups problem - special characters (https://www.linuxquestions.org/questions/linux-software-2/cups-problem-special-characters-292396/)

kentri9 02-19-2005 04:59 PM

cups problem - special characters
 
hi

My printer doesn't print Danish special characters (like æÆøØåÅ... can you see them?) properly.
It shows simply blank space where those special characters shoud be.

On the screen, Emacs shows those characters in UTF-8.
/etc/cups/cupsd.conf says that default character set is UTF-8.

Can anyone help me?

printer is hp deskjet 920c. Distro is FC2.

foo_bar_foo 02-19-2005 11:55 PM

there is a set of international bitmap fonts for printing in emacs
i think the package is called intlfonts-bdf

i think you have to set the variable
ps-multibyte-buffer
to
bdf-font (uses bdf totally)
or
bdf-font-except-latin (uses only for non latin chars)

you may have to set the variable
bdf-directory-list
to find the fonts

of the top of my head try this in your .emacs after you install the fonts
Code:

;; BDF fonts for printing
(load-library "ps-bdf")

(setq ps-multibyte-buffer
      'bdf-font-except-latin)

(setq bdf-directory-list
      '(
        "/some/path/to/fonts"))

i think the fonts by default go somewhere like
/usr/share/fonts/emacs/bdf
or /usr/local/share
might not need to specify where they are if they are in default place

kentri9 02-23-2005 04:08 AM

how can I print out Danish characters without change language settings?
 
hi foo_bar_foo

Thank you for your detailed reply. I appreciate it.

After I had read your suggesion, I actually thought: 'Well... should this be that complicated?"'
Considering the small number hits by googling, no one seems to have this problem.

I came to think about something:

I have changed languegage from Japanese to Danish in:

System settings -> language


And I have changed from English to Danish in:

kcontrol -> regional & accessibility -> country/region & language

Then log in again... voila the printer now can print danish characters...

It seems that cupsd.conf is overridden by these settings...

How can I manage to print Danish characters without change language settings?
I have those language settings because I use English, Danish and Japanese equally and
this is the compromise I am most comfortable with. so I want to keep it...

Can any smart guys out there help me out?


All times are GMT -5. The time now is 11:21 PM.