Uses of Class
net.sf.okapi.common.LocaleId
-
-
Uses of LocaleId in net.sf.okapi.common
Fields in net.sf.okapi.common declared as LocaleId Modifier and Type Field Description static LocaleId
IPredefinedLocales. Afrikaans
static LocaleId
IPredefinedLocales. Albanian
static LocaleId
LocaleId. ALL
static LocaleId
IPredefinedLocales. Amharic
static LocaleId
LocaleId. ARABIC
LocaleId constant for "ar".static LocaleId
IPredefinedLocales. Armenian
static LocaleId
LocaleId. AUTODETECT
Same as EMPTY, but reminds the user that some components use EMPTY as a setting to enable locale auto detection.static LocaleId
IPredefinedLocales. Aymara
static LocaleId
IPredefinedLocales. Basque
static LocaleId
IPredefinedLocales. Bikolano
static LocaleId
IPredefinedLocales. Bislama
static LocaleId
IPredefinedLocales. Bulgarian
static LocaleId
IPredefinedLocales. Burmese
static LocaleId
IPredefinedLocales. Cebuano
static LocaleId
LocaleId. CHINA_CHINESE
LocaleId constant for "zh-cn".static LocaleId
IPredefinedLocales. Chuukese
static LocaleId
IPredefinedLocales. Croatian
static LocaleId
IPredefinedLocales. Czech
static LocaleId
IPredefinedLocales. Danish
static LocaleId
IPredefinedLocales. Dutch
static LocaleId
IPredefinedLocales. Efik
static LocaleId
LocaleId. EMPTY
An empty locale.static LocaleId
LocaleId. ENGLISH
LocaleId constant for "en".static LocaleId
IPredefinedLocales. Estonian
static LocaleId
IPredefinedLocales. Fante
static LocaleId
IPredefinedLocales. Fijian
static LocaleId
IPredefinedLocales. Finnish
static LocaleId
LocaleId. FRENCH
LocaleId constant for "fr".static LocaleId
IPredefinedLocales. Georgian
static LocaleId
LocaleId. GERMAN
LocaleId constant for "de".static LocaleId
IPredefinedLocales. Greek
static LocaleId
IPredefinedLocales. Guarani
static LocaleId
IPredefinedLocales. Haitian
static LocaleId
LocaleId. HEBREW
LocaleId constant for "he".static LocaleId
IPredefinedLocales. Hiligaynon
static LocaleId
IPredefinedLocales. Hindi
static LocaleId
IPredefinedLocales. Hindi_Fiji
static LocaleId
IPredefinedLocales. Hmong
static LocaleId
IPredefinedLocales. Hungarian
static LocaleId
IPredefinedLocales. Iban
static LocaleId
IPredefinedLocales. Icelandic
static LocaleId
IPredefinedLocales. Igbo
static LocaleId
IPredefinedLocales. Ilocano
static LocaleId
IPredefinedLocales. Indonesian
static LocaleId
LocaleId. ITALIAN
LocaleId constant for "it".static LocaleId
LocaleId. JAPANESE
LocaleId constant for "ja".static LocaleId
IPredefinedLocales. Kannada
static LocaleId
IPredefinedLocales. Kazakh
static LocaleId
IPredefinedLocales. Kekchi
static LocaleId
IPredefinedLocales. Khmer
static LocaleId
IPredefinedLocales. Kirghiz
static LocaleId
IPredefinedLocales. Kiribati
static LocaleId
IPredefinedLocales. Korean
static LocaleId
LocaleId. KOREAN
LocaleId constant for "ko".static LocaleId
IPredefinedLocales. Kosraean
static LocaleId
IPredefinedLocales. Lao
static LocaleId
IPredefinedLocales. Latvian
static LocaleId
IPredefinedLocales. Lingala
static LocaleId
IPredefinedLocales. Lithuanian
static LocaleId
IPredefinedLocales. Macedonian
static LocaleId
IPredefinedLocales. Malagasy
static LocaleId
IPredefinedLocales. Malay_Malaysia
static LocaleId
IPredefinedLocales. Malayalam
static LocaleId
IPredefinedLocales. Maltese
static LocaleId
IPredefinedLocales. Mam
static LocaleId
IPredefinedLocales. Marshallese
static LocaleId
IPredefinedLocales. Mongolian
static LocaleId
IPredefinedLocales. Navajo
static LocaleId
IPredefinedLocales. Neomelanesian
static LocaleId
IPredefinedLocales. Norwegian
static LocaleId
IPredefinedLocales. Palauan
static LocaleId
IPredefinedLocales. Pohnpeian
static LocaleId
IPredefinedLocales. Polish
static LocaleId
LocaleId. PORTUGUESE
LocaleId constant for "pt".static LocaleId
IPredefinedLocales. Quechua
static LocaleId
IPredefinedLocales. Quichua
static LocaleId
IPredefinedLocales. Rarotongan
static LocaleId
IPredefinedLocales. Romanian
static LocaleId
LocaleId. RUSSIAN
LocaleId constant for "ru".static LocaleId
IPredefinedLocales. Rwanda
static LocaleId
IPredefinedLocales. Samoan
static LocaleId
IPredefinedLocales. Serbian
static LocaleId
IPredefinedLocales. Shona
static LocaleId
IPredefinedLocales. Slovak
static LocaleId
IPredefinedLocales. Slovenian
static LocaleId
IPredefinedLocales. South_Sotho
static LocaleId
LocaleId. SPANISH
LocaleId constant for "es".static LocaleId
IPredefinedLocales. Swahili
static LocaleId
IPredefinedLocales. Swedish
static LocaleId
IPredefinedLocales. Tagalog
static LocaleId
IPredefinedLocales. Tahitian
static LocaleId
LocaleId. TAIWAN_CHINESE
LocaleId constant for "zh-tw".static LocaleId
IPredefinedLocales. Thai
static LocaleId
IPredefinedLocales. Tongan
static LocaleId
IPredefinedLocales. Tswana
static LocaleId
IPredefinedLocales. Turkish
static LocaleId
IPredefinedLocales. Twi
static LocaleId
IPredefinedLocales. Ukrainian
static LocaleId
LocaleId. US_ENGLISH
LocaleId constant for "en-US".static LocaleId
IPredefinedLocales. Vietnamese
static LocaleId
IPredefinedLocales. Waray
static LocaleId
IPredefinedLocales. Xhosa
static LocaleId
IPredefinedLocales. Yapese
static LocaleId
IPredefinedLocales. Yoruba
static LocaleId
IPredefinedLocales. Yupik
static LocaleId
IPredefinedLocales. Zulu
Methods in net.sf.okapi.common that return LocaleId Modifier and Type Method Description LocaleId
LocaleId. clone()
Returns a clone of this LocaleId.static LocaleId
LocaleId. fromBCP47(String langtag)
Creates a new LocaleId from a BCP-47 language tag.static LocaleId
LocaleId. fromBCP47(String langtag, boolean strict)
Creates a new LocaleId from a BCP-47 language tag.static LocaleId
LocaleId. fromPOSIXLocale(String locId)
Creates a new LocaleId from a POSIX locale identifier.static LocaleId
LocaleId. fromString(String locId)
Creates a new LocaleId from a locale identifier (and validate it).static LocaleId[]
LocaleId. getAvailableLocales()
Gets an array of the LocaleId objects for all the Java locales installed on the system.LocaleId
ISegmenter. getLanguage()
Gets the language used to apply the rules.static LocaleId
LCIDUtil. getLocaleId(int lcid)
Creates a locale id for a given LCID value.static LocaleId
LCIDUtil. getLocaleId(String tag)
Creates a locale id for a given language tag.LocaleId
DefaultLocalePair. source()
LocaleId
LocalePair. source()
Obtains the source locale.LocaleId
DefaultLocalePair. target()
LocaleId
LocalePair. target()
Obtains the target locale.Methods in net.sf.okapi.common that return types with arguments of type LocaleId Modifier and Type Method Description static List<LocaleId>
LocaleId. convertToLocaleIds(List<String> languageCodes)
Converts a list of language codes intoLocaleId
sSet<LocaleId>
LocaleFilter. filter(LocaleId... localeIds)
Creates a subset of the locales from a given array, which are allowed by this locale filter.List<LocaleId>
LocaleFilter. getExcludes()
Gets a list of disallowed locales.List<LocaleId>
LocaleFilter. getIncludes()
Gets a list of allowed locales.static List<LocaleId>
ListUtil. stringAsLanguageList(String input)
Splits up a string of comma-separated substrings representing locale codes into a string list ofLocaleId
objects.Methods in net.sf.okapi.common with parameters of type LocaleId Modifier and Type Method Description static LocaleFilter
LocaleFilter. anyExcept(LocaleId... localeIds)
Creates a filter filtering out the given locales.static LocaleFilter
LocaleFilter. anyOf(LocaleId... localeIds)
Creates a filter allowing only the given locales.LocaleFilter
LocaleFilter. exclude(LocaleId localeId)
Disallows a given locale.LocaleFilter
LocaleFilter. exclude(LocaleId... localeIds)
Disallows the locales from a given array of locales.Set<LocaleId>
LocaleFilter. filter(LocaleId... localeIds)
Creates a subset of the locales from a given array, which are allowed by this locale filter.static int
LCIDUtil. getLCID(LocaleId locId)
Gets the LCID for a given locale id.static String
LCIDUtil. getLCID_asString(LocaleId locId)
Gets the LCID as a string, for a given locale id.static String
FileUtil. getLocaleBasedFile(String baseName, String extension, LocaleId locale)
Return a path to a locale based resource using the standard java property resource resolution.static String
LCIDUtil. getTag(LocaleId locId)
Gets the language tag for a given locale id.static boolean
LocaleId. hasCharactersAsNumeralSeparators(LocaleId localeId)
Checks whether the specified locale has characters as numeral separators.LocaleFilter
LocaleFilter. include(LocaleId localeId)
Allows a given locale.LocaleFilter
LocaleFilter. include(LocaleId... localeIds)
Allows the locales from a given array of locales.static boolean
LocaleId. isBidirectional(LocaleId locId)
Indicates if a given locale usually uses a bi-directional script.static boolean
Util. isNullOrEmpty(LocaleId locale)
Indicates if a locale id is null or empty.boolean
LocaleFilter. matches(LocaleId localeId)
Returns true if a given locale is allowed by this locale filter.static void
RenumberingUtil. renumberTextUnitCodes(ITextUnit tu, LocaleId trgLocale)
Renumber the codes in the TextUnit's source container, then align with the codes in the target.static String
LocaleId. replaceVariables(String input, LocaleId srcLoc, LocaleId trgLoc)
Replaces the locale/language variables in a given input string by their runtime values.boolean
LocaleId. sameLanguageAs(LocaleId other)
Indicates if the language of a given LocaleId is the same as the one of this LocaleId.boolean
LocaleId. sameRegionAs(LocaleId other)
Indicates if the region of a given LocaleId is the same as the one of this LocaleId.boolean
LocaleId. sameUserPartAs(LocaleId other)
Indicates if the user part of a given LocaleId is the same as the one of this LocaleId.void
ISegmenter. setLanguage(LocaleId locale)
Sets the locale used to apply the rules.Method parameters in net.sf.okapi.common with type arguments of type LocaleId Modifier and Type Method Description LocaleFilter
LocaleFilter. exclude(List<LocaleId> localeIds)
Disallows the locales from a given list of locales.LocaleFilter
LocaleFilter. exclude(Set<LocaleId> localeIds)
Disallows the locales from a given set of locales.LocaleFilter
LocaleFilter. include(List<LocaleId> localeIds)
Allows the locales from a given list of locales.LocaleFilter
LocaleFilter. include(Set<LocaleId> localeIds)
Allows the locales from a given set of locales.Constructors in net.sf.okapi.common with parameters of type LocaleId Constructor Description DefaultLocalePair(LocaleId source, LocaleId target)
-
Uses of LocaleId in net.sf.okapi.common.annotation
Methods in net.sf.okapi.common.annotation that return LocaleId Modifier and Type Method Description LocaleId
AltTranslation. getSourceLocale()
Gets the source locale for this entry.LocaleId
AltTranslation. getTargetLocale()
Gets the target locale for this entry.Methods in net.sf.okapi.common.annotation with parameters of type LocaleId Modifier and Type Method Description AltTranslation
AltTranslationsAnnotation. add(LocaleId sourceLocId, LocaleId targetLocId, TextFragment originalSource, TextFragment alternateSource, TextFragment alternateTarget, MatchType type, int combinedScore, String origin)
Adds a new entry to the list of alternate translations.AltTranslation
AltTranslationsAnnotation. add(LocaleId sourceLocId, LocaleId targetLocId, TextFragment originalSource, TextFragment alternateSource, TextFragment alternateTarget, MatchType type, int combinedScore, String origin, int fuzzyScore, int qualityScore)
Adds a new entry to the list of alternate translations.void
AltTranslation. setTarget(LocaleId targetLocId, TextFragment alternateTarget)
Sets the target parts of this alternate translation.Constructors in net.sf.okapi.common.annotation with parameters of type LocaleId Constructor Description AltTranslation(LocaleId sourceLocId, LocaleId targetLocId, ITextUnit altTu, MatchType type, int combinedScore, String origin)
Creates a new AltTranslation object.AltTranslation(LocaleId sourceLocId, LocaleId targetLocId, TextFragment originalSource, TextFragment alternateSource, TextFragment alternateTarget, MatchType type, int combinedScore, String origin)
Creates a new AltTranslation object.AltTranslation(LocaleId sourceLocId, LocaleId targetLocId, TextFragment originalSource, TextFragment alternateSource, TextFragment alternateTarget, MatchType type, int combinedScore, String origin, int fuzzyScore, int qualityScore)
Creates a new AltTranslation object. -
Uses of LocaleId in net.sf.okapi.common.filters
Fields in net.sf.okapi.common.filters declared as LocaleId Modifier and Type Field Description protected LocaleId
AbstractLineFilter. srcLang
protected LocaleId
AbstractLineFilter. trgLang
Methods in net.sf.okapi.common.filters that return LocaleId Modifier and Type Method Description LocaleId
AbstractFilter. getSrcLoc()
Gets the input document source locale.protected LocaleId
AbstractLineFilter. getTargetLocale()
LocaleId
AbstractFilter. getTrgLoc()
Methods in net.sf.okapi.common.filters with parameters of type LocaleId Modifier and Type Method Description void
SubFilterSkeletonWriter.TargetOutputs. add(LocaleId localeId, StringBuilder stringBuilder)
void
SubFilterSkeletonWriter.TargetOutputs.Default. add(LocaleId localeId, StringBuilder stringBuilder)
void
EventBuilder. addToTextUnit(Code code, boolean endCodeNow, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
void
SubFilterSkeletonWriter.TargetOutputs. appendTo(LocaleId localeId, String text)
void
SubFilterSkeletonWriter.TargetOutputs.Default. appendTo(LocaleId localeId, String text)
Ending
EventBuilder. endGroup(GenericSkeleton endMarker, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
ITextUnit
EventBuilder. endTextUnit(GenericSkeleton endMarker, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
String
SubFilterSkeletonWriter. getEncodedOutput(LocaleId locToUse)
List<Event>
AbstractSubFilter. getEvents(ITextUnit tu, LocaleId sourceLocale, LocaleId targetLocale)
List<Event>
ISubFilter. getEvents(ITextUnit tu, LocaleId sourceLocale, LocaleId targetLocale)
Get events by subfilter at once, without using open()/hasNext()/next()/close().StringBuilder
SubFilterSkeletonWriter.TargetOutputs.Default. outputFor(LocaleId localeId)
StringBuilder
SubFilterSkeletonWriter.TargetOutputs. outputFor(LocaleId localeId)
String
SubFilterSkeletonWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, EncoderManager encoderManager, StartDocument resource)
void
AbstractFilter. setOptions(LocaleId sourceLocale, LocaleId targetLocale, String defaultEncoding, boolean generateSkeleton)
SubFilterSkeletonWriter
SubFilterSkeletonWriter. setOptions(LocaleId outputLocale, String outputEncoding, StartSubfilter startSubfilter)
void
AbstractFilter. setSrcLoc(LocaleId srcLoc)
Sets the input document source locale.void
AbstractFilter. setTrgLoc(LocaleId trgLoc)
void
EventBuilder. startDocumentPart(String part, String name, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
Create aDocumentPart
that references actionable (i.e., translatable, localizable) properties and store it for later processing.StartGroup
EventBuilder. startGroup(GenericSkeleton startMarker, String commonTagType, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
Create aStartGroup
Event
and add it to the event queue.void
EventBuilder. startTextUnit(String text, GenericSkeleton startMarker, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
Start a complexTextUnit
with actionable (translatable, writable or read-only) attributes.Constructor parameters in net.sf.okapi.common.filters with type arguments of type LocaleId Constructor Description Default(Map<LocaleId,StringBuilder> outputs)
-
Uses of LocaleId in net.sf.okapi.common.filterwriter
Methods in net.sf.okapi.common.filterwriter that return LocaleId Modifier and Type Method Description LocaleId
GenericFilterWriter. getLocale()
LocaleId
ZipFilterWriter. getLocale()
LocaleId
TMXWriter. getSrcLoc()
LocaleId
TMXWriter. getTrgLoc()
Methods in net.sf.okapi.common.filterwriter with parameters of type LocaleId Modifier and Type Method Description void
XLIFFWriter. create(String xliffPath, String skeletonPath, LocaleId srcLoc, LocaleId trgLoc, String dataType, String original, String message)
Creates a new XLIFF document.void
ITSContent. outputAnnotations(GenericAnnotations anns, StringBuilder output, boolean inline, boolean mrk, boolean mtypeNeeded, LocaleId trgLocId)
Generates the markup for the ITS attributes for a given annotation set.protected void
GenericFilterWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, StartDocument resource)
protected void
GenericFilterWriter. setLocale(LocaleId locale)
void
GenericFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
void
IFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
Sets the options for this writer.void
TMXFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
Sets the options for this writer.void
XLIFFWriter. setOptions(LocaleId locale, String defaultEncoding)
void
ZipFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
void
TMXWriter. setSrcLoc(LocaleId srcLoc)
void
TMXWriter. setTrgLoc(LocaleId trgLoc)
String
XLIFFContent. toSegmentedString(TextContainer container, int quoteMode, boolean escapeGT, boolean withMarkers, boolean gMode, boolean codeAttrs, boolean includeIts, boolean isTarget, LocaleId trgLocId)
Generates an XLIFF string from a given text container.String
XLIFFContent. toString(int quoteMode, boolean escapeGT, boolean codeOnlyMode, boolean gMode, boolean codeAttrs, boolean includeIts, LocaleId trgLocId)
Generates an XLIFF string from the content.void
TMXWriter. writeAlternates(ITextUnit tu, LocaleId trgLoc)
Writes the entries of anAltTranslationsAnnotation
annotation(s) of a given text unit to the TMX document.void
TMXWriter. writeStartDocument(LocaleId sourceLocale, LocaleId targetLocale, String creationTool, String creationToolVersion, String segType, String originalTMFormat, String dataType)
Writes the start of the TMC document.void
TMXWriter. writeStartDocument(StartDocument startDocument, LocaleId sourceLocale, LocaleId targetLocale, String creationTool, String creationToolVersion, String segType, String originalTMFormat, String dataType)
Writes the start of the TMC document.void
TMXWriter. writeTU(TextFragment source, TextFragment target, String tuid, Map<String,String> attributes, LocaleId altTrgLoc)
Writes a TMX TU element.void
TMXWriter. writeTUFull(ITextUnit item, LocaleId sourceLocId)
Writes a TextUnit (all targets) with all the properties associated to it.protected void
TMXWriter. writeTUV(TextFragment frag, LocaleId locale, TextContainer contForProp)
Writes a TUV element. -
Uses of LocaleId in net.sf.okapi.common.pipeline
Methods in net.sf.okapi.common.pipeline that return LocaleId Modifier and Type Method Description LocaleId
BasePipelineStep. getSourceLocale()
default LocaleId
IPipelineStep. getSourceLocale()
Delegate to concrete classLocaleId
BasePipelineStep. getTargetLocale()
default LocaleId
IPipelineStep. getTargetLocale()
Delegate to concrete classMethods in net.sf.okapi.common.pipeline with parameters of type LocaleId Modifier and Type Method Description void
BasePipelineStep. setSourceLocale(LocaleId sourceLocale)
default void
IPipelineStep. setSourceLocale(LocaleId sourceLocale)
Delegate to concrete classvoid
BasePipelineStep. setTargetLocale(LocaleId targetLocale)
default void
IPipelineStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.common.pipelinebuilder
Methods in net.sf.okapi.common.pipelinebuilder with parameters of type LocaleId Modifier and Type Method Description XBatch
XBatch. addItem(String dir, String file, String defaultEncoding, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatch
XBatch. addItem(String dir, String file, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatch
XBatch. addItems(String dir, String[] fileList, String defaultEncoding, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatch
XBatch. addItems(String dir, String[] fileList, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
Constructors in net.sf.okapi.common.pipelinebuilder with parameters of type LocaleId Constructor Description XBatchItem(InputStream inputStream, String defaultEncoding, String outputPath, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatchItem(InputStream inputStream, String defaultEncoding, LocaleId sourceLocale)
XBatchItem(InputStream inputStream, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatchItem(CharSequence inputCharSequence, LocaleId sourceLocale)
XBatchItem(URI inputURI, String defaultEncoding, String filterConfigId, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatchItem(URI inputURI, String defaultEncoding, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatchItem(URI inputURI, String defaultEncoding, LocaleId sourceLocale)
XBatchItem(URI inputURI, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatchItem(URL inputURL, String defaultEncoding, String outputPath, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatchItem(URL inputURL, String defaultEncoding, URL outputURL, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XBatchItem(URL inputURL, String defaultEncoding, LocaleId sourceLocale)
XBatchItem(URL inputURL, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(InputStream inputStream, String defaultEncoding, String outputPath, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(InputStream inputStream, String defaultEncoding, LocaleId sourceLocale)
XDocument(InputStream inputStream, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(CharSequence inputCharSequence, LocaleId sourceLocale)
XDocument(URI inputURI, String defaultEncoding, String filterConfigId, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(URI inputURI, String defaultEncoding, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(URI inputURI, String defaultEncoding, LocaleId sourceLocale)
XDocument(URI inputURI, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(URI inputURI, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale, String filterConfigId)
XDocument(URL inputURL, String defaultEncoding, String outputPath, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(URL inputURL, String defaultEncoding, URL outputURL, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
XDocument(URL inputURL, String defaultEncoding, LocaleId sourceLocale)
XDocument(URL inputURL, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.common.pipelinedriver
Methods in net.sf.okapi.common.pipelinedriver that return LocaleId Modifier and Type Method Description LocaleId
BatchItemContext. getSourceLocale(int index)
LocaleId
IBatchItemContext. getSourceLocale(int index)
Gets the source locale for a given input document of this batch item.LocaleId
BatchItemContext. getTargetLocale(int index)
LocaleId
IBatchItemContext. getTargetLocale(int index)
Gets the target locale for a given input document of this batch item.Methods in net.sf.okapi.common.pipelinedriver with parameters of type LocaleId Modifier and Type Method Description void
IPipelineDriver. addBatchItem(URI inputURI, String defaultEncoding, String filterConfigId, LocaleId srcLoc, LocaleId trgLoc)
Adds an item to this batch, using direct parameters.void
PipelineDriver. addBatchItem(URI inputURI, String defaultEncoding, String filterConfigId, LocaleId srcLoc, LocaleId trgLoc)
Constructors in net.sf.okapi.common.pipelinedriver with parameters of type LocaleId Constructor Description BatchItemContext(URI inputURI, String defaultEncoding, String filterConfigId, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
Creates a new BatchItemContext object and initializes it based on a given input URI and additional arguments. -
Uses of LocaleId in net.sf.okapi.common.query
Methods in net.sf.okapi.common.query that return LocaleId Modifier and Type Method Description LocaleId
IQuery. getSourceLanguage()
Gets the current source language for this query engine.LocaleId
IQuery. getTargetLanguage()
Gets the current target language for this query engine.Methods in net.sf.okapi.common.query with parameters of type LocaleId Modifier and Type Method Description void
IQuery. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
Sets the source and target languages for this query engine.AltTranslation
QueryResult. toAltTranslation(TextFragment originalSource, LocaleId sourceLocId, LocaleId targetLocId)
Convert a QueryResult to anAltTranslation
-
Uses of LocaleId in net.sf.okapi.common.resource
Fields in net.sf.okapi.common.resource declared as LocaleId Modifier and Type Field Description protected LocaleId
StartDocument. locale
Methods in net.sf.okapi.common.resource that return LocaleId Modifier and Type Method Description LocaleId
StartDocument. getLocale()
Gets the locale of this document.LocaleId
StartSubfilter. getLocale()
LocaleId
AlignedPair. getLocaleId()
Gets theLocaleId
of the target partsLocaleId
PipelineParameters. getSourceLocale()
LocaleId
RawDocument. getSourceLocale()
Gets the source locale associated to this resource.LocaleId
PipelineParameters. getTargetLocale()
LocaleId
RawDocument. getTargetLocale()
Gets the target locale associated to this resource.Methods in net.sf.okapi.common.resource that return types with arguments of type LocaleId Modifier and Type Method Description Set<LocaleId>
TargetPropertiesAnnotation. getLocales()
Gets a set of the target locales available in this annotation.default Set<LocaleId>
IWithTargetProperties. getTargetLocales()
Gets all the target locales for this resource.List<LocaleId>
PipelineParameters. getTargetLocales()
List<LocaleId>
RawDocument. getTargetLocales()
Gets the list of target locales associated to this resource.Set<LocaleId>
TextUnit. getTargetLocales()
Iterator<LocaleId>
TargetPropertiesAnnotation. iterator()
Gets a new iterator for this annotation.Methods in net.sf.okapi.common.resource with parameters of type LocaleId Modifier and Type Method Description void
AlignedSegments. align(List<AlignedPair> alignedSegmentPairs, LocaleId trgLoc)
void
AlignedSegments. align(LocaleId trgLoc)
Force one to one alignment.void
IAlignedSegments. align(List<AlignedPair> alignedSegmentPairs, LocaleId trgLoc)
Aligns all the segments listed in the aligned pairs for given locale.void
IAlignedSegments. align(LocaleId trgLoc)
Aligns all the target segments with the source segments for the given locale.void
AlignedSegments. alignCollapseAll(LocaleId trgLoc)
void
IAlignedSegments. alignCollapseAll(LocaleId trgLoc)
Aligns all the segments for the specified sources and targets by collapsing all segments into one.void
AlignedSegments. append(Segment srcSeg, Segment trgSeg, LocaleId trgLoc)
void
IAlignedSegments. append(Segment srcSeg, Segment trgSeg, LocaleId trgLoc)
Adds given source and target segments to the end of the content.static ITextUnit
TextUnitUtil. buildGenericTU(ITextUnit textUnit, String name, TextContainer source, TextContainer target, LocaleId locId, String comment)
Creates a new generic text unit resource or updates the one passed as the parameter.SubFilterSkeletonWriter
StartSubfilter. createSkeletonWriter(StartSubfilter resource, LocaleId outputLocale, String outputEncoding)
TextContainer
ITextUnit. createTarget(LocaleId locId, boolean overwriteExisting, int creationOptions)
Creates or get the target for this TextUnit.TextContainer
TextUnit. createTarget(LocaleId targetLocale, boolean overwriteExisting, int creationOptions)
default Property
IWithTargetProperties. createTargetProperty(LocaleId locId, String name, boolean overwriteExisting, int creationOptions)
Create targetProperty
without access to the source propertydefault Property
IWithTargetProperties. createTargetProperty(LocaleId locId, String name, Property sourceProperty, boolean overwriteExisting, int creationOptions)
Creates or get a target property based on the corresponding source.Property
TextUnit. createTargetProperty(LocaleId locId, String name, boolean overwriteExisting, int creationOptions)
void
ITextUnit. createTargetSegmentation(ISegmenter segmenter, LocaleId targetLocale)
Segments the specified target content based on the rules provided by a given ISegmenter.void
TextUnit. createTargetSegmentation(ISegmenter segmenter, LocaleId targetLocale)
Map<String,Property>
TargetPropertiesAnnotation. get(LocaleId locId)
Gets the properties for a given target locale.AlignmentStatus
AlignedSegments. getAlignmentStatus(LocaleId trgLoc)
AlignmentStatus
IAlignedSegments. getAlignmentStatus(LocaleId trgLoc)
Gets the status of the alignment the given target locale in this text unit.Segment
AlignedSegments. getCorrespondingSource(Segment trgSeg, LocaleId trgLoc)
Segment
IAlignedSegments. getCorrespondingSource(Segment trgSeg, LocaleId trgLoc)
Gets the source segment corresponding to a given target segmentSegment
AlignedSegments. getCorrespondingTarget(Segment srcSeg, LocaleId trgLoc)
Segment
IAlignedSegments. getCorrespondingTarget(Segment seg, LocaleId trgLoc)
Gets the target segment corresponding to a given source segmentSegment
AlignedSegments. getSource(int index, LocaleId trgLoc)
Segment
IAlignedSegments. getSource(int index, LocaleId trgLoc)
Gets the source segment for the given target locale at a given position.TextContainer
ITextUnit. getTarget(LocaleId locId)
Gets the target object for this text unit for a given locale.TextContainer
TextUnit. getTarget(LocaleId locId)
static <A extends IAnnotation>
ATextUnitUtil. getTargetAnnotation(ITextUnit textUnit, LocaleId locId, Class<A> type)
Gets an annotation attached to the target part of a given text unit resource in a given locale.default Map<String,Property>
IWithTargetProperties. getTargetProperties(LocaleId locale)
default Property
IWithTargetProperties. getTargetProperty(LocaleId locId, String name)
Gets the target property for a given name and target locale.Property
TextUnit. getTargetProperty(LocaleId locId, String name)
default Set<String>
IWithTargetProperties. getTargetPropertyNames(LocaleId locId)
Gets the names of all the properties for a given target locale in this resource.Set<String>
TextUnit. getTargetPropertyNames(LocaleId locId)
Segment
ITextUnit. getTargetSegment(LocaleId trgLoc, String segId, boolean createIfNeeded)
Gets the segment for a given segment id in a given target.Segment
TextUnit. getTargetSegment(LocaleId trgLoc, String segId, boolean createIfNeeded)
ISegments
ITextUnit. getTargetSegments(LocaleId trgLoc)
Get the segments for a given target.ISegments
TextUnit. getTargetSegments(LocaleId trgLoc)
static String
TextUnitUtil. getTargetText(ITextUnit textUnit, LocaleId locId)
Gets text of the first part of the target of a given text unit resource in the given locale.boolean
ITextUnit. hasTarget(LocaleId locId)
Indicates if there is a target object for a given locale for this text unit.boolean
TextUnit. hasTarget(LocaleId locId)
default boolean
IWithTargetProperties. hasTargetProperty(LocaleId locId, String name)
Indicates if a property exists for a given name and target locale.boolean
TextUnit. hasTargetProperty(LocaleId locId, String name)
void
AlignedSegments. insert(int index, Segment srcSeg, Segment trgSeg, LocaleId trgLoc)
void
IAlignedSegments. insert(int index, Segment srcSeg, Segment trgSeg, LocaleId trgLoc)
Inserts given source and target segments at the specified position in the list of segments.static boolean
TextUnitUtil. isApproved(ITextUnit tu, LocaleId targetLocale)
Iterator<Segment>
AlignedSegments. iterator(LocaleId trgLoc)
Iterator<Segment>
IAlignedSegments. iterator(LocaleId trgLoc)
Gets an iterator for the source of the specified target locale.void
AlignedSegments. joinAll(LocaleId trgLoc)
void
IAlignedSegments. joinAll(LocaleId trgLoc)
Joins all segments for the specified sources and targets.void
AlignedSegments. joinWithNext(Segment seg, LocaleId trgLoc)
void
IAlignedSegments. joinWithNext(Segment seg, LocaleId trgLoc)
Joins the segment for a given segment's id to the next segment, including all the parts between the two segments.boolean
AlignedSegments. remove(Segment seg, LocaleId trgLoc)
boolean
IAlignedSegments. remove(Segment seg, LocaleId trgLoc)
Removes the given segment and any segments with the same id from the specified sources and targets.void
ITextUnit. removeTarget(LocaleId locId)
Removes a given target object from this text unit.void
TextUnit. removeTarget(LocaleId locId)
default void
IWithTargetProperties. removeTargetProperty(LocaleId locId, String name)
Removes a target property of a given name.void
TextUnit. removeTargetProperty(LocaleId locId, String name)
void
AlignedSegments. segmentSource(ISegmenter segmenter, LocaleId targetLocale)
void
IAlignedSegments. segmentSource(ISegmenter segmenter, LocaleId targetLocale)
Segments the source content used for the given target locale based on the rules provided by a givenISegmenter
.void
AlignedSegments. segmentTarget(ISegmenter segmenter, LocaleId targetLocale)
void
IAlignedSegments. segmentTarget(ISegmenter segmenter, LocaleId targetLocale)
Segments the specified target content based on the rules provided by a givenISegmenter
.void
TargetPropertiesAnnotation. set(LocaleId locId, Map<String,Property> properties)
Sets properties for a given target locale.void
StartDocument. setLocale(LocaleId locale)
Sets the locale of the document.void
AlignedSegments. setSegment(int index, Segment seg, LocaleId trgLoc)
void
IAlignedSegments. setSegment(int index, Segment seg, LocaleId trgLoc)
Replaces a segment at a given position with a clone of the given segment.void
PipelineParameters. setSourceLocale(LocaleId sourceLocale)
void
RawDocument. setSourceLocale(LocaleId locId)
Sets the source locale associated to this document.TextContainer
ITextUnit. setTarget(LocaleId locId, TextContainer text)
Sets the target object for this text unit for a given locale.TextContainer
TextUnit. setTarget(LocaleId locId, TextContainer text)
static void
TextUnitUtil. setTargetAnnotation(ITextUnit textUnit, LocaleId locId, IAnnotation annotation)
Attaches an annotation to the target part of a given text unit resource in a given language.TextFragment
ITextUnit. setTargetContent(LocaleId locId, TextFragment content)
Sets the content of the target for a given locale for this TextUnit.TextFragment
TextUnit. setTargetContent(LocaleId locId, TextFragment content)
void
PipelineParameters. setTargetLocale(LocaleId targetLocale)
void
RawDocument. setTargetLocale(LocaleId locId)
Sets the target locale associated to this document.default Property
IWithTargetProperties. setTargetProperty(LocaleId locId, Property property)
Sets a target property.Property
TextUnit. setTargetProperty(LocaleId locId, Property property)
static void
TextUnitUtil. setTargetText(ITextUnit textUnit, LocaleId locId, String text)
Sets the coded text of the the target part of a given text unit resource in a given language.Segment
AlignedSegments. splitSource(LocaleId trgLoc, Segment srcSeg, int splitPos)
Segment
IAlignedSegments. splitSource(LocaleId trgLoc, Segment srcSeg, int splitPos)
Splits a given source segment into two.Segment
AlignedSegments. splitTarget(LocaleId trgLoc, Segment trgSeg, int splitPos)
Segment
IAlignedSegments. splitTarget(LocaleId trgLoc, Segment trgSeg, int splitPos)
Splits a given target segment into two.Method parameters in net.sf.okapi.common.resource with type arguments of type LocaleId Modifier and Type Method Description void
PipelineParameters. setTargetLocales(List<LocaleId> trgLocs)
void
RawDocument. setTargetLocales(List<LocaleId> locIds)
Sets the list of target locales associated to this document.Constructors in net.sf.okapi.common.resource with parameters of type LocaleId Constructor Description AlignedPair(List<TextPart> sourceParts, List<TextPart> targetParts, LocaleId localeId)
Creates an AlignedPair from source and targetTextPart
sAlignedPair(Segment sourceSegment, Segment targetSegment, LocaleId localeId)
Creates an AlignedPair from source and targetSegment
sRawDocument(InputStream inputStream, String defaultEncoding, LocaleId sourceLocale)
Creates a new RawDocument object with a given InputStream, a default encoding and a source locale.RawDocument(InputStream inputStream, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
Creates a new RawDocument object with a given InputStream, a default encoding and a source locale.RawDocument(CharSequence inputCharSequence, LocaleId sourceLocale)
Creates a new RawDocument object with a given CharSequence and a source locale.RawDocument(CharSequence inputCharSequence, LocaleId sourceLocale, LocaleId targetLocale)
Creates a new RawDocument object with a given CharSequence, a source locale and a target locale.RawDocument(URI inputURI, String defaultEncoding, LocaleId sourceLocale)
Creates a new RawDocument object with a given URI, a default encoding and a source locale.RawDocument(URI inputURI, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale)
Creates a new RawDocument object with a given URI, a default encoding, a source locale and a target locale.RawDocument(URI inputURI, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale, String filterConfigId)
Creates a new RawDocument object with a given URI, a default encoding, a source locale and a target locale, and the filter configuration id. -
Uses of LocaleId in net.sf.okapi.common.resource.simplifier
Methods in net.sf.okapi.common.resource.simplifier that return LocaleId Modifier and Type Method Description LocaleId
AbstractResourceSimplifier. getTargetLocale()
Methods in net.sf.okapi.common.resource.simplifier with parameters of type LocaleId Modifier and Type Method Description void
AbstractResourceSimplifier. setTargetLocale(LocaleId targetLocale)
void
IResourceSimplifier. setTargetLocale(LocaleId targetLocale)
Constructors in net.sf.okapi.common.resource.simplifier with parameters of type LocaleId Constructor Description ResourceSimplifier(LocaleId trgLoc)
-
Uses of LocaleId in net.sf.okapi.common.skeleton
Fields in net.sf.okapi.common.skeleton declared as LocaleId Modifier and Type Field Description protected LocaleId
GenericSkeletonWriter. inputLoc
protected LocaleId
GenericSkeletonWriter. outputLoc
Methods in net.sf.okapi.common.skeleton that return LocaleId Modifier and Type Method Description LocaleId
GenericSkeletonWriter. getInputLoc()
LocaleId
GenericSkeletonPart. getLocale()
LocaleId
GenericSkeletonWriter. getOutputLoc()
Methods in net.sf.okapi.common.skeleton that return types with arguments of type LocaleId Modifier and Type Method Description Set<LocaleId>
StorageList. getTargetLocales()
Methods in net.sf.okapi.common.skeleton with parameters of type LocaleId Modifier and Type Method Description void
GenericSkeleton. addContentPlaceholder(ITextUnit textUnit, LocaleId locId)
Adds to this skeleton a placeholder for the content (in a given locale) of the resource to which this skeleton is attached.GenericSkeletonPart
GenericSkeleton. addValuePlaceholder(INameable referent, String propName, LocaleId locId)
Adds to this skeleton a place-holder for the value of a property (in a given locale) of the resource to which this skeleton is attached.Property
StorageList. createTargetProperty(LocaleId locId, String name, boolean overwrite, int creationOptions)
protected String
GenericSkeletonWriter. expandCodeContent(Code code, LocaleId locToUse, EncoderContext context)
static int
SkeletonUtil. findTuRefInSkeleton(GenericSkeleton skel, LocaleId locId)
Finds either source or target reference in the skeleton.protected String
GenericSkeletonWriter. getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)
Gets the original content of a given text unit.String
GenericSkeletonWriter. getContent(TextFragment tf, LocaleId locToUse, EncoderContext context)
Gets the original content of a TextFragment.protected String
GenericSkeletonWriter. getPropertyValue(INameable resource, String name, LocaleId locToUse, EncoderContext context)
protected String
GenericSkeletonWriter. getString(INameable ref, String propName, LocaleId locToUse, EncoderContext context)
protected String
GenericSkeletonWriter. getString(ITextUnit tu, LocaleId locToUse, EncoderContext context)
Gets the skeleton and the original content of a given text unit.protected String
GenericSkeletonWriter. getString(StorageList list, LocaleId locToUse, EncoderContext context)
protected String
GenericSkeletonWriter. getStringFromSubfilter(StorageList list, LocaleId locToUse, EncoderContext context, boolean fromSource)
Gets the string from a subfilter reference.Property
StorageList. getTargetProperty(LocaleId language, String name)
Set<String>
StorageList. getTargetPropertyNames(LocaleId language)
boolean
StorageList. hasTargetProperty(LocaleId language, String name)
static boolean
SkeletonUtil. hasTuRef(GenericSkeleton skel, LocaleId locId)
Determines if a given skeleton contains a target reference in a given locale.String
GenericSkeletonWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, EncoderManager encoderManager, StartDocument resource)
String
ISkeletonWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, EncoderManager encoderManager, StartDocument resource)
Processes the START_DOCUMENT event.void
StorageList. removeTargetProperty(LocaleId language, String name)
void
GenericSkeletonPart. setLocale(LocaleId locId)
void
GenericSkeletonWriter. setOutputLoc(LocaleId outputLoc)
Property
StorageList. setTargetProperty(LocaleId language, Property property)
Constructors in net.sf.okapi.common.skeleton with parameters of type LocaleId Constructor Description GenericSkeletonPart(char data, IResource parent, LocaleId locId)
GenericSkeletonPart(String data, IResource parent, LocaleId locId)
GenericSkeletonSimplifier(boolean isMultilingual, GenericSkeletonWriter skelWriter, String outEncoding, LocaleId trgLoc)
GenericSkeletonSimplifier(boolean isMultilingual, GenericSkeletonWriter skelWriter, LocaleId trgLoc)
GenericSkeletonSimplifier(String outEncoding, LocaleId trgLoc)
GenericSkeletonSimplifier(LocaleId trgLoc)
GenericSkeletonWriter(LocaleId inputLoc, LocaleId outputLoc, EncoderManager encoderManager, boolean isMultilingual, boolean allowEmptyOutputTarget, Map<String,Referent> referents, Stack<StorageList> storageStack, String outputEncoding, int referentCopies, SubFilterSkeletonWriter sfWriter)
-
Uses of LocaleId in net.sf.okapi.connectors.apertium
Methods in net.sf.okapi.connectors.apertium with parameters of type LocaleId Modifier and Type Method Description protected String
ApertiumMTConnector. toInternalCode(LocaleId standardCode)
-
Uses of LocaleId in net.sf.okapi.connectors.bifile
Methods in net.sf.okapi.connectors.bifile with parameters of type LocaleId Modifier and Type Method Description void
BilingualFileConnector. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.connectors.google
Methods in net.sf.okapi.connectors.google that return LocaleId Modifier and Type Method Description protected LocaleId
GoogleMTv2Connector. convertGoogleLanguageCode(String lang)
Methods in net.sf.okapi.connectors.google that return types with arguments of type LocaleId Modifier and Type Method Description List<LocaleId>
GoogleMTv2Connector. getSupportedLanguages()
Methods in net.sf.okapi.connectors.google with parameters of type LocaleId Modifier and Type Method Description protected String
GoogleMTv2Connector. toInternalCode(LocaleId locale)
-
Uses of LocaleId in net.sf.okapi.connectors.kantan
Methods in net.sf.okapi.connectors.kantan with parameters of type LocaleId Modifier and Type Method Description protected String
KantanMTv21Connector. toInternalCode(LocaleId locId)
-
Uses of LocaleId in net.sf.okapi.connectors.microsoft
Methods in net.sf.okapi.connectors.microsoft with parameters of type LocaleId Modifier and Type Method Description void
MicrosoftMTConnector. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
protected String
MicrosoftMTConnector. toInternalCode(LocaleId locale)
-
Uses of LocaleId in net.sf.okapi.connectors.mymemory
Methods in net.sf.okapi.connectors.mymemory with parameters of type LocaleId Modifier and Type Method Description protected String
MyMemoryTMConnector. toInternalCode(LocaleId locale)
-
Uses of LocaleId in net.sf.okapi.connectors.pensieve
Methods in net.sf.okapi.connectors.pensieve with parameters of type LocaleId Modifier and Type Method Description void
PensieveTMConnector. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.connectors.tda
Methods in net.sf.okapi.connectors.tda with parameters of type LocaleId Modifier and Type Method Description void
TDASearchConnector. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
protected String
TDASearchConnector. toInternalCode(LocaleId locale)
-
Uses of LocaleId in net.sf.okapi.connectors.translatetoolkit
Methods in net.sf.okapi.connectors.translatetoolkit with parameters of type LocaleId Modifier and Type Method Description protected String
TranslateToolkitTMConnector. toInternalCode(LocaleId standardCode)
-
Uses of LocaleId in net.sf.okapi.filters.abstractmarkup
Methods in net.sf.okapi.filters.abstractmarkup with parameters of type LocaleId Modifier and Type Method Description protected void
AbstractMarkupFilter. startGroup(GenericSkeleton startMarker, String commonTagType, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
-
Uses of LocaleId in net.sf.okapi.filters.doxygen
Methods in net.sf.okapi.filters.doxygen with parameters of type LocaleId Modifier and Type Method Description void
DoxygenWriter. setOptions(LocaleId language, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.icml
Methods in net.sf.okapi.filters.icml with parameters of type LocaleId Modifier and Type Method Description void
ICMLFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.idml
Methods in net.sf.okapi.filters.idml with parameters of type LocaleId Modifier and Type Method Description void
IDMLFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.its
Fields in net.sf.okapi.filters.its declared as LocaleId Modifier and Type Field Description protected LocaleId
ITSFilter. srcLang
-
Uses of LocaleId in net.sf.okapi.filters.its.html5
Methods in net.sf.okapi.filters.its.html5 with parameters of type LocaleId Modifier and Type Method Description String
HTML5SkeletonWriter. getContent(TextFragment tf, LocaleId locToUse, EncoderContext context)
Gets the original content of a TextFragment. -
Uses of LocaleId in net.sf.okapi.filters.markdown
Methods in net.sf.okapi.filters.markdown with parameters of type LocaleId Modifier and Type Method Description protected void
MarkdownFilterWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, StartDocument resource)
-
Uses of LocaleId in net.sf.okapi.filters.mosestext
Methods in net.sf.okapi.filters.mosestext with parameters of type LocaleId Modifier and Type Method Description void
MosesTextFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.openxml
Methods in net.sf.okapi.filters.openxml with parameters of type LocaleId Modifier and Type Method Description void
OpenXMLFilter. setOptions(LocaleId sourceLanguage, String defaultEncoding, boolean generateSkeleton)
Sets language, encoding, and generation options for the filter.void
OpenXMLFilter. setOptions(LocaleId sourceLanguage, LocaleId targetLanguage, String defaultEncoding, boolean generateSkeleton)
Sets language, encoding, and generation options for the filter.void
OpenXMLFilterWriter. setOptions(LocaleId language, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.pensieve
Methods in net.sf.okapi.filters.pensieve with parameters of type LocaleId Modifier and Type Method Description void
PensieveFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.plaintext.base
Methods in net.sf.okapi.filters.plaintext.base with parameters of type LocaleId Modifier and Type Method Description protected TextProcessingResult
BasePlainTextFilter. sendAsTarget(ITextUnit target, ITextUnit source, LocaleId language)
-
Uses of LocaleId in net.sf.okapi.filters.po
Methods in net.sf.okapi.filters.po with parameters of type LocaleId Modifier and Type Method Description static String
PluralForms. getExpression(LocaleId language)
void
POWriter. setOptions(LocaleId language, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.rainbowkit
Methods in net.sf.okapi.filters.rainbowkit that return LocaleId Modifier and Type Method Description LocaleId
Manifest. getSourceLocale()
LocaleId
Manifest. getTargetLocale()
Methods in net.sf.okapi.filters.rainbowkit with parameters of type LocaleId Modifier and Type Method Description void
Manifest. setInformation(String packageRoot, LocaleId srcLoc, LocaleId trgLoc, String inputRoot, String packageId, String projectId, String creatorParams, String tempPackageRoot)
-
Uses of LocaleId in net.sf.okapi.filters.subtitles
Methods in net.sf.okapi.filters.subtitles with parameters of type LocaleId Modifier and Type Method Description static boolean
SubtitleFilter. isCJK(LocaleId localeId)
-
Uses of LocaleId in net.sf.okapi.filters.table.base
Fields in net.sf.okapi.filters.table.base with type parameters of type LocaleId Modifier and Type Field Description protected List<LocaleId>
BaseTableFilter. targetLanguages
-
Uses of LocaleId in net.sf.okapi.filters.table.csv
Methods in net.sf.okapi.filters.table.csv with parameters of type LocaleId Modifier and Type Method Description String
CSVSkeletonWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, EncoderManager encoderManager, StartDocument resource)
-
Uses of LocaleId in net.sf.okapi.filters.tex
Methods in net.sf.okapi.filters.tex with parameters of type LocaleId Modifier and Type Method Description protected String
TEXSkeletonWriter. getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)
Gets the original content of a given text unit. -
Uses of LocaleId in net.sf.okapi.filters.transifex
Methods in net.sf.okapi.filters.transifex that return LocaleId Modifier and Type Method Description LocaleId
Project. getSourceLocale()
LocaleId
Project. getTargetLocale()
Methods in net.sf.okapi.filters.transifex with parameters of type LocaleId Modifier and Type Method Description void
Project. read(BufferedReader br, LocaleId srcLoc, LocaleId trgLoc)
void
TransifexFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
void
Project. setSourceLocale(LocaleId srcLoc)
void
Project. setTargetLocale(LocaleId trgLoc)
-
Uses of LocaleId in net.sf.okapi.filters.transtable
Methods in net.sf.okapi.filters.transtable with parameters of type LocaleId Modifier and Type Method Description void
TransTableWriter. setOptions(LocaleId language, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.ttml
Methods in net.sf.okapi.filters.ttml with parameters of type LocaleId Modifier and Type Method Description String
TTMLSkeletonWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, EncoderManager encoderManager, StartDocument resource)
-
Uses of LocaleId in net.sf.okapi.filters.vtt
Methods in net.sf.okapi.filters.vtt with parameters of type LocaleId Modifier and Type Method Description String
VTTSkeletonWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, EncoderManager encoderManager, StartDocument resource)
-
Uses of LocaleId in net.sf.okapi.filters.wiki
Methods in net.sf.okapi.filters.wiki with parameters of type LocaleId Modifier and Type Method Description void
WikiWriter. setOptions(LocaleId language, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.xini
Methods in net.sf.okapi.filters.xini with parameters of type LocaleId Modifier and Type Method Description void
XINIWriter. setOptions(LocaleId locale, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.filters.xini.rainbowkit
Methods in net.sf.okapi.filters.xini.rainbowkit with parameters of type LocaleId Modifier and Type Method Description void
XINIRainbowkitWriter. setOptions(LocaleId locale, String defaultEncoding)
void
XINIRainbowkitReader. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.filters.xliff
Methods in net.sf.okapi.filters.xliff that return LocaleId Modifier and Type Method Description LocaleId
XLIFFFilter. getCurrentSourceLocale()
LocaleId
XLIFFFilter. getCurrentTargetLocale()
Methods in net.sf.okapi.filters.xliff with parameters of type LocaleId Modifier and Type Method Description static void
XliffXtmFilterExtension. consolidateProperties(ITextUnit tu, LocaleId trgLocId)
Consolidates all information for XTM at the segment-level.protected String
XLIFFSkeletonWriter. expandCodeContent(Code code, LocaleId locToUse, EncoderContext context)
protected String
XLIFFSkeletonWriter. getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)
protected String
XLIFFSkeletonWriter. getPropertyValue(INameable resource, String name, LocaleId locToUse, EncoderContext context)
String
XLIFFSkeletonWriter. processStartDocument(LocaleId outputLocale, String outputEncoding, EncoderManager encoderManager, StartDocument resource)
-
Uses of LocaleId in net.sf.okapi.filters.xliff2
Methods in net.sf.okapi.filters.xliff2 that return LocaleId Modifier and Type Method Description LocaleId
XLIFF2FilterWriter. getSourceLocale()
LocaleId
XLIFF2FilterWriter. getTargetLocale()
Methods in net.sf.okapi.filters.xliff2 with parameters of type LocaleId Modifier and Type Method Description void
XLIFF2FilterWriter. setOptions(LocaleId locale, String defaultEncoding)
List<Event>
OkpToX2Converter. textUnit(ITextUnit okapiTextUnit, LocaleId targetLocale)
Constructors in net.sf.okapi.filters.xliff2 with parameters of type LocaleId Constructor Description X2ToOkpConverter(LocaleId trgLoc)
Creates a new converter object. -
Uses of LocaleId in net.sf.okapi.filters.xml
Methods in net.sf.okapi.filters.xml with parameters of type LocaleId Modifier and Type Method Description protected String
XMLSkeletonWriter. getPropertyValue(INameable resource, String name, LocaleId locToUse, EncoderContext context)
Overrides the default behaviour to force "UTF-16" as declared XML encoding (not "UTF-16LE" or "UTF-16BE"). -
Uses of LocaleId in net.sf.okapi.lib.merge.merge
Methods in net.sf.okapi.lib.merge.merge that return LocaleId Modifier and Type Method Description LocaleId
TextUnitMerger. getTargetLocale()
LocaleId
TextUnitMergerSerialized. getTargetLocale()
Methods in net.sf.okapi.lib.merge.merge with parameters of type LocaleId Modifier and Type Method Description void
SkeletonMergerWriter. setOptions(LocaleId targetLocale, String defaultEncoding)
void
ITextUnitMerger. setTargetLocale(LocaleId trgLoc)
void
TextUnitMerger. setTargetLocale(LocaleId trgLoc)
void
TextUnitMergerSerialized. setTargetLocale(LocaleId trgLoc)
-
Uses of LocaleId in net.sf.okapi.lib.merge.step
Method parameters in net.sf.okapi.lib.merge.step with type arguments of type LocaleId Modifier and Type Method Description void
OriginalDocumentXliffMergerStep. setTargetLocales(List<LocaleId> targetLocales)
Target locales. -
Uses of LocaleId in net.sf.okapi.lib.segmentation
Methods in net.sf.okapi.lib.segmentation that return LocaleId Modifier and Type Method Description LocaleId
SRXSegmenter. getLanguage()
Methods in net.sf.okapi.lib.segmentation with parameters of type LocaleId Modifier and Type Method Description ISegmenter
SRXDocument. compileLanguageRules(LocaleId languageCode, ISegmenter existingSegmenter)
Compiles the all language rules applicable for a given language code, and assign them to a segmenter.void
SRXSegmenter. setLanguage(LocaleId languageCode)
-
Uses of LocaleId in net.sf.okapi.lib.serialization
Methods in net.sf.okapi.lib.serialization with parameters of type LocaleId Modifier and Type Method Description static Event
Okapi2Proto. toEvent(Event event, LocaleId sourceLocale)
static Events
Okapi2Proto. toEvents(List<Event> events, LocaleId sourceLocale)
-
Uses of LocaleId in net.sf.okapi.lib.serialization.step
Method parameters in net.sf.okapi.lib.serialization.step with type arguments of type LocaleId Modifier and Type Method Description void
OriginalDocumentProtoMergerStep. setTargetLocales(List<LocaleId> targetLocales)
Target locales. -
Uses of LocaleId in net.sf.okapi.lib.serialization.writer
Methods in net.sf.okapi.lib.serialization.writer with parameters of type LocaleId Modifier and Type Method Description void
ProtoBufferWriter. setOptions(LocaleId targetLocale, String defaultEncoding)
-
Uses of LocaleId in net.sf.okapi.lib.terminology
Methods in net.sf.okapi.lib.terminology that return LocaleId Modifier and Type Method Description LocaleId
LangEntry. getLocale()
Methods in net.sf.okapi.lib.terminology with parameters of type LocaleId Modifier and Type Method Description void
ConceptEntry. addTerm(LocaleId locId, String term)
LangEntry
ConceptEntry. getEntries(LocaleId locId)
List<TermHit>
ITermAccess. getExistingStrings(TextFragment fragment, LocaleId fragmentLoc, LocaleId otherLoc)
List<TermHit>
ITermAccess. getExistingTerms(TextFragment fragment, LocaleId fragmentLoc, LocaleId otherLoc)
Gets the list of all terms of the termbase that exist in a given fragment for a given source/target pair of locales.boolean
ConceptEntry. hasLocale(LocaleId locId)
Indicates if there is a set of terms defined for a given locale.void
ConceptEntry. removeEntries(LocaleId locId)
Constructors in net.sf.okapi.lib.terminology with parameters of type LocaleId Constructor Description ConceptEntry(String source, String target, LocaleId srcLocale, LocaleId trgLocale)
LangEntry(LocaleId locId)
-
Uses of LocaleId in net.sf.okapi.lib.terminology.csv
Constructors in net.sf.okapi.lib.terminology.csv with parameters of type LocaleId Constructor Description CSVReader(LocaleId srcLoc, LocaleId trgLoc)
-
Uses of LocaleId in net.sf.okapi.lib.terminology.simpletb
Methods in net.sf.okapi.lib.terminology.simpletb that return LocaleId Modifier and Type Method Description LocaleId
Parameters. getSourceLocale()
LocaleId
Parameters. getTargetLocale()
Methods in net.sf.okapi.lib.terminology.simpletb with parameters of type LocaleId Modifier and Type Method Description List<TermHit>
SimpleTB. getExistingStrings(TextFragment frag, LocaleId fragmentLoc, LocaleId otherLoc)
List<TermHit>
SimpleTBConnector. getExistingStrings(TextFragment fragment, LocaleId fragmentLocId, LocaleId otherLocId)
List<TermHit>
SimpleTB. getExistingTerms(TextFragment frag, LocaleId fragmentLoc, LocaleId otherLoc)
List<TermHit>
SimpleTBConnector. getExistingTerms(TextFragment fragment, LocaleId fragmentLocId, LocaleId otherLocId)
void
Parameters. setSourceLocale(LocaleId locId)
void
Parameters. setTargetLocale(LocaleId locId)
Constructors in net.sf.okapi.lib.terminology.simpletb with parameters of type LocaleId Constructor Description SimpleTB(LocaleId srcLoc, LocaleId trgLoc)
-
Uses of LocaleId in net.sf.okapi.lib.terminology.tsv
Constructors in net.sf.okapi.lib.terminology.tsv with parameters of type LocaleId Constructor Description TSVReader(LocaleId srcLoc, LocaleId trgLoc)
-
Uses of LocaleId in net.sf.okapi.lib.transifex
Methods in net.sf.okapi.lib.transifex with parameters of type LocaleId Modifier and Type Method Description String[]
TransifexClient. createProject(String projectId, String name, String shortDescription, LocaleId srcLoc, boolean isPrivate, String projectURL)
Creates an open-source project new project if one does not exists already.Object[]
TransifexClient. getInformation(String resId, LocaleId locId)
Gets information about a given resource for a given locale.String[]
TransifexClient. getResource(String resourceId, LocaleId trgLoc, String outputPath)
Pulls a resource from the current project.Object[]
TransifexClient. getResourceList(LocaleId srcLoc)
Retrieves the list of the resources for the current project, for a given source locale.String[]
TransifexClient. putSourceResource(String poPath, LocaleId srcLoc, String resourceFile)
Add a resource to the current project.String[]
TransifexClient. putTargetResource(String poPath, LocaleId trgLoc, String resourceSlug, String resourceFile)
String[]
TransifexClient. putTargetResourceV2(String poPath, LocaleId trgLoc, String resourceSlug, String resourceFile)
-
Uses of LocaleId in net.sf.okapi.lib.translation
Fields in net.sf.okapi.lib.translation declared as LocaleId Modifier and Type Field Description protected LocaleId
BaseConnector. srcLoc
protected LocaleId
BaseConnector. trgLoc
Methods in net.sf.okapi.lib.translation that return LocaleId Modifier and Type Method Description LocaleId
BaseConnector. getSourceLanguage()
LocaleId
QueryManager. getSourceLanguage()
Gets the current source locale for this manager.LocaleId
BaseConnector. getTargetLanguage()
LocaleId
QueryManager. getTargetLanguage()
Gets the current target locale for this manager.Methods in net.sf.okapi.lib.translation with parameters of type LocaleId Modifier and Type Method Description void
BaseConnector. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
void
QueryManager. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
Sets the source and target locales for this manager and for all translation resources in this manager.protected String
BaseConnector. toInternalCode(LocaleId locId)
Converts a locale identifier to the internal string value for a language/locale code for this connector.Constructors in net.sf.okapi.lib.translation with parameters of type LocaleId Constructor Description TextMatcher(LocaleId locale1, LocaleId locale2)
Creates a new TextMatcher object. -
Uses of LocaleId in net.sf.okapi.lib.verification
Methods in net.sf.okapi.lib.verification that return LocaleId Modifier and Type Method Description LocaleId
QualityCheckSession. getSourceLocale()
LocaleId
AbstractChecker. getSrcLoc()
LocaleId
QualityCheckSession. getTargetLocale()
LocaleId
AbstractChecker. getTrgLoc()
Methods in net.sf.okapi.lib.verification with parameters of type LocaleId Modifier and Type Method Description int
SpaceChecker. checkUnitSpacing(ITextUnit tu, LocaleId trgLoc)
Checks and fixes white spaces for a given text unit.void
BlacklistChecker. initialize(net.sf.okapi.lib.verification.BlacklistTB termAccess, LocaleId loc)
void
BlacklistChecker. initialize(net.sf.okapi.lib.verification.BlacklistTB termAccess, LocaleId loc, boolean useGenericCodes)
void
LanguageToolConnector. initialize(LocaleId locId, LocaleId motherLocId, String serverUrl, boolean bilingualMode)
void
TermChecker. initialize(SimpleTB termAccess, LocaleId srcLoc, LocaleId trgLoc, boolean stringSearch, boolean betweenCodes)
void
Issue. setContainers(ITextUnit tu, LocaleId trgLoc)
void
QualityCheckSession. setSourceLocale(LocaleId sourceLocale)
void
QualityCheckSession. setTargetLocale(LocaleId targetLocale)
void
AbstractChecker. startProcess(LocaleId sourceLocale, LocaleId targetLocale, Parameters params, List<Issue> issues)
void
CharactersChecker. startProcess(LocaleId sourceLocale, LocaleId targetLocale, Parameters params, List<Issue> issues)
void
GeneralChecker. startProcess(LocaleId sourceLocale, LocaleId targetLocale, Parameters params, List<Issue> issues)
void
InlineCodesChecker. startProcess(LocaleId sourceLocale, LocaleId targetLocale, Parameters params, List<Issue> issues)
void
LengthChecker. startProcess(LocaleId sourceLocale, LocaleId targetLocale, Parameters params, List<Issue> issues)
void
LocalizableChecker. startProcess(LocaleId sourceLocale, LocaleId targetLocale, Parameters params, List<Issue> issues)
void
PatternsChecker. startProcess(LocaleId sourceLocale, LocaleId targetLocale, Parameters params, List<Issue> issues)
void
QualityCheckSession. startProcess(LocaleId srcLoc, LocaleId trgLoc)
Constructors in net.sf.okapi.lib.verification with parameters of type LocaleId Constructor Description BlacklistReader(LocaleId loc)
-
Uses of LocaleId in net.sf.okapi.steps.characterschecker
Methods in net.sf.okapi.steps.characterschecker with parameters of type LocaleId Modifier and Type Method Description void
CharactersCheckerStep. setSourceLocale(LocaleId sourceLocale)
void
CharactersCheckerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.cleanup
Methods in net.sf.okapi.steps.cleanup with parameters of type LocaleId Modifier and Type Method Description protected void
Cleaner. checkCharacters(ITextUnit tu, Segment seg, LocaleId targetLocale)
Wrapper for removing character corruption and detecting unexpected characters.protected void
Cleaner. markSegmentForRemoval(ITextUnit tu, Segment seg, LocaleId targetLocale)
Effectively marks the segment for removal by emptying the content for the given target.protected void
Cleaner. matchRegexExpressions(ITextUnit tu, Segment seg, LocaleId targetLocale)
Marks segments for removal that contain text which match given regular expressions.protected void
Cleaner. normalizePunctuation(ITextUnit tu, Segment seg, LocaleId targetLocale)
See the javadoc comments forCleaner.normalizePunctuation(TextFragment, TextFragment)
protected void
Cleaner. normalizeQuotation(ITextUnit tu, Segment seg, LocaleId targetLocale)
Converts all quotation marks (curly or language specific) to straight quotes.protected void
Cleaner. normalizeWhitespace(ITextUnit tu, Segment seg, LocaleId targetLocale)
Converts whitespace ({tab}, {space}, {CR}, {LF}) to single space.protected boolean
Cleaner. pruneTextUnit(ITextUnit tu, LocaleId targetLocale)
Removes segments from the text unit marked as not containing useful information.boolean
Cleaner. run(ITextUnit tu, LocaleId targetLocale)
Performs the cleaning of the text unit according to user selected options.void
CleanupStep. setSourceLocale(LocaleId sourceLocale)
void
CleanupStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.codesremoval
Methods in net.sf.okapi.steps.codesremoval with parameters of type LocaleId Modifier and Type Method Description void
CodesRemovalStep. setTargetLocale(LocaleId targetLocale)
Constructors in net.sf.okapi.steps.codesremoval with parameters of type LocaleId Constructor Description CodesRemover(Parameters params, LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.common
Methods in net.sf.okapi.steps.common that return LocaleId Modifier and Type Method Description LocaleId
ExtractionVerificationUtil. getTargetLocale()
Methods in net.sf.okapi.steps.common with parameters of type LocaleId Modifier and Type Method Description void
ExtractionVerificationUtil. setTargetLocale(LocaleId targetLocale)
void
FilterEventsToRawDocumentStep. setTargetLocale(LocaleId targetLocale)
void
FilterEventsWriterStep. setTargetLocale(LocaleId targetLocale)
void
ResourceSimplifierStep. setTargetLocale(LocaleId targetLocale)
Method parameters in net.sf.okapi.steps.common with type arguments of type LocaleId Modifier and Type Method Description void
ResourceSimplifierStep. setTargetLocales(List<LocaleId> targetLocales)
-
Uses of LocaleId in net.sf.okapi.steps.common.copysource
Methods in net.sf.okapi.steps.common.copysource that return LocaleId Modifier and Type Method Description LocaleId
CopySourceOnEmptyTargetStep. getTargetLocale()
Methods in net.sf.okapi.steps.common.copysource with parameters of type LocaleId Modifier and Type Method Description void
CopySourceOnEmptyTargetStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.common.createtarget
Methods in net.sf.okapi.steps.common.createtarget that return LocaleId Modifier and Type Method Description LocaleId
CreateTargetStep. getTargetLocale()
Methods in net.sf.okapi.steps.common.createtarget with parameters of type LocaleId Modifier and Type Method Description void
CreateTargetStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.desegmentation
Methods in net.sf.okapi.steps.desegmentation that return types with arguments of type LocaleId Modifier and Type Method Description List<LocaleId>
DesegmentationStep. getTargetLocales()
Method parameters in net.sf.okapi.steps.desegmentation with type arguments of type LocaleId Modifier and Type Method Description void
DesegmentationStep. setTargetLocales(List<LocaleId> targetLocales)
-
Uses of LocaleId in net.sf.okapi.steps.diffleverage
Methods in net.sf.okapi.steps.diffleverage with parameters of type LocaleId Modifier and Type Method Description void
DiffLeverageStep. setSourceLocale(LocaleId sourceLocale)
void
DiffLeverageStep. setTargetLocale(LocaleId targetLocale)
Target locale.Constructors in net.sf.okapi.steps.diffleverage with parameters of type LocaleId Constructor Description FuzzyTextUnitComparator(boolean codeSensitive, int threshold, LocaleId localeId)
-
Uses of LocaleId in net.sf.okapi.steps.enrycher
Methods in net.sf.okapi.steps.enrycher with parameters of type LocaleId Modifier and Type Method Description void
EnrycherClient. setLocale(LocaleId locId)
Sets the locale to use when invoking the Enrycher service. -
Uses of LocaleId in net.sf.okapi.steps.formatconversion
Methods in net.sf.okapi.steps.formatconversion with parameters of type LocaleId Modifier and Type Method Description void
CorpusFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
void
TableFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
void
WordTableFilterWriter. setOptions(LocaleId locale, String defaultEncoding)
void
FormatConversionStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.fullwidthconversion
Methods in net.sf.okapi.steps.fullwidthconversion with parameters of type LocaleId Modifier and Type Method Description void
FullWidthConversionStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.gcaligner
Methods in net.sf.okapi.steps.gcaligner with parameters of type LocaleId Modifier and Type Method Description void
AlignmentScorer. setLocales(LocaleId p_sourceLocale, LocaleId p_targetLocale)
Set source and target locales.void
GaleAndChurch. setLocales(LocaleId p_sourceLocale, LocaleId p_targetLocale)
Set source and target locales.Constructors in net.sf.okapi.steps.gcaligner with parameters of type LocaleId Constructor Description AlignmentFunction(LocaleId p_sourceLocale, LocaleId p_targetLocale, List<AlignmentScorer<T>> scorerList, Penalties penalties)
-
Uses of LocaleId in net.sf.okapi.steps.generalchecker
Methods in net.sf.okapi.steps.generalchecker with parameters of type LocaleId Modifier and Type Method Description void
GeneralCheckerStep. setSourceLocale(LocaleId sourceLocale)
void
GeneralCheckerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.idaligner
Methods in net.sf.okapi.steps.idaligner with parameters of type LocaleId Modifier and Type Method Description void
IdBasedAlignerStep. setSourceLocale(LocaleId sourceLocale)
void
IdBasedAlignerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.idbasedcopy
Methods in net.sf.okapi.steps.idbasedcopy with parameters of type LocaleId Modifier and Type Method Description void
IdBasedCopyStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.inconsistencycheck
Methods in net.sf.okapi.steps.inconsistencycheck with parameters of type LocaleId Modifier and Type Method Description void
InconsistencyCheckStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.inlinescodeschecker
Methods in net.sf.okapi.steps.inlinescodeschecker with parameters of type LocaleId Modifier and Type Method Description void
InlineCodesCheckerStep. setSourceLocale(LocaleId sourceLocale)
void
InlineCodesCheckerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.lengthchecker
Methods in net.sf.okapi.steps.lengthchecker with parameters of type LocaleId Modifier and Type Method Description void
LengthCheckerStep. setSourceLocale(LocaleId sourceLocale)
void
LengthCheckerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.leveraging
Methods in net.sf.okapi.steps.leveraging that return LocaleId Modifier and Type Method Description LocaleId
BatchTmLeveragingStep. getSourceLocale()
LocaleId
LeveragingStep. getSourceLocale()
LocaleId
BatchTmLeveragingStep. getTargetLocale()
LocaleId
LeveragingStep. getTargetLocale()
Methods in net.sf.okapi.steps.leveraging with parameters of type LocaleId Modifier and Type Method Description void
BatchTmLeveragingStep. setSourceLocale(LocaleId sourceLocale)
void
LeveragingStep. setSourceLocale(LocaleId sourceLocale)
void
BatchTmLeveragingStep. setTargetLocale(LocaleId targetLocale)
void
LeveragingStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.localizablechecker
Methods in net.sf.okapi.steps.localizablechecker with parameters of type LocaleId Modifier and Type Method Description void
LocalizableCheckerStep. setSourceLocale(LocaleId sourceLocale)
void
LocalizableCheckerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.moses
Methods in net.sf.okapi.steps.moses with parameters of type LocaleId Modifier and Type Method Description void
MergingStep. setSourceLocale(LocaleId sourceLocale)
void
ExtractionStep. setTargetLocale(LocaleId targetLocale)
void
MergingStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.msbatchtranslation
Methods in net.sf.okapi.steps.msbatchtranslation with parameters of type LocaleId Modifier and Type Method Description static Event
MSBatchTranslationStep. generateAltOutput(String outFilePath, String defaultEncoding, LocaleId sourceLocale, LocaleId targetLocale, String filterConfigId)
Generates the alternative output used by several Trados Stepsvoid
MSBatchTranslationStep. setSourceLocale(LocaleId sourceLocale)
void
MSBatchTranslationStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.paraaligner
Methods in net.sf.okapi.steps.paraaligner with parameters of type LocaleId Modifier and Type Method Description net.sf.okapi.steps.paraaligner.AlignedParagraphs
ParagraphAligner. align(List<ITextUnit> sourceParagraphs, List<ITextUnit> targetParagraphs, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly)
void
ParagraphAlignerStep. setSourceLocale(LocaleId sourceLocale)
void
ParagraphAlignerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.patternschecker
Methods in net.sf.okapi.steps.patternschecker with parameters of type LocaleId Modifier and Type Method Description void
PatternsCheckerStep. setSourceLocale(LocaleId sourceLocale)
void
PatternsCheckerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.qualitycheck
Methods in net.sf.okapi.steps.qualitycheck with parameters of type LocaleId Modifier and Type Method Description void
QualityCheckStep. setSourceLocale(LocaleId sourceLocale)
void
QualityCheckStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.rainbowkit.common
Methods in net.sf.okapi.steps.rainbowkit.common with parameters of type LocaleId Modifier and Type Method Description protected Event
BasePackageWriter. creatRawDocumentEventSet(String inputPath, String defaultEncoding, LocaleId srcLoc, LocaleId trgLoc)
long
WordCounter. getWordCount(ITextUnit tu, LocaleId trgId)
void
BasePackageWriter. setBatchInformation(String packageRoot, LocaleId srcLoc, LocaleId trgLoc, String inputRootDir, String rootDir, String packageId, String projectId, String creatorParams, String tempPackageRoot)
void
IPackageWriter. setBatchInformation(String packageRoot, LocaleId srcLoc, LocaleId trgLoc, String inputRootDir, String rootDir, String packageId, String projectId, String creatorParams, String tempPackageRoot)
void
BasePackageWriter. setOptions(LocaleId locale, String defaultEncoding)
Constructors in net.sf.okapi.steps.rainbowkit.common with parameters of type LocaleId Constructor Description WordCounter(LocaleId locId)
-
Uses of LocaleId in net.sf.okapi.steps.rainbowkit.creation
Methods in net.sf.okapi.steps.rainbowkit.creation that return LocaleId Modifier and Type Method Description LocaleId
ExtractionStep. getSourceLocale()
LocaleId
ExtractionStep. getTargetLocale()
Methods in net.sf.okapi.steps.rainbowkit.creation with parameters of type LocaleId Modifier and Type Method Description void
ExtractionStep. setSourceLocale(LocaleId sourceLocale)
void
ExtractionStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.rainbowkit.postprocess
Methods in net.sf.okapi.steps.rainbowkit.postprocess that return LocaleId Modifier and Type Method Description LocaleId
MergingStep. getTargetLocale()
Methods in net.sf.okapi.steps.rainbowkit.postprocess with parameters of type LocaleId Modifier and Type Method Description void
MergingStep. setTargetLocale(LocaleId targetLocale)
Constructors in net.sf.okapi.steps.rainbowkit.postprocess with parameters of type LocaleId Constructor Description Merger(Parameters parameters, IFilterConfigurationMapper fcMapper, Manifest manifest, LocaleId forcedTargetLocale)
Creates a Merger object. -
Uses of LocaleId in net.sf.okapi.steps.repetitionanalysis
Methods in net.sf.okapi.steps.repetitionanalysis with parameters of type LocaleId Modifier and Type Method Description void
RepetitionAnalysisStep. setSourceLocale(LocaleId sourceLocale)
void
RepetitionAnalysisStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.searchandreplace
Methods in net.sf.okapi.steps.searchandreplace with parameters of type LocaleId Modifier and Type Method Description void
SearchAndReplaceStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.segmentation
Methods in net.sf.okapi.steps.segmentation that return LocaleId Modifier and Type Method Description LocaleId
SegmentationStep. getSourceLocale()
Methods in net.sf.okapi.steps.segmentation that return types with arguments of type LocaleId Modifier and Type Method Description List<LocaleId>
SegmentationStep. getTargetLocales()
Methods in net.sf.okapi.steps.segmentation with parameters of type LocaleId Modifier and Type Method Description void
SegmentationStep. setSourceLocale(LocaleId sourceLocale)
Method parameters in net.sf.okapi.steps.segmentation with type arguments of type LocaleId Modifier and Type Method Description void
SegmentationStep. setTargetLocales(List<LocaleId> targetLocales)
-
Uses of LocaleId in net.sf.okapi.steps.sentencealigner
Methods in net.sf.okapi.steps.sentencealigner with parameters of type LocaleId Modifier and Type Method Description ITextUnit
SentenceAligner. align(ITextUnit bilingualParagraph, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly)
ITextUnit
SentenceAligner. align(ITextUnit sourceParagraph, ITextUnit targetParagraph, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly)
void
SentenceAlignerStep. setSourceLocale(LocaleId sourceLocale)
void
SentenceAlignerStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.spacecheck
Methods in net.sf.okapi.steps.spacecheck with parameters of type LocaleId Modifier and Type Method Description void
SpaceCheckStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.termextraction
Methods in net.sf.okapi.steps.termextraction with parameters of type LocaleId Modifier and Type Method Description void
SimpleTermExtractor. initialize(Parameters params, LocaleId sourceLocaleId, String rootDir, String inputRootDir)
Initializes this extractor.void
TermExtractionStep. setSourcetLocale(LocaleId sourceLocale)
-
Uses of LocaleId in net.sf.okapi.steps.terminologyleveraging
Fields in net.sf.okapi.steps.terminologyleveraging declared as LocaleId Modifier and Type Field Description protected LocaleId
BaseTerminologyConnector. srcLoc
protected LocaleId
BaseTerminologyConnector. trgLoc
Methods in net.sf.okapi.steps.terminologyleveraging that return LocaleId Modifier and Type Method Description LocaleId
BaseTerminologyConnector. getSourceLanguage()
LocaleId
ITerminologyQuery. getSourceLanguage()
LocaleId
TerminologyLeveragingStep. getSourceLocale()
LocaleId
BaseTerminologyConnector. getTargetLanguage()
LocaleId
ITerminologyQuery. getTargetLanguage()
LocaleId
TerminologyLeveragingStep. getTargetLocale()
Methods in net.sf.okapi.steps.terminologyleveraging with parameters of type LocaleId Modifier and Type Method Description void
BaseTerminologyConnector. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
void
ITerminologyQuery. setLanguages(LocaleId sourceLocale, LocaleId targetLocale)
void
TerminologyLeveragingStep. setSourceLocale(LocaleId sourceLocale)
void
TerminologyLeveragingStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.textmodification
Methods in net.sf.okapi.steps.textmodification with parameters of type LocaleId Modifier and Type Method Description void
TextModificationStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.tmimport
Methods in net.sf.okapi.steps.tmimport with parameters of type LocaleId Modifier and Type Method Description void
TMImportStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.tokenization
Methods in net.sf.okapi.steps.tokenization that return LocaleId Modifier and Type Method Description LocaleId
TokenizationStep. getSourceLocale()
LocaleId
TokenizationStep. getTargetLocale()
Methods in net.sf.okapi.steps.tokenization with parameters of type LocaleId Modifier and Type Method Description List<Token>
TokenizationStep. apostrophe(Token token, LocaleId locale)
Break French and Italian words with apostrophe into three tokens WORD, PUNCTUATION, WORDvoid
ITokenizer. init(String text, LocaleId language)
void
RbbiTokenizer. init(String text, LocaleId language)
Collection<? extends Token>
TokenizationStep. postProcess(Token t, LocaleId language)
Various rules to make corrections toRbbiTokenizer
void
TokenizationStep. setSourceLocale(LocaleId sourceLocale)
void
TokenizationStep. setTargetLocale(LocaleId targetLocale)
static Tokens
Tokenizer. tokenize(String string, LocaleId language, String... tokenNames)
static Tokens
Tokenizer. tokenize(ITextUnit textUnit, LocaleId language, String... tokenNames)
static Tokens
Tokenizer. tokenize(TextContainer textContainer, LocaleId language, String... tokenNames)
static Tokens
Tokenizer. tokenize(TextFragment textFragment, LocaleId language, String... tokenNames)
protected static Tokens
Tokenizer. tokenizeString(String text, LocaleId language, String... tokenNames)
Extracts tokens from the given text. -
Uses of LocaleId in net.sf.okapi.steps.translationcomparison
Methods in net.sf.okapi.steps.translationcomparison with parameters of type LocaleId Modifier and Type Method Description void
TranslationComparisonStep. setSourceLocale(LocaleId sourceLocale)
void
TranslationComparisonStep. setTargetLocale(LocaleId targetLocale)
-
Uses of LocaleId in net.sf.okapi.steps.ttxsplitter
Constructors in net.sf.okapi.steps.ttxsplitter with parameters of type LocaleId Constructor Description WordCounter(LocaleId locId)
-
Uses of LocaleId in net.sf.okapi.steps.uriconversion
Methods in net.sf.okapi.steps.uriconversion with parameters of type LocaleId Modifier and Type Method Description void
UriConversionStep. setTargetLanguage(LocaleId targetLanguage)
-
Uses of LocaleId in net.sf.okapi.steps.whitespacecorrection
Fields in net.sf.okapi.steps.whitespacecorrection declared as LocaleId Modifier and Type Field Description protected LocaleId
WhitespaceCorrectionStep. sourceLocale
protected LocaleId
WhitespaceCorrector. sourceLocale
protected LocaleId
WhitespaceCorrectionStep. targetLocale
protected LocaleId
WhitespaceCorrector. targetLocale
Methods in net.sf.okapi.steps.whitespacecorrection with parameters of type LocaleId Modifier and Type Method Description void
WhitespaceCorrectionStep. setSourceLocale(LocaleId sourceLocale)
void
WhitespaceCorrectionStep. setTargetLocale(LocaleId targetLocale)
Constructors in net.sf.okapi.steps.whitespacecorrection with parameters of type LocaleId Constructor Description WhitespaceCorrector(LocaleId sourceLocale, LocaleId targetLocale, Set<WhitespaceCorrector.Punctuation> punctuation, Set<WhitespaceCorrector.Whitespace> whitespace)
-
Uses of LocaleId in net.sf.okapi.steps.wordcount
Methods in net.sf.okapi.steps.wordcount with parameters of type LocaleId Modifier and Type Method Description static long
CharacterCounter. count(Object text, LocaleId language)
static long
WordCounter. count(String string, LocaleId language)
Counts words in a given string.static long
WordCounter. count(ITextUnit textUnit, LocaleId language)
Counts words in the source part of a given text unit.static long
WordCounter. count(Segment segment, LocaleId language)
Counts words in a given segment.static long
WordCounter. count(TextContainer textContainer, LocaleId language)
Counts words in a given text container.static long
WordCounter. count(TextFragment textFragment, LocaleId language)
Counts words in a given text fragment.protected long
WordCountStep. count(Segment segment, LocaleId locale)
protected long
WordCountStep. count(TextContainer textContainer, LocaleId locale)
static long
WordCounter. countFromLogographicCharacterCount(long characterCount, LocaleId language)
For "logographic" languages, GMX-V 2.0 defines factors by which the character count should be divided in order to yield the word count.static long
WordCounter. countLogographicScript(Object text, LocaleId language)
For "logographic" languages, GMX-V 2.0 defines factors by which the character count should be divided in order to yield the word count.protected long
CharacterCounter. doCountImpl(String text, LocaleId language)
protected long
WordCounter. doCountImpl(String text, LocaleId language)
CharacterCounter.Counts
CharacterCounter. doFullCount(Object text, LocaleId language)
protected CharacterCounter.Counts
CharacterCounter. doFullCountImpl(String text, LocaleId language)
static CharacterCounter.Counts
CharacterCounter. fullCount(Object text, LocaleId language)
void
SimpleWordCountStep. setSourceLocale(LocaleId sourceLocale)
-
Uses of LocaleId in net.sf.okapi.steps.wordcount.categorized.gmx
Methods in net.sf.okapi.steps.wordcount.categorized.gmx with parameters of type LocaleId Modifier and Type Method Description protected long
GMXProtectedWordCountStep. count(Segment segment, LocaleId locale)
protected long
GMXProtectedWordCountStep. count(TextContainer textContainer, LocaleId locale)
-
Uses of LocaleId in net.sf.okapi.steps.wordcount.common
Methods in net.sf.okapi.steps.wordcount.common with parameters of type LocaleId Modifier and Type Method Description protected long
AltAnnotationBasedCountStep. count(Segment segment, LocaleId locale)
protected long
AltAnnotationBasedCountStep. count(TextContainer textContainer, LocaleId locale)
protected abstract long
BaseCountStep. count(Segment segment, LocaleId locale)
protected abstract long
BaseCountStep. count(TextContainer textContainer, LocaleId locale)
protected long
TokenCharacterCountStep. count(Segment segment, LocaleId locale)
protected long
TokenCharacterCountStep. count(TextContainer textContainer, LocaleId locale)
protected long
TokenCountStep. count(Segment segment, LocaleId locale)
protected long
TokenCountStep. count(TextContainer textContainer, LocaleId locale)
static long
TokenCharacterCountStep. countTokenChars(Tokens tokens, LocaleId locale)
Return the total character count (calculated perGMX.TotalCharacterCount
) of all supplied tokens.long
BaseCounter. doCount(Object text, LocaleId language)
protected abstract long
BaseCounter. doCountImpl(String text, LocaleId language)
static double
GMX. getCharacterCountFactor(LocaleId language)
For "logographic" languages, GMX-V 2.0 defines factors by which the character count should be divided in order to yield the word count.protected Tokens
TokenCountStep. getTokens(Segment segment, LocaleId locale)
protected Tokens
TokenCountStep. getTokens(TextContainer textContainer, LocaleId locale)
static boolean
GMX. isLogographicScript(LocaleId locId)
Indicates whether or not the language is considered a "logographic" language per the GMX-V 2.0 spec. -
Uses of LocaleId in net.sf.okapi.tm.pensieve.common
Methods in net.sf.okapi.tm.pensieve.common that return LocaleId Modifier and Type Method Description LocaleId
TranslationUnitVariant. getLanguage()
Methods in net.sf.okapi.tm.pensieve.common with parameters of type LocaleId Modifier and Type Method Description static TranslationUnit
PensieveUtil. convertToTranslationUnit(LocaleId sourceLoc, LocaleId targetLoc, ITextUnit textUnit)
Converts an un-segmented TextUnit into a TranslationUnit.void
TranslationUnitVariant. setLocale(LocaleId locale)
Constructors in net.sf.okapi.tm.pensieve.common with parameters of type LocaleId Constructor Description TranslationUnitVariant(LocaleId language, TextFragment content)
Creates a TUV with the given language and content -
Uses of LocaleId in net.sf.okapi.tm.pensieve.tmx
Methods in net.sf.okapi.tm.pensieve.tmx with parameters of type LocaleId Modifier and Type Method Description void
ITmxExporter. exportTmx(LocaleId sourceLocale, LocaleId targetLocale, ITmSeeker tmSeeker, TMXWriter tmxWriter)
Exports all Pensieve contents matching source and target language to TMXvoid
ITmxExporter. exportTmx(LocaleId sourceLocale, ITmSeeker tmSeeker, TMXWriter tmxWriter)
Exports all Pensieve contents matching source languages to TMXvoid
OkapiTmxExporter. exportTmx(LocaleId sourceLang, LocaleId targetLang, ITmSeeker tmSeeker, TMXWriter tmxWriter)
Exports only a specific target locale Pensieve to TMXvoid
OkapiTmxExporter. exportTmx(LocaleId sourceLocale, ITmSeeker tmSeeker, TMXWriter tmxWriter)
Exports all target locales in Pensieve to TMXvoid
ITmxImporter. importTmx(URI tmxUri, LocaleId targetLocale, ITmWriter tmWriter)
Imports TMX to Pensievevoid
OkapiTmxImporter. importTmx(URI tmxUri, LocaleId targetLang, ITmWriter tmWriter)
Imports TMX to PensieveConstructors in net.sf.okapi.tm.pensieve.tmx with parameters of type LocaleId Constructor Description OkapiTmxImporter(LocaleId sourceLang, IFilter tmxFilter)
Creates an instance of OkapiTMXHandler
-