Export Word Converter
This module contains ExportWordConverter for Word model of LOD.
- class loglan_core.addons.export_word_converter.ExportWordConverter(word)[source]
Bases:
objectA class that provides conversion methods for exporting Word data.
- Parameters:
word (BaseWord) – The word to be converted.
- Properties:
e_source (str): Returns the source of the word.
e_year (str): Returns the year of the word, along with any additional notes.
e_usedin (str): Returns the names of the complexes in which the word is used.
e_affixes (str): Returns the affixes (djifoa) created from the word.
e_djifoa (str): Alias for the property e_affixes.
e_rank (str): Returns the rank of the word and any additional notes.
- - stringer(value) -> str
Convert a variable to a string.
- property e_affixes: str
Returns a string representation of the affixes (djifoa) created from the word.
- Returns:
A string containing all affixes of the word with hyphens removed.
- Return type:
str
- property e_djifoa: str
Alias for the property e_affixes.
- Returns:
The value of the property e_affixes.
- Return type:
str
- property e_rank: str
Return the rank of the word and any additional notes about the rank.
- Returns:
The rank of the word and any additional notes about the rank.
- Return type:
str
- property e_source: str
Returns:
- property e_usedin: str
Returns a string that represents the names of the complexes in which the word is used.
- Returns:
A string with the names of the complexes separated by a vertical bar.
- Return type:
str
- property e_year: str
Returns the year of the word, along with any additional notes related to the year.
- Returns:
The year of the word, along with any additional notes. If no year is available, an empty string is returned.
- Return type:
str