QR code - standard for developer - c#

where can I find features list for qr codes ?
I mean I can encode everything which can be represented by a string.
Example what I'm looking for:
SMS - "sms:text"
Email - "mailtio:text"
Text - "Text"

Most devices support MeCard, Hyperlinks, Phone Numbers, Email Addresses, vCards, some support Wifi Settings, and text display. Look at this question for how to use a ZXing C# API.
A MeCard is a semicolon and colon delimited set of fields and might look like this
MECARD:N:Elliott Frisch;URL:frischcode.com;
A hyperlink starts with a protocol followed by a colon, not every device supports every protocol. (e.g. http: or ftp: or sms: or mailto").

Maybe this tutorial will help you
http://www.thonky.com/qr-code-tutorial/data-encoding/

Related

Can the text be formatted to appear in a more appealing way while using a receipt card?

I am using a receipt card in one of my projects and I have been trying to format my subtitle text using \n, \t, \r\n, but none of these seem to give the expected output.
Is there another way to format the text?
The receipt card is a predefined card template that is not designed for customization.
If you want to create custom card layouts, use Adaptive Cards.
Overview: http://adaptivecards.io/
Examples: http://adaptivecards.io/visualizer/index.html?hostApp=WebChat%20(Bot%20Framework)
Code sample for .NET SDK: https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/cards-AdaptiveCards
Walk-through blog article: https://blog.botframework.com/2017/06/07/Adaptive-Card-Dotnet/

c# use non-printable characters asp.net mvc

I've to read datamatrix barcodes (vda 4902, gtin, gs1) which use non-printable chars as seperator.
The goal is to scan the barcode with intermec or honeywell hardware and send it to a c# mvc webapplication.
The printable characters are received by the webapplication, but the non-printable chars not.
I've scanned the code to the VI editor on a linux server - bere i can see the special characters. But i couldn't get it with a asp.net to work nor a c# windows form application.
So currently i don't know where to look at...
Most likely if you are passing values to another page or webservice, you are forgetting the step of properly encoding the characters you are sending. You should probably look at using something like System.Web.HttpServerUtility.HtmlEncode. This function properly converts special characters in the value you are sending to an alternate representation that gets decoded on the receiving end.
Depending on other specifics would you did not elaborate on your original question, there are many other ways to encode/escape characters for purposes like this. But the above is what I would suggest starting with if you are not clear.

google translation api character uses count

i recently purchased the google's translation API to convert from English to French. I have used the below URL to convert the data
https://www.googleapis.com/language/translate/v2?key=[My Key]&source=en&target=fr&q=hello
after getting response i checked the Traffic Reports for my project and noticed that
"Translate API: Translation Character Count" is increaed by 10 instead of 5.even i tried with other text also and its simply doubling my input characters. Not sure if this is the way my character use should be calculated?
i will appreciate if someone from google's API team can clarify my query.
Thanks,
Ritesh
Google API is charged by the number of source characters
Link

Teaching Microsoft.Speech Engine Pronunciation of a Number of none English Words

I am developing a c# application using Kinect that relies on voice input to do things. I have a list of Arabic words that the user can say to select different menu items.
I have been searching over the past few days with little success.
Things I found:
CMU Sphinx: http://www.ccse.kfupm.edu.sa/~elshafei/AASR.htm
The first problem with this is that it is java based. I have looked at KVM and the bridge one but I couldn't get too far with this thing. I couldn't set it up to work in Java. There are no steps on how to use the already prepared files.
I have also looked at using an SRGSdocument as suggested by this link Specifying a pronunciation of a word in Microsoft Speech API
but this is too complicated for my purposes and I don't even know if it is what I need.
I have also looked at Microsoft Speech Recognition Custom Training
The person's problem was similar but I cannot solve my problem the same way.
I cannot use a commercial application such as Sakhr because I do not have the budget for it.
Simply adding words to a grammar will not work because these words don't obey normal pronunciation rules of the English Language.
Basically, what I'm looking for is some sort of tool that can connect a word written in English with a set of different pronunciations coming from a microphone (as in pretrained) and that then can be referenced by the Speech engine during run time. Is this possible?
I am open to any options.
Thanks.
I think what you want to do is to specify a custom lexicon for your recognizer. That will allow you to "connect a word written in English with a set of different pronunciations" as you said.
The lexicon maps written words to pronunciations written in a phonetic alphabet. You can override the default lexicon (which will have English pronunciations for each word, if you're using an English recognizer) with your own lexicon, either by writing a new lexicon as an XML document, or by specifying individual pronunciations inline.
So you can define the pronunciation of the Arabic word as a sequence of phones (I think you'd have to use only phones that occur in English, otherwise the recognition might not work properly), then link it to the English written word (grapheme) in a lexicon or inline.
This page explains everything: About Lexicons and Phonetic Alphabets (Microsoft.Speech)

ActiveReports interface to RightFax

I'm trying send ActiveReports formatted reports to my company's RightFax server, and pre-set some of the fax fields, like FAX number, sender, and recipient. The RightFax documentation says that the document must include Embedded Codes to set these values, e.g. <TOFAXNUM:12345556789><TONAME:Recipient><FROMNAME:Sender>. I create a TextBox or Label in ActiveReports that contains this text. But the values are not set when RightFax receives the document and brings up the RightFax client UI. The Embedded Codes remain in the fax image. I have the RightFax printer driver set to HP LaserJet 4. I'm developing in C#, using Visual Studio 2010 Professional.
One suggestion on the web is to make sure the Embedded Codes are set in Courier or another "printer font". However, Visual Studio does not have "Courier" or "Times Roman", only MS true type versions of these standard fonts, "Courier New" and "Times New Roman".
This method of sending faxes is working with older software, that doesn't use ActiveReports, on another machine using the same RightFax server.
Any experience you can share interfacing ActiveReports to RightFax would be most appreciated.
Thanks,
Gregg Lobdell
You could accomplish your task by controlling the whole printing process and sending the escape sequence using Windows API. I assume you using ActiveReports 6 or section-based reports of ActiveReports 7.
In more detail:
create your own PrintDocument and define PrintPage handler
in the PrintPage handler send escape sequence to printer using Escape winapi call (see the example on CodeProject)
render the page itself by calling the Page.Draw()
As long as you use a true type font, the printer should recognize that font and be able to "read" the text in it. Only old bitmap fonts are fonts that might be not readable by the printer. Usually commonly used TT fonts on windows like "Courier New" or "Times New Roman", are already in the printer so they won't even be downloaded.
However, RightFax does have some documentation on escape codes here, so you might want to try using escape codes with ActiveReports. Also, here is an example of using the SystemPrinter object in ActiveReports6 to send escape codes directly to the printer without using any special API. You might try using that code and replacing the escape code there with ones that RightFax understands.
Finally, ActiveReports essentially prints by getting a graphics from the printer and drawing on it. Textboxes are real text drawn with appropriate text commands (i.e. text is not rendered as bitmaps). This is a normal way of printing in modern windows so any printer should see the text as normal text. You should be abel to see the same exact results by writing your own simple printing code in .NET and sending it to the RightFax driver. If it works there it will work in ActiveReports.
If it isn't working, and the escape code trick above won't work, I think contacting RightFax and asking them for insight into how to print to their driver from a .NET application would be the next logical step.
Hope this helps!

Categories