%s
\n' % msg) + + # begin alphabetic navigation + self.alphabet_navigation(of, db, person_handle_list, _PERSON) + of.write('\tdiff --git a/src/data/Web_Visually.css b/src/data/Web_Visually.css
index d8d161884..4427fd0c0 100644
--- a/src/data/Web_Visually.css
+++ b/src/data/Web_Visually.css
@@ -269,7 +269,7 @@ table.infolist {
}
table.infolist tr th {
font:normal 1.1em/1.2em serif;
- color:#FFF;
+ color:#000;
margin:0;
padding:.2em 10px;
background-color:#6AF364;
diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py
index 6755054ca..9fe69c624 100644
--- a/src/plugins/webreport/NarrativeWeb.py
+++ b/src/plugins/webreport/NarrativeWeb.py
@@ -115,6 +115,9 @@ _WEBHEADER = 'Web_Mainz_Header.png'
_WEBMID = 'Web_Mainz_Mid.png'
_WEBMIDLIGHT = 'Web_Mainz_MidLight.png'
+# Web page filename extensions
+_WEB_EXT = ['.html', '.htm', '.shtml', '.php', '.php3', '.cgi']
+
_INCLUDE_LIVING_VALUE = 99 # Arbitrary number
_NAME_COL = 3
@@ -140,26 +143,27 @@ _CSS_FILES = [
[_("Mainz"), 'Web_Mainz.css'],
[_("Nebraska"), 'Web_Nebraska.css'],
[_("Visually Impaired"), 'Web_Visually.css'],
-
[_("No style sheet"), ''],
]
_CHARACTER_SETS = [
# First is used as default selection.
- [_('Unicode (recommended)'), 'utf-8'],
- ['ISO-8859-1', 'iso-8859-1' ],
- ['ISO-8859-2', 'iso-8859-2' ],
- ['ISO-8859-3', 'iso-8859-3' ],
- ['ISO-8859-4', 'iso-8859-4' ],
- ['ISO-8859-5', 'iso-8859-5' ],
- ['ISO-8859-6', 'iso-8859-6' ],
- ['ISO-8859-7', 'iso-8859-7' ],
- ['ISO-8859-8', 'iso-8859-8' ],
- ['ISO-8859-9', 'iso-8859-9' ],
- ['ISO-8859-10', 'iso-8859-10' ],
- ['ISO-8859-13', 'iso-8859-13' ],
- ['ISO-8859-14', 'iso-8859-14' ],
- ['ISO-8859-15', 'iso-8859-15' ],
+ # As you see these on the internet, they are in full capital letters.
+ # UTF-8 is specifically identified instead of the entire unicode set.
+ [_('Unicode UTF-8 (recommended)'), 'UTF-8'],
+ ['ISO-8859-1', 'ISO-8859-1' ],
+ ['ISO-8859-2', 'ISO-8859-2' ],
+ ['ISO-8859-3', 'ISO-8859-3' ],
+ ['ISO-8859-4', 'ISO-8859-4' ],
+ ['ISO-8859-5', 'ISO-8859-5' ],
+ ['ISO-8859-6', 'ISO-8859-6' ],
+ ['ISO-8859-7', 'ISO-8859-7' ],
+ ['ISO-8859-8', 'ISO-8859-8' ],
+ ['ISO-8859-9', 'ISO-8859-9' ],
+ ['ISO-8859-10', 'ISO-8859-10' ],
+ ['ISO-8859-13', 'ISO-8859-13' ],
+ ['ISO-8859-14', 'ISO-8859-14' ],
+ ['ISO-8859-15', 'ISO-8859-15' ],
['koi8_r', 'koi8_r', ],
]
@@ -208,12 +212,10 @@ _COPY_OPTIONS = [
_('No copyright notice'),
]
-
wrapper = TextWrapper()
wrapper.break_log_words = True
wrapper.width = 20
-
_html_dbl_quotes = re.compile(r'([^"]*) " ([^"]*) " (.*)', re.VERBOSE)
_html_sng_quotes = re.compile(r"([^']*) ' ([^']*) ' (.*)", re.VERBOSE)
_html_replacement = {
@@ -353,7 +355,6 @@ class BasePage:
if home_person:
home_person_url = self.report.build_url_fname_html(home_person.handle, 'ppl', self.up)
home_person_name = home_person.get_primary_name().get_regular_name()
- msg += '
'
msg += _('Created for %s') % (home_person_url, home_person_name)
of.write('\t
%s
\n' % msg) @@ -462,7 +463,7 @@ class BasePage: navs = [(u, n) for u, n, c in navs if c] for url_fname, nav_text in navs: - if not url_fname.endswith(self.ext): + if not _has_webpage_extension(url_fname): url_fname += self.ext if self.up: @@ -476,7 +477,7 @@ class BasePage: # Use 'self.report.cur_fname' to determine 'CurrentSection' for individual # elements for Navigation styling. - # Figure out if we need%s
\n' % msg) + + # begin alphabetic navigation + self.alphabet_navigation(of, db, person_handle_list, _PERSON) + of.write('\t