From fea60e681e86b3facc5885b848f6705eb8232175 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 19 May 2011 22:04:00 +0200 Subject: hid.lst is not used any more. --- helpcontent2/to-wiki/wikiconv2.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'helpcontent2/to-wiki') diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py index d4b3a5e235..acc1b457b7 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 = '' @@ -400,12 +387,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 @@ -1284,7 +1266,6 @@ def convert(generate_redirects, lang, sdf_file): global images images = set() - load_hid_lst() loadallfiles("alltitles.csv") if lang != '': -- cgit