![]() ![]() ![]() The target font name: Arial, Times New Roman, etc.It can be ommited to apply the mapping to any source font name found. The source font name regular expression pattern.It can be ommited to apply the mapping to any target locale. The target locale regular expression pattern.It can be ommited to apply the mapping to any source locale. The source locale regular expression pattern.The following font mapping configuration options are available: It is supported by IDML and OpenXML (DOCX, PPTX and XLSX documents) filters at the moment. The font mapping can be considered as a filter's ability to automatically substitute font information in the target document on the fly, according to a provided configuration - this helps to reduce the amount of reformatting and post-translation DTP. SimplifierRules=if ADDABLE or DELETABLE or CLONEABLE if DATA ~ ".+" ![]() If ADDABLE or DELETABLE or CLONEABLE if DATA ~ ".+" If DATA = "" or DATA = "" or DATA = "" or DATA = "" If TYPE = "bold" or (DATA = "bar" or (DATA = "foo" and TYPE = "underline")) Įxamples of using simplifier rules within the filter config formats used by Okapi. If TYPE = "bold" or TYPE = "italic" or TYPE = "underline" Įxpressions can be recursive (supports embedded parens) Match on type, linebreak in this case, don't simplify You can negate any of the match operatorsĭon't simplify if the DATA does not match the regex Match basic TAGTYPE opening, closing or standalone If Code has any of these flags then don't simplify okapi-core/src/main/java/net/sf/okapi/core/simplifierrules/SimplifierRules.jj Rule Examples Multiple rules are always OR'ed together.įor more details see the JavaCC grammar. Uppercase tokens are constants and predefined by the rule parser. When a rule applies it means "do not simplify the match code". This makes it easier to accommodate various container formats and their whitespace normalization rules. Rules can be separated by spaces, newlines or nothing. The rules parser ignores irrelevant whitespace. The simplification rules allow you to override the default behavior and prevent specific codes from being trimmed or merged. By default the Inline Codes Simplifier Step, Simplification Filter and Post-segmentation Inline Codes Removal Step maximize the trimming and merging (aka simplification) of inline codes. Note that most filters allow you to create your own configurations to support more file formats.Īll filters support code simplification rules. WIX (Windows Installer XML) localization files Meta filter that processes zip files with various formats as one file.ĭetects the version of an XLIFF file and then hands parsing off to the appropriate filter The following is a list of some of the file formats supported by the distribution through pre-defined configurations: The framework distribution comes with the following filters: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |