/
Support for composing modern Hangul Jamo into Hangul syllables. This only supports modern jamo and follows the composition calculation to map proper jamo sequences to pre-composed Unicode characters.
Also now includes fabric-resource-loader-v0 just in case so textures will for sure show. Would have silently needed Fabric API.
The internals are still being polished. You can check the first few lines of
the GlomphoscheImpl class and even the mentioned Node classes there that you
may find of interest.
import io.github.startsmercury.glomphosche.impl.client.GlomphoscheImpl;
import net.minecraft.network.chat.FontDescription;
class Example
{
void initialize()
{
// register modern Hangul Jamo handler, or your own handler
// for a different use, if you implemented one
GlomphoscheImpl.ROOT
.inner()
.add(new ComposableHangulJamoNode());
// the letter 'f'
Node node1 = GlomphoscheImpl.LOOKUP
.computeDiscreteIfAbsent('f');
// the theoretical glyph 'fi'
Node node2 = node1.getOrCreate('i');
// register the font that retextures 'f' as the glyph representing 'fi'
node2.register(FontDescription.DEFAULT); // replace with your own
// This one is for 'ffi' by retexturing 'f'
GlomphoscheImpl.ROOT
.getOrCreate('f')
.getOrCreate('f')
.getOrCreate('i')
// replace with your own
.register(FontDescription.DEFAULT);
}
}
Great help from https://steve-p.org/korean/. Explained the concepts and had the formula to calculate the precomposed syllables!