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

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

问题描述

我正在尝试创建一个带有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控制字符的代码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).

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

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.

硬件读取器可能配置为键盘楔"模式,在该模式下,设备通过生成键盘扫描代码来模拟物理键盘.在这种情况下,您通常可以将设备配置为在扫描之前和之后提供特定的键序列",以及提供从条形码中表示的Latin-1序数(0-255)到由扫描仪读取的物理扫描码的映射.键盘界面,例如,在特定的应用程序中,可以选择将回车(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.

例如,考虑将粘贴包含TAB字符的某些文本输入文本字段的结果与实际上 typing 在键盘上输入相同文本的结果不一定相同,即在某个时候实际按下TAB键.粘贴文本时,结果可能是单个字段包含包含TAB字符的全文.键入文本时,结果可能是前导输入确实在初始字段中,但随后在TAB处将其拆分,其余部分则按TAB顺序占据下一个字段.

Consider for example that the result of pasting some text containing a TAB character into a text field isn't necessarily the same as actually 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 a single field would contain the full text including the TAB character. When typing the text the result would likely be that the leading input does into the initial field, but it is then split at the TAB with the remainder occupying the next field in the TAB-order.

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

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

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

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