Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Automated input of UNICODE (16 bit fonts)
Topic Summary: Need a way to import (with automation) a document that contains 16-bit font into DOORs
Created On: 21-Dec-2004 19:52
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 21-Dec-2004 19:52
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

I need a method of importing a document (with automation) that contains 16-bit fonts (Japanese) into DOORs. I have tried all the standard automation tools and none of the import tools seem to support the 16 bit fonts. They all convert it to 8bit (which yield questions marks for each character)
So, My question...
Does anyone have an RTF or EXCEL import DXL (which they would be willing to share) that will import 16bit fonts. Even if I had access to the standard Doors Import DXL code I think I could fix it by importing the styles with the text...
I only have a few docs to import so it wouldn't pay to write the DXL from scratch, but it would sure save me a lot of cutting and pasting if someone had the source for a good automation import DXL.
Thanks in advance.
Dan Hopping
BTW...
The DOORs to Word OUTPUT automation seems to work fine once the 16-bit font string are pasted into DOORs.
.
Report this to a Moderator Report this to a Moderator
 22-Dec-2004 15:52
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

The word export of japanese characters seems to work.  
Can you post some text you want imported into DOORS. 
Report this to a Moderator Report this to a Moderator
 22-Dec-2004 21:13
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

Ron,
Yes, indeed the export works well as far as I can tell. The import is being a bit more problematic. I can cut and paste each cell from a word document but any automation has failed so far. The Import > 'RichTextFormat' almost works but the data gets corrupted in the translation. Maybe it gets mixed up trying to read the RTF metadata.
All other imports DXL's I have tried just change it to 8-bit question marks.
Below is some sample Japanese text to import. (I hope it holds together in the posting...)
Thanks for the response...
Dan

????????
???????????
?????
???????????
????????
????
??????
??????
???????????
???????
?????
????????
??????
???????
???????????
Report this to a Moderator Report this to a Moderator
 22-Dec-2004 21:17
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

Ron,
Sorry about the last post...
The preview of the post held the UNICODE display intact but the actual posting seems to have stripped it to 8 bits...
I could email an RTF file...
Thanks again,
Dan
Report this to a Moderator Report this to a Moderator
 23-Dec-2004 16:52
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

The following code gets the unicode in if you save text as an RTF,  Probably doesn't satisfy your needs -- but perhaps will give you a starting point.


string s="f:\\unicode.rtf"
if(!canOpenFile(s,false)) halt
s=readFile(s)
Object o=current
o =create(o)
o."Object Text"=richText  s

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.