如何正确显示groff中的波兰变音符号?

中等

我正在玩,groff并且我想从以下内容生成pdftest.ms

.TL
Tytuł
.AU
Imię Nazwisko
.NH
Wstęp
.PP
Pierwszy paragraf. Jakieś informacje, żeby były polskie znaki.
.PP
Drugi paragraf. Reszta znaków:

ąęćłńśóżźĄĘĆŁŃŚÓŻŹ
.NH
Bla bla bla
.PP
safsdsdfsasdds

如您所见,它包含波兰音符号。编译完成后,groff -ms test.ms -T pdf > test.pdf我们将看到以下混乱情况:可怕!

我的第一个猜测是使用utf-8支持重新编译。

$ groff -Kutf8 -ms test.ms -T pdf > test.pdf
test.ms:4: warning: can't find special character `u0065_0328'
test.ms:8: warning: can't find special character `u0073_0301'
test.ms:8: warning: can't find special character `u00A0'
test.ms:8: warning: can't find special character `u007A_0307'
test.ms:12: warning: can't find special character `u0061_0328'
test.ms:12: warning: can't find special character `u006E_0301'
test.ms:12: warning: can't find special character `u007A_0301'
test.ms:12: warning: can't find special character `u0041_0328'
test.ms:12: warning: can't find special character `u0045_0328'
test.ms:12: warning: can't find special character `u004E_0301'
test.ms:12: warning: can't find special character `u0053_0301'
test.ms:12: warning: can't find special character `u005A_0307'
test.ms:12: warning: can't find special character `u005A_0301'

Groff只是忽略了大多数符号,而pdf看起来像这样:

仍然很糟糕。

经过一番谷歌搜索后,我发现了这一点

groff -Kutf8 -Tdvi -mec -ms test.ms > test.dvi
dvipdfm -cz 9 test.dvi

是的,它仍然会失败(虽然更好,但只跳过了一个字符):

$ groff -Kutf8 -Tdvi -mec -ms test.ms > test.dvi
test.ms:8: warning: can't find special character `u00A0'

我怎样才能使它正常工作?

编辑:这是输出locale

LANG=pl_PL.UTF-8
LANGUAGE=
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=
莱夫雷尔

Character A0 is an unbreakable space. It looks like it is between "Jakieś" and "informacje". Use your editor to replace it by a normal space and you should be good to go.

Advice: I've set up my editors (emacs, vim) to highlight unbreakable spaces because I sometimes unintentionally type some with AltGr+space when I hit space after typing a character requiring to press AltGr.

The warnings after your first guess seem to show that some chars (ę, ś, ż...) are encoded with combining diacritics rather than natively. E.g. ę == e (hex 65) + combining ogonek (hex 328) rather than "e with ogonek" (hex 119). How do you edit your source file? You may use a Compose key to produce "standalone" letters-with-diacritics, e.g. Compose e , for "ę".

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Ubuntu 18.04中不能使用波兰语变音符号

如何正确计算带变音符号的字母?

如何在页面上自动显示变音符号?

如何从字符串中删除变音符号(变音符)?

如何在Perl 6中删除变音符号

变音符号渲染不正确

NLog 不能正确写入变音符号

如何从.NET中的字符串中删除变音符号(重音符号)?

Power Query:如何从文本中删除变音符号/重音符号

Elasticsearch将变音符号显示为“ ??”

无法显示德语变音符号

iText变音符号(例如D̂,M̂等)无法在PDF上正确显示

Websphere 8.5.5日志文件无法正确显示变音符号

阅读R中的变音符号

API 请求中的变音符号编码

VC ++从流中解码变音符号

在Unity中显示TextMeshPro中编码字符串的变音符号

如何在Python的字符串中仅删除重音符号,而不删除变音符号

带有变音符号的特殊字符在Android中显示为正方形

如何从 C# 中的字符串中删除变音符号?

如何在Swift中从字符串中删除变音符号?

如何从php中的字符串中获取带有变音符号的字符?

如何使i18next-node以正确的方式显示变音符?

如何在尝试与python中的正则表达式匹配时应付变音符号

Ruby从文件名中删除变音符号-如何保留它们?

如何从红宝石的希伯来语utf-8中剥离元音/ nekudot /变音符号?

如何从PHP中的UTF8字符“删除变音符号”?

如何在Google表格中查找出现的德语变音符号?

您如何从 Java 应用程序的用户给定输入中读取变音符号?