From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.freearts.agency (mail.freearts.agency [51.68.137.137]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 529f455e for ; Mon, 19 Nov 2018 12:17:26 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: marcin@karpezo.pl) by mail.freearts.agency (Postcow) with ESMTPSA id DDBC241468 for ; Mon, 19 Nov 2018 18:17:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=karpezo.pl; s=dkim; t=1542647836; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UJ/6KrdLP0MWeqK3qJ+N1XbbY2zXVBxQHUOPJ30IPxQ=; b=FcTb1Nt0FCLKG6B8tZa7kV6nZnfFFNdWgvqYfwKKRmbAvTS90atH4C7K6TdIpsNiCwuFwH 1fOIe5GoeQzHSJtmhk4PYABRJzuLOcO3arL8OeHrK+qV5pZyqBJSWOhHUrLMee6c8P6av9 VBLZT0T4pQ3MQc3xMXfANAPDCD3Kx4RQE9HKmOFhdG+KEYtb+P+gLr8599dubVD58w0wva 9pFwRlTioC5ldVUCSCzurLkD1bTNYNci/R3DdaSYWSYx6Y2rs4r0/Je9NFRK+Xd6PQ12Y3 L54PHEsCkXVSgTKYAacWiLpluKwpYGVwGCJPG/ubcfj3pTTSMWyAiRSUc/44BQ== Date: Mon, 19 Nov 2018 18:17:04 +0100 From: Marcin Karpezo To: discuss@mandoc.bsd.lv Subject: Re: Bad national charachers renndering in PDF Message-ID: <20181119171701.GA12677@mail.freearts.agency> References: <20181119133105.GA19234@mail.freearts.agency> <340.1542635529@cathet.us> <20181119140639.GC21123@athene.usta.de> <20181119141953.GC19234@mail.freearts.agency> <20181119160729.GD21123@athene.usta.de> 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: <20181119160729.GD21123@athene.usta.de> User-Agent: Microsoft Office/14.0 (Windows NT 6.0; Microsoft Outlook 14.0.4760; Pro) X-PGP-Key: https://sirmacik.net/dl/mkarpezo.asc ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=karpezo.pl; s=dkim; t=1542647836; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UJ/6KrdLP0MWeqK3qJ+N1XbbY2zXVBxQHUOPJ30IPxQ=; b=esvieavTalmSs3/cYI/bwW2VWvFvR3Ryi6GeJWzDkUysX/TkSRA5pZ7Na+6nwTbSwDQqI/ akc9ZQ3vu3ZUyucgtH+PEoByEDcWZMb3ZCgESw9HUntBZ6mAx5AKPgNpLROnAluJLEbBrb e4Z89B03v/jRtWeh0BQ40dgGRvw8b8zPqJ9StOyKPmnFsMJ8lewXSwEEg/jXadSk4/n90/ o+Wiz+kRO+eE4P+oOF8jffwRJ1mskU+QuJwfZ9FA4Rq8daMT3RRSSOjAPriu7sbB8TI0zL B05dmdL4LRJP42+zTrh6+5j2u1hPBKRf7SnuNYhuzpgXConctfJi7CzTFRpIcw== ARC-Seal: i=1; s=dkim; d=karpezo.pl; t=1542647836; a=rsa-sha256; cv=none; b=Gbyw1Tg8aihqdMOl1+O6a35jju8KSInVU9mB2cBRBIXP4vb/QvuVrKfH2nkMDXDrP/FPltBGgu4g5zeHqbuFFynaqoa5sqeZ0HV8b6+SiJNXBbWVbGSYEHB3TNEftsSDDZHm/jkpeOT6p83dWalsLh5evBDQRgOOTyiikxOb5dWIfsI06i+msIAGVGfitHrL9UZiE9dD54GIE1JEAdEz/gbiLWKHuIggk5RjZXr8QjSPjRTlM8PUF5cAozOVvUo3aNKwEHreSFbP0Asi+/z6YUO6ZTXRmr/GnKdlvGoBs6c7mXb7VHrJagut4TgGkPbvjGt0N2WsIj1+dobi3wMJxA== ARC-Authentication-Results: i=1; mail.freearts.agency; auth=pass smtp.auth=marcin@karpezo.pl smtp.mailfrom=marcin@karpezo.pl Ingo Schwarze dixit (2018-11-19, 17:07): > 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... :-( This is just amazing, thank you for your time and such an extensive instructions! Marcin -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv