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: Highlighting text in a DOORS document.
Topic Summary: Is there a way to Highlight or remove Highlighting from a document?
Created On: 29-May-2006 07:43
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.
 29-May-2006 07:43
User is offline View Users Profile Print this message


Or Green

Posts: 4
Joined: 29-May-2006

Hello,

My organization has started using DOORS recently and I have a problem.
The documents I'm maintaining in DOORS started out as Word documents, I used to use highlighting to mark the status of specific sections of the document such as TBD, To be reviewed internally, etc...
I couldn't find any way to highlight inside DOORS and although I found that I could add an attribute for the same purpose I'm still stuch with highlights in the document from it's Word days.

How do I remove highlighting from a document in DOORS? Please don't tell me I have to export/import it again because it was hell the first time around...

Thanks,
Or.
Report this to a Moderator Report this to a Moderator
 29-May-2006 08:01
User is offline View Users Profile Print this message


Kim Faint

Posts: 15
Joined: 16-Aug-2004

You could try the following DXL, which will remove any rich text markup (including highlighting, bold, italics and underlining etc):

-------------------------
Kim Faint (kim.faint@boeing.com)
Systems Engineer
Boeing Australia
http://www.boeing.com.au
Report this to a Moderator Report this to a Moderator
 29-May-2006 08:48
User is offline View Users Profile Print this message


Or Green

Posts: 4
Joined: 29-May-2006

Hello,

Thanks, it looks like a good last-option solution though, because I want to keep the Bold and Italics in the document.
Is there a way to do this only for Highlights?

Thank you for the help,
Or.
Report this to a Moderator Report this to a Moderator
 29-May-2006 09:02
User is offline View Users Profile Print this message


Kim Faint

Posts: 15
Joined: 16-Aug-2004

The only way to do that would be to modify the DXL to pull out the rich text string and use regular expressions to then filter out the formatting you wish to keep and discard the rest. But it will be quite tricky. Search the DXL forum.

Otherwise consider either: a) removing the highlight before importing (aka inhaling) into DOORS; or b) strip out all formatting with my DXL and then employ a tech writer to reformat afterwards. If you have less than 10 documents, I would suggest that one of these manual methods will be the quickest way.

-------------------------
Kim Faint (kim.faint@boeing.com)
Systems Engineer
Boeing Australia
http://www.boeing.com.au
Report this to a Moderator Report this to a Moderator
 29-May-2006 09:26
User is offline View Users Profile Print this message


Or Green

Posts: 4
Joined: 29-May-2006

I think I'll go with the last option to brought up... it's the only one of them I can do by myself. Thanks for the help!
Report this to a Moderator Report this to a Moderator
 29-May-2006 21:16
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Be SURE to practice such modification DXL on a copy of the original modules; presumably archive a live module and restore it in some sandbox project. I'm surprised to hear that the highlighting imported, didn't know it did that.

This is what you want:

- Louie
Report this to a Moderator Report this to a Moderator
 31-May-2006 12:52
User is offline View Users Profile Print this message


Or Green

Posts: 4
Joined: 29-May-2006

Hello Louie, Thanks for the tip, I tried your DXL but it seems like it did nothing to the text of the document, it left both formatting and the highlights as they were. Any more ideas? Thanks, Or.
Report this to a Moderator Report this to a Moderator
 31-May-2006 22:25
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

This is a semi-manual solution I use to change RTF metadata.
It is a two step process but works well for my infrequent needs.

1st Step: I have to determine what RTF codes I want to replace (or remove)
2nd Step: do it!

So... The 1st dxl shows all RTF code for object heading and object text (you can change this to attributes of your choice)

Note: This 1st dxl is a 'display (or LAYOUT) DXL'. It will not work unless you create a display column with this dxl code as a display dxl in your desired view.
+++++++++++++++++++++++++++++
// This is a 'display DXL' that will show all rtf metadata in each object
string a
a = richText obj."Object Heading"
if(a!="") {display a}
a = richText obj."Object Text"
if(a!="") {display a}
++++++++++++++++++++++++++++++

As you view the RTF metadata using the above display dxl, you should be able to pick out the RTF code that you want to remove.
Once found just set string s1 to the RTF codes you want out and s2 to the RTF codes you want to replace it with, (if any).
(Note: the below example is used to change a RTF bullet type to a different type.)
Also note: the double escapes '\\' everywhere which are required by DOORs RegExps.
//*********** Start of DXL **************
string SearchReplace(string search, string pattern, string replace)
{
Regexp re = regexp pattern
string s = ""
int a = 0
while(re search[a:])
{
string t = search[match 0]
int b = length t

s = s search[a:end 0 + a - b] replace
a = a + end 0 + 1
}
s = s search[a:]
return s
}
Object o = current
string s = richText o."Object Text"
string s1
string s2
s1 = "\\\\'b7"
s2 = "\\f1\\'b7\\f0"
s = SearchReplace(s, s1, s2)
o."Object Text" = richText s
//***********************************************
Report this to a Moderator Report this to a Moderator
 1-Jun-2006 23:40
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I cannot seem to get my color highlighted Word file to export to DOORS, preserving the colors. How did the colored hightlights get into DOORS?
Report this to a Moderator Report this to a Moderator
 2-Jun-2006 14:17
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I just exported from Word to DOORS and the highlighting was preserved.

Looking at the richtext markup of the object text, you can see the "highlight".

\{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033\{\\fonttbl\{\\f0\\froman\\fprq2\\fcharset0 Times New Roman;\}\{\\f1\\fnil\\fcharset0 Tahoma;\}\}
\{\\colortbl ;\\red255\\green255\\blue0;\}
\\viewkind4\\uc1\\pard\\highlight1\\f0\\fs24 Description\\highlight0\\f1\\fs1660\\par
\}

The best way to get rid of the unsupported markup is to use the kitchen script addins/kitchen/richText/delricht.dxl.

-------------------------
Tony Goodman
http://www.smartdxl.com
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.