Closed udnp closed 6 years ago
I've checked this PR with some Alolan pokemons in Spanish locale.
07-30 14:48:59.529 19681-19681/com.swanberg.pogoiv.nointernet.debug D/xxx: PokeInfoCalculator#getTypeName() typeName:PSÍQUICO
07-30 14:48:59.531 19681-19681/com.swanberg.pogoiv.nointernet.debug D/xxx: PokeInfoCalculator#getTypeName() cleanedType:PSIQUICO
-> OK.
07-30 14:52:44.672 19681-19681/com.swanberg.pogoiv.nointernet.debug D/xxx: PokeInfoCalculator#getTypeName() typeName:DRAGÓN
07-30 14:52:44.674 19681-19681/com.swanberg.pogoiv.nointernet.debug D/xxx: PokeInfoCalculator#getTypeName() cleanedType:DRAGON
-> OK
07-30 14:52:30.519 19681-19681/com.swanberg.pogoiv.nointernet.debug D/xxx: PokeInfoCalculator#getTypeName() typeName:ELÉCTRICO
07-30 14:52:30.521 19681-19681/com.swanberg.pogoiv.nointernet.debug D/xxx: PokeInfoCalculator#getTypeName() cleanedType:ELECTRICO
-> OK
I've seen sometimes Alolan Raichu can not be detected. It seems just because scanned pokemon type is wrong.
07-30 14:48:59.528 19681-19681/com.swanberg.pogoiv.nointernet.debug D/xxx: ScanData#getPokemonType() pokemonType:ELECTRICO / pleUIco
This PR is a minor improvement for Latin characters (but critical fix for the other characters...) because in non Latin characters the needed characters to detect Pokemon name are removed.
It should be better that the "combining characters" are removed instead of non ascii characters.
https://en.wikipedia.org/wiki/Combining_character