�� �� �������, ����� :)
����� ��������� ����� �������� ��������:
style uni
size 16
encoding cp1251
layout bg_phon
options lwin_toggle
ttys /dev/tty[1-11]
���� � ������� �� console-cyrillic
(��������� �� bglinux ��������� ��������)
�����, nsgmls �� � �� ������ "jade", � �� "sp".
> ne znaja kak raboti 'nsgmls' no izxozdajki ot opita mi s XML/XSLT
> transformaciite, simvolite se opeobrazuvat vatreshno kam UTF-16 i taka se
> obrabotvat. Poradi fakta che ISO8859-1 encoding-a definira '�' kato
> specialen simvol, obratnoto mu vrushtane kam 8-bit vodi do zaguba na
> stojnostta mu.
���� �� �� �� ������ ����� ����� ����� �����, �� ���� ������ :)
>V tozi sluchaj po pravilno bi bilo da polzvash ÿ ili
> ± vmesto simvol s cod 255.
� ������ ������ ���� ������ ���� ������� ���������.
������ "�" � SGML ������ ÿ , ��:
nsgmls:apt-howto-en.sgml:14:2:E: "XFF" is not a function name
� � ± ���������� ������ ��, �� ��� � HTML-�� �� ������ ������� ������ ,
���� � ����� ���� ��� ����� :)
>No po dobre bi bilo da se pishat
> documentite koito sadarzat symvoli nad 128 izpolzvajki UNICODE, UTF-16,
> UTF-8 ili s dve dumi multibyte format. Vsqko drugo reshenie bi bilo
> netochno.
���� ��� �� ����� ����, �� �� �����, �� ��� � ����� �� ���������� �� cp1251.
�� /etc/console-cyrillic:
style uni
size 16
encoding utf-8
layout bg_phon
options lwin_toggle
ttys /dev/tty[1-11]
������ �� ��-������� :) , �������� SGML ���� �������� "�". �� ��������������
�� "sp" � nsgmls, �������:
export SP_CHARSET_FIXED=1
export SP_ENCODING=utf-8
debiandoc2html -l en apt-howto-en.sgml
# ���� � ��, �� ���:
debiandoc2html -l bg apt-howto-en.sgml
Warning: locale bg not supported, using default en_US.ISO8859-1
�������� ���� -��, �� ��� �� ������ ����� �� charset-a...
�� -l �� ������ ���� �� :
ls /usr/share/locale/ |grep bg
bg
bg_BG.CP1251
bg_BG.ISO8859-5
bg_BG.ISO-IR-111
bg_BG.KOI8-R
bg_BG.KOI8-U
��� ���� �� ������ �� ������ ������? ���� Warning ... � ������ default-a ...
���� �� ������� � uxterm ���� ��������.
�� ��� ������� ���� � � �����:
style uni
size 16
encoding koi8-r
layout ru
options lwin_toggle
ttys /dev/tty[1-11]
�������� SGML ����, ���� � ����� ����� "�".
debiandoc2html -l ru apt-howto-en.sgml
������ � ���, ���� �������� � ������ (-l ), �������� html files
charset=koi8-r, � ���-������� "�"-�� �� ���� � � html ���������.
���� ������, �� ����� �� ������� ��� � html-�� �� ������� ������� �� ��������
�� ����� ���� : "��������", "������� �� ��������� ������", "����������" � ���
����� .... ���������� ����� ������ �� ���� ��� (����� ���� �� �������),
������ ���� ������ �� ����������� ������, � �� �� ��������� �� ���� ���� ���
�� ������ ���� ����������� ... �� ����� � �� �.
> > � ����� � ���� ��������� �� ������ �� ����� charset=iso-8859-1 ��
> > charset=windows-1251 � �� ����� [�]-���� �� ������� ��. ���� ������ �
> > ��:).
> > ����� �� �������� ������� �� APT-HOWTO,
> > �� ���� ��������� "could be a bitch" :-(
� ��� � dirty ������� ����� ������:
#!/bin/bash
FIXDIR=apt-howto-en.html
DUMMYCHAR1=bgia
REALCHAR1=�
for i in $FIXDIR/*.html; do
cat "$i" | sed \
-e "s/charset=iso-8859-1/charset=windows-1251/" \
-e "s/$DUMMYCHAR1/$REALCHAR1/g" > "$i.new" \
-e 's/Next/������/g' \
-e 's/Previous/�����/g' \
-e 's/Contents/����������/g' \
-e 's/Abstract/��� �� ���������/g' \
-e 's/Copyright Notice/������ �������/g'
mv "$i".new "$i"
done
����������� �� fix-a �� linux-book-a :)
���� ���������� ������ ���� ���� ���������� �������,
pdf �� ����� �� �� ������ ���� ����� :)
> > ��� �������� � � nsgmls (�� ������ jade), ���� �� �� ��
> > ������ ����� ��� �� �� ����� ���� ���������� ?
��� �������� �������� �� � ��� ���������� - nsgmls.
�� ��������� � ����� ������: ��� � unicode �������� �� �������� SGML ����
(�������� ������� ���� ���� - �����, ��������, ��� - ��� ��������� �� ;) �
���� ���� � debiandoc2{output} �� �� ��������� ����� outputs. �� html
��������� ��� ���� �� �� ����� charset-a, ��� ������������ �������������
fix-��� ���� ������� � ������� �� "�"-�� � outputs �� �� �� ������� � random
symbols :).
�� ���� �� ���� debiandoc2*, ����� �� �� ������� � ����� ��� nsgmls, ������
����� ����������, �� ���� ���������. �� �� ������ ��� ����� �� ������ ��
�������.
10x
--
Greets,
fr33zb1
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora