Warning, /sdk/pology/lang/ca/rules/filter.include is written in an unsupported language. File is not indexed.
0001 # Filters include for catalan language 0002 # by KDE Catalan Team (kde-i18n-ca@kde.org) 0003 # some ideas taken from spanish filter.include (by Javier Viñal) 0004 # License: GPLv3 0005 0006 # Remove literal substrings, those which are to be understood by the machine 0007 # and therefore not translated, as designated by markup. 0008 # (-> before markup removal) 0009 addFilterHook name="remove/remove-marlits-msg" on="msg" 0010 0011 # Remove text markup. 0012 # For this to work, POs need to specify markup types using 0013 # the X-Text-Markup header field; its value is a markup keyword. 0014 # For markups known to Pology at any given moment, see documentation on 0015 # remove_markup_text() function in pology.remove module. 0016 # The value of the header field may be a comma-separated list of keywords, 0017 # if there are several markup types present in the PO. 0018 # (-> before accelerator removal) 0019 # (-> before literals removal) 0020 addFilterHook name="remove/remove-markup-msg" on="msg" 0021 0022 # Remove accelerator markers. 0023 # For this to work, POs need to specify the marker character through 0024 # the X-Accelerator-Marker header field. 0025 # (-> after markup removal) 0026 addFilterHook name="remove/remove-accel-msg" on="msg" 0027 0028 # Remove local entities which are to be left as-is in the message. 0029 addFilterHook name="remove/remove-ignored-entities-msg" on="msg" 0030 0031 # Removes all XML-like entities (&foo;) from the original text, 0032 # and all XML-like entities from the translation that were encountered in the original. 0033 addFilterHook name="remove/remove-paired-ents-tick~'~'" on="msg" 0034 0035 # Replace format directives with tildes (~), based on *-format flags. 0036 addFilterHook name="remove/remove-fmtdirs-msg-tick~'~'" on="msg" 0037 0038 # Remove other literal substrings by heuristics. 0039 # Heuristics can be augmented by explicit instructions per message, 0040 # see documentation on remove_literals_text() function 0041 # in pology.remove module. 0042 # (-> after markup removal) 0043 addFilterHook name="remove/remove-literals-msg-tick~'~'" on="msg" 0044 0045 # Convert action-loaded characters to their ordinary counterparts. 0046 addFilterRegex match=" " repl=" " on="pmsgid,pmsgstr" # no-break space 0047 0048 # Remove XML-like tags. 0049 addFilterRegex match="\<\s*(arg|classname|bcode|code|command|envar|filename|foreignphrase|function|keycap|keysym|icode|literal|markup|methodname|option|parameter|placeholder|programlisting|prompt|screen|sgmltag|shortcut|span|style|systemitem|token|tt|type|userinput|varname)\b.*?\b\1\>" repl="~" on="pmsgid,pmsgstr" 0050 addFilterRegex match="\<\s*(email|link)\s*>\b.*?\b\1\>" repl="~" on="pmsgid,pmsgstr" 0051 addFilterRegex match="\<.*?\>" repl="~" on="pmsgid,pmsgstr" 0052 0053 # Extension filter, e.g. "*.png|PNG files" 0054 addFilterRegex match="^.*\*\..*\|" repl="~" on="pmsgid,pmsgstr" 0055 0056 # Remove web pages. 0057 addFilterRegex match="((http|https|ftp|sftp)\:\/\/)?([\w\_\-]+\.)+((gov|edu|com|mil|org|net|aero|biz|coop|info|museum|name|pro|mobi)|([a-z]{2,4})|\5\.\6)(\:\d{2,4})?(\/[\w\.\-\_]+)*\/?(\?(\w+\=\w+)(\&(\w+\=\w+))*?)?(\#\w+)?" repl="~" on="pmsgid,pmsgstr" 0058 0059 # Remove system files. 0060 addFilterRegex match="(file\:|\#\!)?\/(bin|etc|lib|media|proc|srv|var|boot|home|lib32|mnt|root|sys|cdrom|lib64|sbin|tmp|dev|lost\+found|opt|selinux|usr)(\/(\w|\.|\-|\_)+)*\/?" repl="~" on="pmsgid,pmsgstr" 0061 0062 # Remove more important (as I guess) hidden files. 0063 addFilterRegex match="\.\/?(bash|directory|fonts|ICEauthority|kateconfig|kderc|mailcap|profile|Xauthority|Xclients|Xdefaults|Xmodmap|Xresources|Xsession)" repl="~" on="pmsgid,pmsgstr" 0064 0065 # Remove single characters in quotes. 0066 addFilterRegex match="«.»" repl="~" on="pmsgid,pmsgstr" 0067 0068 # Remove special puntuactions. 0069 addFilterRegex match="\s*(\?{2,3}|\%{2,3}|\:{2,3}|\_{2,3})" repl="~" on="pmsgid,pmsgstr" 0070 0071 # Remove more usual smileis. 0072 addFilterRegex match="\s(\:\)|\(\-\:|\:\)|\(\:|\=\)|\)\-\:\)|\:\-\)|\:\-\(|\;\-\)|\;\)|\:D|\:\()" repl="~" on="pmsgid,pmsgstr" 0073 addFilterRegex match="\s(\"\:\-\)\")" repl="~" on="pmsgid,pmsgstr"