Warning, /sdk/pology/lang/nb/rules/puretext.filters is written in an unsupported language. File is not indexed.

0001 # Filter message fields into pure text.
0002 # Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net>
0003 # License: GPLv3
0004 
0005 # Order of filter addition is significant.
0006 
0007 # Remove text markup. For this to work, POs need to specify markup types
0008 # using the X-Text-Markup header field; its value is a markup keyword.
0009 # For markups known to Pology at any given moment, see documentation on
0010 # remove_markup_text() function in pology.remove module.
0011 # The value of the header field may be a comma-separated list of keywords,
0012 # if there are several markup types present in the PO.
0013 # (-> before accelerator removal)
0014 # (-> before literals removal)
0015 addFilterHook name="remove/remove-markup-msg" on="msg" handle="markup"
0016 
0017 # Remove accelerator markers. For this to work, POs need to specify
0018 # the marker character through the X-Accelerator-Marker header field.
0019 # (-> after markup removal)
0020 addFilterHook name="remove/remove-accel-msg" on="msg" handle="accel"
0021 
0022 # Replace format directives with tildes (~), based on *-format flags.
0023 addFilterHook name="remove/remove-fmtdirs-msg-tick~'~'" on="msg" handle="fmtdirs"
0024 
0025 # Replace other literal substrings, which are to be understood by the machine
0026 # and therefore not translated, with xxxxx. Heuristics can be augmented by explicit
0027 # instructions per message, see documentation on remove_literals_text()
0028 # function in pology.remove module.
0029 # (-> after markup removal)
0030 addFilterHook name="remove/remove-literals-msg-tick~'xxxxx'" on="msg" handle="literals"
0031 
0032 # Remove invisible characters, e.g., soft hyphens.
0033 addFilterHook name="normalize/noinvisible" on="pmsgstr" handle="noinvisible"
0034