The Shop > Electronics & IC Programing

Text to G-code?

(1/4) > >>

geoff_p:
I want to engrave some nameplates for my Thai friends.

I have DesKam's DeskEngrave, which does a decent-enough job for Western texts in almost all True-Type Fonts.  But sadly it falls down when the text is not Western, so "Hello World" is good but "สวัสดีชาวโลก" (Thai for Hello World) comes out as "????????????"

Can you suggest a one-stop converter, please?

I really don't want to embed the text in a drawing program (which I don't have) to output DXF, which I can put into a DXF-translator (which I don't have) to be written into a script for the Rasberry Pi (which I don't have) which can be sideloaded to an Arduino-running-GRBL (which I DO have.) (With apologies to Dawai who I think enjoys complexity.)

vtsteam:
Well I'd first separate your software conversion needs from a discussion of hardware or other people's projects if you want to solve the problem efficiently.

And a one-stop converter for Thai text to G-code, only? No work-around solutions allowed? Good luck.

vtsteam:
Also, why won't your Deskengrave handle it? It supposedly accepts TrueType fonts. Are Thai fonts unavailable as TrueType?


Edit:

Here's one.

http://www.thai-language.com/downloads/dbtt.ttf

philf:
Geoff,

Have a look at the free F-Engrave: http://www.scorchworks.com/Fengrave/fengrave.html

I use their free g code ripper programme which is excellent and doesn't require installation - it just runs from an executable.

Cheers.

Phil.

geoff_p:
VTSteam, there are plenty of TT-fonts for the Thai character set.  AngsanaUPC, BrowalliaUPC and CordiaUPC are just the first three to come to mind:  these are recognised by DeskEngrave, and work just like any others on Western texts.  DeskEngrave seems to work well with ASCII-codes up to 255 - have a look at various fonts using Windows Character Map and notice that, after 'no-break space' (0xFF)(U+00A0) the table is blank.

If you now choose a different character-set (but with the same font) the blanks get filled-in.  ก (Kor Kai, the first letter of the Thai alphabet, literally an Egg) is displayed (U+0E01)(0xA1)

I think DeskEngrave was probably not designed to accept the more modern 3- and 4-digit character sets.  I have tried making up some mixed text via Character Map, copying and pasting it into DeskEngrave - results in '??A?B??'

On your last point.  No it's not for just Thai to G-code.  It could equally be Yiddish or Arabic or Chinese.

Phil.  Thanks, I'm trying it just now.

Navigation

[0] Message Index

[#] Next page

Go to full version