什么是垂直制表符?

发布于 2024-09-11 23:39:05 字数 133 浏览 4 评论 0原文

垂直制表符(C 语言中的 \v,ASCII 11)最初的历史用途是什么?

键盘上曾经有过按键吗?有人是如何生成它的?

现在是否有任何语言或系统仍在使用,其中垂直制表符可以做一些有趣且有用的事情?

What was the original historical use of the vertical tab character (\v in the C language, ASCII 11)?

Did it ever have a key on a keyboard? How did someone generate it?

Is there any language or system still in use today where the vertical tab character does something interesting and useful?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

策马西风 2024-09-18 23:39:05

垂直选项卡用于加速打印机垂直移动。一些打印机使用带有各种标签点的特殊标签带。这有助于调整表单上的内容。 VT 到页眉空间,填写页眉,VT 到正文区域,填写行,VT 形成页脚。通常它在程序中被编码为字符常量。从键盘上,它是 CTRL-K

我不相信任何人都会有理由再使用它。大多数表单都是用 Postscript 等打印机控制语言生成的。

@Talvi Wilson 指出它在 python '\v' 中使用。

print("hello\vworld")

输出:

hello
     world

上面的输出似乎导致默认的垂直尺寸为一行。我已经用 perl "\013" 进行了测试,并出现相同的输出。这可用于在将换行转换为回车+换行的设备上进行换行,而无需回车。

Vertical tab was used to speed up printer vertical movement. Some printers used special tab belts with various tab spots. This helped align content on forms. VT to header space, fill in header, VT to body area, fill in lines, VT to form footer. Generally it was coded in the program as a character constant. From the keyboard, it would be CTRL-K.

I don't believe anyone would have a reason to use it any more. Most forms are generated in a printer control language like postscript.

@Talvi Wilson noted it used in python '\v'.

print("hello\vworld")

Output:

hello
     world

The above output appears to result in the default vertical size being one line. I have tested with perl "\013" and the same output occurs. This could be used to do line feed without a carriage return on devices with convert linefeed to carriage-return + linefeed.

手心的海 2024-09-18 23:39:05

Microsoft Word 使用 VT 作为一行分隔符,以便将其与普通的 换行函数 区分开来,该函数用作段落分隔符。

Microsoft Word uses VT as a line separator in order to distinguish it from the normal new line function, which is used as a paragraph separator.

笑梦风尘 2024-09-18 23:39:05

在医疗行业中,VT 在用于构建 HL-7 数据的 MLLP/LLP/HLLP 协议中用作帧起始字符,该协议自 80 年代末以来一直是医疗交换标准,并且仍在广泛使用。

In the medical industry, VT is used as the start of frame character in the MLLP/LLP/HLLP protocols that are used to frame HL-7 data, which has been a standard for medical exchange since the late 80s and is still in wide use.

悸初 2024-09-18 23:39:05

在打字机时代,它被用来将一页向下移动到下一个垂直停止点,通常间隔 6 行(与水平制表符沿一行移动 8 个字符的方式非常相似)。

在现代环境中,vt 的意义即使有,也是微乎其微的。

It was used during the typewriter era to move down a page to the next vertical stop, typically spaced 6 lines apart (much the same way horizontal tabs move along a line by 8 characters).

In modern day settings, the vt is of very little, if any, significance.

━╋う一瞬間旳綻放 2024-09-18 23:39:05

ASCII 垂直制表符 (\x0B) 在某些数据库和文件格式中仍用作字段内的新行。例如:

The ASCII vertical tab (\x0B)is still used in some databases and file formats as a new line WITHIN a field. For example:

不交电费瞎发啥光 2024-09-18 23:39:05

我发现 VT 字符用于 pptx 文本框中显示的每行末尾,以便将文本调整为框的大小。
它似乎是由powerpoint自动生成的(不是用户引入的),以便将文本移动到下一行并将完整的文本块固定到文本框。在下面的示例中,§ 的位置:

"This is a text §
inside a text box"

I have found that the VT char is used in pptx text boxes at the end of each line shown in the box in oder to adjust the text to the size of the box.
It seems to be automatically generated by powerpoint (not introduced by the user) in order to move the text to the next line and fix the complete text block to the text box. In the example below, in the position of §:

"This is a text §
inside a text box"
预谋 2024-09-18 23:39:05

垂直制表符与换行符相反,即它向上移动一行。它与选项卡位置无关。如果你想证明这一点,可以在 RS232 终端上尝试一下。

A vertical tab was the opposite of a line feed i.e. it went upwards by one line. It had nothing to do with tab positions. If you want to prove this, try it on an RS232 terminal.

放血 2024-09-18 23:39:05

我相信它仍在使用,但不确定。甚至可能有它的一个关键组合。

正如英语是从左到右书写,阿拉伯语是从右到左书写一样,世界上也有一些语言也是从上到下书写的。在这种情况下,垂直制表符可能会很有用,就像水平制表符用于英文文本一样。

我尝试搜索,但还没有找到任何有用的东西。

I believe it's still being used, not sure exactly. There might be even a key combination of it.

As English is written Left to Right, Arabic Right to Left, there are languages in world that are also written top to bottom. In that case a vertical tab might be useful same as the horizontal tab is used for English text.

I tried searching, but couldn't find anything useful yet.

囚我心虐我身 2024-09-18 23:39:05

R0byn 的经历类似(答案现已隐藏),我正在尝试使用 Powerpoint 幻灯片演示并转储主体幻灯片上的文本,找到通常可以找到回车符 (ASCII 13/0x0d/^M) 或换行/新行 (ASCII 10/0x0a/^) 的所有位置J)字符,它使用垂直制表符(ASCII 11/0x0b/^K)代替,大概是出于 dan04 如上所述,适用于 Word:在同一段落内充当“换行符”。这是个好问题,因为我完全认为这个角色今天会像电传打字机终端一样无用。

Similar to R0byn's experience (answer now hidden), I was experimenting with a Powerpoint slide presentation and dumped out the main body of text on the slide, finding that all the places where one would typically find carriage return (ASCII 13/0x0d/^M) or line feed/new line (ASCII 10/0x0a/^J) characters, it uses vertical tab (ASCII 11/0x0b/^K) instead, presumably for the exact reason that dan04 described above for Word: to serve as a "newline" while staying within the same paragraph. Good question though as I totally thought this character would be as useless as a teletype terminal today.

〃安静 2024-09-18 23:39:05

我尝试了这段代码:

print("hello\vbanana")

在 Python 3.10.11 IDLE 上并得到:

hellobanana

然后,我在命令提示符中尝试了相同的代码并得到:

hello
banana

因此,在某些地方,它呈现为奇怪的字符,而在其他地方,它呈现为与换行符完全相同。请注意,我是在 Windows 11 计算机上运行的。

I tried this code:

print("hello\vbanana")

on the Python 3.10.11 IDLE and got:

hellobanana

Then, I tried the same code in the command prompt and got:

hello
banana

So in some places, it renders as a weird character and on others it renders exactly like a newline. Note that I ran this on a Windows 11 computer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文