sl@0: # sl@0: # Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: # All rights reserved. sl@0: # This component and the accompanying materials are made available sl@0: # under the terms of "Eclipse Public License v1.0" sl@0: # which accompanies this distribution, and is available sl@0: # at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: # sl@0: # Initial Contributors: sl@0: # Nokia Corporation - initial contribution. sl@0: # sl@0: # Contributors: sl@0: # sl@0: # Description: sl@0: CaseEquivalence.pl takes as its input the file UnicodeData-3.0.0.txt on the standard input stream and produces as output one of the following on the standard output stream depending on the option -o{t|f|r|m}: sl@0: sl@0: -ot: produce a trie in C++ compilable format which gives a mapping for each Unicode character. sl@0: -of: produce a mapping of characters to canonical case equivalent character sl@0: -or: produce a list of canonical case characters and a list of what maps to each sl@0: -om: as -or but does not print those mappings for which only one character needs to map. sl@0: sl@0: This is used to produce the e32 file FoldTable.inl sl@0: sl@0: The files SpecialCasing.txt and CaseFolding.txt are not used by the tool as yet. These are other files from the Unicode Consortium.