summaryrefslogtreecommitdiff
path: root/helpcontent2/to-wiki
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-05-19 22:04:00 +0200
committerJan Holesovsky <kendy@suse.cz>2011-09-01 00:10:02 +0200
commitfea60e681e86b3facc5885b848f6705eb8232175 (patch)
treeb9220f37d8d9c5d46117ea616716bd61d97809ca /helpcontent2/to-wiki
parent09af278327d7f19b6fb1d35779c42a5e1d601f12 (diff)
hid.lst is not used any more.
Diffstat (limited to 'helpcontent2/to-wiki')
-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 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 != '':