Hi Ralph, thanks a lot for your answer. Your command works fine. I wondered where do you have this information from: I was searching in man groff about the -k option, than in man preconv. I understood that -k make use of preconv, which can convert utf-8 to Latin1.
I can find out by myself with which caracters I will have to use "\n". But try this: printf 'testé\n, ü\nber, ç\na' | groff -k -me -X There is a space too much between é and , because of \n Is there a solution for that? I tried something myself: The following command is not the solution: printf 'testé\, ü\ber, ç\a' | groff -k -me -X ... further I was reading around in the manual about groff -k and after which characters you have to use \n. I didn't found anything. You are great help for me. many greathings, Grégoire Le dimanche 04 août 2013 à 19:20 +0100, Ralph Corderoy a écrit : > Hi, > > > The commands you send to me works fine for me too. My point is: in > > place of: > > $ printf 'test\xe9\n' | groff -me -mlatin9 -X > > it would be much faster and easier to write > > $ printf 'testé' | groff -me -mlatin9 -X > > but this command doesn't work > > troff takes ISO-8859-1 as its default input. If you want to feed it > UTF-8 then look at groff's -k option. Try > > printf 'testé\n' | groff -k -me -X > > > I don't understand what is the use of -mlatin9 because > > $ printf 'test\xe9\n' | groff -me -mlatin9 -X > > ...give the same result as > > $ printf 'test\xe9\n' | groff -me -X > > troff's default for input is ISO-8859-1. 9 is very similar to 1 so you > aren't seeing any differences in your test. Using a Euro symbol may > help. > > Cheers, Ralph.