Make the unicode table scripts generate file with whitespacing done as has been manually edited despite the

warning on top.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp 2006-04-05 00:18:31 +00:00
parent b82f68a95b
commit c260cbf80d
2 changed files with 27 additions and 27 deletions

View File

@ -40,8 +40,8 @@ int main(int argc, char *argv[])
/* dump it: */
printf("\n\n"
"/* \n"
" * %s to Unicode recoding table \n"
"/*\n"
" * %s to Unicode recoding table\n"
" * based on file %s by Unicode Consortium\n"
" */\n\n"
"static wxUint16 encoding_table__%s[128] = {",
@ -50,10 +50,10 @@ int main(int argc, char *argv[])
for (i = 128; i < 256; i++)
{
if (i % 8 == 0)
printf("\n ");
printf("0x%04X%c ", table[i].u, (i == 255) ? '\n' : ',');
printf("\n ");
printf(" 0x%04X%c", table[i].u, (i == 255) ? '\n' : ',');
}
printf("};\n");
printf(" };\n");
qsort(table + 128, 128, sizeof(table[0]), cmpt);

View File

@ -11,36 +11,36 @@ echo " * writing copyright info..."
echo "
/*
* This file is #included by encconv.cpp
* This file is #included by encconv.cpp
*
* CVS-ID: \$Id\$
* CVS-ID: \$Id\$
*
* *** *** CAUTION! *** ***
* Do not modify this file by hand! It is generated by shell
* script \$(WXWIN)/misc/unictabl/regenerate
* *** *** CAUTION! *** ***
* Do not modify this file by hand! It is generated by shell
* script \$(WXWIN)/misc/unictabl/regenerate
*
* Parts of this file are based on tables published by Unicode, Inc.
* Original tables are freely available at
* ftp://ftp.unicode.org/MAPPINGS
* Parts of this file are based on tables published by Unicode, Inc.
* Original tables are freely available at
* ftp://ftp.unicode.org/Public/MAPPINGS
*
* Original copyright info as present in mapping tables follows:
* Original copyright info as present in mapping tables follows:
*
*
* Copyright (c) 1991-1999 Unicode, Inc. All Rights reserved.
* Copyright (c) 1991-1999 Unicode, Inc. All Rights reserved.
*
* This file is provided as-is by Unicode, Inc. (The Unicode Consortium).
* No claims are made as to fitness for any particular purpose. No
* warranties of any kind are expressed or implied. The recipient
* agrees to determine applicability of information provided. If this
* file has been provided on optical media by Unicode, Inc., the sole
* remedy for any claim will be exchange of defective media within 90
* days of receipt.
* This file is provided as-is by Unicode, Inc. (The Unicode Consortium).
* No claims are made as to fitness for any particular purpose. No
* warranties of any kind are expressed or implied. The recipient
* agrees to determine applicability of information provided. If this
* file has been provided on optical media by Unicode, Inc., the sole
* remedy for any claim will be exchange of defective media within 90
* days of receipt.
*
* Unicode, Inc. hereby grants the right to freely use the information
* supplied in this file in the creation of products supporting the
* Unicode Standard, and to make copies of this file in any form for
* internal or external distribution as long as this notice remains
* attached.
* Unicode, Inc. hereby grants the right to freely use the information
* supplied in this file in the creation of products supporting the
* Unicode Standard, and to make copies of this file in any form for
* internal or external distribution as long as this notice remains
* attached.
*/
" > unictabl.inc