Code128 条码中的 TAB 键 [英] TAB key in Code128 barcodes

查看:27
本文介绍了Code128 条码中的 TAB 键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个带有 TAB 键的条形码.
似乎有些生成器(目前只发现一个)使用 ~ 作为 TAB 键.
但我似乎无法让它与任何其他生成器一起使用.

I'm trying to create a barcode with a TAB key within it.
It seems as though some generators (only found one thus far) uses ~ as a TAB key.
But I can't seem to get it to work with any of the other generators.

我还读到 Code128 A 支持 ASCII,这意味着HT"应该用作水平制表符.

I've also read that Code128 A supports ASCII, meaning "HT" should work as a Horizontal Tab.

关于 Code128 解密为 TAB 的任何想法?

Any ideas on what Code128 decrypts as TAB?

推荐答案

生成包含 ASCII 控制字符的 Code 128

代码 128 可用于编码 Latin-1 字符集中的任何字符,包括 ASCII 控制字符(序数 0 到 31).

Code 128 can be used to encode any character in the Latin-1 character set, including ASCII control characters (ordinals 0 to 31).

这是一个 Code 128 条形码,代表一个单独的 HT 字符(ASCII 值 9):

Here is a Code 128 barcode representing a lone HT character (ASCII value 9):

内部编码使用代码集 A 并包含以下代码字:

The internal encoding uses code set A and contains these code words:

[103/START-A] [73/HT] [73/check-digit] [106/STOP]

扫描包含 ASCII 控制字符的条码的一般效果

扫描包含 ASCII 控制字符的任何类型的条码可能无法获得预期的结果,因为条码内容提供给系统的方式多种多样.每种方法都将提供不同的方式来配置控制代码如何呈现给您的应用程序.

Scanning any type of barcode containing ASCII control characters may not give the intended result due to the diverse ways that the barcode contents may be provided to the system. Each method will provide different ways to configure how control codes are presented to your application.

硬件阅读器可能在键盘楔"中配置.设备通过生成键盘扫描码来模拟物理键盘的模式.在这种情况下,您通常可以将设备配置为提供特定的按键序列".扫描之前和之后,以及提供从条形码中表示的拉丁 1 序数 (0-255) 到键盘界面读取的物理扫描码的映射,例如,在特定应用程序中,可能会选择映射 Carriage返回 (ASCII 13) 到向下箭头 (5000) 扫描代码.本文描述了ASCII控制字符和扫描码的关系.

A hardware reader might be configured in "keyboard wedge" mode where the device emulates a physical keyboard by generating keyboard scan codes. In this case you can usually configure the device to provide specific "key sequences" before and after scanning, as well as provide a mapping from the Latin-1 ordinals (0-255) represented in a barcode to the physical scan codes read by the keyboard interface, For example, in a particular application one might choose to map Carriage Return (ASCII 13) to the Down Arrow (5000) scan code. This text describes the relationship between ASCII control characters and scan codes.

或者,硬件或软件阅读器可以使用驱动程序.这种方法有很多变化,但它们通常提供合成 RS232 接口(可能通过 USB)或挂钩到操作系统的 OLE 子系统.在最基本的情况下,扫描条码相当于将一些文本粘贴到文本字段中——您可能需要设备/软件对原始条码数据进行某种翻译,并且您可能还需要修改应用程序以对输入.

Alternatively a hardware or software reader may use a driver. There is a lot of variation with this approach but often they provide a synthetic RS232 interface (perhaps over USB) or hook into the OLE subsystem of the operating system. In the most basic case scanning a barcode would be equivalent to pasting some text into a textfield – you may require the device/software to perform some kind of translation of the raw barcode data and you may also need to modify the application to react appropriately to the input.

例如,考虑将一些包含 HT 字符的文本粘贴到文本字段的结果不一定与在键盘上手动键入相同的文本相同,即在某些时候实际按下 TAB 键.粘贴文本时,结果可能是初始字段将包含包含文字 HT 字符的全文.手动键入文本时,结果可能是前导输入进入初始字段,然后按 TAB 键会导致焦点更改为 Tab 键顺序中的下一个字段,文本的其余部分将填充该字段.

Consider for example that the result of pasting some text containing a HT character into a text field isn't necessarily the same as manually typing that same text on the keyboard, i.e. at some point actually pressing the TAB key. When pasting the text the result would likely be that the initial field would contain the full text including the literal HT character. When typing the text manually the result would likely be that the leading input goes into the initial field, then the TAB key-press results in a change of focus to the next field in the tab order, which the remainder of the text will populate.

条形码阅读器的文档应描述可用的接口和自定义扫描数据显示的方法.

A barcode reader's documentation should describe the interfaces available and methods for customising the presentation of scanned data.

这篇关于Code128 条码中的 TAB 键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆