davidmueller13 / open-delta

Automatically exported from code.google.com/p/open-delta
0 stars 0 forks source link

EXCLUDE CHARACTERS directive corrupts #219

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Use Open-Delta Editor to emend EXCLUDE CHARACTERS directive to exclude 
additional characters in a directive file
2.save edited file and run "TONATR" or similar directive file
3. observe that in the output file, most characters are now excluded 

What is the expected output? What do you see instead?
re-open the file with the EXCLUDE CHARACTERS directive, which now bizarrely 
reads:

*EXCLUDE CHARACTERS 2-4 4-5 5 5-6 6 6-7 7 7 7-8 8 8 8-9 9 9 9 9-10 10 10 10
  10-11 11 11 11 11-12 12 12 12-13 13 13 13 13-14 14 14 14 14-15 15 15 15 15-16
  16 16 16-17 17 17 17-18 18 18 18-19 19 19 19 19-20 20 20 20-21 21 21 21-22 22
  22 22-23 23 23 23-24 24 24 24-25 25 25 25 25-26 26 26 26-27 27 27 27 27-28 28
  28 28 28-29 29 29 29 29-30 30 30 30 30-31 31 31 31 31-32 32 32 32 32-33 33 33
  33-34 34 34 34-35 35 35 35-36 36 36 36-37 37 37 37-38 38 38 38-39 39 39 39-40
  40 40 40-41 41 41 41-42 42 42 42-43 43 43 43-44 44 44 44-45 45 45 45-46 46 46
  46-47 47 47 47-48 48 48 48-49 49 49 49-50 50 50 50-51 51 51 51-52 52 52 52-53
  53 53 53-54 54 54 54-55 55 55 55-56 56 56 56-57 57 57 57-58 58 58 58-59 59 59
  59-60 60 60 60-61 61 61 61-62 62 62 62 62-63 63 63 63 63-64 64 64 64-65 65 65
  65 65-66 66 66 66-67 67 67 67-68 68 68 68-69 69 69-70 70 70-71 71 71 71-72 72
  72-73 73 73 73-74 74 74-75 75 75-76 76 76-77 77-78 78-79 79 79-80 80-81 81
  81-82 82-83 83-84 84-87 87-89 89-91 91-97 97-100 100-103 103-107 107-110
  110-114 114-116 116-118 118-120 244

What version of the product are you using? On what operating system?
DELTA Editor 1.1-SNAPSHOT (2041)
date: 2012-11-26 15:04:19 Eastern Summer Time (New South Wales)
free memory: 28 MB 
total memory: 96 MB 
max memory: 247 MB
java.version: 1.7.0_09
java.vendor: Oracle Corporation
os.name: Windows XP
os.arch: x86
os.version: 5.1
user.language: en
user.region: null
user.dir: C:\Program Files\Open DELTA

Please provide any additional information below.
 I would be happy to provide the .dlt file

Original issue reported on code.google.com by rwil...@museum.vic.gov.au on 26 Nov 2012 at 4:05

GoogleCodeExporter commented 9 years ago
Thanks for the report Robin.
If you don't mind sending me the DLT file it would help.
Cheers,
Chris

Original comment by chris.go...@gmail.com on 26 Nov 2012 at 4:54

GoogleCodeExporter commented 9 years ago
PS I have realised part of the explanation for this is that I was using illegal 
character range values (ie "73-5" instead of "73-75") however the resulting 
error still needs trapping

Original comment by rwil...@museum.vic.gov.au on 26 Nov 2012 at 5:13

GoogleCodeExporter commented 9 years ago
I have added validation that requires numeric ranges be coded in ascending 
numerical order which would have prevented this from causing a problem.  (The 
Open DELTA editor was treating 73-5 the same as 5-73).
However, if the range had been coded 5-73 both the Open DELTA editor and the 
original DELTA editor produce the output described in the bug report.

Original comment by chris.go...@gmail.com on 26 Nov 2012 at 6:06