Log in

View Full Version : Small and Simple titles in Foreign language


jsada
4th March 2009, 04:52
Issue: Display simple one liners at start of clip in Foreign language

I searched through, only to find Subtitle Workshop type solution. But my
requirement was simple. Just some titles, no conversation. Tedious but
easy solution I found was,

1. Get the ASCII Character Map of your Foreign Font (may work with Unicode)
2. Identify the character you want to print with its ASCII value
3. Use "chr" call to form your string to display

Here is pseudo example,

ch1 = Chr(251)
ch2 = Chr(101)
ch3 = Chr(252)
Bar = Chr(249)
ch4 = Chr(157)

title = ch1 + ch4 + Bar + "\n" + ch2 + ch1 + ch5 + " " + ch3 + ch4 + ch1
return clip1.Subtitle(title, -1, -1, 0, 50, "FOREIGN_FONT", 60, color_yellow, lsp=3)


I am hoping there would be better ways of doing this.:o