paolobenve / myphotoshare

MOVED TO GITLAB! --- A Web 2.0 Photo Gallery Done Right via Static JSON, Dynamic Javascript and a bit of php for sharing
15 stars 0 forks source link

Problems with non-occidental languages? #92

Closed paolobenve closed 6 years ago

paolobenve commented 6 years ago

Myphotoshare works quite well with occidental languages, but I gave it a try with some media name in various oriental languages.

What I saw:

Perhaps more problems are there.

paolobenve commented 6 years ago

maybe the solution is to follow https://dmitripavlutin.com/what-every-javascript-developer-should-know-about-unicode/ hints?

Surely a root of the problem is the fact that python generates the search album names converting any unicode character to its ascii equivalent; so, in order to connect the search string with the results we must convert the search string the same way python does: this way we could read the corresponding search albums, and match the media names.

paolobenve commented 6 years ago

Added an explication in issues page: in languages like chines problably every ideogram is a word (but it's not sure it is every time), but considering an ideogram as a word would probably bloat the code, so the scanner keep treating as words the entities separated by white spaces.