Method and system for case conversion
First Claim
1. A method for converting a first set of elements into a second set of elements, at least one element of the first set having a context dependent relation to one or more elements of the second set, using a computer system providing a translation function for translating a block of elements of a first set into a block of elements of a second set in accordance with a table specifying for each element of said first set either one particular element of the second set or an exception handling element, said function being further provided to interrupt processing whenever an element is processed marked by an exception handling element in said table, so that an exception handling function can be executed, said method comprising the steps of:
- splitting said first set of elements into a first subset consisting of such elements getting translated to one particular element of said second set and a second subset consisting of the remaining elements of said first set;
composing a first table in which each element belonging to the first subset is assigned to the respective element of the second set and all elements of said second subset are assigned to an exception handling element;
composing a second table representing rules according to which an exception handling function translates said elements of said second subset;
determining a block of data to be converted, whereby said data is formed by elements of said first set;
providing said first and second table and said determined block of data to said translation function; and
processing said translation function.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention relates to a method and system for converting a first set of elements into a second set of elements, more particularly, to case conversion, e.g., according to the Unicode standard. It exploits a fast translation function provided by a computer system to speed up the conversion process. According to the present invention, the first set of elements is split into a first subset consisting of such elements getting translated to one particular element of said second set and into a second subset consisting of the remaining elements of said first set. A first table is composed in which each element belonging to the first subset is assigned to the respective element of the second set and all elements of said second subset are assigned to an exception handling element. A second table is composed representing rules according to which an exception handling function translates said elements of said second subset. A block of data to be converted is determined, whereby said data is formed by elements of said first set. Then, the first and second table and said determined block of data are provided to said translation function. Finally, the translation function is processed.
30 Citations
16 Claims
-
1. A method for converting a first set of elements into a second set of elements, at least one element of the first set having a context dependent relation to one or more elements of the second set, using a computer system providing a translation function for translating a block of elements of a first set into a block of elements of a second set in accordance with a table specifying for each element of said first set either one particular element of the second set or an exception handling element, said function being further provided to interrupt processing whenever an element is processed marked by an exception handling element in said table, so that an exception handling function can be executed, said method comprising the steps of:
-
splitting said first set of elements into a first subset consisting of such elements getting translated to one particular element of said second set and a second subset consisting of the remaining elements of said first set;
composing a first table in which each element belonging to the first subset is assigned to the respective element of the second set and all elements of said second subset are assigned to an exception handling element;
composing a second table representing rules according to which an exception handling function translates said elements of said second subset;
determining a block of data to be converted, whereby said data is formed by elements of said first set;
providing said first and second table and said determined block of data to said translation function; and
processing said translation function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16)
-
-
15. A system for converting a first set of elements into a second set of elements, at least one element of the first set having a context dependent relation to one or more elements of the second set, comprising a computer system providing a translation function for translating a block of elements of a first set into a block of elements of a second set in accordance with a table specifying for each element of said first set either one particular element of the second set or an exception handling element, said function being further provided to interrupt processing whenever an element is processed marked by an exception handling element in said table, so that an exception handling function can be executed, said computer system comprising:
-
a first portion configured to cause the computer system to split said first set of elements into a first subset consisting of such elements getting translated to one particular element of said second set and a second subset consisting of the remaining elements of said first set;
a second portion configured to cause the computer system to compose a first table in which each element belonging to the first subset is assigned to the respective element of the second set and all elements of said second subset are assigned to an exception handling element;
a third portion configured to cause the computer system to compose a second table representing rules according to which an exception handling function translates said elements of said second subset;
a fourth portion configured to cause the computer system to determine a block of data to be converted, whereby said data is formed by elements of said first set;
a fifth portion configured to cause the computer system to provide said first and second table and said determined block of data to said translation function; and
a sixth portion configured to cause the computer system to process said translation function.
-
Specification