On Wednesday 26 September 2007 15:39:05 Gregor Hartmann wrote:
> ok here is the script to add KeyIDs to sdf files
>
> I added it ti the wiki page
> http://wiki.services.openoffice.org/wiki/KeyID_Build
>
> Its a first draft and in no way fixed. There are issues with Microsoft
> System Integration strings.
>
> But please have a look.

The script worked good for me, at least at generation stage. But I have some 
(24) errors like this after gsicheck:

------------------
Error: Text format, Line 20683, UniqueID 
helpcontent2/source\text\sbasic\shared\03030102.xhp/help/par_id3154910/4//: 
String contains KeyID in Text at Position 1
-------------------

Additionally I suggest to add chomp($line); or remove \n from print OUTFILE to 
prevent empty lines. See attached patch.

-- 
Best regards,
Rail Aliev
http://{ru,tr}.openoffice.org

Are you a turtle?
--- keyid.pl~	2007-09-27 16:13:38.000000000 +0400
+++ keyid.pl	2007-09-27 16:14:06.000000000 +0400
@@ -61,6 +61,7 @@
 while ( <INFILE> )
 {
     $line = $_;
+    chomp($line);
     $hash = 0;
     if ( $line =~ /^([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)/ )
     {

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to