diff --git a/lift.py b/lift.py index 75ee9a6c..70c10ac7 100644 --- a/lift.py +++ b/lift.py @@ -65,34 +65,34 @@ def __init__(self, filename,nsyls=None): """Think through where this belongs; what classes/functions need it?""" log.info("Language initialization done.") def initattribs(self): - """This dictionary defines where to find each node in the xml {url}, - and what we're looking for in each case (node, node text, or attribute - value.""" - """Make all urls fully specified for guid, lang, etc; they will be - removed if the relevant variable is None.""" - """In the following language attributes, the field
can - exist in multiple fields, so pay attention to the difference - between - form='{analang}' (always in the language to be analyzed: - lexeme, citation) - form='{glosslang}' (always in a gloss language: - gloss, definition) - form='{lang}' (either: field --under entry, sense, or - pronunciation) - Controlling this difference allows for things like getting an entry - with a form in a particular language, and a gloss in a particular - (other) language, and/or a tone description () in a - particular (yet another) language. - For now, I'm just going to assume people write meta descriptions - in their primary gloss language.""" - """url here is a tuple with a base URL and a list of variable names - that will be added to it later (and/or removed, if None). The URL - should have each in {braces}, and the variable list each in - 'quotes', as those are strings/names of variables, to be assigned - values later. In any case, the names and number of arguments - should match --except for duplicates in the URL, which - should occur only once in the variable list. I'm keeping the order - the same as far as possible, but that doesn't ultimately matter.""" + # """This dictionary defines where to find each node in the xml {url}, + # and what we're looking for in each case (node, node text, or attribute + # value.""" + # """Make all urls fully specified for guid, lang, etc; they will be + # removed if the relevant variable is None.""" + # """In the following language attributes, the field can + # exist in multiple fields, so pay attention to the difference + # between + # form='{analang}' (always in the language to be analyzed: + # lexeme, citation) + # form='{glosslang}' (always in a gloss language: + # gloss, definition) + # form='{lang}' (either: field --under entry, sense, or + # pronunciation) + # Controlling this difference allows for things like getting an entry + # with a form in a particular language, and a gloss in a particular + # (other) language, and/or a tone description () in a + # particular (yet another) language. + # For now, I'm just going to assume people write meta descriptions + # in their primary gloss language.""" + # """url here is a tuple with a base URL and a list of variable names + # that will be added to it later (and/or removed, if None). The URL + # should have each in {braces}, and the variable list each in + # 'quotes', as those are strings/names of variables, to be assigned + # values later. In any case, the names and number of arguments + # should match --except for duplicates in the URL, which + # should occur only once in the variable list. I'm keeping the order + # the same as far as possible, but that doesn't ultimately matter.""" self.attribdict={ 'entry': { 'cm': 'use to get entries with a given guid or senseid',