Страниц: [1]
  Печать  
Автор Тема: The use of LPD QNX4 under way, why can't print Russian? (print HP2055dn).  (Прочитано 2472 раз)
ffww
Участник
*
Offline Offline

Сообщений: 13


Просмотр профиля
« : Мая 30, 2015, 07:10:12 pm »

help me!
thanks...

Our company IPC using QNX4.25 operating system and licenses all installation, equipped with laser network printer HP
P2055dn a (Russian character, no Chinese font).
Now want to use LPD to print a TXT file, the contents of the txt file is russian. But print garbled, and wrap is not
correct. If the txt file is English, you can print correctly.
A self-examination of the printer, can play a normal Russian character. Did I have a mistake in setting the QNX? Or I am
 not configured?
Specific methods are as follows:
1, the normal use of the network card, the Ping printer (set the printer address is 192.168.16.53)
2, /etc/printcap:
#
P2055dn|P2055dn:\
: rm=192.168.16.53:rp=p2055dn:\
: sd=/usr/spool/output/p2055dn:sh=false:
3, /etc/config/lpsrvr:
#
Example LPSRVR configuration file #
#
This example creates a single device # called "/dev/spool/ps.phs" which
Will support multiple Photon print streams # and give them
At a time to # one the physical Postscript printer connected to "/dev/par1".
#
# Use "lpsrvr & -fThisFile" to make it all happen (put in sysinit)
[]
Define QNX name of this print # spooler
# sp=/qnx/PhSpool
Specify where spool files are kept # (lpsrvr will delete them for you)
# cd=/tmp
[Phps]
Use the Postscript Filter and Feed # into Raw Queue
Ta=nullpt
-l1 co=/usr/photon/bin/Pp.ps $(SPFILE) -Pp2055dn /usr/ucb/lpr
[Phpcl]
Use the PCL Filter and Feed # into Raw Queue
Ta=nullpt
Co=/usr/photon/bin/Pp.pcl $(SPFILE) -Pp2055dn /usr/ucb/lpr
[Phpsc]
Use the Postscript Filter and Feed # into Raw Queue
Ta=nullpt
-l1 co=/usr/photon/bin/Pp.ps $(SPFILE) -Pc2025dn /usr/ucb/lpr
[Phpclc]
Use the PCL Filter and Feed # into Raw Queue
Ta=nullpt
Co=/usr/photon/bin/Pp.pcl $(SPFILE) -Pc2025dn /usr/ucb/lpr
[t]
Ta=nullpt
-Pp2055dn co=/usr/ucb/lpr $(SPFILE)
[tfake]
Co=cat "$(SPFILE)" "$(device)" "
Ta=lptl0
[-lptl]
Dv=/dev/par1
[-lptl0]
Dv=/.registry.log
[-nullpt]
Dv=/dev/null
4, running print command
#lpsrvr &
#lpd &
-Pp2055dn /tmp/1.txt #lpr
I don't know that the /etc/config/sysinit.8 settings will also have a impact, I post it all up
/bin/Fsys #Image:
/bin/Fsys.eide Fsys -Ndsk0 -n0=hd0. -n5=cd0. Eide -a1f0 -i14 #Image:
/bin/mount -p /dev/hd0.0 /dev/hd0.0t77 #Image: /
/bin/sinit TERM=qnxm #Image:
NODE=48 #export
KBD=ru_RU_102.kbd export
ABLANG=ru export
TZ=mst-08 M3.5.0/2, M10.5.0/2, export
-l at /bin/rtc
Dev &
Pipe &
-Q -n6 Dev.ansi &
/dev/con1 reopen
-A /dev/console=/dev/con1 prefix
Dev.par &
-n16 Dev.pty &
# /bin/Fsys.floppy -a3f0 -i6
# /cd=/dev/cd0.0 & /bin/Iso9660fsys
# Define the default CD Rom
# /bin/prefix -A /cd=//0/cd0.0
# mount /dev/fd0 /fd/fd0
-P chkfsys /
/bin/mcyr &
-r license
Nameloc &
LPSRVR=/qnx/spooler export
-f1 /etc/config/cfont/unim.f8 cfont
-f0 /etc/config/cfont/vga cfont!.f16
-a -d Mqueue &
LOGNAME=mag export
/etc/netstart
-c -t "-p -f root login" /dev/con1 tinit &
-c -T "-p -f root login" /dev/con[2-6] tinit &




Записан
Dark
Sr. Member
****
Offline Offline

Сообщений: 343


Просмотр профиля
« Ответ #1 : Мая 30, 2015, 09:18:28 pm »

A self-examination of the printer, can play a normal Russian character.

Different cyrillic encodings? Wiki.
« Последнее редактирование: Мая 30, 2015, 09:21:48 pm от Dark » Записан
ffww
Участник
*
Offline Offline

Сообщений: 13


Просмотр профиля
« Ответ #2 : Мая 31, 2015, 06:50:36 am »

thank you,I don't know I set it right.

/etc/config/sysinit.1 Contain:
export ABLANG=ru

Записан
ffww
Участник
*
Offline Offline

Сообщений: 13


Просмотр профиля
« Ответ #3 : Мая 31, 2015, 06:19:36 pm »

Who help me?
Записан
Dark
Sr. Member
****
Offline Offline

Сообщений: 343


Просмотр профиля
« Ответ #4 : Мая 31, 2015, 07:09:31 pm »

export ABLANG=ru

The ABLANG only sets Photon widget's captions. First of all you should find out which encoding printer wants.
Записан
ffww
Участник
*
Offline Offline

Сообщений: 13


Просмотр профиля
« Ответ #5 : Мая 31, 2015, 07:16:12 pm »

export ABLANG=ru

The ABLANG only sets Photon widget's captions. First of all you should find out which encoding printer wants.
What should I do? I only know that my printer is p2055dn HP, how to get the printer encoding, and how to set the location in which QNX4 need to set the encoding?
Dark,Thank you very much!
Записан
Dark
Sr. Member
****
Offline Offline

Сообщений: 343


Просмотр профиля
« Ответ #6 : Мая 31, 2015, 07:31:32 pm »

What should I do? I only know that my printer is p2055dn HP, how to get the printer encoding, and how to set the location in which QNX4 need to set the encoding?
Dark,Thank you very much!

At this forum you can find tons of cp1251 (or Windows-1251) encoded text. Try to use this converter to prepare text-files for printing. Also you should prepare UTF-8 encoded sample (default Photon's encoding). Then try to print all of them.
« Последнее редактирование: Мая 31, 2015, 07:39:59 pm от Dark » Записан
ffww
Участник
*
Offline Offline

Сообщений: 13


Просмотр профиля
« Ответ #7 : Июня 01, 2015, 04:12:39 pm »

I tried, or not, today in the windows found normal print Russian, but in qnx4 cannot print Russian. I still don't know why, code switching is also useless. Cry Cry Cry Cry Cry
Записан
Dark
Sr. Member
****
Offline Offline

Сообщений: 343


Просмотр профиля
« Ответ #8 : Июня 01, 2015, 07:35:49 pm »

but in qnx4 cannot print Russian

No one of the test files?
Записан
ffww
Участник
*
Offline Offline

Сообщений: 13


Просмотр профиля
« Ответ #9 : Июня 02, 2015, 03:43:15 pm »

Thank you, Dark,I am ready to submit a question.
Записан
ffww
Участник
*
Offline Offline

Сообщений: 13


Просмотр профиля
« Ответ #10 : Июня 05, 2015, 01:26:58 pm »

Thanks to Dark, the problem has been resolved, the reason is the printer should be set to the Russian character set!! Smiley
Записан
Страниц: [1]
  Печать  
 
Перейти в: