Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Implement links to speakers (individually and collectively) from itwêwina #111

Open
2 tasks
aarppe opened this issue Jan 8, 2019 · 4 comments
Open
2 tasks
Assignees

Comments

@aarppe
Copy link
Contributor

aarppe commented Jan 8, 2019

  • links to individual speakers from individual recordings spoken by them
  • link to collective speaker/project page either as a speaker tab and/or from the About page
  1. clicking speaker name in conjunction with the recording snippet in itwêwina either takes one to that speaker's picture and bio page (so simply a link is required) - if this is created within the validation app, then itwêwina just needs to treat it properly.

  2. Clicking a 'Speakers' tab, or clicking a link on the itwêwina About page will follow a link to wherever under the validation app we end up placing info on the speakers as a whole, and about the project, and that page will then have further links to get more info on the individual speakers.

So, this is connected with making the speaker info available under the validation app, i.e. issue UAlbertaALTLab/recording-validation-interface#35 in that project.

@aarppe aarppe changed the title Add links to speakers (individually and collectively) from itwêwina Implement links to speakers (individually and collectively) from itwêwina Jan 8, 2019
@aarppe
Copy link
Contributor Author

aarppe commented Jan 17, 2019

Temporary solution available as under a newly-created project webpage:

http://altlab.ualberta.ca/maskwacis/Speakers/speakers.html

This is located on sapir in:

/var/www/maskwacis/Speakers

... under the general project page:

/var/www/maskwacis

The above page (for speakers) presents the pictures (with names) that we have managed to take of the speakers. Clicking the individual speaker thumbnail produces a full-size picture. Later on, this full-size picture should have a Cree and English bio text to the right (or alternatively implemented through the validation app).

@aarppe
Copy link
Contributor Author

aarppe commented Jan 17, 2019

Also, if there an straight-forward way to substantially decrease the sizes of the speakers (and project) pics in batch, that would be good for speeding up the loading of these webpages.

@eddieantonio
Copy link
Member

eddieantonio commented Jan 17, 2019

Also, if there an straight-forward way to substantially decrease the sizes of the speakers (and project) pics in batch, that would be good for speeding up the loading of these webpages.

Make back ups of all of the images, and look into ImageMagick, particularly its convert command.

EDIT: I installed imgcat on Sapir, so you can preview changes to images when SSH'd into it.

@aarppe
Copy link
Contributor Author

aarppe commented Jan 18, 2019

I've now revised the implementation of each speaker picture so that for each Cree speaker we have an *.html file, the name of which prefixed with their speaker code, e.g. MAR.html for MJL. These *.html files contain some CSS styling and other formatting that provides the full name in the <title> element, setting black as the background, and window-size-dependent resizing of the image. This solution allows for the addition of the Cree and English speaker bio texts, as e.g. a pane on the right-hand side, once we are able to collect that information.

All the above mentioned XXX.html files are to be found through the following URL:

http://altlab.ualberta.ca/maskwacis/Speakers/

For instance, for Cree speaker MJL the correspoding speaker bio/picture *.html file is as follows:

http://altlab.ualberta.ca/maskwacis/Speakers/MAR.html

I've also used ImageMagick/convert to adjust the file size as approx. 256k, with all images being in JPG format and named as *.jpg. This size appears to retain sufficient quality, but could be potentially upped to 512k, if we come to that conclusion later.

Therefore, linking the speaker info in conjunction with the audio snippets with the speaker-specific webpages (now with just their name and picture) should now be straight-forward to implement through the validation app, making use of the speaker code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants