Warning, /sdk/pology/lang/es/rules/filter.include is written in an unsupported language. File is not indexed.

0001 # Translation choices of spanish team
0002 # Copyrigth 2010-2014, Javier Viñal (fjvinal@gmail.com)
0003 # by the KDE Spanish Team (kde-l10n-es@kde.org)
0004 # some ideas taken from the hook "sr/checks.py" by Chusslove Illich
0005 # License: GPLv3
0006 
0007 # Replace   by space.
0008 addFilterRegex match="\&nbsp\;" repl=" " on="pmsgid,pmsgstr"
0009 
0010 # Replace newlines.
0011 addFilterRegex match="(\\\\n|\\\n|\\n)" repl=" " on="pmsgid,pmsgstr"
0012 
0013 # Especial treatment for «etc.», there may be a comma before it.
0014 addFilterRegex match="(etc\.|\&etc;)" repl="etcétera" on="pmsgid,pmsgstr"
0015 
0016 # Especial treatment for <quote>, replace with double quote.
0017 addFilterRegex match="\<\/?quote\>" repl="\"" on="pmsgid,pmsgstr"
0018 
0019 # Especial treatment for « & » and « && ».
0020 addFilterRegex match="(\s\&{1,2}\s)" repl=" y " on="pmsgid,pmsgstr"
0021 
0022 # Remove bold tags
0023 addFilterRegex match="\<\/?b\>" repl="" on="pmsgid,pmsgstr"
0024 
0025 # Remove some special tags preceded with '%'
0026 addFilterRegex match="\%[\w.-]+(\%[\w.-]*)*" repl="~" on="pmsgid,pmsgstr"
0027 
0028 # Remove some special tags between ':'
0029 addFilterRegex match="\:[\w.-]+\:" repl="~" on="pmsgid,pmsgstr"
0030 
0031 # Remove email addresses with "at"
0032 addFilterRegex match="\(([\w.*-]+\s)+?at(\s[\w.*-]+)+\)" repl="~" on="pmsgid,pmsgstr"
0033 
0034 # Remove email addresses with "@"
0035 addFilterRegex match="[\w.*-]+@[\w.*-]+" repl="~" on="pmsgid,pmsgstr"
0036 
0037 # Remove functions calls
0038 addFilterRegex match="([\w.-]+\:\:)*[\w.-]+\(.*?\)" repl="~" on="pmsgid,pmsgstr"
0039 addFilterRegex match="\\\\[\w.-]+(\{[\w.-]*\})*" repl="~" on="pmsgid,pmsgstr"
0040 
0041 # Remove C++ methods
0042 addFilterRegex match="\:\:[\w-]+" repl="~" on="pmsgid,pmsgstr"
0043 
0044 # Remove dd statements
0045 addFilterRegex match="\b(dd\s)?(if|of)\=(\/[\w.#+-]+)+" repl="~" casesens="yes" on="pmsgid,pmsgstr"
0046 
0047 # Remove some shell variables
0048 addFilterRegex match="\$[\w-]+" repl="~" on="pmsgid,pmsgstr"
0049 addFilterRegex match="\$\{.*?\}" repl="~" on="pmsgid,pmsgstr"
0050 addFilterRegex match="\$\(.*?\)" repl="~" on="pmsgid,pmsgstr"
0051 
0052 # Omit html tags
0053 addFilterRegex match="\<\s*(bcode|command|envar|filename|head|icode|shortcut|placeholder|style|code|tt|literal|screen|option|keycap|userinput|systemitem|prompt|function|foreignphrase|varname|programlisting|token|markup|parameter|keysym|methodname|sgmltag|arg|classname|type|returnvalue)\s*\>.*?\<\/\s*\1\s*\>" repl="~" on="pmsgid,pmsgstr"
0054 addFilterRegex match="\<\s*(email|link)\s*?\>.*?\<\/\s*\1\s*\>" repl="~" on="pmsgid,pmsgstr"
0055 addFilterRegex match="\<\!.*?\>" repl="~" on="pmsgid,pmsgstr"
0056 addFilterRegex match="\<[\w-]+(\s([\w-]+\=((\\?[\"\']).*?\4|\S+?)))+\>" repl="~" on="pmsgid,pmsgstr"
0057 addFilterRegex match="(?u)\<\/?\s*\w+\s*\/?\>" repl="~" on="pmsgid,pmsgstr"
0058 
0059 # Remove some types of paragraph tags.
0060 addFilterHook name="remove/remove-marlits-msg" on="msg"
0061 addFilterHook name="remove/remove-markup-msg" on="msg"
0062 addFilterHook name="remove/remove-accel-msg" on="msg"
0063 addFilterHook name="remove/remove-ignored-entities-msg" on="msg"
0064 addFilterHook name="remove/remove-paired-ents-tick~u'~'" on="msg"
0065 addFilterHook name="remove/remove-fmtdirs-msg-tick~u'~'" on="msg"
0066 addFilterHook name="remove/remove_literals_msg_tick~u'~'" on="msg"
0067 
0068 # Remove Linux files
0069 addFilterRegex match="\b(bin|boot|dev|etc|home|lib|lib64|lost\+found|media|mnt|opt|proc|root|run|sbin|srv|sys|tmp|usr|var)(\/[\w.#+-]+)+" repl="~" casesens="yes" on="pmsgid,pmsgstr"
0070 addFilterRegex match="(\$[\w-]+|\$\(.*?\)|\$\{.*?\}|(KDE|QT|JAVA)\w*|\.kde\d?|~)(\/[\w.#+-]+)+" repl="~" casesens="yes" on="pmsgid,pmsgstr"
0071 
0072 # Remove Windows files
0073 addFilterRegex match="(?u)\b[A-Z]\:(\\{1,2}[\w.#+-]+)+\b" repl="~" casesens="yes" on="pmsgid,pmsgstr"
0074 
0075 # Remove MIME types
0076 addFilterRegex match="\b(all|application|audio|fonts|image|inode|interface|message|model|multipart|text|uri|video|x\-content|x\-epoc)\/\w[\w.#+-]*\w" repl="~" on="pmsgid,pmsgstr"
0077 
0078 # Remove single characters between quotes.
0079 addFilterRegex match="\'.\'" repl="~" on="pmsgid,pmsgstr"
0080 addFilterRegex match="\".\"" repl="~" on="pmsgid,pmsgstr"
0081 addFilterRegex match="«.»" repl="~" on="pmsgid,pmsgstr"
0082 addFilterRegex match="\\\".\\\"" repl="~" on="pmsgid,pmsgstr"
0083 
0084 # Remove groups of non alphanumeric characters between quotes.
0085 addFilterRegex match="(?u)\'\W+?\'" repl="~" on="pmsgid,pmsgstr"
0086 addFilterRegex match="(?u)\"\W+?\"" repl="~" on="pmsgid,pmsgstr"
0087 addFilterRegex match="(?u)«\W+?»" repl="~" on="pmsgid,pmsgstr"
0088 addFilterRegex match="(?u)\\\"\W+?\\\"" repl="~" on="pmsgid,pmsgstr"
0089 
0090 # Remove some abreviations.
0091 addFilterRegex match="\b(admin|cartr|cert|cond|dec|hex|[Ii]d|[Ii]nc|Jr|lab|Mr|Mrs|No|obs|oct|org|seq|Sh|sync|torr)\.(\.\.)?" repl="~" casesens="yes" on="pmsgid,pmsgstr"
0092 addFilterRegex match="(?u)\b(a\.\s?m|admon|apdos?|art|atte|Av.|Avdas?|Aytos?|C\.\s?C|C\.\s?P|caps?|CC\.\aAA|cents?|cénts?|Cías?|ctas?|ctes?|ctras?|dchas?|dchos?|deptos?|dptos?|D|Dr(es)?|Dras?|EE\.\s?UU|[Pp]\.\sej|Excm[ao]s?|exprs?|Fdo|Gob|Gral(es)?|hnos|(ID|Id|id)s?|Ilm[ao]s?|izdas?|izdos?|izq|JJ\.\s?OO|K\.\s?O|Ld[ao]s?|Lic|Ltd(os)?|Ltdas?|máx|mín|[Nn]úm|n\.\s?t|op|p\.\s?m|págs?|Pdtes?|Pdtas?|pl|plzas?|pos|ppal(es)?|pral(es)?|Prof|ptas?|pts|pzas?|reg|Rep|S.\sA|sdad|Sr(es)?|Sras?|S.\sL|sinc|Srtas?|St[ao]s?|tels?|tfnos?|trads?|Uds?|Univ|V\.O(\.S)?|vol|vv\.\s?aa|VV\.\s?AA)\.(\.\.)?" repl="~" casesens="yes" on="pmsgid,pmsgstr"
0093 
0094 # Remove some usual smileis.
0095 addFilterRegex match="\s(\:\)|\(\-\:|\:\)|\(\:|\=\)|\)\-\:\)|\:\-\)|\:\-\(|\;\-\)|\;\)|\:\-\{|\:\-\()" repl="\s~" on="pmsgid,pmsgstr"
0096 
0097 # Remove numbers and dates
0098 addFilterRegex match="(?<!\%)[+-]?[0-9Xx]+([.,\:\/][0-9Xx]+)+" repl="~" on="pmsgid,pmsgstr"
0099 
0100 # Remove hexadecimal numbers.
0101 addFilterRegex match="0x[0-9abcdef]*" repl="~" on="pmsgid,pmsgstr"
0102 
0103 # Remove special puntuactions.
0104 addFilterRegex match="(\?{2,3}|\%{2,3}|\:{2,3}|_{2,3})" repl="~" on="pmsgid,pmsgstr"
0105 
0106 # Remove some types of paragraph tags.
0107 addFilterHook name="es:remove_subs/remove_tags_without_translation" on="msg"