Closed GoogleCodeExporter closed 9 years ago
The language code you specify in Rainbow can be set to upper or lower cases in
Rainbow's UI, but when used it is normalized as lowercases. So when you specify
"DE-DE" it's actually using "de-de" during the process.
We need to update the documentation for this.
Original comment by yves.sav...@gmail.com
on 13 Jan 2015 at 11:53
I had a similar issue "UTF-8" and "utf-8". Could you e.g. make the two input
field converting erverything to lower case so that the user can see this
behavior on the frontend? If it's just put on the documentation it might be
overseen.
Original comment by m...@sebastianebert.com
on 13 Jan 2015 at 12:57
Documentation has been updated.
Original comment by yves.sav...@gmail.com
on 20 Jan 2015 at 12:07
OK, does this mean that one can either enter capital or lower letters on
rainbow in the future to avoid this problem?
Original comment by m...@sebastianebert.com
on 21 Jan 2015 at 7:38
No, it means the documentation now includes a note pointing out the potential
issue.
Ratel is not used to edit SRX rules that are only used with other Okapi tools.
Other tools may or may not normalize their language codes when using SRX, so we
cannot assume one case or the other.
The solution is to write the regular expression in a way that it is not
case-sensitive so it always works. For example use '[Ee][Nn].*' instead of
'en.*' or 'EN.*'.
See for example the map at the end the sample SRX that comes with the
specification:
http://www.gala-global.org/oscarStandards/srx/srx20.html#AppSample
Original comment by yves.sav...@gmail.com
on 21 Jan 2015 at 12:09
Original issue reported on code.google.com by
m...@sebastianebert.com
on 13 Jan 2015 at 7:53