News for hackers. Stuff that matters.
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by 999900000999 on Monday February 03, 2025 @02:52PM (#42922092)
Very neat!

I've only studied Mandarin though, are you aware of a similar game for that ?

Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by fearedbliss on Monday February 03, 2025 @02:55PM (#42922133)
Not that I'm aware of. I believe I'm the first person to frame (and in a way "open source") a language program in this type of way. My perspective is a mixture of a lot of different things including my love for Diablo 1 (and its minimalism and simplicity) and 2 (Original, not Resurrected).
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by Svoka on Monday February 03, 2025 @05:09PM (#42923958)
This is amazing! Consider potentially adding support for WebSpeech api to make it easier. Something like

    const voice = speechSynthesis.getVoices().filter(e => e.lang==='zh-HK').at(-1)
    const utterance = new SpeechSynthesisUtterance('你好')
    utterance.voice = voice
    speechSynthesis.speak(utterance)
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by fearedbliss on Monday February 03, 2025 @09:57PM (#42927181)
Thanks for the suggestion. Take a look at my other reply above, but The Cantonese Scrolls is a project that needs to be able to run offline, directly in your web browser, with no network calls. I allow everyone to download the entire project and self study offline or self host it if they want. This serves as both a backup mechanism, and a defense mechanism against any potential government censorship by countries that don't want Cantonese to exist.
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by mdaniel on Tuesday February 04, 2025 @11:03AM (#42934132)
It's your project, I just wanted to point out that the code snippet the GP posted works offline, subject to the user having the voices installed. My `speechSynthesis.getVoices().filter(e => e.lang==='zh-HK')` returned nothing but it still tried to speak something anyway, even with the networking turned off on my computer

https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_...

Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by chongli on Monday February 03, 2025 @04:49PM (#42923699)
I have been using Duolingo for a couple years to learn some Mandarin. Its resources are pretty good, if a bit dodgy here and there (some occasional weird pronunciations or translations).

I'm really excited about a Cantonese resource though. I have a few Cantonese-speaking friends and I would love to learn some myself!

Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by ilamont on Monday February 03, 2025 @07:33PM (#42925614)
I've seen weird tones, but IMHO the biggest limitation of Duolingo Mandarin is the lack of a traditional character option.
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by fearedbliss on Monday February 03, 2025 @10:03PM (#42927248)
Thank you :). Definitely feel free to use, download and share 粵卷 for your learning. I'll be continuing to make improvements to it over time. This is a life long project of mine so expect more improvements as my Cantonese develops.
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by KerryJones on Monday February 03, 2025 @06:08PM (#42924667)
Came here to ask for the same thing.
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin... by peterburkimsher on Monday February 03, 2025 @07:10PM (#42925303)
Pingtype isn't a game, but you might find it interesting. It does the pinyin and word-by-word romanisation of whatever text you put in.

https://pingtype.github.io