3 # $FreeBSDru: frdp/release/doc/ru_RU.KOI8-R/share/examples/dev-auto-translate.pl,v 1.4 2005/06/30 12:11:18 den Exp $
5 # Auto-translate some device entities from English to Russian (KOI8-R)
8 # cd /usr/src/release/doc/ru_RU.KOI8-R
9 # perl share/examples/dev-auto-translate.pl -o share/sgml/dev-auto-ru.sgml < ../share/sgml/dev-auto.sgml
11 # This script is maintained only in HEAD branch.
14 use POSIX qw(fprintf);
20 chomp($OutputFile = $opt_o);
25 open TRANSLATED, "< $OutputFile" or die "Can't open $OutputFile: $!";
27 # check for already translated entities
30 next if !/hwlist\.([0-9a-f]+)/;
36 open OUTPUTFILE, ">> $OutputFile" or die "Can't open $OutputFile: $!";
39 # translate some entities
41 next if !/&man\..*\.[0-9];/;
42 s/Controllers supported by the (&man\..*\.[0-9];) driver include:/ëÏÎÔÒÏÌÌÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
43 s/The (&man\..*\.[0-9];) driver supports the following SCSI controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ SCSI:/;
44 s/The (&man\..*\.[0-9];) driver supports SCSI controllers including:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÏÎÔÒÏÌÌÅÒÙ SCSI, ×ËÌÀÞÁÑ:/;
45 s/The (&man\..*\.[0-9];) driver supports the following SCSI host adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÈÏÓÔ ÁÄÁÐÔÅÒÙ SCSI:/;
46 s/The (&man\..*\.[0-9];) driver supports the following SCSI host adapter chips and SCSI controller cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÈÏÓÔ ÁÄÁÐÔÅÒÙ SCSI É ËÁÒÔÙ ËÏÎÔÒÏÌÌÅÒÏ× SCSI:/;
47 s/The (&man\..*\.[0-9];) driver supports the following:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÅÅ:/;
48 s/The adapters currently supported by the (&man\..*\.[0-9];) driver include the following:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ ÓÌÅÄÕÀÝÉÅ:/;
49 s/The following cards are among those supported by the (&man\..*\.[0-9];) driver:/óÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ ×ÈÏÄÑÔ × ÞÉÓÌÏ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÄÒÁÊ×ÅÒÏÍ $1:/;
50 s/The following cards are among those supported by the (&man\..*\.[0-9];) module:/óÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ ×ÈÏÄÑÔ × ÞÉÓÌÏ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÍÏÄÕÌÅÍ $1:/;
51 s/Adapters supported by the (&man\..*\.[0-9];) driver include:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
52 s/Cards supported by the (&man\..*\.[0-9];) driver include:/ëÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
53 s/The (&man\..*\.[0-9];) driver supports the following card models:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÍÏÄÅÌÉ ËÁÒÔ:/;
54 s/The (&man\..*\.[0-9];) driver provides support for the following chipsets:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÎÁÂÏÒÙ ÍÉËÒÏÓÈÅÍ:/;
55 s/The following NICs are known to work with the (&man\..*\.[0-9];) driver at this time:/óÌÅÄÕÀÝÉÅ ÓÅÔÅ×ÙÅ ËÁÒÔÙ ÒÁÂÏÔÁÀÔ Ó ÄÒÁÊ×ÅÒÏÍ $1:/;
56 s/The (&man\..*\.[0-9];) driver provides support for the following RAID adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ RAID ÁÄÁÐÔÅÒÙ:/;
57 s/The (&man\..*\.[0-9];) driver supports the following Ethernet NICs:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÓÅÔÅ×ÙÅ ËÁÒÔÙ Ethernet:/;
58 s/Cards supported by (&man\..*\.[0-9];) driver include:/ëÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ $1, ×ËÌÀÞÁÑ:/;
59 s/The (&man\..*\.[0-9];) driver supports the following adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ:/;
60 s/The (&man\..*\.[0-9];) driver supports the following ATA RAID controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ ATA RAID:/;
61 s/The following controllers are supported by the (&man\..*\.[0-9];) driver:/äÒÁÊ×ÅÒÏÍ $1 ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ:/;
62 s/The (&man\..*\.[0-9];) driver supports the following cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÁÒÔÙ:/;
63 s/The SCSI controller chips supported by the (&man\..*\.[0-9];) driver can be found onboard on many systems including:/íÉËÒÏÓÈÅÍÙ SCSI ËÏÎÔÒÏÌÌÅÒÁ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ÍÏÇÕÔ ÂÙÔØ ×ÓÔÒÏÅÎÙ ×Ï ÍÎÏÇÉÅ ÓÉÓÔÅÍÙ, ×ËÌÀÞÁÑ:/;
64 s/The following devices are currently supported by the (&man\..*\.[0-9];) driver:/äÒÁÊ×ÅÒÏÍ $1 × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á:/;
65 s/The (&man\..*\.[0-9];) driver supports cards containing any of the following chips:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÁÒÔÙ, ÓÏÄÅÒÖÁÝÉÅ ÌÀÂÕÀ ÉÚ ÓÌÅÄÕÀÝÉÈ ÍÉËÒÏÓÈÅÍ:/;
66 s/The (&man\..*\.[0-9];) driver supports the following soundcards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ:/;
67 s/The (&man\..*\.[0-9];) driver supports audio devices based on the following chipset:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ Ú×ÕËÏ×ÙÅ ÕÓÔÒÏÊÓÔ×Á, ÏÓÎÏ×ÁÎÎÙÅ ÎÁ ÓÌÅÄÕÀÝÅÍ ÎÁÂÏÒÅ ÍÉËÒÏÓÈÅÍ:/;
68 s/The (&man\..*\.[0-9];) driver supports the following audio devices:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ÕÓÔÒÏÊÓÔ×Á:/;
69 s/The (&man\..*\.[0-9];) driver supports the following PCI sound cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ PCI:/;
70 s/SCSI controllers supported by the (&man\..*\.[0-9];) driver include:/SCSI ËÏÎÔÒÏÌÌÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
71 s/The (&man\..*\.[0-9];) driver supports the following SATA RAID controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ SATA RAID ËÏÎÔÒÏÌÌÅÒÙ:/;
72 s/Devices supported by the (&man\..*\.[0-9];) driver include:/õÓÔÒÏÊÓÔ×Á, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
73 s/The following devices are supported by the (&man\..*\.[0-9];) driver:/óÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÄÒÁÊ×ÅÒÏÍ $1/;
74 s/The (&man\..*\.[0-9];) driver supports the following devices:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á:/;
75 s/The (&man\..*\.[0-9];) driver supports the following parallel to SCSI interfaces:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ parallel to SCSI ÉÎÔÅÒÆÅÊÓÙ/;
76 s/The (&man\..*\.[0-9];) driver supports the following hardware:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÅÅ ÏÂÏÒÕÄÏ×ÁÎÉÅ:/;
77 s/The adapters supported by the (&man\..*\.[0-9];) driver include:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
78 s/The (&man\..*\.[0-9];) driver supports the following Ethernet adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ Ethernet:/;
79 s/Controllers and cards supported by the (&man\..*\.[0-9];) driver include:/ëÏÎÔÒÏÌÌÅÒÙ É ËÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
80 s/The (&man\..*\.[0-9];) driver supports the following audio chipsets:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÕÄÉÏ ÞÉÐÓÅÔÙ:/;
81 s/The (&man\..*\.[0-9];) driver supports the following sound cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ:/;
82 s/The (&man\..*\.[0-9];) driver provides support for the following chips:/äÒÁÊ×ÅÒ $1 ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÐÏÄÄÅÒÖËÕ ÄÌÑ ÓÌÅÄÕÀÝÉÈ ÍÉËÒÏÓÈÅÍ:/;
84 next if !/hwlist\.([0-9a-f]+)/;
85 print OUTPUTFILE if !$translated{$1};