简体   繁体   English

如何在Ascii Doc中进行断字?

[英]How to do word break in Ascii Doc?

I am writing documentation in Ascii Doc style (AsciiDocFX GUI, but I suppose it is invalid to topic) and I am having a problem. 我正在以Ascii Doc风格(AsciiDocFX GUI,但我认为它对主题无效)编写文档,并且出现了问题。

When I create a table and then input a long word with no spaces inside of cell , the word is not split into multiple lines, it is overlapping cell next to it. 当我创建一个表格然后在cell内输入一个长字且没有空格时 ,该字不会拆分为多行,而是它旁边的重叠cell。

Is there some way how to fix this problem? 有什么方法可以解决此问题?

Here is source code from ascii doc 这是ascii doc的源代码

[[EXAMPLE_TABLE]]
[cols="4,3,5,7",width="100%",options="header","autowidth"]
|============================
s|Function s| Parameter s| Value                        s| Description
.3+^.^|toLongWorddddddddddd  |Command         |AnotherLongWord     |Some description with spaces
|Parameter   |Value                      |...
|Parameter   |Value                      |...
|============================

Here is the output (image snipped from exported pdf file): 这是输出(从导出的pdf文件中删除的图像):

Final goal is simple - to have nice-looking table. 最终目标很简单-拥有漂亮的桌子。


Note: 注意:

When I export this document to html file, the table is fine, but it is not able to be printed out properly. 当我将此文档导出到html文件时,该表很好,但是无法正确打印出来。 I need the pdf for management.. 我需要pdf进行管理。

Long story short, 长话短说,

I asked a guy who is working with AsciiDoc for a year and he said, that it is simply not possible. 我问一个与AsciiDoc一起工作了一年的人,他说,这根本不可能。 AsciiDoc framework doesn't support this possibility. AsciiDoc框架不支持这种可能性。

The only solution is to split the long word into multiple smaller words by spaces. 唯一的解决方案是将长字按空格分成多个较小的字。 :( :(

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM