eurkrj
(Krzysztof Jozefowicz)
1
I’m trying to use LT for checking property files. They contain placeholders. For example:
The last modified value is currently “{LAST_MODIFIED}”
The specified name for the object type “{Name}” is invalid.
How can I tell LT to ignore checking of strings within curly braces?
Ruud_Baars
(Ruud Baars)
2
You could at least remove them from spell checker with an extra disambiguator rule. Is it only spell checking you want to ignore these in?
eurkrj
(Krzysztof Jozefowicz)
3
Actually I would like to remove them from any checks. Any idea how to?
eurkrj
(Krzysztof Jozefowicz)
5
Do you mean something like this:
<pattern>
<token regexp=“yes”>\{.+\}</token>
</pattern>
<disambig action=“immunize”/>
?
It doesn’t seem to work:
1.) Line 7, column 31, Rule ID: MORFOLOGIK_RULE_EN_US
Message: Possible spelling mistake found
Unrecognized activity type: “{activityType}”
Ruud_Baars
(Ruud Baars)
6
I guess best would be:
<token>{</token>
<token spacebefore="no" />
<token spacebefore="no">}</token>
I suspect the tokenizer will see the brackets as separate tokens. You can leave the 'spacebeore=“no” out, but this is a bit more precise.