spirali / elsie

Python framework for making slides
MIT License
70 stars 7 forks source link

Unicode support for languages like Vietnamese #80

Open hanhlinux opened 1 year ago

hanhlinux commented 1 year ago

I wonder how I can use Unicode characters like Vietnamese in box().text().

spirali commented 1 year ago

You can use any unicode characters directly:

@slides.slide()
def hello(slide):
    slide.text("Qư QƯ qừ Qừ QỪ qử Qử")

Resulting slide: image

I have tried this and at least on my machine it sees as what I have copy pasted (I cannot verify it as I do not know Vietnamese alphabet)

hanhlinux commented 1 year ago

Thanks for the reply! As what I can see, I think there is a problem with my installed Vietnamese input method on Windows. I also tried with beampy and got the same error. I will try to find the alternatives to my current input method.