Skip to content

Reference

phil/translation-memory
TypeKindRole
Phil\TranslationMemory\LanguageTagfinal readonly classA BCP 47 tag in its canonical case
Phil\TranslationMemory\Textfinal classThe words of inline HTML, white space normalized
Phil\TranslationMemory\Fingerprintfinal readonly classThe SHA-256 of a normalized source
Phil\TranslationMemory\Variantsfinal readonly classThe regional variants that inherit from their parent, and the segments they inherit
Phil\TranslationMemory\Xmlfinal class, internalThe XML of an exchange file read safely
Phil\TranslationMemory\Segmentfinal readonly classOne piece of a document in one target language, and its transitions
Phil\TranslationMemory\SegmentStateenumUntranslated, suggested, translated, reviewed or stale
Phil\TranslationMemory\SourceSegmentfinal readonly classA piece of a source as a segmenter cuts it: key and text
Phil\TranslationMemory\SourceChangefinal readonly classWhat changed in the source of a stale segment, as HTML
Phil\TranslationMemory\SegmentSyncfinal classStored segments brought up to date with a new cut
Phil\TranslationMemory\SyncResultfinal readonly classThe segments after a synchronization, and what happened
Phil\TranslationMemory\Segmentation\UjoSegmenterfinal readonly classA UJO document cut into segments and put back together
Phil\TranslationMemory\Segmentation\GranularityenumBy block field or by sentence
Phil\TranslationMemory\Segmentation\TranslatableFieldsfinal readonly classThe field names translated and the block types left alone
Phil\TranslationMemory\Segmentation\SentenceSplitterfinal readonly classInline HTML cut into sentences
Phil\TranslationMemory\Memory\TranslationMemoryfinal readonly classExact and fuzzy matches of a source, and learning
Phil\TranslationMemory\Memory\MemoryStoreinterfaceWhere translation units are kept
Phil\TranslationMemory\Memory\InMemoryStorefinal classA store in an array
Phil\TranslationMemory\Memory\MemoryUnitfinal readonly classA source, its target, their languages and origin
Phil\TranslationMemory\Memory\MemoryMatchfinal readonly classA unit proposed for a source, its score and kind
Phil\TranslationMemory\Memory\MatchKindenumExact or fuzzy
Phil\TranslationMemory\Memory\Similarityfinal classLevenshtein distance, score, trigrams, Dice coefficient
Phil\TranslationMemory\Glossary\Glossaryfinal readonly classThe terms of a pair of languages, found and checked
Phil\TranslationMemory\Glossary\Termfinal readonly classA term, its allowed and refused translations
Phil\TranslationMemory\Glossary\TermHitfinal readonly classA term found in a text
Phil\TranslationMemory\Glossary\TermIssuefinal readonly classAn issue of a target against a term
Phil\TranslationMemory\Glossary\TermIssueKindenumMissing or forbidden
Phil\TranslationMemory\Glossary\Contract\InflectorinterfaceThe inflected forms of a phrase
Phil\TranslationMemory\Glossary\RegularPluralsfinal readonly classThe regular plurals of English and French
Phil\TranslationMemory\Check\Contract\CheckinterfaceOne quality check of a translated segment
Phil\TranslationMemory\Check\Contract\TextWidthinterfaceHow wide a line is drawn, in pixels
Phil\TranslationMemory\Check\Checkerfinal readonly classThe checks run in turn, those the flags dismiss left out
Phil\TranslationMemory\Check\Checkedfinal readonly classA target, its source, their languages and the segment's flags
Phil\TranslationMemory\Check\CheckIssuefinal readonly classWhat a check found, and its name
Phil\TranslationMemory\Check\Flagsfinal readonly classThe flags of a segment
Phil\TranslationMemory\Check\Punctuationfinal readonly classThe final punctuation
Phil\TranslationMemory\Check\Spacesfinal readonly classWhite space at both ends, and double spaces
Phil\TranslationMemory\Check\Tagsfinal readonly classThe tags of the source
Phil\TranslationMemory\Check\Pluralsfinal readonly classThe forms of ICU plurals
Phil\TranslationMemory\Check\IcuPluralsfinal class, internalThe plural arguments of an ICU message
Phil\TranslationMemory\Check\SameAsSourcefinal readonly classA target identical to its source
Phil\TranslationMemory\Check\MaxSizefinal readonly classThe widest a target may be drawn
Phil\TranslationMemory\Check\AdvanceWidthsfinal readonly classA width from the advances of a font
Phil\TranslationMemory\Check\Glyphsfinal readonly classThe characters a font of phil/fonts draws
Phil\TranslationMemory\Xliff\XliffFilefinal readonly classThe languages, original and units of an XLIFF file
Phil\TranslationMemory\Xliff\XliffUnitfinal readonly classOne unit: key, source, target, state, note
Phil\TranslationMemory\Xliff\XliffWriterfinal readonly classXLIFF 2.1 written
Phil\TranslationMemory\Xliff\XliffReaderfinal readonly classXLIFF 2.x and 1.2 read
Phil\TranslationMemory\Xliff\XliffMergefinal classAn imported file merged into segments
Phil\TranslationMemory\Xliff\MergeResultfinal readonly classThe segments after a merge, applied keys, skipped units
Phil\TranslationMemory\Xliff\Skippedfinal readonly classA unit that changed nothing, and why
Phil\TranslationMemory\Xliff\SkipReasonenumUnknown key, source changed, no target, unchanged
Phil\TranslationMemory\Xliff\InlineCodesfinal class, internalThe tags of inline HTML as runs, kept to those of a source
Phil\TranslationMemory\Tmx\TmxWriterfinal readonly classTranslation units written as TMX 1.4b
Phil\TranslationMemory\Tmx\TmxReaderfinal readonly classTMX read into translation units
Phil\TranslationMemory\Tbx\TbxWriterfinal readonly classA glossary written as TBX-Basic
Phil\TranslationMemory\Tbx\TbxReaderfinal readonly classThe terms of a pair of languages read from TBX
Phil\TranslationMemory\Exception\TranslationMemoryExceptioninterfaceEvery exception of the library
Phil\TranslationMemory\Exception\InvalidLanguagefinal classA tag that is not one, or a language that does not match
Phil\TranslationMemory\Exception\InvalidSegmentfinal classA segment, fingerprint or unit that cannot be built or changed
Phil\TranslationMemory\Exception\InvalidTermfinal classA glossary term without words
Phil\TranslationMemory\Exception\InvalidXlifffinal classAn XLIFF file that cannot be read
Phil\TranslationMemory\Exception\InvalidTmxfinal classA TMX file that cannot be read
Phil\TranslationMemory\Exception\InvalidTbxfinal classA TBX file that cannot be read
Phil\TranslationMemory\Exception\InvalidConfigurationfinal classA setting of the memory or of a check out of range, or a flag that is not one