From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-01.scc.kit.edu (scc-mailout-kit-01.scc.kit.edu [129.13.231.81]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id acf31809 for ; Mon, 19 Nov 2018 11:07:32 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-01.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1gOm5C-0003Or-Pm; Mon, 19 Nov 2018 17:07:31 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1gOm5B-0002jf-FK; Mon, 19 Nov 2018 17:07:29 +0100 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1gOm5B-0003V4-6y; Mon, 19 Nov 2018 17:07:29 +0100 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 61ccb31c; Mon, 19 Nov 2018 17:07:29 +0100 (CET) Date: Mon, 19 Nov 2018 17:07:29 +0100 From: Ingo Schwarze To: Marcin Karpezo Cc: discuss@mandoc.bsd.lv Subject: Re: Bad national charachers renndering in PDF Message-ID: <20181119160729.GD21123@athene.usta.de> References: <20181119133105.GA19234@mail.freearts.agency> <340.1542635529@cathet.us> <20181119140639.GC21123@athene.usta.de> <20181119141953.GC19234@mail.freearts.agency> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181119141953.GC19234@mail.freearts.agency> User-Agent: Mutt/1.8.0 (2017-02-23) Hi Marcin, Marcin Karpezo wrote on Mon, Nov 19, 2018 at 03:19:53PM +0100: > Do you by any chance have some command example to get that from Groff? > I've tried several options I've found in manuals and onlie sources but > results look worse then mandoc output. Charachers are either printent > with fre alphanums or do not printed at all. A default installation of the groff PostScript and PDF output devices does not include a font that supports the Polish language. Did you install such a font? If not, the gropdf(1) manual page explains how to do that, below "FONT INSTALLATION". Once you have a font installed, both of the following commands are supposed to work: $ groff -k -mandoc -T pdf /usr/local/man/pl/man6/wesnothd.6 > /tmp/tmp.pdf $ pdfroff -k -mandoc /usr/local/man/pl/man6/wesnothd.6 > /tmp/tmp.pdf (Sorry for the silly example, that's the only Polish manual page i happen to have installed right now...) In addition to the options shown above, you might also need the -f option documented in the groff(1) manual page to actually select the font family you just installed instead of the default, Times New Roman. If you have no suitable font family installed, you will see error messages similar to the following, and wrong glyphs in the output file: troff: wesnothd.6:29: warning: can't find special character 'u0073_0301' troff: wesnothd.6:29: warning: can't find special character 'u007A_0307' troff: wesnothd.6:46: warning: can't find special character 'u0065_0328' troff: wesnothd.6:46: warning: can't find special character 'u0061_0328' troff: wesnothd.6:53: warning: can't find special character 'u006E_0301' troff: wesnothd.6:158: warning: can't find special character 'u0053_0301' troff: wesnothd.6:297: warning: can't find special character 'u005A_0307' troff: wesnothd.6:297: warning: can't find special character 'u0045_0328' troff: wesnothd.6:297: warning: can't find special character 'u0041_0328' While mandoc tries to make *reading* manual pages simple and hence does not require any fancy options or configuration for the -T utf8 and -T html output modes, real typesetting to PostScript or PDF is unfortunately still somewhat tricky even in the 21st century and still requires configuring quite a bit of stuff... :-( Yours, Ingo -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv