summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-08-22 19:30:14 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-08-22 19:30:14 (GMT)
commitce8facca2c23f4656747ad3a5b4a8db475855e27 (patch)
treee5faa5e8d675f525b1cd2f397645136f8193b36f /doc
parentf0e47672cc3f910aebd1d30fe3db21e9dbd943c4 (diff)
downloadDoxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.zip
Doxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.tar.gz
Doxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.tar.bz2
Release-1.7.1-20100822
Diffstat (limited to 'doc')
-rw-r--r--doc/commands.doc2
-rw-r--r--doc/config.doc6
-rw-r--r--doc/language.doc60
-rw-r--r--doc/maintainers.txt37
-rw-r--r--doc/translator.py113
-rw-r--r--doc/translator_report.txt17
6 files changed, 112 insertions, 123 deletions
diff --git a/doc/commands.doc b/doc/commands.doc
index ed6f475..8884b36 100644
--- a/doc/commands.doc
+++ b/doc/commands.doc
@@ -634,7 +634,7 @@ Structural indicators
\ref cmdprivate "\\private".
<hr>
-\section cmdname \\name (header)
+\section cmdname \\name [(header)]
\addindex \\name
diff --git a/doc/config.doc b/doc/config.doc
index c2f988e..aff842a 100644
--- a/doc/config.doc
+++ b/doc/config.doc
@@ -1542,8 +1542,10 @@ and does not have live searching capabilities.
\anchor cfg_enum_values_per_line
<dt>\c ENUM_VALUES_PER_LINE <dd>
\addindex ENUM_VALUES_PER_LINE
- This tag can be used to set the number of enum values (range [1..20])
- that doxygen will group on one line in the generated HTML documentation.
+ This tag can be used to set the number of enum values (range [0,1..20])
+ that doxygen will group on one line in the generated HTML documentation.
+ Note that a value of 0 will completely suppress the enum values from
+ appearing in the overview section.
\anchor cfg_generate_treeview
<dt>\c GENERATE_TREEVIEW <dd>
diff --git a/doc/language.doc b/doc/language.doc
index ec2fc27..df662a5 100644
--- a/doc/language.doc
+++ b/doc/language.doc
@@ -73,7 +73,7 @@ when the translator was updated.
<tr bgcolor="#ffffff">
<td>Catalan</td>
<td>Maximiliano Pin<br/>Albert Mora</td>
- <td>max dot pin at bitroit dot com<br/>[unreachable]</td>
+ <td>max dot pin at bitroit dot com<br/><span style="color: red; background-color: yellow">[unreachable]</span></td>
<td>1.6.3</td>
</tr>
<tr bgcolor="#ffffff">
@@ -96,13 +96,13 @@ when the translator was updated.
</tr>
<tr bgcolor="#ffffff">
<td>Czech</td>
- <td>Petr P&#x0159;ikryl</td>
+ <td>Petr Přikryl</td>
<td>prikrylp at skil dot cz</td>
<td>up-to-date</td>
</tr>
<tr bgcolor="#ffffff">
<td>Danish</td>
- <td>Erik S&oslash;e S&oslash;rensen</td>
+ <td>Erik Søe Sørensen</td>
<td>eriksoe+doxygen at daimi dot au dot dk</td>
<td>1.5.4</td>
</tr>
@@ -150,8 +150,8 @@ when the translator was updated.
</tr>
<tr bgcolor="#ffffff">
<td>Hungarian</td>
- <td>&Aacute;kos Kiss<br/>F&ouml;ldv&aacute;ri Gy&ouml;rgy</td>
- <td>akiss at users dot sourceforge dot net<br/>[unreachable]</td>
+ <td>Ákos Kiss<br/>Földvári György</td>
+ <td>akiss at users dot sourceforge dot net<br/><span style="color: red; background-color: yellow">[unreachable]</span></td>
<td>1.4.6</td>
</tr>
<tr bgcolor="#ffffff">
@@ -169,7 +169,7 @@ when the translator was updated.
<tr bgcolor="#ffffff">
<td>Japanese</td>
<td>Hiroki Iseri<br/>Ryunosuke Satoh<br/>Kenji Nagamatsu<br/>Iwasa Kazmi</td>
- <td>goyoki at gmail dot com<br/>sun594 at hotmail dot com<br/>naga at joyful dot club dot ne dot jp<br/>[unreachable]</td>
+ <td>goyoki at gmail dot com<br/>sun594 at hotmail dot com<br/>naga at joyful dot club dot ne dot jp<br/><span style="color: red; background-color: yellow">[unreachable]</span></td>
<td>1.6.0</td>
</tr>
<tr bgcolor="#ffffff">
@@ -181,8 +181,8 @@ when the translator was updated.
<tr bgcolor="#ffffff">
<td>Korean</td>
<td>Kim Taedong<br/>SooYoung Jung<br/>Richard Kim</td>
- <td>fly1004 at gmail dot com<br/>jung5000 at gmail dot com<br/>[unreachable]</td>
- <td>1.6.3</td>
+ <td>fly1004 at gmail dot com<br/>jung5000 at gmail dot com<br/><span style="color: red; background-color: yellow">[unreachable]</span></td>
+ <td>up-to-date</td>
</tr>
<tr bgcolor="#ffffff">
<td>KoreanEn</td>
@@ -193,7 +193,7 @@ when the translator was updated.
<tr bgcolor="#ffffff">
<td>Lithuanian</td>
<td>Tomas Simonaitis<br/>Mindaugas Radzius<br/>Aidas Berukstis<br/>-- contact lost --</td>
- <td>[unreachable]<br/>[unreachable]<br/>[unreachable]<br/></td>
+ <td><span style="color: red; background-color: yellow">[unreachable]</span><br/><span style="color: red; background-color: yellow">[unreachable]</span><br/><span style="color: red; background-color: yellow">[unreachable]</span><br/><span style="color: red; background-color: yellow">[Please, try to help to find someone.]</span></td>
<td>1.4.6</td>
</tr>
<tr bgcolor="#ffffff">
@@ -217,13 +217,13 @@ when the translator was updated.
<tr bgcolor="#ffffff">
<td>Polish</td>
<td>Piotr Kaminski<br/>Grzegorz Kowal<br/>Krzysztof Kral</td>
- <td>[unreachable]<br/>[unreachable]<br/>krzysztof dot kral at gmail dot com</td>
+ <td><span style="color: red; background-color: yellow">[unreachable]</span><br/><span style="color: red; background-color: yellow">[unreachable]</span><br/>krzysztof dot kral at gmail dot com</td>
<td>1.6.3</td>
</tr>
<tr bgcolor="#ffffff">
<td>Portuguese</td>
<td>Rui Godinho Lopes</td>
- <td>[unreachable]</td>
+ <td><span style="color: red; background-color: yellow">[resigned]</span></td>
<td>1.3.3</td>
</tr>
<tr bgcolor="#ffffff">
@@ -241,7 +241,7 @@ when the translator was updated.
<tr bgcolor="#ffffff">
<td>Serbian</td>
<td>Dejan Milosavljevic</td>
- <td>[unreachable]</td>
+ <td><span style="color: red; background-color: yellow">[unreachable]</span></td>
<td>1.6.0</td>
</tr>
<tr bgcolor="#ffffff">
@@ -252,20 +252,20 @@ when the translator was updated.
</tr>
<tr bgcolor="#ffffff">
<td>Slovak</td>
- <td>-- searching for the maintainer --</td>
- <td></td>
+ <td>Kali+Laco Švec<br/>Petr Přikryl</td>
+ <td>the Slovak language advisors<br/>prikrylp at skil dot cz</td>
<td>up-to-date</td>
</tr>
<tr bgcolor="#ffffff">
<td>Slovene</td>
- <td>Matja&#x017e; Ostrover&#x0161;nik</td>
+ <td>Matjaž Ostroveršnik</td>
<td>matjaz dot ostroversnik at ostri dot org</td>
<td>1.4.6</td>
</tr>
<tr bgcolor="#ffffff">
<td>Spanish</td>
<td>Bartomeu<br/>Francisco Oltra Thennet<br/>David Vaquero</td>
- <td>bartomeu at loteria3cornella dot com<br/>[unreachable]<br/>david at grupoikusnet dot com</td>
+ <td>bartomeu at loteria3cornella dot com<br/><span style="color: red; background-color: yellow">[unreachable]</span><br/>david at grupoikusnet dot com</td>
<td>up-to-date</td>
</tr>
<tr bgcolor="#ffffff">
@@ -282,8 +282,8 @@ when the translator was updated.
</tr>
<tr bgcolor="#ffffff">
<td>Ukrainian</td>
- <td>-- searching for the maintainer --</td>
- <td></td>
+ <td>Olexij Tkatchenko<br/>-- searching for the maintainer --</td>
+ <td><span style="color: red; background-color: yellow">[resigned]</span><br/><span style="color: red; background-color: yellow">[Please, try to help to find someone.]</span></td>
<td>1.4.1</td>
</tr>
<tr bgcolor="#ffffff">
@@ -325,9 +325,9 @@ when the translator was updated.
\hline
Croatian & Boris Bralo & {\tt\tiny boris dot bralo at gmail dot com} & up-to-date \\
\hline
- Czech & Petr P\v{r}ikryl & {\tt\tiny prikrylp at skil dot cz} & up-to-date \\
+ Czech & Petr Přikryl & {\tt\tiny prikrylp at skil dot cz} & up-to-date \\
\hline
- Danish & Erik S\o{}e S\o{}rensen & {\tt\tiny eriksoe+doxygen at daimi dot au dot dk} & 1.5.4 \\
+ Danish & Erik Søe Sørensen & {\tt\tiny eriksoe+doxygen at daimi dot au dot dk} & 1.5.4 \\
\hline
Dutch & Dimitri van Heesch & {\tt\tiny dimitri at stack dot nl} & up-to-date \\
\hline
@@ -343,8 +343,8 @@ when the translator was updated.
\hline
Greek & Paul Gessos & {\tt\tiny gessos dot paul at yahoo dot gr} & up-to-date \\
\hline
- Hungarian & \'{A}kos Kiss & {\tt\tiny akiss at users dot sourceforge dot net} & 1.4.6 \\
- ~ & F\"{o}ldv\'{a}ri Gy\"{o}rgy & {\tt\tiny [unreachable] foldvari lost at cyberspace} & ~ \\
+ Hungarian & Ákos Kiss & {\tt\tiny akiss at users dot sourceforge dot net} & 1.4.6 \\
+ ~ & Földvári György & {\tt\tiny [unreachable] foldvari lost at cyberspace} & ~ \\
\hline
Indonesian & Hendy Irawan & {\tt\tiny ceefour at gauldong dot net} & 1.4.6 \\
\hline
@@ -358,7 +358,7 @@ when the translator was updated.
\hline
JapaneseEn & see the Japanese language & {\tt\tiny ~} & English based \\
\hline
- Korean & Kim Taedong & {\tt\tiny fly1004 at gmail dot com} & 1.6.3 \\
+ Korean & Kim Taedong & {\tt\tiny fly1004 at gmail dot com} & up-to-date \\
~ & SooYoung Jung & {\tt\tiny jung5000 at gmail dot com} & ~ \\
~ & Richard Kim & {\tt\tiny [unreachable] ryk at dspwiz dot com} & ~ \\
\hline
@@ -367,7 +367,7 @@ when the translator was updated.
Lithuanian & Tomas Simonaitis & {\tt\tiny [unreachable] haden at homelan dot lt} & 1.4.6 \\
~ & Mindaugas Radzius & {\tt\tiny [unreachable] mindaugasradzius at takas dot lt} & ~ \\
~ & Aidas Berukstis & {\tt\tiny [unreachable] aidasber at takas dot lt} & ~ \\
- ~ & -- contact lost -- & {\tt\tiny } & ~ \\
+ ~ & -- contact lost -- & {\tt\tiny [Please, try to help to find someone.]} & ~ \\
\hline
Macedonian & Slave Jovanovski & {\tt\tiny slavejovanovski at yahoo dot com} & 1.6.0 \\
\hline
@@ -376,10 +376,10 @@ when the translator was updated.
Persian & Ali Nadalizadeh & {\tt\tiny nadalizadeh at gmail dot com} & up-to-date \\
\hline
Polish & Piotr Kaminski & {\tt\tiny [unreachable] Piotr dot Kaminski at ctm dot gdynia dot pl} & 1.6.3 \\
- ~ & Grzegorz Kowal & {\tt\tiny [unreachable] g\_kowal at poczta dot onet dot pl} & ~ \\
+ ~ & Grzegorz Kowal & {\tt\tiny [unreachable] g_kowal at poczta dot onet dot pl} & ~ \\
~ & Krzysztof Kral & {\tt\tiny krzysztof dot kral at gmail dot com} & ~ \\
\hline
- Portuguese & Rui Godinho Lopes & {\tt\tiny [unreachable] ruiglopes at yahoo dot com} & 1.3.3 \\
+ Portuguese & Rui Godinho Lopes & {\tt\tiny [resigned] rgl at ruilopes dot com} & 1.3.3 \\
\hline
Romanian & Ionut Dumitrascu & {\tt\tiny reddumy at yahoo dot com} & 1.6.0 \\
~ & Alexandru Iosup & {\tt\tiny aiosup at yahoo dot com} & ~ \\
@@ -390,9 +390,10 @@ when the translator was updated.
\hline
SerbianCyrilic & Nedeljko Stefanovic & {\tt\tiny stenedjo at yahoo dot com} & 1.6.0 \\
\hline
- Slovak & -- searching for the maintainer -- & {\tt\tiny } & up-to-date \\
+ Slovak & Kali+Laco Švec & {\tt\tiny the Slovak language advisors} & up-to-date \\
+ ~ & Petr Přikryl & {\tt\tiny prikrylp at skil dot cz} & ~ \\
\hline
- Slovene & Matja\v{z} Ostrover\v{s}nik & {\tt\tiny matjaz dot ostroversnik at ostri dot org} & 1.4.6 \\
+ Slovene & Matjaž Ostroveršnik & {\tt\tiny matjaz dot ostroversnik at ostri dot org} & 1.4.6 \\
\hline
Spanish & Bartomeu & {\tt\tiny bartomeu at loteria3cornella dot com} & up-to-date \\
~ & Francisco Oltra Thennet & {\tt\tiny [unreachable] foltra at puc dot cl} & ~ \\
@@ -402,7 +403,8 @@ when the translator was updated.
\hline
Turkish & Emin Ilker Cetinbas & {\tt\tiny niw3 at yahoo dot com} & up-to-date \\
\hline
- Ukrainian & -- searching for the maintainer -- & {\tt\tiny } & 1.4.1 \\
+ Ukrainian & Olexij Tkatchenko & {\tt\tiny [resigned] olexij at tkatchenko dot com} & 1.4.1 \\
+ ~ & -- searching for the maintainer -- & {\tt\tiny [Please, try to help to find someone.]} & ~ \\
\hline
Vietnamese & Dang Minh Tuan & {\tt\tiny tuanvietkey at gmail dot com} & 1.6.0 \\
\hline
diff --git a/doc/maintainers.txt b/doc/maintainers.txt
index e7a1028..04ec526 100644
--- a/doc/maintainers.txt
+++ b/doc/maintainers.txt
@@ -1,16 +1,16 @@
% $Id$
%
-% Comments start with % sign at the beginning.
-% XML entities like &auml; are used for special characters.
+% The text is in UTF-8. Comments start with % sign at the beginning.
% There is one record for each language. The records are separated
% by the empty line and they do not contain empty lines.
% First line of the record identifies the translator class for the language.
% The following one or more lines contain information about
% the maintainer(s) for the language (one line, one maintainer)
% in the form: <readable name><colon><e-mail>
-% If the <e-mail> is prefixed [unreachable] it is not displayed in the table
+% If the <e-mail> is prefixed [some_text] it is not displayed in the table
% of maintainers in the Doxygen documentation, nor it is used when building
-% the mailto.txt by translator.py.
+% the mailto.txt by translator.py. The mark is displayed in the documentation
+% instead.
TranslatorAfrikaans
Johan Prinsloo: johan at zippysnoek dot com
@@ -37,10 +37,10 @@ TranslatorCroatian
Boris Bralo: boris dot bralo at gmail dot com
TranslatorCzech
-Petr P&rcaron;ikryl: prikrylp at skil dot cz
+Petr Přikryl: prikrylp at skil dot cz
TranslatorDanish
-Erik S&oslash;e S&oslash;rensen: eriksoe+doxygen at daimi dot au dot dk
+Erik Søe Sørensen: eriksoe+doxygen at daimi dot au dot dk
TranslatorDutch
Dimitri van Heesch: dimitri at stack dot nl
@@ -64,8 +64,8 @@ TranslatorGreek
Paul Gessos: gessos dot paul at yahoo dot gr
TranslatorHungarian
-&Aacute;kos Kiss: akiss at users dot sourceforge dot net
-F&ouml;ldv&aacute;ri Gy&ouml;rgy: [unreachable] foldvari lost at cyberspace
+Ákos Kiss: akiss at users dot sourceforge dot net
+Földvári György: [unreachable] foldvari lost at cyberspace
TranslatorIndonesian
Hendy Irawan: ceefour at gauldong dot net
@@ -89,7 +89,7 @@ TranslatorLithuanian
Tomas Simonaitis: [unreachable] haden at homelan dot lt
Mindaugas Radzius: [unreachable] mindaugasradzius at takas dot lt
Aidas Berukstis: [unreachable] aidasber at takas dot lt
--- contact lost --:
+-- contact lost --: [Please, try to help to find someone.]
TranslatorNorwegian
Lars Erik Jordet: lejordet at gmail dot com
@@ -106,7 +106,7 @@ Grzegorz Kowal: [unreachable] g_kowal at poczta dot onet dot pl
Krzysztof Kral: krzysztof dot kral at gmail dot com
TranslatorPortuguese
-Rui Godinho Lopes: [unreachable] ruiglopes at yahoo dot com
+Rui Godinho Lopes: [resigned] rgl at ruilopes dot com
TranslatorRomanian
Ionut Dumitrascu: reddumy at yahoo dot com
@@ -122,11 +122,12 @@ TranslatorSerbianCyrilic
Nedeljko Stefanovic: stenedjo at yahoo dot com
TranslatorSlovak
-% Stanislav Kudl&aacute;&ccaron;: [unreachable] skudlac at pobox dot sk
--- searching for the maintainer --:
+% Stanislav Kudláč: [resigned] skudlac at pobox dot sk
+Kali+Laco Švec: the Slovak language advisors
+Petr Přikryl: prikrylp at skil dot cz
TranslatorSlovene
-Matja&zcaron; Ostrover&scaron;nik: matjaz dot ostroversnik at ostri dot org
+Matjaž Ostroveršnik: matjaz dot ostroversnik at ostri dot org
TranslatorSpanish
Bartomeu: bartomeu at loteria3cornella dot com
@@ -136,13 +137,13 @@ David Vaquero: david at grupoikusnet dot com
TranslatorSwedish
Mikael Hallin: mikaelhallin at yahoo dot se
+TranslatorTurkish
+Emin Ilker Cetinbas: niw3 at yahoo dot com
+
TranslatorUkrainian
-% (resigned) Olexij Tkatchenko: olexij at tkatchenko dot com
--- searching for the maintainer --:
+Olexij Tkatchenko: [resigned] olexij at tkatchenko dot com
+-- searching for the maintainer --: [Please, try to help to find someone.]
TranslatorVietnamese
Dang Minh Tuan: tuanvietkey at gmail dot com
-TranslatorTurkish
-Emin Ilker Cetinbas: niw3 at yahoo dot com
-
diff --git a/doc/translator.py b/doc/translator.py
index 14f8c3c..995f910 100644
--- a/doc/translator.py
+++ b/doc/translator.py
@@ -56,10 +56,16 @@
2010/03/03 - Added [unreachable] prefix used in maintainers.txt.
2010/05/28 - BOM skipped; minor code cleaning.
2010/05/31 - e-mail mangled already in maintainers.txt
+ 2010/08/20 - maintainers.txt to UTF-8, related processin of unicode strings
+ - [any mark] introduced instead of [unreachable] only
+ - marks hihglighted in HTML
"""
from __future__ import generators
-import os, re, sys
+import codecs
+import os
+import re
+import sys
def fill(s):
@@ -1535,10 +1541,10 @@ class TrManager:
"""Returns the list of maintainer emails.
The method returns the list of e-mail adresses for the translator
- class, but only the addresses that were not marked as [unreachable]."""
+ class, but only the addresses that were not marked as [xxx]."""
lst = []
for m in self.__maintainersDic[classId]:
- if not m[1].startswith('[unreachable]'):
+ if not m[1].startswith('['):
email = m[1]
email = email.replace(' at ', '@') # Unmangle the mangled e-mail
email = email.replace(' dot ', '.')
@@ -1737,7 +1743,7 @@ class TrManager:
self.lastModificationTime = tim
# Process the content of the maintainers file.
- f = open(fname)
+ f = codecs.open(fname, 'r', 'utf-8')
inside = False # inside the record for the language
lineReady = True
classId = None
@@ -1748,18 +1754,18 @@ class TrManager:
lineReady = line != '' # when eof, then line == ''
line = line.strip() # eof should also behave as separator
- if line != '' and line[0] == '%': # skip the comment line
+ if line != u'' and line[0] == u'%': # skip the comment line
continue
if not inside: # if outside of the record
- if line != '': # should be language identifier
+ if line != u'': # should be language identifier
classId = line
maintainersLst = []
inside = True
# Otherwise skip empty line that do not act as separator.
else: # if inside the record
- if line == '': # separator found
+ if line == u'': # separator found
inside = False
else:
# If it is the first maintainer, create the empty list.
@@ -1767,9 +1773,9 @@ class TrManager:
self.__maintainersDic[classId] = []
# Split the information about the maintainer and append
- # the tuple. The address may be prefixed '[unreachable]'.
- # This will be processed later.
- lst = line.split(':', 1)
+ # the tuple. The address may be prefixed '[unreachable]'
+ # or whatever '[xxx]'. This will be processed later.
+ lst = line.split(u':', 1)
assert(len(lst) == 2)
t = (lst[0].strip(), lst[1].strip())
self.__maintainersDic[classId].append(t)
@@ -1801,32 +1807,33 @@ class TrManager:
#
# Read the template of the documentation, and remove the first
# attention lines.
- f = open(fTplName)
- line = f.readline()
- while line[0] != '/':
- line = f.readline()
- doctpl = line + f.read()
+ f = codecs.open(fTplName, 'r', 'utf-8')
+ doctpl = f.read()
f.close()
+ pos = doctpl.find(u'/***')
+ assert pos != -1
+ doctpl = doctpl[pos:]
+
# Fill the tplDic by symbols that will be inserted into the
# document template.
tplDic = {}
- s = 'Do not edit this file. It was generated by the %s script.' % self.script_name
+ s = u'Do not edit this file. It was generated by the %s script.' % self.script_name
tplDic['editnote'] = s
tplDic['doxVersion'] = self.doxVersion
tplDic['supportedLangReadableStr'] = self.supportedLangReadableStr
tplDic['translatorReportFileName'] = self.translatorReportFileName
- ahref = '<a href="../doc/' + self.translatorReportFileName
- ahref += '"\n><code>doxygen/doc/' + self.translatorReportFileName
- ahref += '</code></a>'
+ ahref = u'<a href="../doc/' + self.translatorReportFileName
+ ahref += u'"\n><code>doxygen/doc/' + self.translatorReportFileName
+ ahref += u'</code></a>'
tplDic['translatorReportLink'] = ahref
tplDic['numLangStr'] = str(self.numLang)
# Define templates for HTML table parts of the documentation.
- htmlTableTpl = '''\
+ htmlTableTpl = u'''\
\\htmlonly
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr bgcolor="#000000">
@@ -1849,8 +1856,8 @@ class TrManager:
\\endhtmlonly
'''
htmlTableTpl = dedent(htmlTableTpl)
- htmlTrTpl = '\n <tr bgcolor="#ffffff">%s\n </tr>'
- htmlTdTpl = '\n <td>%s</td>'
+ htmlTrTpl = u'\n <tr bgcolor="#ffffff">%s\n </tr>'
+ htmlTdTpl = u'\n <td>%s</td>'
# Loop through transl objects in the order of sorted readable names
# and add generate the content of the HTML table.
@@ -1871,28 +1878,26 @@ class TrManager:
classId = obj.classId[:-2]
if self.__translDic.has_key(classId):
lang = self.__translDic[classId].langReadable
- mm = 'see the %s language' % lang
- ee = '&nbsp;'
+ mm = u'see the %s language' % lang
+ ee = u'&nbsp;'
if not mm and self.__maintainersDic.has_key(obj.classId):
lm = [ m[0] for m in self.__maintainersDic[obj.classId] ]
- mm = '<br/>'.join(lm)
+ mm = u'<br/>'.join(lm)
- # Unreachable adresses will not be displayed at all.
+ # The marked adresses (they start with the mark '[unreachable]',
+ # '[resigned]', whatever '[xxx]') will not be displayed at all.
+ # Only the mark will be used instead.
+ rexMark = re.compile(ur'(?P<mark>\[.*?\])')
le = []
- for m in self.__maintainersDic[obj.classId]:
- address = m[1]
- if address.startswith('[unreachable]'):
- address = '[unreachable]'
+ for maintainer in self.__maintainersDic[obj.classId]:
+ address = maintainer[1]
+ m = rexMark.search(address)
+ if m is not None:
+ address = u'<span style="color: red; background-color: yellow">'\
+ + m.group(u'mark') + u'</span>'
le.append(address)
- ee = '<br/>'.join(le)
-
- # Replace the entity references.
- if mm:
- mm = mm.replace('&ccaron;', '&#x010d;')
- mm = mm.replace('&rcaron;', '&#x0159;')
- mm = mm.replace('&scaron;', '&#x0161;')
- mm = mm.replace('&zcaron;', '&#x017e;')
+ ee = u'<br/>'.join(le)
# Append the maintainer and e-mail elements.
lst.append(htmlTdTpl % mm)
@@ -1908,7 +1913,7 @@ class TrManager:
htmlTable = htmlTableTpl % (''.join(trlst))
# Define templates for LaTeX table parts of the documentation.
- latexTableTpl = r'''
+ latexTableTpl = ur'''
\latexonly
\footnotesize
\begin{longtable}{|l|l|l|l|}
@@ -1922,7 +1927,7 @@ class TrManager:
\endlatexonly
'''
latexTableTpl = dedent(latexTableTpl)
- latexLineTpl = '\n' + r' %s & %s & {\tt\tiny %s} & %s \\'
+ latexLineTpl = u'\n' + r' %s & %s & {\tt\tiny %s} & %s \\'
# Loop through transl objects in the order of sorted readable names
# and add generate the content of the LaTeX table.
@@ -1944,8 +1949,8 @@ class TrManager:
classId = obj.classId[:-2]
if self.__translDic.has_key(classId):
langNE = self.__translDic[classId].langReadable
- maintainer = 'see the %s language' % langNE
- email = '~'
+ maintainer = u'see the %s language' % langNE
+ email = u'~'
if not maintainer and self.__maintainersDic.has_key(obj.classId):
lm = [ m[0] for m in self.__maintainersDic[obj.classId] ]
@@ -1956,38 +1961,26 @@ class TrManager:
# Use the template to produce the line of the table and insert
# the hline plus the constructed line into the table content.
- trlst.append('\n \\hline')
+ trlst.append(u'\n \\hline')
trlst.append(latexLineTpl % (lang, maintainer, email, status))
# List the other maintainers for the language. Do not set
# lang and status for them.
- lang = '~'
- status = '~'
+ lang = u'~'
+ status = u'~'
for m in maintainers[1:]:
maintainer = m[0]
email = m[1]
trlst.append(latexLineTpl % (lang, maintainer, email, status))
# Join the table lines and insert into the template.
- latexTable = latexTableTpl % (''.join(trlst))
+ latexTable = latexTableTpl % (u''.join(trlst))
- # Do the LaTeX replacements.
- latexTable = latexTable.replace('&aacute;', "\\'{a}")
- latexTable = latexTable.replace('&Aacute;', "\\'{A}")
- latexTable = latexTable.replace('&auml;', '\\"{a}')
- latexTable = latexTable.replace('&ouml;', '\\"{o}')
- latexTable = latexTable.replace('&oslash;', '\\o{}')
- latexTable = latexTable.replace('&ccaron;', '\\v{c}')
- latexTable = latexTable.replace('&rcaron;', '\\v{r}')
- latexTable = latexTable.replace('&scaron;', '\\v{s}')
- latexTable = latexTable.replace('&zcaron;', '\\v{z}')
- latexTable = latexTable.replace('_', '\\_')
-
# Put the HTML and LaTeX parts together and define the dic item.
- tplDic['informationTable'] = htmlTable + '\n' + latexTable
+ tplDic['informationTable'] = htmlTable + u'\n' + latexTable
# Insert the symbols into the document template and write it down.
- f = open(fDocName, 'w')
+ f = codecs.open(fDocName, 'w', 'utf-8')
f.write(doctpl % tplDic)
f.close()
diff --git a/doc/translator_report.txt b/doc/translator_report.txt
index a79f1da..ba7f4ba 100644
--- a/doc/translator_report.txt
+++ b/doc/translator_report.txt
@@ -10,7 +10,7 @@ Persian, Polish, Portuguese, Romanian, Russian, Serbian,
SerbianCyrilic, Slovak, Slovene, Spanish, Swedish, Turkish, Ukrainian,
and Vietnamese.
-Of them, 10 translators are up-to-date, 28 translators are based on
+Of them, 11 translators are up-to-date, 27 translators are based on
some adapter class, and 2 are English based.
----------------------------------------------------------------------
@@ -25,6 +25,7 @@ still may be some details listed even for them:
TranslatorDutch
TranslatorEnglish
TranslatorGreek
+ TranslatorKorean -- Change the base class to Translator.
TranslatorPersian -- The MAX_DOT_GRAPH_HEIGHT found in trLegendDocs()
TranslatorSlovak
TranslatorSpanish -- The MAX_DOT_GRAPH_HEIGHT found in trLegendDocs()
@@ -37,9 +38,6 @@ version when the class was last updated and number of methods that
must be implemented to become up-to-date:
TranslatorPolish 1.6.3 4 methods to implement (1 %)
- TranslatorKorean 1.6.3 4 methods to implement (1 %)
- Note: Reimplementation using UTF-8 suggested.
-
TranslatorGerman 1.6.3 4 methods to implement (1 %)
TranslatorFrench 1.6.3 4 methods to implement (1 %)
Note: Reimplementation using UTF-8 suggested.
@@ -504,17 +502,10 @@ TranslatorJapaneseEn (TranslatorEnglish) 220 methods to implement (97 %)
virtual QCString latexLanguageSupportCommand()
-TranslatorKorean (TranslatorAdapter_1_6_3) 4 methods to implement (1 %)
+TranslatorKorean (TranslatorAdapter_1_6_3)
----------------
- Implements 221 of the required methods (98 %).
-
- Missing methods (should be implemented):
-
- virtual QCString trDateTime(int year, int month, int day, int dayOfWeek, int hour, int minutes, int seconds, bool includeTime)
- virtual QCString trFileIn(const char * name)
- virtual QCString trDirDependency(const char * name)
- virtual QCString trIncludesFileIn(const char * name)
+ Implements 225 of the required methods (100 %).
TranslatorKoreanEn (TranslatorEnglish) 220 methods to implement (97 %)