�����������

����������� QNX 4/Photon 1.14

����������� QNX 6/Photon 2.0

������������� ������

������


����������� QNX 4/Photon 1.14

����� ������� ����������� ������� QNX 4.25 � ��������� ������, ����������� Photon 1.14 � ����������� ���� Photon Terminal (pterm).
� ����� ����� ��������� � ��������� ����������� ���������: RusKey, RTWin, PhCyr, PhaCyr.

����������� ������� QNX 4.25 � ��������� ������

���� ����������� ������� QNX 4.25 � ��������� ������: ����������� ����������� � ����� � ���������� ������� �������� � OEM ��������� IBM 866.

��� ����������� ������� ���� ����� ���������� ������, ���������� ������� ����� � ��������� IBM 866. ��� ������ ����������� � ������ ���������� � ������� ������� cfont. ��� ����� ������� ���� � ���������� ����� ������� ��������� ���������� � ������������ ��������� ����������.

���������� ������ 8x8, 8x14, 8x16 � OEM ��������� IBM 866 �� ������ ����� �����.

����� ���������� ��� ������, ����� ����������� �� � ������� /etc/config/cfont/ � �������� ���� /etc/config/sysinit.node ��������� �������: ����� ������
reopen //0/dev/con1
�������� ������:
cfont -f 3 /etc/config/cfont/cp866.08
cfont -f 2 /etc/config/cfont/cp866.14
cfont -f 0 /etc/config/cfont/iso866.16
cfont -f 1 /etc/config/cfont/cp866.16

������������ ������� � ������� ������������ � ������� ������ Ctrl-Alt- <  � Ctrl-Alt- > 

�� ������� cfont ������� � ������������ � QNX 4.25 � ������� «Utilities Reference».

��������� ���������� ��� ������� QNX � ��������� ������ � ������������ ��������� ���������� �� ������ ����� �����.

��������� � ������������� ��������� ���������� ����� � ������� ������� kedit. ��������� � ������� ������� kbd, �������:
kbd /etc/config/kbd/Russia
kbd /etc/config/kbd/USA

�� �������� kedit � kbd ������� � ������������ � QNX 4.25 � ������� «Utilities Reference».


����������� ������� QNX 4.25 � ��������� ������ � ������� Ruskey v3.20

��� ����������� ������� QNX 4.25 � ��������� ������ ����� ���� ����������� RusKey v3.20. ��� ��������� ��������� �� ��������� ��������:
/etc/install -u ruskey3_20.tar.F

��� ������������ ��������� ���������� � QNX ������������ ��������� ��������� ������: RightCtrl-RightShift. ��� ������������ ��������� ���������� ������� �������� ������.

���������� 1: RusKey — ������������ ������� � ������� �������� swdrk

���������� 2: ����� ����� ��������� RusKey v3.20 �� �������� ������ ����� �� ������ ������, ����������, ����� � ����� /etc/config/sysinit.* ���� �������� ��������� ������������������ ������:

cfont -f0 /etc/config/cfont/rus/vga!.f16
stty font=0 < /dev/con1
���� ����� ��������� Ruskey �� ������ ��������� sysinit � ����� ������������ �������� �� ������ ������ ����, ������ ���������, ������������� �� ������� ��������� — ����� ������ �������.

�� FAQ �� QNX ����� qnx.al.ru:
Q: ruskey ��� ������� nettrap start & (�.�. � ������� ������ — � &) ������ �������. ����� ���������� ������. ��� ������?
A: ������ ������� �������� �� ������ ���� (������ �� ��������� ��� ���� ����� Ctrl-Shift, ���� ������). �������� ����� �����, � ������ �����, ����� ����� ��������� �� ��������� Net. ����� ���������� ������� ���� /etc/config/sysinit.node, � ��������� � ��� �������
nettrap start &
��
nettrap start
(������ ���������).


����������� Photon 1.14

���� ����������� Photon 1.14: ����������� ����������� � ����� � ���������� ������� ��������, ���������� � ��������� Unicode (UTF-8). UTF-8 � Photon ������������ ��� ���������� ���������.

��� ����������� ������� ������� � Photon ����� ������, ���������� ������� �����.

��� ����� ������� ������� � Photon ����� ���� � ������� ���������� ���������� (keyboard table).

������ ��� Photon 1.14

����� ������� ��� Photon ��������� � �������� /qnx4/photon/font

Photon «ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½» ��������� ���� �������:

������ *.phf — ���������������� (bitmapped), ������ *.pfr � *.ttf — �������������� (scalable).

� ����������� �������� Photon ���� ��������� PHF-������ ������ ���������� � ��������� Unicode (ISO 8859-1):
char — Charter,
cour — Courier,
helv — Helvetica,
lu — Lucida,
lub — Lucida Bright,
lut — Lucida Terminal,
ncen — New Century Schoolbook,
symb — Symbol,
tech — Technical,
time — Times,
uselss — Useless,
utop — Utopia
� ������������ ������ (��� Photon Terminal) � ��������� IBM 437:
pcs — PC Serif,
pcss — PC Sanserif,
pcterm — PC Terminal.

������ � ������� PHF ��� QNX 4 ����� ������� �� BDF-������� � ������� ������� bdf_2_phf. ������ � ������� PHF2 ��� QNX 6 ����� ������� �� BDF-������� � ������� ������� bdftophf2. � ���, ��� ������������ ������� bdf_2_phf � bdftophf2 �������� � ������������ �������������� �� QNX 4 � QNX 6.
BDF-������, ���������� ������� �����, ����� ����� � ��������� (��������, ����� http://www.inp.nsk.su/~bolkhov/files/fonts/cyr-rfx/00index.ru.html), ��������������� �� PCF-������� (X Window) ��� �� TTF-�������. ������� ��� �������� BDF-������ �� PCF- � TTF-������� �������� �� ��������� other.html � qnxsoft.html.

� ������� PHF-������� � QNX 4 ������� �����: Description of Photon Font files

����� PHF ������� � QNX 4 � QNX 6 ����� ������������ TTF-������ � ��������� Unicode, ����� �� �����, ��������, �� ������������ Windows 98 SE, �� �������� C:\WINDOWS\FONTS\. ������� ����� ��������, ��������, ��������� ������:
cour.ttf — Courier New,
courbd.ttf — Courier New Bold,
couri.ttf — Courier New Italic,
courbi.ttf — Courier New Bold Italic,
times.ttf — Times New Roman,
timesbd.ttf — Times New Roman Bold,
timesi.ttf — Times New Roman Italic,
timesbi.ttf — Times New Roman Bold Italic,
arial.ttf — Arial,
arialbd.ttf — Arial Bold,
ariali.ttf — Arial Italic,
arialbi.ttf — Arial Bold Italic,
tahoma.ttf — Tahoma,
tahomabd.ttf — Tahoma Bold,
verdana.ttf — Verdana,
verdanab.ttf — Verdana Bold,
verdanai.ttf — Verdana Italic,
verdanaz.ttf — Verdana Bold Italic,
lsansuni.ttf — Lucida Sans Unicode,
lucon.ttf — Lucida Console,
andalemo.ttf — Andale Mono,
������ Courier New, Lucida Console � Andale Mono — ������������� (������������).

����������� �� ����� ����� �������:
cp /dos/c/windows/fonts/cour.ttf /qnx4/photon/font
� ����� ���������� � ������� fontcfg. ��������� fontcfg ����� � ������ -G ��� ������������ root. �������� �� ������� fontcfg ������� � ������������.

������� ������ ��� Photon �� ������ ����� �����.

��� ��������� PHF-������� �����������: ���� ��������� �����, ����� �������, ��������� fontcfg, �������, ��������, ������ ����� helv*, ����� ��������� ������� ����� helv*.phf �� /qnx4/photon/font/, ����������� ����� ����� helv*.phf � /qnx4/photon/font/ � ��������� fontcfg ���������� �����. ����� ��� ��� ��������� ��� ������� ������ ��������.

��������� ���������� ��� Photon 1.14

� �������� Photon ������ ������� ��������� ���������� ��� Photon, �������������� ���� ������� �������� � ��������� Unicode (UTF-8) — ���� ru_RU_102.kbd, ���� ���� �������� � ���� ����� ����������� ���������, ������� ��������� ������� ���������� �������, ������������ ���� ��������� ������������ �� ������� RightAlt.

���� � ������� ���������� ���������� ru_RU_102.kbd ����� ���������� � Photon � ������� ������� kbsel:

� ������� kbsel ����� ��������� ����������� ���������� ������ � ����������� ���������� � ��������� ������� ��� �� ������������. ���������� ����������� � ����� /.photon/keyboards. �� ������� kbsel ������� � ������������ �� Photon microGUI.

���� � ������� ���������� ���������� ru_RU_102.kbd ����� ����� ����������, ��������� ���������� ����� ��������� KBD, ��������, ������� ��������� ������ � ������ ����� sysinit.node (��� ����� /etc/profile):
export KBD=ru_RU_102.kbd

���� ru_RU_102.kdef (� �������� /usr/photon/keyboard), ������������ ������ � Photon, �������� �������� ������� ��������� ����������. ��� ��������� ����, ������� ����� ��������������� � ����� ��������� ���������.

��������������� �������� ���� � ���������� ���������� (*.kbd) � ��������� ���� (*.kdef) ����� � ������� ������� kbcvt. �������������� �������� (*.kdef) � �������� ���� (*.kbd) ����� � ������� ������� mkkbd.
��������� �� �������� kbcvt � mkkbd ������� � ������������ � Photon microGUI � ����������� «Installation & Configuration» � ����� «Unicode Multilingual Support», �������� «Keyboard tables».


����������� Photon 1.14 � ������� RusKey v3.20

RusKey v3.20 ����� ���� ����� ����������� ��� ����������� Photon 1.14. ��� ��������� RusKey v3.20 ��������������� Photon'������ PHF-������, ���������� ������� ����� � ��������� IBM-866:
CourierCyr (courc) � ��������� 08, 10, 12, 14, 18 � 24,
TimesCyr (timec), � ��������� 08, 10, 12, 14, 18 � 24,
HelveticaCyr (helvc), � ��������� 08, 10, 12, 14, 18 � 24,
Helvetica (helv), � ��������� 10, 12 (������ ������� � ������ ������),
PC Terminal (pcterm), � ��������� 12, 14 � 20,
������ helv � pcterm �������� ����������� ������.

���� ��������� ����������, ��������������� RusKey — ��� ru_RU_101.kbd, ���������� ��� ����� � ������� ������� kbsel:

��� ������������ ��������� ���������� � Photon ��� ������������� RusKey ������������ �� �� ��������� ������, ��� � � ������� QNX � ��������� ������: RightCtrl-RightShift. ��� ������������ ��������� ���������� ������� �������� ������.

���������� 1: ��� ��� ��������� ���������� ��� Photon ru_RU_101.kbd, ��������������� RusKey, ������������ ���� �������� � ��������� IBM-866 (SWD), � �� Unicode (UTF-8), � ������ CourierCyr (courc), TimesCyr (timec), HelveticaCyr (helvc), Helvetica (helv), ������������� � ������� RusKey, �������� ������� � ��������� IBM-866, � �� Unicode, �� ������ ��������� UTF-8 � ����������� ����������� (Photon Editor, PhAB, Helpviewer � �. �.) ���������� � ������������ ������������� ���������, ������� ������� ������ SWD.

���������� 2: ��� ��� Helpviewer ���������� ������ ������ �� ������������ ������� (lu — Lucida, lub — Lucida Bright, ncen — New Century Schoolbook, helv — Helvetica, time — Times Roman, dutch — Dutch, swiss — Swiss, utop — Utopia), � RusKey �������� �� ����������� ������� ������ ������ helv � ��������� 10 � 12 � �������� ���������� 1, �� ��� ��������� ������ ������� �� ������� ����� ����� ������������ ������ ����� Helvetica � �������� 10 ��� 12 � ����� ������� ������ ���� �������������� �� � ��������� UTF-8, � � ���� ������������� ��������� SWD.

���������� 3: �� �� ������� ������ ������ � ���������� Unicode, UTF-8, ��������� PHF-������, ������������� RusKey � �� ������� ������� ����� � ��������� UTF-8, ��������� ���� ��������� ���������� ru_RU_101.kbd, ������������� RusKey, �� PHF-������ � ��������� IBM 866, � �� Unicode ����� ��������� ������������: ��� ������ �� ������ ������� (��� ����� ����� �������� ��� ������������ ������, ��� �������� � ������ ������� � ���������� Unicode � UTF-8 ����� �� �����������, � ������ ������������� ������ ����� ��������), ��� ��� ���� ������� �������� � ��������� IBM 866 ��������� ������ ��������� 128 – 255, � � ��������� Unicode — ������ ��������� 1024 – 1279 � ����������� ���� ��������, ������������ � PHF-������ ��������� �������:

� ���� ������� ������ �� 8 ���� ��� ������� ������� (��� � QNX 4, � � QNX 6 � ������� ������� PHF2 ������� ������ �������� ��� �� 32 ����� ��� ������� �������) � ���� ���� ������ «ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½» � ������, �� ������� ��� ���� �� ����� ����, �� ������ ������ ������ «ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½» ������� � ���� �������� ������� �������.


RTWin RUS ��� QNX 4.25/Photon 1.14

������� RTWin CACSD (�� ������� ����, ��������� ��� ������ 2.0 � 2.1) ������������� ������ helv (Helvetica) � ��������� 08, 10, 12, 14, 18 � 24 � ��������� IBM 866 (SWD), ������� �������� ����� ����������� ������ helv (Helvetica), � ���� ������ ��������� � RTWin � ����� ������� �������������� ��������������� � ��������� SWD. ������� ��� ����� ������� ����, ������� ����� ������������ ������������� ������� helv (Helvetica) � ���� ���������, ����� ���� � ������� ���������� ����������, �������������� ���� �������� � ���� ������������� ��������� SWD (��������, ��������� ����������, ��������������� ������������� RusKey) � ��� ��������� ������ ������� ���� ����� ������������ ���� ������������� ����� helv (Helvetica).


����������� Photon 1.14 � ������� Photon Cyrillic Supplement (PhCyr)

���������� ��������� �������, ���������� «Photon Cyrillic Supplement» (PhCyr), ���������� � ��� ����� ��������� PHF ������ � ��������� Unicode:
crxcour — RusCourier,
crxtms — RusTimes,
crxhelv — RusHelvetica.
��� ������ ������� ���-�� ��� QSSL �� ������ Cronyx ������� � �������� ������ �� 64 ������� ����� (32 �������� � 32 ���������) � ������ �� 0x0410 �� 0x44F, �� ���� �� �������� ���� ������� ����� � � �.

PhCyr ����� ������������� ��������� �������������� (scalable) ������ � ������� TrueDoc (*.pfr):

���������� ����� ��������� PhCyr � ����� /qnx4/photon/font/fontmap �������� ����� ������ dutchs � swisss �������������� �� ������ cdutch80s � cswiss72s.

������������� PhCyr ����� �� ��������� �������� � ������� �������
/etc/install -u phcyrv1.00.tar.F
����, ���� ����������� � ������� .tarx, �� ������������� PhCyr ����� ��-��� Photon � ������� ������� pkginstall.

Photon Cyrillic Supplement — ������������ ������� � ������� �������� phcyr.


����������� Photon 1.14 � ������� PhaCyr 2.0

� ������� PhaCyr 2.0 �� �������� InfoMarket (������, ��� ����� �� PhaCyr 2.0 ����������� SWD) ����� �������������� ������ Photon 1.14, �� �� ������� QNX � ��������� ������.

��� ��������� PhaCyr 2.0 ��������� �� ��������� ��������:
/etc/install -u phacyr-2.0.tar.gz

����������� PhaCyr �������� � ����:

��� ��������� ����� ������� �� ������� ����� ������ ����� ������������� ��������� ����������:
1. LeftShift-LeftAlt, ru_RU_101
2. LeftShift-LeftCtrl, ru_RU_101
3. LeftCtrl-LeftAlt, ru_RU_101
4. RightAlt, ru_RU_102


����������� Photon Terminal (pterm)

���� ����������� pterm: ����������� � ���� � ���������� �������� � OEM ��������� (IBM 866) � ���� Photon ���������.

��� pyc�������� pterm:

  1. ����� PHF-�p���, ���������� ������� �����. ��� ����� ���� ��� ����� � OEM ��������� IBM-866, ��� � � ��������� Unicode. ����� ������ ���� ����������� ���c�p������� (������������), �� ���� ��� ������� ������ ������ ����� ���������� ������.
    ���� ��������� ����������� �������� �������������, �� ����� ����� ������ ��������� ����������������� �������.
    � ����������� �������� Photon ������������� ��������, ���������������� ��� pterm, �������� ������ PC Terminal (pcterm), PS Serif (pcs), PS Sans Serif (pcss) — ��� ��� �������� ������� � ������ �� 0 �� 255 � OEM ��������� IBM 437.
  2. ���������� c������ ���� �p��c����� ����p���� ��� pterm c ������� ������� ptermcs:
             ANSI charset: Cyrillic (IBM 866)
    Internal/QNX  charset: Cyrillic (IBM 866)
             Font charset: (same as internal)


    �����:
    «ANSI charset» — ���������, ������� �� ������ ������������, ����� «Terminal Emulation» ����������� � «ANSI» � ���������� ���� «Terminal Properties»
    «Internal/QNX charset» — ���������, ������� �� ������ ������������, ����� «Terminal Emulation» ����������� � «QNX» � ���������� ���� «Terminal Properties»
    «Font charset» — ���������, ������� ���������� ��� �����. ���� ��������� ������������� ������ ��������� � ���������� «Internal/QNX charset», �� ����� ������� «(same as internal)».
    ��������� ��������� ���� ���������� ��������� � ����������� .cs � ��������, ��������, /qnx4/photon/translation/.
    �� ������ ������� ��������� ������ ���������� ���������, ���� �������� ������������ ��������� ���������, � �� ������ IBM 866, ��������, koi8r_koi8r_cp866.cs:
             ANSI charset: Cyrillic (KOI8-R)
    Internal/QNX  charset: Cyrillic (KOI8-R)
             Font charset: Cyrillic (IBM 866)
    ��� koi8u_koi8u_cp866.cs:
             ANSI charset: Ukrainian (KOI8-U)
    Internal/QNX  charset: Ukrainian (KOI8-U)
             Font charset: Cyrillic (IBM 866)
    ��� cp1251_cp1251_cp866.cs:
             ANSI charset: Cyrillic (Windows 1251)
    Internal/QNX  charset: Cyrillic (Windows 1251)
             Font charset: Cyrillic (IBM 866)
    ��� 8859-5_8859-5_cp866.cs:
             ANSI charset: Cyrillic (ISO 8859-5)
    Internal/QNX  charset: Cyrillic (ISO 8859-5)
             Font charset: Cyrillic (IBM 866)
    ���� �������� ������������� ����� � ��������� ����������, ��� ������� ������ ����� ���������� ���������.

  3. ����� ������� pycc��� PHF-�p��� � ���������, ��������� ���� � «Font charset» ���y��� � pterm � ���������� ���� �p��c�����, ��� ����� ��������� �����-������ ��������� � pterm, ��������, ksh ��� mqc, �������� ���� ������� ��������� (Ctrl-Alt-C), � ���� «Text Font» �������� «Custom...»



    � ������� ������ «Customize...». ��������� ���� «Customize font list». � ���� «Fonts» �������� ������ ��� ����� � ����������� ��������� � ��� ������. ������� ������ «Add». ��������� ����� �������� � ������ �������. ������ ����� ������� �������� ��������� ������� � ������. ����������� ������ «Shift Up» � «Shift Down» ��� ������ ���������� �������. ���������: ��� ����������� ����������� ����������������� �������� ����� ����� � ���������, � ������� ���� ����������������� �������, ��������, ����� � ��������� IBM 866 ��� ����� � �������� Unicode, ���������� ����������������� ������� (� Unicode ����������������� ������� ����� ���� � ��������� 0x2500 – 0x25FF). ��� ����������� ����� ���������� ��������� � �������� «Charsets File» ������� ������ «Browse...» � �������� ������ ���� ���������� ���������:



    � ���� «Customize font list» ������� ������ «Done». ��������� ������������ ����� ��������� � ����� pterm.rc ���� pterm.���_���������.rc � ���� ������� ��������� ������� ������ «Apply» � «Save & Close». �������� ������������ � ������ � ������� pterm.���_���������.rc, �� ������ ������� ��������� ������������ ��� ���� ��������, ������� ����������� ���� � pterm. ������������ pterm �������� � ������ $HOME/.photon/pterm*.rc.

  4. ������ ���� �������� pycc��� �������yp� � Photon, ����p�� ���c�������� ���� UTF-8.

���� �p��c����� ��� ����p���� IBM 866 ��� pterm �� ������ ������� �����: cp866_cp866_same.cs

������ ����� ����������:
8859-5_8859-5_cp866.cs
cp1125_cp1125_cp866.cs
cp1251_cp1251_cp866.cs
koi8r_koi8r_cp866.cs
koi8u_koi8u_cp866.cs
8859-5_8859-5_cp1125.cs
cp1251_cp1251_cp1125.cs
cp866_cp866_cp1125.cs
koi8r_koi8r_cp1125.cs
koi8u_koi8u_cp1125.cs
8859-5_8859-5_unicode.cs
cp1125_cp1125_unicode.cs
cp1251_cp1251_unicode.cs
cp866_cp866_unicode.cs
koi8r_koi8r_unicode.cs
koi8u_koi8u_unicode.cs
8859-5_8859-5_same.cs
cp1125_cp1125_same.cs
cp1251_cp1251_same.cs
koi8r_koi8r_same.cs
koi8u_koi8u_same.cs

���������� ��������� «Ukrainian (KOI8-U)» ��� Photon �� ������ ����� �����.


����������� ����������� ��������� Photon'� (pterm) ��� ������������� RusKey

�������� �� ��, ��� � Readme � Ruskey v3.20 �������, ��� «ï¿½ï¿½ï¿½ï¿½ ��������� � Photon ����������� ������������ ������� �����, ��� ������ ����������� ���� ������� ���� � ���������», ���� ������� � ���� ��������� Photon ��� ������������� Ruskey �� �� �������� (�� ������� ���� � Photon v1.14): ��� ����������� Photon ��������� pterm ����� ��� �������� ����� �p��c����� ����p���� ��� pterm ������������ ��������� �� IBM-866, � ISO 8859-1:

����� ������� � ���, ��� ��������� Unicode ��������� � ISO 8859-1 � ��������� ����� �������� �� 0 �� 255, ������� �������������� �� ��������� Unicode � ��������� ISO 8859-1 � ������� ����������� �������������� �� ��������� IBM 866 � ��������� IBM 866.

���� �p��c����� ����p���� ��� pterm, ������� ����� ������������, ���� � ��� ���������� RusKey v3.20 �� ������ ������� �����: ruskey.cs


SWD Cyrillic Pack

SWD Cyrillic Pack ��� QNX4 — ����������� �����, ��������������� ��� ����������� ��������� �������� QNX4, � ����� ��������� ������� � ������������� ����� ����������� �������� Photon 1.1�, ������� ��������������� pterm.

��������� � SWD Cyrillic Pack ������� �����: http://www.swd.ru/qnx/products/software/prod_misc/swd_cyrillicpack_qnx4.html


����������� QNX 6/Photon 2.0

����������� ������� QNX 6 � ��������� ������

������� ��� �������� ����������� ������ � ����������: loadfont
�������� loadfont.c ������������� ���:
make loadfont
������������ ������ ��� ���������� ������. ������� �������:
loadfont cp866.08
loadfont iso866.16

���� �������� ����� � ������ ��������, ��� ��� �� �����, �� ����� ������������� devc-con:
slay devc-con; devc-con
��������, ��� ����� �������� � ���� ����� ��������� ��� �������� QNX 6 �� ������� devc-con.
���������� ������ �� ������ ������� �����.

���������� ����� SWD Cyrillic Pack ��� QNX 6, ������� �������� � ���� ������� ���������������� ������� ������� devc-con (�� ����, ������, �� ����� ������ QNX 6), ������� ��������� ����������� ��������� ���������� (�������, ����������) �� ������� ������� ScrollLock.

����������� Photon 2.0

����� ��������� QNX 6.2.1 ��������� �����������. ��� ��������� �������� ����� ��������� ��������� «User's Configuration» (������ «Localization» � ����). ���������� ����� ����� ������ «The hardware clock uses UTC/GMT».

��������� «User's Configuration» � Photon 2.0.4/QNX 6.2.1 � ������� �� ������� kbsel � Photon 1.14/QNX 4.25 �� ��������� ������� ��������� ��������� ���������� � ������� ������� ��� �� ������������, ������� ����������� ���������� � Photon 2.0.4/QNX 6.2.1 ������� ����������� ������� � ������� �������������� ����� /etc/system/trap/.KEYBOARD.host, ��� host — ��� ������, ��������, localhost. � ���� ����� ������ ���� ��� ��������� ������:
en_US_101.kbd
ru_RU_102.kbd
������������ ��������� ���������� ���������� �� ������� ������ LeftAlt-LeftShift.
� QNX 6.1 ���������� ���� ������ ��������� ������ ru_RU_102.kbd ��� ������� �� �������� «Keyboard» ��������� «User's Configuration» ��������� ���������� «Russian», ��� ��� ���� ru_RU_102.kbd �������� ����� ������� ��������� ���������� ����� � ����������� ���������� (������������) ��������� ���������� � ������������ ��������� �� ������� ������� RightAlt, �� � QNX 6.2 ��� ������-�� �� ��������.

��� ���� ����� ������ ������� (hidden) �����, �� ���� �����, ����� ������� ���������� � ����� (���, ��������, .KEYBOARD.localhost), ��������� �� ����������� � ��������� ������, ������� �� ����������� (Photon File Manager �/��� MQC).

� QNX 6.2.1, ����� ��� � � QNX 4.25 ����� ������������ TTF-������ � ������ ����������� �������.

��� ��������� ������� � QNX 6.2.1 ����� ����������� ����� ������� � ������� /usr/photon/font_repository � ��������� ������� /usr/photon/bin/mkfontdir, ������� ������������ ������� /usr/photon/font_repository � �������� ��������� ������ � ���� /usr/photon/font_repository/fontdir. � Photon 2.0.4/QNX 6.2.1 ����� ������� ������� mkfontdir � ������������ Photon �������� ������������ �������. ��������, ������� ����� ������� � ������ /usr/photon/font_repository/phcursor.phf. ������� ����� ����� �������� ������������� �������� � � Photon ������ 2.0.4 ����� Unicode-���� �� � ��������� 0xE900-0xE921, ��� ��� ���� � ���������� �������, � 0x0000-0x0021. � ����� fontdir ������ ����� ��������� QNX 6.2.1 ��������� ���������� �������� E900-E921 � ������ ������������ ���������, �� ������� mkfontdir ������������� ������, ��������� �� ���������� ������� ��������� ������� � ����������� �� � ���� fontdir, � ���������� ������� ���������� ������� � ������ 0xE900-0xE921 �� ������ phcursor.phf ����������� ���������� � ������ ���������. ����� «ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½» ������, ����� � ����� fontdir ��� ������ phcursor.phf �������� 0000-0021 �� E900-E921 � ������������� Photon. ����� ���������� ���������� ���� phcursor.phf, ����� ����� ���������� ������� mkfontdir ������ ����� �� �����:
phcursor.phf
00000025: 00 E9
��� ����� ������� ��� ������ ����������� ������� spatch ��� � ������� HEX-��������� BIEW, ���� �������� ��� ������������ ���� phcursor.phf.

����������� Photon Terminal (pterm)

��� �������� ����������� ��������� Photon'� (pterm), �� ���� ��������, ��� ����������� pterm � QNX 6.2.1 ����� �� ���������� ������������� �� ����������� pterm � QNX 4.25. ������� � ���, ��� � ���� ������� ��������� ������ �������/������� ��� ���������, �� ��������� ��� ��������� — «ANSI», ���� ��� ����� ��� ��������� «QNX», �� ��� ����� ��������� pterm � ������ -Q, �� ���� �� ��������� ������������ � ����� � ������ pterm.rc, �� ����� ��� ����������, ��� �� �� ������� ����� ��������� � ���� ��������� «ANSI» — ��� ������� ��������� ����� ������������ $HOME/.ph/pterm/pterm.rc. ������� ��������� �����: ���������� ������������ ��������� � ������ � ������� pterm.���_���������.rc, � ���� ����������� ��������� ������������ � ����� pterm.rc, �� �� ���������� pterm � ����� ��������� «QNX», �� ���� � ������ -Q.
��������, ������� ���: ����������
pterm -Q mqc &
� ���������� ������������ � ����� pterm.mqc.rc, ����������
pterm mc &
� ���������� ������������ � ����� pterm.mc.rc.

� pterm QNX 6.2.1/Photon 2.0 ����� ������������ TTF-������. ��������, ���������:
cp /fs/hd0-dos/windows/fonts/lucon.ttf /usr/photon/font_repository
������� � ������� ������� ptermcs ���� ���������� ��������� /usr/photon/translations/cp866_cp866_unicode.cs:

        ANSI charset: Cyrillic (IBM 866)
Internal/QNX charset: Cyrillic (IBM 866)
        Font charset: Unicode
���� ������ ������� ���� �� ���� pterm, ��������� ����� «Properties», � ���: «Font», «Custom...», «Edit», ���������� �����: Lucida Console, Size 14 (lucidaconsoles14), ����������� ���� ���������� ��������� /usr/photon/translations/cp866_cp866_unicode.cs

������������ ������ � ������� PHF2 (QNX 6) ��� ����������� Photon Terminal (pterm) �� ������ ������� �����.

����� ���������� ��������� *.cs ��� pterm (�������� ����) � Photon 2.0/QNX 6 ��������� ����� ����� �� ��� � � Photon 1.14/QNX 4. pterm ���� �� ������������, �������, ��� � QNX ������ 6.1, �� ������ � Photon 2.0.4/QNX 6.2.1 ��������� ������� ptermcs ��� �� �������� � ��������������.

������

��������� ������ ��� ��������, �������� �� �����������, ��������, ��� HelpViewer:



� ��� Voyager




������������� ������

������ ��������, ����� ����� �������������� ��������� ����� �� ����� ��������� � ������. ��������, �� ������ �������������� HTML-����� �� ��������� KOI8-R � ��������� UTF-8, ����� ������� ����� ���������� �������, ��� ������ ��������� ���� ������� �� ��������� SWD � ��������� UTF-8 (��� ����� ����� �� ���� �������������� ����� ������� � �������������� �������).
�������������� ��������� ����� �� ����� ��������� � ������ �������� � ������� Note Pad (ped — Photon editor).
��� ����������� ��������� ��� �������� ��� (�� ������� ������������� �� ��������� IBM 866 � ��������� UTF-8):

  1. ��������� Note Pad:
    ped &
  2. ����� ���� «Options», ����� ���� «Encoding» (��� Ctrl-E) ������� ��������� «Cyrillic (IBM 866)».
  3. ������� ��������� ����. ��� ���� ���� �������������� �� ��������� ��������� (IBM 866) � UTF-8.
  4. ����� ���� «Options», ����� ���� «Encoding» (��� Ctrl-E) ������� ��������� «Unicode in UTF-8».
  5. ��������� ��������� ����. ��� ���� ���� �������������� �� UTF-8 � ��������� ��������� (UTF-8).
  6. ������� ����.
��� ��������� SWD ������ ������: ����� �������������� ���� �� ��������� SWD � �����-���� ������ ��������� (�������� �� IBM 866), ����� �������������� �������������� ���� �� ��������� SWD � ��������� IBM 866, ��� ����� �����:
  1. ��������� Note Pad:
    ped &
  2. ����� ���� «Options», ����� ���� «Encoding» (��� Ctrl-E) ������� ��������� «Unicode in UTF-8».
  3. ������� ��������� ����.
  4. ����� ���� «Options», ����� ���� «Encoding» (��� Ctrl-E) ������� ��������� «Western European (ISO 8859-1)».
  5. ��������� ��������� ����.
  6. ������� ����.
����� �������, ����� �������������� ���� �� ��������� SWD � ���������, ��������, UTF-8, ����� ������� �������������� ���� �� ��������� SWD � ��������� IBM-866, � ����� ��� �� ��������� IBM 866 �������������� ��� � ��������� UTF-8 (����� ������� ������� ��� ���� ��������� � ��������� ����). � ��� ������������� �� �����-���� ���������, �������� �� IBM 866 � ��������� SWD ����� �������������� �������������� ���� � ��������� IBM 866.

���������� ������������� ��������� ����� �������������� � ������� ������� PxTranslate. ��� ������������� � ������� ������� PxTranslateStateFromUTF() ��� PxTranslateFromUTF() �� ��������� SWD � ��������� IBM 866 ��� ��� ������������� � ������� ������� PxTranslateStateToUTF() ��� PxTranslateToUTF() �� ��������� IBM 866 � ��������� SWD ����� ��� ������� PxTranslateSet() � �������� ������� ��������� ������� "ISO-8859-1".

�� ������ ������� ��������� ������-��������������, ������� ��������� ������� PxTranslate ��������� ������� �� ������������ ���������� ����� stdin, ������������ �� � ������ ��������� � ���������� �� ����������� ���������� ������ stdout. �������, ������� �� ������ ��������������, ���������� �� ������� ������������� '_'. ��������� ����� ������������ ��� ������������� ������, ��������� ��������������� �����-������. ��������� ������� ������� � ��������� ������ ���� ����������: ��������� �������� ����� � ��������� ��������� �����. � �������� ��������� (charset) ����� ���� ��� ������, ���� �� ������� ��� �������� ���������� Description ����� /usr/photon/translations/charsets. ������� �������:
translate windows-1251 IBM866 <readme.txt >readme
translate KOI8-R UTF-8 <index.html >bookset.html
translate UTF-8 ISO-8859-1 <base.wgtw |translate IBM866 UTF-8 >base1.wgtw
������ ��� QNX 4: translate.
������ ��� QNX 6: translate.


������

����� �� ������ �������� ������ �������� (�� 01.08.2000) � ����� qnx.al.ru � ����������� �� QNX4.

� �� ���� ������� — ������� � ����������� QNX 6:
������ «ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ ������������ ������� QNX ������ 6.2» �� ����� www.swd.ru. ��� ������� � ��� �����, ��� �������������� ���������� � Photon 2.0 (QNX 6).
«ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ � �������������������», FAQ �� ����� qnx.org.ru. ������� ��� ���������� TTF-������ � ������� ����������� �������, ��� �������������� PhIRC, Xphoton, Midnight Commander, Voyager.

«ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ pterm � Photon» �� ����� andy.qnx.org.ru.
����� ��� ����������� ��������� Photon 2.0 (QNX 6) RusPterm ������������� TTF-������ � ��������� Unicode: Arial, Courier New, Times New Roman, Verdana, � ����� ������������ PHF2-������ PC1Terminal (pcter_12.phf, pcter_12b.phf, pcter_14.phf, pcter_14b.phf).