| Package | osid.lexicon |
|---|---|
| Title | Lexicon Open Service Interface Definitions |
| Version | 3.0.0 |
| Description |
The Lexicon OSID provides a means for managing and
building textual strings ( Texts A IdiomsIdioms come into play when managing
Texts . An Idiom represents a
variant of text for language and format.
Parameters A Example (General Usage)osid.locale.DisplayText text = TextSession.text(pangranmId, {"fox", "dog"});
print(text);
<xosid:token>=> "The quick brown fox jumps over the lazy dog."</xosid:token>
The language, script, and format are determined by the context of the TextSession. Example (Management)Text: {pangramId}
Idiom: {idiom1Id, Text=pangramId, language=English string="The quick brown %1 jumped over the lazy %2."}
Idiom: {idiom2Id, Text=pangramId, language=Esperanto string="La rapida bruna %1 susaltas la pigra %2."}
Idiom: {idiom3Id, Text=pangramId, language=English format="Reverse" string="The lazy %2 was jumped over by the quick brown %1."}
Parameter: {parameter1Id, Text=pangramId Syntax=STRING, inputPosition=1}
Parameter: {parameter2Id, Text=pangramId Syntax=STRING, inputPosition=2}
The means in which the Press Cataloging All Sub PackagesThe Lexicon OSID includes a Lexicon Batch OSID for managing texts in bulk. |