Skip to content

Commit

Permalink
change to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kent-rasmussen committed Feb 3, 2021
1 parent f5f908a commit 026ecb3
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions lift.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <form> 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 (<field>) 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 <form> 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 (<field>) 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',
Expand Down

0 comments on commit 026ecb3

Please sign in to comment.