![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
I think I'll go with the last option to brought up...
![]() |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
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 //*********************************************** |
|
![]() |
|
![]() |
|
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?
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» General Discussion
»
Highlighting text in a DOORS document.
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.