简体   繁体   English

graphviz中组合变音符号的垂直对齐

[英]Vertical alignment of combining diacritic in graphviz

I have the following minimal dot code: 我有以下最小点代码:

digraph {
    charset = utf8;
    rankdir = LR;
    "ε" -> "V" [label="V:V"];
    "ε" -> "ε" [label="C:C"];
    "V" -> "V" [label = "C:C"];
    "V" -> "ε" [label = "V:V́ "];
}

Note that the last V in the last line is followed by an acute combining diacritic (it is correctly combined with the V in my editor, FWIW). 请注意,最后一行中的最后一个V后面紧跟着一个敏锐变音符号(它与我的编辑器FWIW中的V正确地组合了)。 This diacritic does not appear high enough over the V after calling dot -Tpdf foo.dot -o foo.pdf . 在调用dot -Tpdf foo.dot -o foo.pdf后,该变音符号在V显示度不够高。 Instead, as you can see below, it is overlaid: 相反,如下所示,它被覆盖了:

有一个V且带有重音的重音符号的有向图

How do I fix this? 我该如何解决? I'm using dot version 2.38.0 on Ubuntu (xenial). 我在Ubuntu(xenial)上使用点版本2.38.0。

I think this works already. 我认为这已经可行。 If you look closely at your image, you will see the diacritic: 如果仔细观察图像,您会看到变音符号:

在此处输入图片说明

I think it's just the font that needs to be changed. 我认为只是需要更改的字体。 Referring to Graphviz: change font for the whole graph? 参考Graphviz:更改整个图形的字体? , I modified your dot code and added a font: ,我修改了您的点码并添加了字体:

digraph {
    graph [fontname = "helvetica"];
    node [fontname = "helvetica"];
    edge [fontname = "helvetica"];

    charset = utf8;
    ...

This is what I get: 这是我得到的:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将变音符号或修饰符变音符号 Unicode 字符转换为“组合形式” - Convert diacritic or modifier diacritic Unicode character to 'combining form' Javascript Regex + Unicode Diacritic组合字符` - Javascript Regex + Unicode Diacritic Combining Characters` 判断一个字符是否是一个变音符号 - tell whether a character is a combining diacritic mark 如何在bash中将组合变音符号应用于字符串 - How can I apply a combining diacritic to a string in bash 组合变音符号出现在代码点之后的顺序重要吗? - Is the order in which combining diacritic marks appear after a codepoint important? 当变音符号在前并且变音不合并表格时,如何将CodePage标准化为Unicode表格C - How to normalize CodePage to Unicode Form C when diacritic precedes and accent not combining form 为什么在使用 IndexOf(string) 和 IndexOf(char) 时,非组合变音符号 function 前面的空格会有所不同? - Why does a space preceding a non-combining diacritic function differently when using IndexOf(string) and IndexOf(char)? 变音符号 - Diacritic signs Python-将音译德国的乌姆劳语变音符号 - Python - Transliterate German Umlauts to Diacritic 正则表达式匹配具有特定变音符号的字符 - regex match character with specific diacritic
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM