I’m sorry, I don’t… really understand. Could you show me what you mean in screenshots? I’m a visual learner, and I’m afraid to mess this one up. Here, I’ll show you screenshots of each file, so that we can figure out what to do.
So it should show the image when you open index.html. I’m not sure what’s going wrong but I’ve just tried from first principles to make the minimum working version with a project file I don’t mind if I mess up. What I did was:
If this test approach works for you (it should!) then you made a mis-step before somewhere and that can be discovered. If it doesn’t work then the problem is arising from your setup: your browser could have an extension blocking things for example.
And suddenly it worked. I don’t know why. But I guess I just can’t use image folders for some reason…? I dunno.
On the bright side, it will still work! Now I just have to make a list of all the words I’mma be using, and then make the images for them. …this is gonna be a lot. XD
Edit:
ANNNND I JUST BROKE IT. It was working just fine, and then I added an img_ in front of each of the photo names, so that they’d at least all be in order together, for some sort of organisation? AND NOW IT DOESNT WORK AGAIN.
Edit-Edit: AND NOW IT WORKS AGAIN. TAT I’m so annoyed. I refreshed it and it worked??? I dunno why the FIRST refresh didn’t work, but okay then I guess.
I am just using some very basic commands. Let’s say we have two variables: translation on and translation off. Then we need a single tag: ton (translation on), which is if true adds translation. So the code we need is:
*create ton false
*set ton true (if the reader chooses aided translations)
And the text code would look like this:
“Lika bra att ta en test mening på svenska,”
*if ton
[“Might as well use a Swedish test sentence,”]
they said, sitting at their computer.
This is a very sweet and simple option, if the language you’re working with works with only the roman alphabet (or something equiavalent). But because I’m working with Cantonese, whos alphabet is pictographical, there are actually 3 levels of translation I would need, English, Pinyin, and then the ACTUAL Cantonese alphabet. @Phenrex’ system is similar to this but uses arrays to hold the variables. It’s quite elegant!
I am planning on making a thread once a public version of my new demo is up but the system I’m currently doing is not overly complex in my mind. The automatic translation is the most obnoxious part since it relies on a loop set up with an array that serves as an index for other arrays. Talking through coming up with it would be pretty laborious so I am putting it off until a time where I am confident it’s in a more finalised state.
I’m sure it’s nothing that hasn’t been done before, but I’m pretty proud of how it’s turning out! I am getting some ideas from what people are talking about for incorporating definitions/clarity into terms as they are used.