Re: [U2] c#/uniobject/chinese/spanish characters

2013-04-05 Thread Tony Gravagno
Doug, I wrote a couple short extension methods which convert from
Arabic to UTF-16 and back. The pattern goes like this:

- Get input from GUI
- Convert from known code page to utf-16, in this case that's
windows-1256
- Save the data into MV ... it's just text and doesn't get munged on
the wire

To display in GUI:
- Read the text from MV
- Convert back from utf-16 to original code-page
- Display in GUI

I believe you would just substitute a different code page for other
languages - obviously it must be the same language going in both
directions, this isn't Bablefish. ;)

It works great for platforms that have no I18N or  other language
support. This dealer in Amman Jordan has 40 old mvBase systems in the
field that are now adopting a GUI based on mv.NET and this small bit
of code.

I don't think you can sort or select on this kind of data in MV.
Although once it was in the DBMS, I think we were  able to see
everything great with AccuTerm in a character interface. It works in
D3 too. I didn't try any others.

U2 might support a better storage mechanism, so let's see what others
say. But I'll be happy to provide the C# code that does  the
translation. Just email me.

HTH
Tony Gravagno   
Nebula Research and Development 
TG@ remove.pleaseNebula-RnD.com 
Nebula RD sells mv.NET and other Pick/MultiValue products  
worldwide, and provides related development services
http://Nebula-RnD.com/blog  
Visit http://PickWiki.com! Contribute!  
http://Twitter.com/TonyGravagno 
http://groups.google.com/group/mvdbms



 From: doug chanco
 Subject: [U2] c#/uniobject/chinese/spanish characters
 
  anyone care to share any suggestions on the best way to create pick
 records that include chinese/spanish characters via c# and
uniobjects
 or just c# and writing to a unix file?
 
 I have some ideas I am mulling around in my head but I thought I'd
tap
 into the vast knowledge base available on here.
 
 I am basically looking at creating a pick record (or a unix one)
that is a
 mixture of html and text (in english/chinese and spanish).
 
 any thoughts/suggestions are extremely welcomed


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] c#/uniobject/chinese/spanish characters

2013-04-05 Thread Symeon Breen
We process and store most of our info in utf-8 - this includes multiple
European languages, not currently Chinese tho but that should not be an
issue if it is encoded in  utf-8. We also use uniobjects.net with this data
no problem.  

Well I say no problem - you do have to make sure your lang settings are
correct, and that you know in your code if you are dealing with utf-8
encoded data or not - otherwise you can get tied up.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of doug chanco
Sent: 05 April 2013 03:49
To: U2 Users List
Subject: [U2] c#/uniobject/chinese/spanish characters

hi all,
 anyone care to share any suggestions on the best way to create pick
records that include chinese/spanish characters via c# and uniobjects or
just c# and writing to a unix file?

I have some ideas I am mulling around in my head but I thought I'd tap into
the vast knowledge base available on here.

I am basically looking at creating a pick record (or a unix one) that is a
mixture of html and text (in english/chinese and spanish).

any thoughts/suggestions are extremely welcomed

thanks

dougc



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] c#/uniobject/chinese/spanish characters

2013-04-05 Thread Symeon Breen
Also if you are running u2 on linux the iconv utility (not the u2 ICONV,
linux iconv) is essential when dealing with different character encodings.
But there are a few undocumented features on here called //TRANSLIT and
//IGNORE that it is worth googleing  about.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tony Gravagno
Sent: 05 April 2013 08:05
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] c#/uniobject/chinese/spanish characters

Doug, I wrote a couple short extension methods which convert from Arabic to
UTF-16 and back. The pattern goes like this:

- Get input from GUI
- Convert from known code page to utf-16, in this case that's
windows-1256
- Save the data into MV ... it's just text and doesn't get munged on the
wire

To display in GUI:
- Read the text from MV
- Convert back from utf-16 to original code-page
- Display in GUI

I believe you would just substitute a different code page for other
languages - obviously it must be the same language going in both directions,
this isn't Bablefish. ;)

It works great for platforms that have no I18N or  other language support.
This dealer in Amman Jordan has 40 old mvBase systems in the field that are
now adopting a GUI based on mv.NET and this small bit of code.

I don't think you can sort or select on this kind of data in MV.
Although once it was in the DBMS, I think we were  able to see everything
great with AccuTerm in a character interface. It works in
D3 too. I didn't try any others.

U2 might support a better storage mechanism, so let's see what others say.
But I'll be happy to provide the C# code that does  the translation. Just
email me.

HTH
Tony Gravagno   
Nebula Research and Development 
TG@ remove.pleaseNebula-RnD.com 
Nebula RD sells mv.NET and other Pick/MultiValue products  
worldwide, and provides related development services
http://Nebula-RnD.com/blog  
Visit http://PickWiki.com! Contribute!  
http://Twitter.com/TonyGravagno 
http://groups.google.com/group/mvdbms



 From: doug chanco
 Subject: [U2] c#/uniobject/chinese/spanish characters
 
  anyone care to share any suggestions on the best way to create pick 
 records that include chinese/spanish characters via c# and
uniobjects
 or just c# and writing to a unix file?
 
 I have some ideas I am mulling around in my head but I thought I'd
tap
 into the vast knowledge base available on here.
 
 I am basically looking at creating a pick record (or a unix one)
that is a
 mixture of html and text (in english/chinese and spanish).
 
 any thoughts/suggestions are extremely welcomed


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] How do you print a .pdf from inside a Unix Box

2013-04-05 Thread Hona, David
First up - Adobe PDF is a subset of the Adobe Postscript page description 
language (PDL). 

Some printer vendors have Postscript emulations. Most business class laser/LED 
printers or multi-function devices (MFDs) today have intelligent page 
description language detection built in and typically analyse the datastream 
before attempting to do anything with it...mean that they can switch between 
plain text from UniVerse or UNIX or PDF/Postscript or HP PCL / PXL formats and 
others on-the-fly...

Some modern printers have Adobe PDF and Adobe Postscript (or an emulation) 
built-in. Meaning they can be sent files in either format. . (Side note - 
Google: PDF Direct Print support).

If you have printers are capable of accepting Adobe PDF files - then just 
simply submit an those files direct to the printer from your host.

If your printer has Adobe Postscript or a Postscript emulation - you translate 
the PDF data file into 'native' Postscript via Ghostscript or similar toolset 
prior to sending it to the printer.

If you don't have any Postscript capable printers - you can - using Ghostscript 
translate the file from PDF into HP PCL or similar PDL (many are supported). 
Then send the generated output to your printer queue.

You can write custom version of the Ghostscript supplied 'ps2pdf' script to 
generate to PCL file from an Postscript file (and call the script, say 
ps2pcl). It's not difficult to customise this scripts for your own output 
device (printer, image file, etc)... have done this before...

As implied by others - you won't have the same capabilities nor any options to 
dynamically or selectively control over the output (orientation, N-up printing, 
duplex, tray selection, page-fit, paper type, copies, page range, etc)... that 
you can perform from Windows Acrobat PDF viewer. An alternative to this is to 
perhaps utilise one or more host-based printer print queue defined for (some of 
these may be feasible) such printing preferences, etc. HPJetDirect for HPUX and 
other UNIX platforms is pretty feature rich especially when talking with 
HPDirectJet printers...

See what Adobe has on this issue here: 
http://www.adobe.com/products/postscript/pdf.html 

Cheers,
David

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bruce Conway - Bamac 
LTD
Sent: Friday, 5 April 2013 2:54 AM
To: 'U2 Users List'
Subject: [U2] How do you print a .pdf from inside a Unix Box

I may have missed this discussion but if someone can help me that would be 
great.

We have been executing a SB command to windows to open Adobe and print the PDF 
document. We would like to either not have to open Adobe and print the document 
or print the document from within our Unix box.

We have a hp7640 11iv3 running on an Itanium processor.

Here is the Unidata information:
Module Name Version   Licensed
  
UniData RDBMS 7.2 Yes 
Connection Pooling... 7.2 No  
Device License... 7.2 No  
NFA.. 7.2 No  
RFS.. 7.2 No  
EDA.. 7.2 No  
721   


Oh, love this list, I have been using Pick since 1985 and still going strong.

Bruce

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *   
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please 
reply to this
e-mail by typing Unsubscribe in the subject line. 
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] c#/uniobject/chinese/spanish characters

2013-04-05 Thread Bob Rasmussen
I'll cast another vote for UTF-8. This mechanism for storing and 
transmitting Unicode data is elegantly designed, and it should be usable 
in almost any legacy system that allows 8-bit data. Take a look at its 
byte value allocations:


* Hex-00 through hex-1F are standard control characters, like ASCII.

* Hex-20 through hex-7F exactly match ASCII.

* Hex-80 through hex-9F are not used, because they might conflict with 
high (C1) control codes.


* Hex-A0 through hex-FF are used in various combinations to represent 
international characters;


EXCEPT

* The codes for multi-value mark, etc., are not used.

* It's a stateless system; that is, it doesn't phase shift from one scheme 
to another.


Unicode data stored this way can include English, Russian, Chinese, 
Turkish, Braille, Byzantine musical symbols, and on and on.


The precautions you must take, off the top of my head, are:

* You can't assume that one byte of storage represents one character or 
one screen cell.


* You must be careful not to break a character in half (or thirds, etc.)

* You must be careful with anything that inputs or outputs data, to make 
sure it works in UTF-8.


By the way, our terminal emulation (Anzio) and printing programs (Print 
Wizard) handle UTF-8 very well.


On Fri, 5 Apr 2013, Symeon Breen wrote:


We process and store most of our info in utf-8 - this includes multiple
European languages, not currently Chinese tho but that should not be an
issue if it is encoded in  utf-8. We also use uniobjects.net with this data
no problem.

Well I say no problem - you do have to make sure your lang settings are
correct, and that you know in your code if you are dealing with utf-8
encoded data or not - otherwise you can get tied up.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of doug chanco
Sent: 05 April 2013 03:49
To: U2 Users List
Subject: [U2] c#/uniobject/chinese/spanish characters

hi all,
anyone care to share any suggestions on the best way to create pick
records that include chinese/spanish characters via c# and uniobjects or
just c# and writing to a unix file?

I have some ideas I am mulling around in my head but I thought I'd tap into
the vast knowledge base available on here.

I am basically looking at creating a pick record (or a unix one) that is a
mixture of html and text (in english/chinese and spanish).

any thoughts/suggestions are extremely welcomed

thanks

dougc



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



Regards,
Bob Rasmussen,   President,   Rasmussen Software, Inc.

personal e-mail: r...@anzio.com
 company e-mail: r...@anzio.com
  voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
fax: (US) 503-624-0760
web: http://www.anzio.com
 street address: Rasmussen Software, Inc.
 10240 SW Nimbus, Suite L9
 Portland, OR  97223  USA
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] c#/uniobject/chinese/spanish characters

2013-04-05 Thread Anthonys Lists

On 05/04/2013 23:37, Bob Rasmussen wrote:
* The codes for multi-value mark, etc., are not used. 
iirc, if you use UV NLS (and presumably UD too) the mark characters have 
UTF-8 values assigned. Don't have a clue what they are, though.


Cheers,
Wol
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] c#/uniobject/chinese/spanish characters

2013-04-05 Thread Bob Rasmussen
It's a critical point, and worth verifying. If someone will verify 
what UV NLS does, that'd be great.


In the Unicode manual, it states that in UTF-8, no byte can have a value 
higher than hex-F4.


On Sat, 6 Apr 2013, Anthonys Lists wrote:


On 05/04/2013 23:37, Bob Rasmussen wrote:
* The codes for multi-value mark, etc., are not used. 
iirc, if you use UV NLS (and presumably UD too) the mark characters have 
UTF-8 values assigned. Don't have a clue what they are, though.


Cheers,
Wol
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



Regards,
Bob Rasmussen,   President,   Rasmussen Software, Inc.

personal e-mail: r...@anzio.com
 company e-mail: r...@anzio.com
  voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
fax: (US) 503-624-0760
web: http://www.anzio.com
 street address: Rasmussen Software, Inc.
 10240 SW Nimbus, Suite L9
 Portland, OR  97223  USA
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users