summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-05-19 22:04:00 +0200
committerPetr Mladek <pmladek@suse.cz>2012-02-10 17:54:51 +0100
commit0c639ec9ababcb99639e4b1a87d0a229588afad2 (patch)
tree4ad048466b68dc5d9e3b44d894c029ba00e5b49e
parent841c1969e3b7ff39b1d7123c7350753861e5332f (diff)
hid.lst is not used any more.
Signed-off-by: Petr Mladek <pmladek@suse.cz>
-rwxr-xr-xhelpcontent2/to-wiki/wikiconv2.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py
index 6a3d766488..7d5cc3eda4 100755
--- a/helpcontent2/to-wiki/wikiconv2.py
+++ b/helpcontent2/to-wiki/wikiconv2.py
@@ -13,9 +13,6 @@ titles = []
# map of id -> localized text
localization_data = {}
-# content of the hid.lst file for easier searching
-hid_lst = {}
-
# to collect a list of pages that will be redirections to the pages with nice
# names
redirects = []
@@ -118,16 +115,6 @@ replace_text_list = \
["$PRODUCTNAME", "{{ProductName}}"]
]
-def load_hid_lst():
- global hid_lst
- hid_lst = {}
- file = codecs.open("helpers/hid.lst", "r", "utf-8")
- for line in file:
- ids = line.strip().split(" ")
- if len(ids) == 2:
- hid_lst[ids[0].upper()] = ids[1]
- file.close()
-
def get_link_filename(link, name):
text = link.strip()
fragment = ''
@@ -397,12 +384,7 @@ class Bookmark(ElementBase):
self.app = parser.current_app_raw
self.target = parser.wiki_page_name
self.authoritative = parser.follow_embed
- if name.find('.uno:') == 0 or name.find('.HelpId:') == 0:
- self.redirect = name
- elif name.upper() in hid_lst:
- self.redirect = hid_lst[name.upper()]
- #else:
- # sys.stderr.write('Unhandled redirect "%s"\n'% name)
+ self.redirect = name
def get_all(self):
global redirects
@@ -1281,7 +1263,6 @@ def convert(generate_redirects, lang, sdf_file):
global images
images = set()
- load_hid_lst()
loadallfiles("alltitles.csv")
if lang != '':