aboutsummaryrefslogtreecommitdiff
path: root/release/doc/ru_RU.KOI8-R/share/examples/dev-auto-translate.pl
blob: 7f36ca10d052163f8e5d2654fabe1c138e1516d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/perl
# $FreeBSD$
# $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 $
#
# Auto-translate some device entities from English to Russian (KOI8-R)
#
# Example:
# cd /usr/src/release/doc/ru_RU.KOI8-R
# perl share/examples/dev-auto-translate.pl -o share/sgml/dev-auto-ru.sgml < ../share/sgml/dev-auto.sgml
#
# This script is maintained only in HEAD branch.

use Getopt::Std;
use POSIX qw(fprintf);

$OutputFile = "";
$isOutputFile = 0;

if (getopts('o:')) {
  chomp($OutputFile = $opt_o);
  $isOutputFile = 1;
}

if($isOutputFile) {
  open TRANSLATED, "< $OutputFile"  or die "Can't open $OutputFile: $!";

  # check for already translated entities
  undef %translated;
  while(<TRANSLATED>) {
    next if !/hwlist\.([0-9a-f]+)/;
    $translated{$1} = 1;
  }

  close(TRANSLATED);

  open OUTPUTFILE, ">> $OutputFile"  or die "Can't open $OutputFile: $!";
}

# translate some entities
while (<>) {
next if !/&man\..*\.[0-9];/;
s/Controllers supported by the (&man\..*\.[0-9];) driver include:/ëÏÎÔÒÏÌÌÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
s/The (&man\..*\.[0-9];) driver supports the following SCSI controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ SCSI:/;
s/The (&man\..*\.[0-9];) driver supports SCSI controllers including:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÏÎÔÒÏÌÌÅÒÙ SCSI, ×ËÌÀÞÁÑ:/;
s/The (&man\..*\.[0-9];) driver supports the following SCSI host adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÈÏÓÔ ÁÄÁÐÔÅÒÙ SCSI:/;
s/The (&man\..*\.[0-9];) driver supports the following SCSI host adapter chips and SCSI controller cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÈÏÓÔ ÁÄÁÐÔÅÒÙ SCSI É ËÁÒÔÙ ËÏÎÔÒÏÌÌÅÒÏ× SCSI:/;
s/The (&man\..*\.[0-9];) driver supports the following:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÅÅ:/;
s/The adapters currently supported by the (&man\..*\.[0-9];) driver include the following:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ ÓÌÅÄÕÀÝÉÅ:/;
s/The following cards are among those supported by the (&man\..*\.[0-9];) driver:/óÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ ×ÈÏÄÑÔ × ÞÉÓÌÏ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÄÒÁÊ×ÅÒÏÍ $1:/;
s/The following cards are among those supported by the (&man\..*\.[0-9];) module:/óÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ ×ÈÏÄÑÔ × ÞÉÓÌÏ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÍÏÄÕÌÅÍ $1:/;
s/Adapters supported by the (&man\..*\.[0-9];) driver include:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
s/Cards supported by the (&man\..*\.[0-9];) driver include:/ëÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÑ:/;
s/The (&man\..*\.[0-9];) driver supports the following card models:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÍÏÄÅÌÉ ËÁÒÔ:/;
s/The (&man\..*\.[0-9];) driver provides support for the following chipsets:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÎÁÂÏÒÙ ÍÉËÒÏÓÈÅÍ:/;
s/The following NICs are known to work with the (&man\..*\.[0-9];) driver at this time:/óÌÅÄÕÀÝÉÅ ÓÅÔÅ×ÙÅ ËÁÒÔÙ ÒÁÂÏÔÁÀÔ Ó ÄÒÁÊ×ÅÒÏÍ $1:/; 
s/The (&man\..*\.[0-9];) driver provides support for the following RAID adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ RAID ÁÄÁÐÔÅÒÙ:/; 
s/The (&man\..*\.[0-9];) driver supports the following Ethernet NICs:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÓÅÔÅ×ÙÅ ËÁÒÔÙ Ethernet:/; 
s/Cards supported by (&man\..*\.[0-9];) driver include:/ëÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ $1, ×ËÌÀÞÁÑ:/; 
s/The (&man\..*\.[0-9];) driver supports the following adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ:/; 
s/The (&man\..*\.[0-9];) driver supports the following ATA RAID controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ ATA RAID:/; 
s/The following controllers are supported by the (&man\..*\.[0-9];) driver:/äÒÁÊ×ÅÒÏÍ $1 ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ËÏÎÔÒÏÌÌÅÒÙ:/;
s/The (&man\..*\.[0-9];) driver supports the following cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ËÁÒÔÙ:/;
s/The SCSI controller chips supported by the (&man\..*\.[0-9];) driver can be found onboard on many systems including:/íÉËÒÏÓÈÅÍÙ SCSI ËÏÎÔÒÏÌÌÅÒÁ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ÍÏÇÕÔ ÂÙÔØ ×ÓÔÒÏÅÎÙ ×Ï ÍÎÏÇÉÅ ÓÉÓÔÅÍÙ, ×ËÌÀÞÁÑ:/;
s/The following devices are currently supported by the (&man\..*\.[0-9];) driver:/äÒÁÊ×ÅÒÏÍ $1 × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á:/;
s/The (&man\..*\.[0-9];) driver supports cards containing any of the following chips:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÁÒÔÙ, ÓÏÄÅÒÖÁÝÉÅ ÌÀÂÕÀ ÉÚ ÓÌÅÄÕÀÝÉÈ ÍÉËÒÏÓÈÅÍ:/;
s/The (&man\..*\.[0-9];) driver supports the following soundcards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ:/;
s/The (&man\..*\.[0-9];) driver supports audio devices based on the following chipset:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ Ú×ÕËÏ×ÙÅ ÕÓÔÒÏÊÓÔ×Á, ÏÓÎÏ×ÁÎÎÙÅ ÎÁ ÓÌÅÄÕÀÝÅÍ ÎÁÂÏÒÅ ÍÉËÒÏÓÈÅÍ:/;
s/The (&man\..*\.[0-9];) driver supports the following audio devices:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ÕÓÔÒÏÊÓÔ×Á:/;
s/The (&man\..*\.[0-9];) driver supports the following PCI sound cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ PCI:/;
s/SCSI controllers supported by the (&man\..*\.[0-9];) driver include:/SCSI ËÏÎÔÒÏÌÌÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
s/The (&man\..*\.[0-9];) driver supports the following SATA RAID controllers:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ SATA RAID ËÏÎÔÒÏÌÌÅÒÙ:/;
s/Devices supported by the (&man\..*\.[0-9];) driver include:/õÓÔÒÏÊÓÔ×Á, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
s/The following devices are supported by the (&man\..*\.[0-9];) driver:/óÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÄÒÁÊ×ÅÒÏÍ $1/;
s/The (&man\..*\.[0-9];) driver supports the following devices:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á:/;
s/The (&man\..*\.[0-9];) driver supports the following parallel to SCSI interfaces:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ parallel to SCSI ÉÎÔÅÒÆÅÊÓÙ/;
s/The (&man\..*\.[0-9];) driver supports the following hardware:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÅÅ ÏÂÏÒÕÄÏ×ÁÎÉÅ:/;
s/The adapters supported by the (&man\..*\.[0-9];) driver include:/áÄÁÐÔÅÒÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
s/The (&man\..*\.[0-9];) driver supports the following Ethernet adapters:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÄÁÐÔÅÒÙ Ethernet:/;
s/Controllers and cards supported by the (&man\..*\.[0-9];) driver include:/ëÏÎÔÒÏÌÌÅÒÙ É ËÁÒÔÙ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ ÄÒÁÊ×ÅÒÏÍ $1, ×ËÌÀÞÁÀÔ:/;
s/The (&man\..*\.[0-9];) driver supports the following audio chipsets:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ ÁÕÄÉÏ ÞÉÐÓÅÔÙ:/;
s/The (&man\..*\.[0-9];) driver supports the following sound cards:/äÒÁÊ×ÅÒ $1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÌÅÄÕÀÝÉÅ Ú×ÕËÏ×ÙÅ ËÁÒÔÙ:/;
s/The (&man\..*\.[0-9];) driver provides support for the following chips:/äÒÁÊ×ÅÒ $1 ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÐÏÄÄÅÒÖËÕ ÄÌÑ ÓÌÅÄÕÀÝÉÈ ÍÉËÒÏÓÈÅÍ:/;
if($isOutputFile) {
  next if !/hwlist\.([0-9a-f]+)/;
  print OUTPUTFILE if !$translated{$1};
} else {
print;
}
}