Debian Codegraph @

ChangeLog

raw
1 2007-12-08 Bill Poser <[email protected]>
2
3 * nsdefs.h uninum.c:
4 Added support for Ol Chiki, Saurashtra, and Sundanese.
5
6 2007-12-07 Bill Poser <[email protected]>
7
8 * nsdefs.h uninum.c:
9 Added support for Kayah Li, Lepcha, Shan, Vai.
10
11 2007-10-24 Bill Poser <[email protected]>
12
13 * uninum.c: (WesternGeneralToInt):
14 Added full width numerals and alpha characters.
15 Added full width numerals go GuessNumberSystem
16
17 2007-09-22 Bill Poser <[email protected]>
18
19 * uninum.c (RomanIntToString):
20 Made M for thousand the default even for multiple thousands and
21 added flag Generate_Roman_Numerals_With_Bar_P.
22
23 2007-06-11 Bill Poser <[email protected]>
24
25 * uninum.c:
26 Added support for roman numerals containing reversed C to RomanToInt.
27 Added support for overline as thousands indicator in roman numerals to RomanIntToString.
28
29 2007-06-10 Bill Poser <[email protected]>
30
31 * uninum.c:
32 Added support for overline as thousands indicator in roman numerals to RomanToInt.
33 Added support for specialized roman numeral characters to RomanToInt.
34
35 2007-04-11 Bill Poser <[email protected]>
36
37 * uninum.c:
38 Now reset uninum_err to NS_ERROR_OKAY at beginning of GuessNumberSystem.
39 Added Tcl_ListNumberSystems.
40 Fixed problems with stringnames for Hexadecimal.
41 Added Armenian to UninumStringMaximumValue.
42
43 2007-04-10 Bill Poser <[email protected]>
44
45 * nsdefs.h:
46 Changed NS_ERROR_UNKNWON to NS_ERROR_NUMBER_SYSTEM_UNKNOWN for clarity.
47 Added NS_ERROR_OKAY.
48
49 * uninum.c (GreekAlphabeticIntToString):
50 Fixed bug due to failure to assign data pointer before
51 referencing it.
52
53 2007-03-29 Bill Poser <[email protected]>
54 Release of version 2.3.
55
56 2007-03-26 Bill Poser <[email protected]>
57 * uninum.c:
58 Temporarily disabled EthiopicToInt for repairs.
59
60 * Makefile.am:
61 Merged uout.c and UTF8in.c into uniio.c.
62
63 2007-03-22 Bill Poser <[email protected]>
64
65 * uninum.c:
66 Renamed utf16len to uninum_utf16len to avoid conflict with other libraries.
67
68 2007-03-14 Bill Poser <[email protected]>
69
70 * numconv.c:
71 Made default input number system "all" and default output number system "Western_Lower".
72
73 2007-03-13 Bill Poser <[email protected]>
74
75 * uninum.c:
76 Fixed bug in which Hebrew integral thousands had unit added, e.g. 5000 -> 5005. (BA patch)
77 Fixed bug in which Roman 900 was being written DM rather than CM. (BA patch)
78 Fixed fencepost error in GreekAlphabeticIntToString. (BA patch)
79 Fixed HebrewIntToString to special case 15 and 16.
80
81 * nsdefs.h:
82 Renamed error codes consistently. Added explanatory comments.
83
84 * uninum.c:
85 Modified WesternGeneralIntToString to support base 1.
86
87 Modified WesternGeneralToInt to support base 1.
88
89 2007-03-11 Bill Poser <[email protected]>
90
91 * uninum.c:
92 Fixed storage allocation for single digits in Tamil_Traditional.
93
94 Now use an mpz_t object for the return value from the StringToInt
95 functions instead of an rval union.
96
97 Added support for Verdurian.
98
99 Added check for negative argument to IntToString.
100
101 Added tests for zero argument to the IntToString functions for systems
102 with no zero.
103
104 Eliminated potential memory leak from PlaceNonContiguousIntToString.
105
106 * nsdefs.h:
107 Added the error code NS_NOZEROR_ERROR for number systems that
108 cannot represent zero when given zero as input.
109
110 * uninum.c:
111 Completely redid Tengwar and added Tengwar duodecimal.
112
113 2007-03-10 Bill Poser <[email protected]>
114 * uninum.c:
115 Fixed bug in GuessNumberSystem introduced in 2.2.1 in which
116 any 0 in the string triggered categorization as all zero.
117
118 Added compatibility ideographs to NormalizeChineseCharacters().
119
120 2007-03-08 Bill Poser <[email protected]>
121
122 * uninum.c:
123 Eliminated false positive detection of Roman numerals.
124 Eliminated memory leak in TamilToInt_MPZ.
125 Eliminated memory leak in ChineseWesternIntToString.
126 Fixed bug arising only on error in TengwarToInt.
127 Added public function MaximumValue().
128
129 Fixed bug in Armenian string generation with 0x053 for
130 7 instead of 0x0537.
131
132 Removed the code for producing ulong and string return types
133 from the individual string-to-int functions and moved it
134 to StringToInt, thereby eliminating much repetition.
135
136 2007-03-08 Bill Poser <[email protected]>
137 Release of 2.2.1.
138
139 * uninum.c:
140 Corrected GuessNumberSystem to detect Chinese/Western mix as a kind
141 of Chinese.
142
143
144 2007-03-07 Bill Poser <[email protected]>
145 Release of version 2.2.
146
147 * uninum.c:
148 Fixed fencepost error in wcDelimitNumber()).
149
150 * numconv.c:
151 Changed the handling of several types of errors to be non-fatal.
152
153
154 2007-03-06 Bill Poser <[email protected]>
155 * uninum.c:
156 Removed superflous function wcStripChar().
157
158 2007-03-05 Bill Poser <[email protected]>
159
160 * uninum.c:
161 Fixed several typos in which U+0969F was substituted for U+96F9.
162
163 Eliminated various memory leaks.
164
165 Modified Chinese string functions to return a freshly allocated string
166 for single digits.
167
168 2007-03-02 Bill Poser <[email protected]>
169
170 * uninum.c:
171 IntToString now sets its return paramater to zero on error.
172 This prevents Tcl from issuing error messages about invalid
173 attempts to free pointers and allows calling functions to free
174 the returned string (if the return type is NS_TYPE_STRING)
175 without testing for errors.
176
177 2007-03-01 Bill Poser <[email protected]>
178
179 * uninum.c:
180 Removed WesternToInt() as it is subsumed by WesternGeneralToInt().
181
182 Fixed incorrect normalization of U+534C "40" portmanteau.
183
184 Added several variants to NormalizeChineseCharacters()
185 and corrected several typos.
186
187 * wcgetline.c:
188 Fixed bug (incorrect argument to realloc) that caused weirdness
189 in numconv with long input strings.
190
191 2007-02-28 Bill Poser <[email protected]>
192
193 * uninum.c:
194 Corrected definition of KANNADA_ZERO, which made Kannada digits off by one.
195
196 Fixed bug that left ROMAN_ZERO undefined.
197
198 Rewrote the Chinese, Braille, Counting Rod and Tamil digit tables without the
199 wide string notation so as to avoid failure to null terminate on MS Windows.
200
201 Replaced call to strcasecmp() with call to my own mystrcasecmp() for portability.
202
203 Removed a bunch of memory leaks from string generation functions in which
204 mpz objects were created too early and not cleared before an early return.
205
206 If IntToString does not recognize the number system, uninum_err is now
207 set to NS_UNKNOWN_ERR.
208
209 * uninum.c uninum.h nsdefs.h uninum.i numconv.c:
210 StringToNumberSystem now sets the global variable uninum_ns_type to a value
211 indicating the acceptable use of the code returned. This can be used among
212 other things to check whether the number system is one suitable for string
213 generation.
214
215 2007-02-11 Bill Poser <[email protected]>
216
217 * uninum.c:
218 Replaced wchar_t with UTF32 for portability.
219 Replaced calls to wcslen, wcscat, wcscpy, wcschr, and wcsrchr
220 with calls to ucslen, ucscat, ucscpy, ucschr, and ucsrchr,
221 and defined the latter as macros which expand to the
222 original wc functions with suitable casts.
223
224 2007-02-10 Bill Poser <[email protected]>
225
226 * uninum.c:
227 Added support for Ewellic_Decimal and Ewellic_Hexadecimal
228 Removed Tell_Library_Version(), which was deprecated in the previous release.
229 Made all of the string->int functions static so that StringToInt provides
230 the only interface.
231
232 2007-02-09 Bill Poser <[email protected]>
233
234 * uninum.c:
235 Added support for Aegean numbers.
236 Added support for Common Braille (English and most other languages).
237 Added support for French (Antoine)/Czech Braille.
238 Added support for Russian Braille.
239
240
241 2007-02-08 Bill Poser <[email protected]>
242
243 * numconv.c:
244 Changed flag for identifying number system from -i to -I.
245 Added flags -i and -o for specifying input and output files.
246
247 2007-02-06 Bill Poser <[email protected]>
248 Release of version 2.1.
249
250 * uninum.c:
251 Rationalized number system names and added a flag to the
252 list generator for obtaining either the specific names
253 or the cover terms.
254
255 2007-02-05 Bill Poser <[email protected]>
256
257 * numconv.c:
258 Changed input routine to one that accepts input lines of any length.
259
260 2007-02-04 Bill Poser <[email protected]>
261
262 * uninum.c:
263 Added ability to set grouping parameters according to current locale.
264
265 2007-02-03 Bill Poser <[email protected]>
266
267 * uninum.c:
268 Added Chinese Counting Rod numbers, in four variants.
269
270 2007-02-01 Bill Poser <[email protected]>
271 * nunmconv.c:
272 Rewrote. Now can set group parameters, input and output bases,
273 and input and output number systems.
274
275 * uninum.c:
276 Added the three Georgian alphabetic systems.
277
278 Extended the set of characters stripped when stripping
279 group separators to include apostrophe, ideographic space,
280 ethiopic space, and the arabic thousands separator.
281
282 (wcDelimitNumber):
283 Added ability to specify decimal separator and separate
284 group size for first group.
285
286 Added global variables for input base, output base, and
287 delimitation parameters.
288
289 2007-01-31 Bill Poser <[email protected]>
290
291 * uninum.c:
292 Extended generation of Hebrew numbers to thousands.
293
294 2007-01-27 Bill Poser <[email protected]>
295
296 * uninum.c:
297 Added Kharoshthi.
298
299 Changed name of Tell_Library_Version to uninum_version.
300
301 * uninum.c: (2.0.3)
302 Fixed bug that prevents "all" and "any" number system names
303 from being recognized.
304
305 2007-01-25 Bill Poser <[email protected]>
306
307 * numconv.c:
308 Added check for number argument to numconv with -s flag.
309
310 2007-01-24 Bill Poser <[email protected]>
311
312 * uninum.c: (2.0.2)
313 Defined wcpcpy() internally instead of relying on glibc
314 so as to avoid portability problems.
315 Retracted replacement of unicode.h as too problematic.
316
317 * UTF8in.c: (2.0.1)
318 Completed replacement of "unicode.h" with <uninum/uninum.h>.
319
320 2007-01-23 Bill Poser <[email protected]>
321
322 * uninum.c:
323 Protected the Tcl command UNStrToWNStr against
324 crashing when given an invalid number system name
325 as argument.
326
327 Added the function Tell_Library_Version which returns
328 the library version number.
329
330 * FindTclLibDir.tcl:
331 Added script for finding out where to install Tcl library.
332
333
334 2007-01-22 Bill Poser <[email protected]>
335
336 * uninum.c:
337 Added inverse functions, for generating strings.
338
339 Eliminated need to include unicode.h by moving
340 the necessary definitions into uninum.h.
341
342
343 2007-01-14 Bill Poser <[email protected]>
344
345 * uninum.i:
346 Added Tcl API.
347
348 2007-01-05 Bill Poser <[email protected]>
349
350 * uninum.c:
351 Modified Chinese to handle mixed Chinese Western numbers of the
352 sort not infrequently found in Japan (e.g. 2500 man).
353
354 2007-01-04 Bill Poser <[email protected]>
355
356 * numconv.c:
357 Added -i option which identifies number system.
358
359 * uninum.c:
360 Added Cyrillic alphabetic.
361 Added Glagolitic alphabetic.
362 Added Sinhala in accordance with Unicode proposal.
363 Extended Chinese to handle traditional units through 10^48.
364
365 2007-01-01 Bill Poser <[email protected]>
366
367 * uninum.c:
368 Bugfix: removed declaration of ArabicAlphabeticToInt as static.
369
370 Added Armenian alphabetic.
371 Added characters to NormalizeChineseNumbers.
372
373
374 2006-12-31 Bill Poser <[email protected]>
375
376 * uninum.c:
377 Release 1.1.
378
379 Added a third return type. For those who wish to do further
380 arbitrary precision computation using the results of the
381 conversion, the result may now be requested as an object
382 of type mpz_t.
383
384 Fixed bug in Chinese.
385
386 Added support for Greek Alphabetic (only through 999).
387 Added support for Arabic Alphabetic.
388 Added WesternGeneralToInt.
389 Added type NS_HEX.
390
391 Made system-specific routines return a little earlier on
392 detecting an invalid character.
393
394 2006-12-30 Bill Poser <[email protected]>
395
396 * uninum.c:
397 Added support for Limbu.
398 Added support for New Tai Lue.
399
400 GuessNumberSystem now tests for the case in which the string
401 consists entirely of U+0030 and if it detects it returns
402 the new value NS_ALLZERO. A string containing all zeroes
403 has two special properties. One is that it can be assumed
404 to have the value 0. The other is that it is ambiguous
405 as to number system since some non-Western systems use
406 the Western zero character. The number system specifier
407 returned is distinct from NS_UNKNOWN both because the
408 value of the string is determinate and because the number
409 system can be determinate from additional data if it is
410 available.
411
412 2006-12-28 Bill Poser <[email protected]>
413 *Release of version 1.0.
414
415 * uninum.c:
416 Now do internal calculations using bignums and return results
417 as decimal ascii strings. This allows lossless conversion regardless
418 of the machine word sizes available on the machine.
419
420 Added 0x0030 to NormalizeChinese since it may be used.
421
422 Added Mongolian.
423 Added Balinese.
424 Added Khmer.
425
426