Difference between revisions of "Talk:List of XEPs"
From JaWiki (Jabber/XMPP wiki)
m |
(класс отнесён к строке (была ячейка)) |
||
Line 59: | Line 59: | ||
# outting table row | # outting table row | ||
− | print "|- | + | print "|- class='$typeClass $statusClass'\n| $xep || $name || $type || $status\n"; |
− | + | ||
} | } |
Revision as of 18:11, 22 April 2009
Генерация списка
Копипаст оригинального списка прогнать через этот скрипт:
#! /usr/bin/env perl while ( <> ) { split '\t'; chop @_; $xep = $_[0]; $name = $_[1]; $type = $_[2]; $status = $_[3]; $date = $_[4]; # ignored # XEP -> template $xep =~ /XEP-([0-9]{4})/; $xep = "{{xep|$1}}"; # add place for the russian translation $name = $name."<hr/>"; # type and status translation, according to Terms %TypeTranslation = ( "Historical", "Историческое", "Humorous", "Шуточное", "Informational", "Информационное", "JIG Formation", "Формирование JIG", "Procedural", "Процедурное", "Standards Track", "Основное" ); %StatusTranslation = ( "Active", "Действующее", "Deferred", "Отложенное", "Deprecated", "Отменённое", "Draft", "Черновик", "Experimental", "Экспериментальное", "Final", "Окончательное", "Obsolete", "Устаревшее", "Proposed", "Предложенное", "Rejected", "Отклонённое", "Retracted", "Отозванное" ); $typeTranslated = $TypeTranslation{$type}; $statusTranslated = $StatusTranslation{$status}; # type, status links and classes $typeClass = 'type_'.$type; $statusClass = 'status_'.$status; $type = "[[XEP#Типы|$typeTranslated]]"; $status = "[[XEP#Статусы|$statusTranslated]]"; $typeClass =~ s/ /_/g; $statusClass =~ s/ /_/g; # outting table row print "|- class='$typeClass $statusClass'\n| $xep || $name || $type || $status\n"; }