💬 Better alts
This commit is contained in:
parent
3a93952adc
commit
eec1c50693
2 changed files with 85 additions and 1 deletions
84
data.json
84
data.json
|
@ -2,6 +2,10 @@
|
|||
{
|
||||
"source": "./sources/pride.gif",
|
||||
"name": {"en":"Pride", "fr":"Pride"},
|
||||
"alt": {
|
||||
"en":"rainbow with yellow (with a violet circle), white, pink, skyblue, brown and black triangles",
|
||||
"fr":"arc en ciel vertical, avec des triangles jaune (avec un cercle violet), blanc, rose, bleu ciel, marron et noir."
|
||||
},
|
||||
"texts": [
|
||||
"LGBTQ+", "proud", "fier⋅e", "fier", "fière", "queer",
|
||||
"LGBTQ+\n& proud", "queer\n& proud",
|
||||
|
@ -20,6 +24,10 @@
|
|||
},
|
||||
{
|
||||
"source": "./sources/ace.gif",
|
||||
"alt": {
|
||||
"en":"with black, gray, white and purple horizontal stripes",
|
||||
"fr":"avec des bandes horizontales noires, grises, blanches et violetes"
|
||||
},
|
||||
"name": {"en":"Asexual", "fr":"Asexuel"},
|
||||
"texts": [
|
||||
"ace", "asexual", "asexuel", "asexuelle", "asexuel⋅le",
|
||||
|
@ -34,6 +42,10 @@
|
|||
{
|
||||
"source": "./sources/aroace.gif",
|
||||
"name": {"en":"Aro&ace", "fr":"Aro&ace"},
|
||||
"alt": {
|
||||
"en":"with black, gray, white and purple horizontal stripes",
|
||||
"fr":"avec des bandes horizontales noires, grises, blanches et violetes"
|
||||
},
|
||||
"texts": [
|
||||
"aroace", "aro & ace",
|
||||
"aroace\n& proud", "aro & ace\n& proud",
|
||||
|
@ -47,6 +59,10 @@
|
|||
{
|
||||
"source": "./sources/aroace-2.gif",
|
||||
"name": {"en":"Aroace", "fr":"Aroace"},
|
||||
"alt": {
|
||||
"en":"with light and dark yellow, white, light and dark blue horizontal stripes",
|
||||
"fr":"avec des bandes horizontales jaunes claires et foncée, blanche, bleu clair et foncé"
|
||||
},
|
||||
"texts": [
|
||||
"aroace", "aro & ace",
|
||||
"aroace\n& proud", "aro & ace\n& proud",
|
||||
|
@ -60,6 +76,10 @@
|
|||
{
|
||||
"source": "./sources/agender.gif",
|
||||
"name": {"en":"Agender", "fr":"Agenre"},
|
||||
"alt": {
|
||||
"en":"with black, grey, white, grey, green, grey, white and black horizontal stripes",
|
||||
"fr":"avec des bandes horizontales noire, grises, blanches, vertes, blanches, grises et noires"
|
||||
},
|
||||
"texts": [
|
||||
"agender", "agenre",
|
||||
"agender\n& proud",
|
||||
|
@ -73,6 +93,10 @@
|
|||
{
|
||||
"source": "./sources/aromantic.gif",
|
||||
"name": {"en":"Aromantic", "fr":"Aromantique"},
|
||||
"alt": {
|
||||
"en":"with dark and light green, white, grey, black horizontal stripes",
|
||||
"fr":"avec des bandes horizontales vertes foncé puis clair, blanches, grises et noires"
|
||||
},
|
||||
"texts": [
|
||||
"aromantic", "aromantique", "aro",
|
||||
"aromantic\n& proud", "aro\n& proud",
|
||||
|
@ -85,6 +109,10 @@
|
|||
},
|
||||
{
|
||||
"source": "./sources/bisexual.gif",
|
||||
"alt": {
|
||||
"en":"with magenta (big), violet (small) and blue (big) horizontal stripes",
|
||||
"fr":"avec des bandes horizontales magenta (grande), violet (petite) et bleu (grande)"
|
||||
},
|
||||
"name": {"en":"Bisexual", "fr":"Bisexuel"},
|
||||
"texts": [
|
||||
"bisexual", "bisexuel", "bisexuelle", "bisexuel⋅le", "bi",
|
||||
|
@ -99,6 +127,10 @@
|
|||
{
|
||||
"source": "./sources/demiboy.gif",
|
||||
"name": {"en":"Demiboy", "fr":"Demigars"},
|
||||
"alt": {
|
||||
"en":"with dark and light grey, light blue, white, light blue, light and dark grey horizontal stripes",
|
||||
"fr":"avec des bandes horizontales grises foncé et claires, bleu clair, blanc, bleu clair, grises claire et foncé"
|
||||
},
|
||||
"texts": [
|
||||
"demiboy", "demiman", "demigars", "demihomme", "demimec",
|
||||
"demiboy\n& proud", "demiman\n& proud",
|
||||
|
@ -111,6 +143,10 @@
|
|||
{
|
||||
"source": "./sources/demigirl.gif",
|
||||
"name": {"en":"Demigirl", "fr":"Demifille"},
|
||||
"alt": {
|
||||
"en":"with dark and light grey, light pink, white, light pink, light and dark grey horizontal stripes",
|
||||
"fr":"avec des bandes horizontales grises foncé et claires, rose clair, blanc, rose clair, grises claire et foncé"
|
||||
},
|
||||
"texts": [
|
||||
"demigirl", "demiwoman", "demifemme", "demifille", "demimeuf",
|
||||
"demigirl\n& proud", "demiwoman\n& proud",
|
||||
|
@ -123,6 +159,10 @@
|
|||
{
|
||||
"source": "./sources/demigender.gif",
|
||||
"name": {"en":"Demigender", "fr":"Demigenre"},
|
||||
"alt": {
|
||||
"en":"with dark and light grey, light yellow, white, light yellow, light and dark grey horizontal stripes",
|
||||
"fr":"avec des bandes horizontales grises foncé et claires, jaune clair, blanc, jaune clair, grises claire et foncé"
|
||||
},
|
||||
"texts": [
|
||||
"demigender", "demigenre",
|
||||
"demigender\n& proud",
|
||||
|
@ -136,6 +176,10 @@
|
|||
{
|
||||
"source": "./sources/demiromantic.gif",
|
||||
"name": {"en":"Demiromantic", "fr":"Demiromantique"},
|
||||
"alt": {
|
||||
"en":"with white and grey horizontal stripes, with a green in between and a black triangle on the left",
|
||||
"fr":"avec des bandes horizontales grises blanche et grise avec du vert au milieu, et un triangle noir sur la gauche"
|
||||
},
|
||||
"texts": [
|
||||
"demiromantic", "demiromantique", "demirom", "demiaro",
|
||||
"demiromantic\n& proud", "demirom\n& proud", "demiaro\n& proud",
|
||||
|
@ -149,6 +193,10 @@
|
|||
{
|
||||
"source": "./sources/demisexual.gif",
|
||||
"name": {"en":"Demisexual", "fr":"Demisexuel"},
|
||||
"alt": {
|
||||
"en":"with white and grey horizontal stripes, with a purple in between and a black triangle on the left",
|
||||
"fr":"avec des bandes horizontales grises blanche et grise avec du violet au milieu, et un triangle noir sur la gauche"
|
||||
},
|
||||
"texts": [
|
||||
"demisexual", "demisexuel", "demisexuelle", "demisexuel⋅le", "demiace",
|
||||
"demisexual\n& proud", "demiace\n& proud",
|
||||
|
@ -162,6 +210,10 @@
|
|||
{
|
||||
"source": "./sources/genderfluid.gif",
|
||||
"name": {"en":"Genderfluid", "fr":"Genderfluide"},
|
||||
"alt": {
|
||||
"en":"with pink, white, magenta, dark and light violet horizontal stripes",
|
||||
"fr":"avec des bandes horizontales rose, blanches, magenta, violet foncé puis clair"
|
||||
},
|
||||
"texts": [
|
||||
"genderfluid", "genderfluide",
|
||||
"genderfluid\n& proud",
|
||||
|
@ -175,6 +227,10 @@
|
|||
{
|
||||
"source": "./sources/genderflux.gif",
|
||||
"name": {"en":"Genderflux", "fr":"Genderflux"},
|
||||
"alt": {
|
||||
"en":"with a gradient of pink to blue horizontal stripes, with a yellow one under",
|
||||
"fr":"avec des bandes horizontales en degradés rose à bleu, avec une jaune en dessous"
|
||||
},
|
||||
"texts": [
|
||||
"genderflux",
|
||||
"genderflux\n& proud",
|
||||
|
@ -188,6 +244,10 @@
|
|||
{
|
||||
"source": "./sources/gay.gif",
|
||||
"name": {"en":"Gay", "fr":"Gay"},
|
||||
"alt": {
|
||||
"en":"with a gradient of green to white horizontal stripes, then under a white to dark blue one ",
|
||||
"fr":"avec des bandes horizontales en degradés de vert à blanc, puis de blanc à bleu foncé"
|
||||
},
|
||||
"texts": [
|
||||
"gay", "homosexuel", "homosexuel⋅le",
|
||||
"gay\n& proud",
|
||||
|
@ -199,6 +259,10 @@
|
|||
},
|
||||
{
|
||||
"source": "./sources/intersex-1.gif",
|
||||
"alt": {
|
||||
"en":"yellow with a violet circle",
|
||||
"fr":"jaune avec un cercle violet"
|
||||
},
|
||||
"name": {"en":"Intersex", "fr":"Intersexe"},
|
||||
"texts": [
|
||||
"Intersex", "Intersexe",
|
||||
|
@ -213,6 +277,10 @@
|
|||
{
|
||||
"source": "./sources/lesbian.gif",
|
||||
"name": {"en":"Lesbian", "fr":"Lesbienne"},
|
||||
"alt": {
|
||||
"en":"with a gradient of orange to white horizontal stripes, then under a white to dark pink one ",
|
||||
"fr":"avec des bandes horizontales en degradés de orange à blanc, puis de blanc à rose foncé"
|
||||
},
|
||||
"texts": [
|
||||
"lesbienne", "lesbian", "homosexuelle", "homosexuel⋅le",
|
||||
"lesbian\n& proud",
|
||||
|
@ -225,6 +293,10 @@
|
|||
{
|
||||
"source": "./sources/nonbinary.gif",
|
||||
"name": {"en":"Non-Binary", "fr":"Non-binaire"},
|
||||
"alt": {
|
||||
"en":"with a yellow, white, violet, dark grey horizontal stripes",
|
||||
"fr":"avec des bandes horizontales jaune, blanche, violete, grise foncé"
|
||||
},
|
||||
"texts": [
|
||||
"non-binary", "non-binaire", "enby", "nb",
|
||||
"nb\n& proud", "enby\n& proud", "non-binary\n& proud",
|
||||
|
@ -238,6 +310,10 @@
|
|||
{
|
||||
"source": "./sources/pansexual.gif",
|
||||
"name": {"en":"Pansexual", "fr":"Pansexuel"},
|
||||
"alt": {
|
||||
"en":"with a pink, yellow, blue horizontal stripes",
|
||||
"fr":"avec des bandes horizontales rose, jaune et bleu"
|
||||
},
|
||||
"texts": [
|
||||
"pansexual", "pan", "pansexuel", "pansexuelle", "pansexuel⋅le",
|
||||
"pansexual\n& proud", "pan\n& proud",
|
||||
|
@ -250,6 +326,10 @@
|
|||
},
|
||||
{
|
||||
"source": "./sources/polyamour-2.gif",
|
||||
"alt": {
|
||||
"en":"with a bleu, red, black horizontal stripes with a pi",
|
||||
"fr":"avec des bandes horizontales bleu, rouge, noire avec un pi"
|
||||
},
|
||||
"name": {"en":"Polyamourous", "fr":"Polyamour"},
|
||||
"texts": [
|
||||
"Polyamourous", "Polyamour", "poly",
|
||||
|
@ -262,6 +342,10 @@
|
|||
{
|
||||
"source": "./sources/trans.gif",
|
||||
"name": {"en":"Transgender", "fr":"Transgenre"},
|
||||
"alt": {
|
||||
"en":"with a skyblue, light pink, white, light pink and skyblue stripes",
|
||||
"fr":"avec des bandes horizontales bleu ciel, rose clair, blanc, rose clair et bleu ciel"
|
||||
},
|
||||
"texts": [
|
||||
"transgender", "transgenre", "trans",
|
||||
"transgender\n& proud", "trans\n& proud",
|
||||
|
|
2
main.js
2
main.js
|
@ -42,7 +42,7 @@ function createButton(source, x, y, text, gravity) {
|
|||
function createMetadatas(prideflag, text, now = false) {
|
||||
const filename = createFilename(prideflag, text, now);
|
||||
const textForAlt = text.replaceAll("\n", " ").toLowerCase();
|
||||
const alt = `Drapeau ${prideflag.name.fr.toLowerCase()} avec écrit "${textForAlt}${now?", now!": ""}"`
|
||||
const alt = `Drapeau ${prideflag.name.fr.toLowerCase()} (${prideflag.alt.fr}) avec écrit "${textForAlt}${now?", now!": ""}"`
|
||||
return {file:filename, alt:alt, text:textForAlt};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue