this class represents an entity definition from a dtd file (and
possibly associated comments)
|
|
|
|
|
isnull(self)
returns whether this dtdunit doesn't actually have an entity
definition |
source code
|
|
|
|
parse(self,
dtdsrc)
read the first dtd element from the source code into this object,
return linesprocessed |
source code
|
|
|
|
|
|
|
getoutput(self)
convert the dtd entity back to string form |
source code
|
|
|
Inherited from base.TranslationUnit:
__eq__,
getcontext,
getid,
getunits,
hasplural,
isblank,
isfuzzy,
isheader,
isreview,
istranslatable,
istranslated,
markfuzzy,
markreviewneeded,
merge,
unit_iter
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|
|
|
setsource(self,
source)
Sets the definition to the quoted value of source |
source code
|
|
|
|
getsource(self)
gets the unquoted source string |
source code
|
|
|
|
|
|
|
gettarget(self)
gets the unquoted target string |
source code
|
|
|
Inherited from base.TranslationUnit:
gettargetlen
|
|
Inherited from base.TranslationUnit:
addnote,
getnotes,
removenotes
|
|
Inherited from base.TranslationUnit:
addlocation,
addlocations,
getlocations
|
|
Inherited from base.TranslationUnit:
adderror,
geterrors
|