I've got myself into experimenting with groff and from the start I found out the romanian special characters I type in vim are all fine (I ran setxkbmap ro
), but get messed up in the pdf export.
Running
groff -Tpdf -ms letext.ms > letext.pdf
instead of ășâțî ĂȘÂȚÎ I get all kinds of other special characters.
Running
groff -Kutf8 -Tpdf -ms letext.ms > letext.pdf
some of the characters I want remain, but the others disppear and I get this message in the terminal
warning: can't find special character `u0074_0326'
warning: can't find special character `u0061_0306'
warning: can't find special character `u0073_0326'
warning: can't find special character `u0041_0306'
warning: can't find special character `u0053_0326'
warning: can't find special character `u0054_0326'
Should I edit the tmacs to get the characters I want? Should I write another tmac with the characters I want and load that instead?
EDIT#1
As Philip Couling suggested, I wrote ășâțî ĂȘÂȚÎ in a file letest.txt
and ran hexdump -C letest.txt
on it.
Here are the results.
letext.ms
is written in. Preferably writeășâțî ĂȘÂȚÎ
into a text file with vi and thenhexdump -C testfile.txt
and edit the result into your question. Character sets are tricky, you always need to know what you are converting from.