As promised, a technical write-up about the knowledge-journey I went on to implement Japanese Unicode support in my software-rendered retro game engine.

There's a lot of juicy bits here about Unicode, string parsing, localization strategies, and more! Enjoy!

https://blog.brianna.town/japanese-font-support

#gamedev #indiedev #japanese #retrocomputing #unicode #gaming #pixelart

Japanese Font Support

Or: The Least Critical-Path Feature I Could Have Possibly Spent a Day On The General Plan Localization has been on my mind a bit recen...

The Ebonheim Chronicle
@britown is accept style parsing your technique? Cause I couldn't find anything about it when Googling it
@eniko definitely not mine but I never know how to describe it, the wiki page for recursive descent parser is somewhat close, basically following an EBNF and then back tracking if a term fails, I can send you an example later if you'd like ☺️
@britown yeah that'd be helpful!

@eniko I put together a snippet for the code that parses my little scripting language that I showed off here: https://mastodon.gamedev.place/@britown/112736650843336944

Snippet: https://git.brianna.town/-/snippets/3

An accept function checks the current cursor for a condition, returns t/f, and if it is true, moves the cursor forward to the next character. Every accept function uses a collection of accepts defined before it.

So for an EBNF there's a 1:1 relationship between the grammar terms and accept() functions.

Brianna Townsend 👻 (@[email protected])

Attached: 1 image Sure ok let's hook up a code editor with custom syntax highlighting so we can write these scripts easily with error checking and auto-completion BalazsJako's ImGuiColorTextEdit is an older widget but it checks out #gamedev

Gamedev Mastodon