lingdb / Sound-Comparisons

Exploring phonetic diversity across language families —
http://www.soundcomparisons.com
Other
13 stars 8 forks source link

Speaker photos for Brazil project #453

Open PaulHeggarty opened 7 years ago

PaulHeggarty commented 7 years ago

On the Malakula section, we have speaker photos for about 40 languages.
These are stored at /srv/soundcomparisons/site/img/contributors/ When you click on a language name in the language column on the left, I presume that the site just looks there to see if there exists a photo with the same filename as that language (followed by _01.jpg), and if one does exist, it shows a link thumbnail next to the language name, and when clicked it shows the full image. I have put this file onto the server, but it doesn’t seem to trigger the correct behaviour when I click on its language name in the website: Br_Tup_Tupari_Makurap_Samba_Dl_01.jpg

Bibiko commented 7 years ago

@LauraWae @PaulHeggarty could you please check if the correct photo comes up now? I believe the adding of such a photo by simply uploading is not enough one also have to re-new the Javascript machinery by so-called grunt. Maybe I find a way to avoid doing this.

Bibiko commented 7 years ago

@LauraWae @PaulHeggarty I looked into the code and I think after uploading a new photo on the server one has to clear the cache in the admin section in order to make it visible.

PaulHeggarty commented 7 years ago

It is working, yes. Thanks! See and click the thumbnail that appears when you click on the language name shown here (only works in Map View for now). screenshot - 2017-03-27 16_00_09

Bibiko commented 7 years ago

only works in Map View for now

this means we should add the photo(s) and name(s) to the Contributors pull-down menu as Speaker somehow as well? [for the Language Site]

PaulHeggarty commented 7 years ago

We should, yes, and it would be quite easy. We'd just need the import system for the Languages csv files to recognise three more fields:
Speaker First Names [Text] Speaker Surnames [Text] Identify Speaker on Website [Boolean] Once this is set up, I'll add these fields to the Languages csv files that are imported.

The background to this is that by default, all linguistic databases like this protect speaker anonymity. But in practice many speakers are fine with -- indeed very keen on -- being identified online as a representative of their language. This is particularly the case for some of our Brazil informants, and perhaps also for some of the Malakula speakers. Certainly there was a specific request from the organisers of both those projects to allow speaker identities and photos to be shown on the website, since that goes down very well when the site is demonstrated back in their home villages.

Bibiko commented 7 years ago

@PaulHeggarty In the DB we've already the fields SpeakerSurnames and SpeakerFirstNames. To add Identify Speaker on Website is simple but what will happen for languages which have more than one speaker, also in respect of pictures?

Bibiko commented 7 years ago

@PaulHeggarty ... and in addition to picture, we've to check the size of these pics before we upload them to the server, example Malakula 37 pics have ~65MB - this is too much - I think 200kB for a pic is really enough even smaller is better. If you want I can correct this.

PaulHeggarty commented 7 years ago

In principle, languages only have one speaker. We could move to a system that allows multiple speakers, but we'll leave that for later. Just presume one for now.