Translation by Artem Sereda with my minor changes
[kde-ru.git] / docs / kdenetwork / kppp / accounting.docbook
blobd6f68afcc3cc07d7700eeae4561ecb2fa0dc0659
1 <appendix id="appendix-accounting-template">
2 <title
3 >Пример шаблона для учета стоимости телефонных звонков.</title>
5 <para
6 >Если вы не нашли правила, соответствующего вашему району, то можете написать свое собственное, используя следующий шаблон. Не бойтесь, это действительно очень просто.</para>
8 <para
9 >Не забудьте отправить созданные вами правила разработчикам &kppp;. Созданный файл можно проверить на правильность синтаксиса, задав опцию <userinput
10 ><option
11 >-r</option
12 > <replaceable
13 >файл_правила</replaceable
14 ></userinput
15 > в командной строке для &kppp;, а установлен он должен быть в каталоге <filename class="directory"
16 >${KDEDIR}/share/apps/kppp/Rules</filename
17 > или в <filename class="directory"
18 >${HOME}/.kde/share/apps/kppp/Rules</filename
19 > до того, как он станет доступен в этом диалоге.</para>
21 <programlisting
22 >################################################################
24 # Disclaimer/License
25 # This Template ist (c) by Mario Weilguni &lt;mweilguni@kde.org&gt;
26 # It ist licensed under the same terms as the kppp package, 
27 # which it is part of
29 ################################################################
31 # This is a sample rule set for kppp. You can use it as a 
32 # template when you have to create your own ruleset. If you do
33 # so, remove all comments and add your own. This will allow
34 # other users to check your ruleset more easily.
35
36 # Please sign the the tarif file with your name an email address
37 # so that I can contact you if necessary.
39 # NOTE: the rules in this rule set do not make much sense and
40 #       are only for demonstration purposes
42 # NOTE ON FILENAMES:
43 #        when you create your own ruleset, use "_" in filename
44 #        instead of spaces and use ".rst  as extension
45 #           i.e. "Austria city calls"
46 #          --> file should be saved as "Austria_city_calls.rst"
48 # Thanks, Bernd Wuebben
49 # wuebben@math.cornell.edu / wuebben@kde.org
50 ################################################################
53 ################################################################
55 # NAME OF THE RULESET. This is NEEDED for accounting purposes.
57 ################################################################
58 name=default
60 ################################################################
61 # currency settings
62 ################################################################
64 # defines ATS (Austrian Schilling) to be used as currency
65 # symbol (not absolutely needed, default = "$")
66 currency_symbol=ATS
68 # Define the position of the currency symbol.
69 # (not absolutely needed, default is "right")
70 currency_position=right 
72 # Define the number of significant digits.
73 # (not absolutely needed, default is "2"
74 currency_digits=2
78 ################################################################
79 # connection settings
80 ################################################################
82 # NOTE: rules are applied from top to bottom - the
83 #       LAST matching rule is the one used for the
84 #       cost computations.
86 # This is charged whenever you connect. If you don't have to
87 # pay per-connection, use "0" here or comment it out.
88 per_connection=0.0
91 # minimum costs per per connection. If the costs of a phone
92 # call are less than this value, this value is used instead
93 minimum_costs=0.0
96 # You pay .74 for the first 180 seconds ( 3 minutes) no matter
97 # whether you are connected for 1 second or 180 seconds.
98 # This rule will take priority during the first 180 seconds
99 # over any other rule, in particular the 'default' rule.
100 # have a look at costgraphs.gif in the docs directory
101 # of the kppp distribution for a graphic illustration.
102 flat_init_costs=(0.74,180)
104 # This is the default rule which is used when no other rule
105 # applies. The first component "0.1" is the price of one
106 # "unit", while "72" is the duration in seconds.
107 # Therefore the following rule means: "Every 72 seconds 0.1 
108 # ATS are added to the bill"
109 default=(0.1, 72)
112 # more complicated rules:
115 # "on monday until sunday from 12:00 am until 11:59 pm the costs
116 # are 0.2 each 72 seconds"
117 on () between () use (0.2, 2)
119 # same as above
120 on (monday..sunday) between () use (0.2, 2)
122 # same as above. You must use 24 hour notation, or the accounting
123 # will not work correctly. (Example: write 15:00 for 3 pm)
124 on (monday..sunday) between (0:00..23:59) use (0.2, 2)
126 # applies on friday, saturday, sunday and monday 8am until 1pm
127 on (friday..monday) between (8:00..13:00) use(0.3,72)
129 # ATTENTION:
130 on(monday..friday) between (21:00..5:00) use (0.4,2)
131 # does NOT include saturday 0:00-5:00, just monday..friday, as it says.
133 # applies on a given date (christmas)
134 on (12/25) between () use (0.3,72)
136 # a range of dates and one weekday
137 on (12/25..12/27, 12/31, 07/04, monday) between () use (0.4, 72)
139 # use this for easter
140 on (easter) between () use (0.3,72)
142 # easter + 50 days (Pfingstmontag/ Pentecost Monday )
143 on (easter+50) between () use (0.3,72)
145 on (thursday) between (20:00..21:52) use (8.2, 1)
148 # The "on()" rules above all relates to current time only. You can also
149 # make a rule depend on the number of seconds you have been connected
150 # by specifying this time as a third argument to "use()".
151 # For instance, let's say normal rate in the evening is 0.20 per minute,
152 # and it drops by 20% after one hour of connect time. This can be modelled
153 # like:
155 on () between (19:30..08:00) use (0.20, 60)
156 on () between (19:30..08:00) use (0.16, 60, 3600)
158 # Note that these rules, just like other rules, are sensitive to the 
159 # order in which they appear.
160 </programlisting>
162 </appendix>