tamil-toolkit 0.1.0-alpha.4 → 0.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,19 +20,20 @@
20
20
  | **Unicode and letters** | NFC/NFD normalization, tailored Tamil letter operations, and inspection. |
21
21
  | **Ordering** | Stable Mei-first Agara collation and versioned sort/search keys. |
22
22
  | **Numbers and dates** | Bounded TN/SL number words, exact INR/LKR amounts, fractions, and Gregorian dates. |
23
+ | **Tamil calendar** | Unreleased bounded Thirukanitham Gregorian/solar conversion and five-limb panchangam reports for declared TN/SL coordinates in 2024–2027. Its custom profile does not claim every publisher's Drik output; calendar fixtures remain planned. |
23
24
  | **Legacy conversion** | Bamini text conversion, bounded TSCII/TAB/TAM/Anjal byte profiles, and LT-TM / IndoWord 16-bit CID conversion. |
24
25
 
25
26
  TypeScript and WASM are thin bindings to the shared Rust implementation.
26
27
 
27
28
  ## Install
28
29
 
29
- Node.js 22+ is supported. Install alpha 4 from npm’s `alpha` dist-tag:
30
+ Node.js 22+ is supported. Install alpha 5 from npm’s `alpha` dist-tag:
30
31
 
31
32
  ```sh
32
33
  npm install tamil-toolkit@alpha
33
34
  ```
34
35
 
35
- The `alpha` tag points to `0.1.0-alpha.4`; npm’s `latest` tag still points to
36
+ The `alpha` tag points to `0.1.0-alpha.5`; npm’s `latest` tag still points to
36
37
  `0.1.0-alpha.1`. The version badge above tracks the `alpha` tag.
37
38
 
38
39
  ## Node quick start
@@ -60,9 +61,9 @@ console.log(get_letters("தமிழ்").join(" | "));
60
61
  The host page or bundler must serve the packaged WASM asset as an ES module
61
62
  asset. The Node entry point initializes its native WASM module automatically.
62
63
 
63
- ## Alpha 4 scope
64
+ ## Alpha 5 scope
64
65
 
65
- The npm `0.1.0-alpha.4` package includes the capabilities listed above. The
66
+ The npm `0.1.0-alpha.5` package includes the capabilities listed above. The
66
67
  shared `execute` API exposes `lt_tm_codes_to_unicode`, `lt_tm_text_to_unicode`,
67
68
  `unicode_to_lt_tm_codes`, and `unicode_to_lt_tm_text`. LT-TM conversion handles
68
69
  selected 16-bit code sequences; it does not parse PDFs, select font runs, or
@@ -86,7 +87,7 @@ const text = tamil.execute({ op: "lt_tm_codes_to_unicode", input: { codes } });
86
87
  - [Unicode/core contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/core-v0.1.md)
87
88
  - [Collation contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/collate-v0.1.md)
88
89
  - [Numerals, fractions, and dates](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/numerals-v0.2.md)
89
- - [Codec contract and alpha 3 limits](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/releases/alpha-4.md#compatibility-and-scope)
90
+ - [Codec contract and alpha 3 limits](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/releases/alpha-5.md#compatibility-and-scope)
90
91
  - [LT-TM CID profile contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/codec-lt-tm.md)
91
92
  - [Third-party notices](https://github.com/abishtakan/tamil-toolkit/blob/master/THIRD_PARTY_NOTICES.md)
92
93
 
@@ -1,5 +1,29 @@
1
1
  Locked Rust dependency licenses for tamil-toolkit binary distributions.
2
2
 
3
+ === astro 2.0.0 (MIT) ===
4
+
5
+ --- LICENSE.md ---
6
+ Copyright (c) 2015, 2016 Saurav Sachidanand
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+
3
27
  === bumpalo 3.20.3 (MIT OR Apache-2.0) ===
4
28
 
5
29
  --- LICENSE-APACHE ---
@@ -12,6 +12,37 @@ LT-TM and Vanavil mapping references: Azhagi+ Portable configurations; source
12
12
  digests and scope are recorded in docs/specs/codec-lt-tm.md and
13
13
  docs/specs/codec-vanavil.md. Their bundled terms remain applicable to the
14
14
  derived mapping tables.
15
+ Tamil calendar display labels are extracted as short factual name lists from
16
+ Tamil Virtual Academy's educational page; its reuse terms were not stated, so
17
+ no license or permission is asserted and no prose or page/table image is copied.
18
+ Tamil Gregorian weekday labels are from CLDR 49 under Unicode data terms.
19
+ The Latin transliterations of the seven weekday names are from Vidya Mohan and
20
+ Rajiv Ranjan, *Basic Tamil* (2024), chapter 6.1, under CC BY-NC 4.0; attribution
21
+ and the noncommercial condition remain applicable. No images or surrounding
22
+ text from the book are included.
23
+ Historical Vakyakarana solar-transit, Bhupadi correction, and Candra-vakya
24
+ values are transcribed as mathematical facts from *Vakyakarana with
25
+ Sundararaja's Laghuprakashika*, eds. T. S. Kuppanna Sastri and K. V. Sarma,
26
+ 1962, printed English translation pp. 251-253 and Appendix II pp. 125-134.
27
+ No source prose or scan images are included; the publication's redistribution
28
+ terms were not established. See docs/specs/calendar-vakya-solar-v1.md and
29
+ docs/specs/calendar-vakya-moon-v1.md before redistributing this data.
30
+ The Ujjain mean-sunrise civil profile uses the same 1962 source, Bag (2001)
31
+ for the Kali epoch's Gregorian equivalence, Pai (2019) as an independent
32
+ transit-method cross-check, and IMD station metadata. It does not include
33
+ source prose or page images; see docs/specs/calendar-vakya-civil-v1.md. The
34
+ 1962 source's redistribution terms remain unresolved.
35
+ The Thirukanitham Drik profile depends on Rust `astro` 2.0.0 by Saurav
36
+ Sachidanand, distributed under the MIT license; its complete upstream license
37
+ text is copied below. GeoNames city-point coordinates are attributed to
38
+ GeoNames and used under CC BY 4.0. Drik Panchang, IMD, and Nava Panchangam
39
+ provide factual date and rule witnesses in planned calendar suites. The named
40
+ Nava observance subset records its published Aparahna-then-sunrise selection
41
+ rule and factual annual dates; Nava's annual tithi pages use Vakyakarana, so
42
+ their match to Thirukanitham is not a publisher-equivalence claim. Reuse terms
43
+ for these page tables are not established, and no source page or markup is
44
+ copied. Exact sources, locators, coverage, and retained-page digests are in
45
+ lexicon/calendar-observances.toml and docs/specs/calendar-observances-v1.md.
15
46
  Exact sources, revisions, digests and profile limits are recorded at:
16
47
  https://github.com/abishtakan/tamil-toolkit/tree/HEAD/tests/reference
17
48
  and https://github.com/abishtakan/tamil-toolkit/tree/HEAD/docs/specs
@@ -143,3 +174,27 @@ SOFTWARE.
143
174
  Above license is for Tamil-Utill only. We do not offer fonts used in the example under the same license.
144
175
  ```
145
176
 
177
+ ## astro 2.0.0 by Saurav Sachidanand (MIT)
178
+
179
+ ```text
180
+ Copyright (c) 2015, 2016 Saurav Sachidanand
181
+
182
+ Permission is hereby granted, free of charge, to any person obtaining a copy
183
+ of this software and associated documentation files (the "Software"), to deal
184
+ in the Software without restriction, including without limitation the rights
185
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
186
+ copies of the Software, and to permit persons to whom the Software is
187
+ furnished to do so, subject to the following conditions:
188
+
189
+ The above copyright notice and this permission notice shall be included in
190
+ all copies or substantial portions of the Software.
191
+
192
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
193
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
194
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
195
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
196
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
197
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
198
+ THE SOFTWARE.
199
+ ```
200
+
package/dist/api.d.ts CHANGED
@@ -11,6 +11,463 @@ export type Currency = "INR" | "LKR";
11
11
  export type CodecErrorPolicy = "strict" | "preserve";
12
12
  export type DigitStyle = "latin" | "tamil";
13
13
  export type DateStyle = "short" | "medium" | "long" | "full";
14
+ export type Grouping = "none" | "indian";
15
+ export interface ExactDecimal {
16
+ negative: boolean;
17
+ coefficient: string;
18
+ scale: number;
19
+ }
20
+ export interface MixedFraction {
21
+ negative: boolean;
22
+ whole: number;
23
+ numerator: number;
24
+ denominator: number;
25
+ }
26
+ export type NumericRangeEndpoint = {
27
+ type: "decimal";
28
+ value: ExactDecimal;
29
+ } | {
30
+ type: "fraction";
31
+ numerator: number;
32
+ denominator: number;
33
+ };
34
+ export interface GregorianDate {
35
+ year: number;
36
+ month: number;
37
+ day: number;
38
+ }
39
+ export type CalendarDisplayScript = "tamil" | "romanized";
40
+ export type CalendarDisplayDigits = DigitStyle;
41
+ export type CalendarDisplayStyle = "day_month_year" | "weekday_day_month_year";
42
+ export type CalendarRegion = "TN" | "SL";
43
+ export interface CalendarContext {
44
+ region: CalendarRegion;
45
+ latitude_microdegrees: number;
46
+ longitude_microdegrees: number;
47
+ elevation_meters: number;
48
+ time_zone: "Asia/Kolkata" | "Asia/Colombo";
49
+ }
50
+ export interface VakyaCivilContext {
51
+ reference_station: "ujjain";
52
+ time_zone: "Asia/Kolkata" | "Asia/Colombo";
53
+ }
54
+ export type CalendarContextInput = CalendarContext | VakyaCivilContext;
55
+ export type CalendarProfileComparisonMoment = {
56
+ date: GregorianDate;
57
+ instant_unix_seconds?: never;
58
+ } | {
59
+ date?: never;
60
+ instant_unix_seconds: number;
61
+ };
62
+ export type CalendarProfileComparisonInput = CalendarProfileComparisonMoment & {
63
+ thirukanitham_context: CalendarContext;
64
+ vakya_context: VakyaCivilContext;
65
+ };
66
+ export interface CalendarProfileComparisonResult {
67
+ comparison_basis: "same_gregorian_civil_date" | "same_utc_instant";
68
+ moment: CalendarProfileComparisonMoment;
69
+ profiles: Record<string, unknown>;
70
+ differing_fields: string[];
71
+ accuracy_assessment: "not_assessed";
72
+ }
73
+ export type CalendarObservanceId = "puthandu" | "bhogi_pandigai" | "pongal" | "mattu_pongal" | "amavasya_tithi_day" | "pournami_tithi_day" | "sri_vaishnava_ekadashi" | "nava_pradosham" | "aadi_perukku" | "thai_poosam" | "panguni_uthiram" | "vaikasi_visakam" | "arudra_darshan" | "karthigai_deepam" | "chitra_pournami" | "vinayaka_chaturthi" | "sivarathri" | "deepavali" | "navaratri_ghatasthapana" | "ayudha_puja" | "vijayadasami" | "sankatahara_chaturthi" | "krishna_jayanthi";
74
+ export interface CalendarObservanceSource {
75
+ id: string;
76
+ url: string;
77
+ locator: string;
78
+ sha256: string | null;
79
+ year: number | null;
80
+ }
81
+ export interface CalendarObservanceEvent {
82
+ event_id: CalendarObservanceId;
83
+ display_name: string;
84
+ date: GregorianDate;
85
+ rule_id: string;
86
+ tithi_index: number | null;
87
+ nakshatra_index: number | null;
88
+ source_ids: string[];
89
+ }
90
+ export interface CalendarObservances {
91
+ definition_id: string;
92
+ rule_set_id: "thirukanitham-tamil-named-observances-v1";
93
+ gregorian_year: number;
94
+ jurisdiction: "TN";
95
+ context: CalendarContext;
96
+ scope_note: string;
97
+ astronomy_note: string;
98
+ source_compatibility: "publisher_equivalence_not_claimed";
99
+ reuse_terms_status: string;
100
+ sources: CalendarObservanceSource[];
101
+ supported_event_ids: CalendarObservanceId[];
102
+ events: CalendarObservanceEvent[];
103
+ }
104
+ export interface ThiruvalluvarYearInfo {
105
+ convention_id: "tn-thiruvalluvar-thai1-thirukanitham-v1";
106
+ calendar_definition_id: string;
107
+ context: CalendarContext;
108
+ gregorian_date: GregorianDate;
109
+ thiruvalluvar_year: number;
110
+ thai1_date: GregorianDate;
111
+ boundary_status: "before_thai1" | "on_or_after_thai1";
112
+ year_number_rule: string;
113
+ official_equivalence: "not_established";
114
+ scope_note: string;
115
+ known_source_conflict: string;
116
+ sources: Array<{
117
+ id: string;
118
+ url: string;
119
+ locator: string;
120
+ }>;
121
+ }
122
+ export declare const calendarDefinitions: {
123
+ readonly thirukanitham: "thirukanitham-astro-2.0.0-lahiri-p03-apparent-v2";
124
+ readonly vakyaCivil: "vakyakarana-1962-laghuprakashika-civil-ujjain-mean-sunrise-v1";
125
+ };
126
+ export interface ThirukanithamProfileInfo {
127
+ profile: string;
128
+ definition_id: string;
129
+ coverage: {
130
+ start_date: string;
131
+ end_date: string;
132
+ };
133
+ solar_year: {
134
+ start: number;
135
+ end: number;
136
+ meaning: string;
137
+ };
138
+ ephemeris: {
139
+ provider: string;
140
+ version: string;
141
+ license: string;
142
+ archive_sha256: string;
143
+ sun_model: string;
144
+ moon_model: string;
145
+ nutation_model: string;
146
+ solar_coordinate_definition: string;
147
+ lunar_coordinate_definition: string;
148
+ };
149
+ time_model: {
150
+ tt_minus_utc_millis: number;
151
+ ut1_minus_utc_assumed_millis: number;
152
+ ut1_minus_utc_max_abs_millis: number;
153
+ time_zone_database_release: string;
154
+ };
155
+ sidereal_definition: string;
156
+ sidereal_parameters: {
157
+ coordinate_definition: string;
158
+ true_anchor_milliarcseconds: number;
159
+ mean_anchor_microarcseconds: number;
160
+ anchor_jd_centidays: number;
161
+ p03_picoarcseconds_per_power: number[];
162
+ p03_epoch_jd_millidays: number;
163
+ p03_century_days: number;
164
+ };
165
+ sunrise: {
166
+ center_altitude_arcminutes: number;
167
+ refraction_arcminutes: number;
168
+ solar_semidiameter_arcminutes: number;
169
+ earth_radius_meters: number;
170
+ horizon_definition: string;
171
+ };
172
+ vara_definition: string;
173
+ solar_month_rule: string;
174
+ supported_regions: {
175
+ region: string;
176
+ time_zone: string;
177
+ utc_offset_seconds: number;
178
+ latitude_min_microdegrees: number;
179
+ latitude_max_microdegrees: number;
180
+ longitude_min_microdegrees: number;
181
+ longitude_max_microdegrees: number;
182
+ }[];
183
+ reference_stations: {
184
+ id: string;
185
+ region: string;
186
+ latitude_microdegrees: number;
187
+ longitude_microdegrees: number;
188
+ elevation_meters: number;
189
+ source: string;
190
+ }[];
191
+ sources: string[];
192
+ }
193
+ export interface TamilSolarDate {
194
+ solar_year: number;
195
+ month: number;
196
+ month_name: string;
197
+ day: number;
198
+ }
199
+ export interface CalendarDateConversion {
200
+ definition_id: string;
201
+ gregorian_date: GregorianDate;
202
+ tamil_date: TamilSolarDate;
203
+ reference_station?: string;
204
+ day_boundary?: string;
205
+ }
206
+ export interface TamilMonthInfo {
207
+ definition_id: string;
208
+ solar_year: number;
209
+ month: number;
210
+ month_name: string;
211
+ start_date: GregorianDate;
212
+ end_date_exclusive: GregorianDate;
213
+ days: number;
214
+ reference_station?: string;
215
+ day_boundary?: string;
216
+ }
217
+ export interface TamilYearInfo {
218
+ definition_id: string;
219
+ solar_year: number;
220
+ start_date: GregorianDate;
221
+ year_cycle: TamilSolarYearCycle;
222
+ end_date_exclusive: GregorianDate;
223
+ days: number;
224
+ months: Array<Pick<TamilMonthInfo, "month" | "month_name" | "start_date" | "end_date_exclusive" | "days">>;
225
+ reference_station?: string;
226
+ day_boundary?: string;
227
+ }
228
+ export interface TamilSolarYearCycle {
229
+ solar_year: number;
230
+ cycle_index: number;
231
+ cycle_name: string;
232
+ anchor: {
233
+ solar_year: number;
234
+ cycle_index: number;
235
+ };
236
+ source_id: string;
237
+ source: string;
238
+ source_sha256: string;
239
+ region_scope: string;
240
+ sources: string[];
241
+ }
242
+ export interface TamilYearCycleInfo extends TamilSolarYearCycle {
243
+ definition_id: string;
244
+ }
245
+ export interface OfficialHolidayYearInfo {
246
+ jurisdiction: "TN" | "SL";
247
+ year: number;
248
+ schedule_id: string;
249
+ source_id: string;
250
+ source: string;
251
+ source_url: string;
252
+ source_sha256: string | null;
253
+ reuse_terms_status: "unverified";
254
+ scope_note: string;
255
+ holidays: Array<{
256
+ date: GregorianDate;
257
+ name: string;
258
+ categories: string[];
259
+ }>;
260
+ }
261
+ export interface AddTamilDateResult {
262
+ definition_id: string;
263
+ tamil_date: TamilSolarDate;
264
+ gregorian_date: GregorianDate;
265
+ reference_station?: string;
266
+ day_boundary?: string;
267
+ }
268
+ export interface CalendarDaylightPeriod {
269
+ period: "rahukalam" | "yamagandam" | "kuligai";
270
+ eighth_part: number;
271
+ start_local_time: {
272
+ hour: number;
273
+ minute: number;
274
+ second: number;
275
+ };
276
+ end_local_time: {
277
+ hour: number;
278
+ minute: number;
279
+ second: number;
280
+ };
281
+ }
282
+ export interface CalendarDaylightPeriods {
283
+ definition_id: string;
284
+ date: GregorianDate;
285
+ weekday: string;
286
+ rule_id: string;
287
+ daylight_basis: string;
288
+ sunrise_local_time: {
289
+ hour: number;
290
+ minute: number;
291
+ second: number;
292
+ };
293
+ sunset_local_time: {
294
+ hour: number;
295
+ minute: number;
296
+ second: number;
297
+ };
298
+ intervals: CalendarDaylightPeriod[];
299
+ source: string;
300
+ source_sha256: string;
301
+ }
302
+ export type LunarPhase = "new_moon" | "first_quarter" | "full_moon" | "last_quarter";
303
+ export interface LunarPhaseEvent {
304
+ phase: LunarPhase;
305
+ ecliptic_longitude_difference_degrees: 0 | 90 | 180 | 270;
306
+ utc_minute: GregorianDate & {
307
+ hour: number;
308
+ minute: number;
309
+ };
310
+ }
311
+ export interface LunarPhaseEvents {
312
+ definition_id: string;
313
+ events: LunarPhaseEvent[];
314
+ }
315
+ export interface CalendarLimb {
316
+ index: number;
317
+ name: string;
318
+ paksha: "shukla" | "krishna" | null;
319
+ }
320
+ export interface CalendarLimbs {
321
+ tithi: CalendarLimb;
322
+ nakshatra: CalendarLimb;
323
+ yoga: CalendarLimb;
324
+ karana: CalendarLimb;
325
+ }
326
+ export interface PanchangamAt {
327
+ definition_id: string;
328
+ local_date: GregorianDate;
329
+ local_time: {
330
+ hour: number;
331
+ minute: number;
332
+ second: number;
333
+ };
334
+ vara: string;
335
+ limbs: CalendarLimbs;
336
+ reference_station?: string;
337
+ position_basis?: string;
338
+ }
339
+ export interface PanchangamTransition {
340
+ limb: "tithi" | "nakshatra" | "yoga" | "karana";
341
+ from_index: number;
342
+ to_index: number;
343
+ day_offset: number;
344
+ minute_of_day: number;
345
+ }
346
+ export interface PanchangamDay {
347
+ definition_id: string;
348
+ date: GregorianDate;
349
+ sunrise_minute_of_day: number;
350
+ sunset_minute_of_day: number | null;
351
+ vara: string;
352
+ limbs_at_sunrise: CalendarLimbs;
353
+ transitions: PanchangamTransition[];
354
+ sunrise_basis?: string;
355
+ sunset_status?: string;
356
+ }
357
+ export interface VakyaCivilProfileInfo {
358
+ profile: string;
359
+ definition_id: string;
360
+ coverage: Record<string, unknown>;
361
+ epoch: Record<string, unknown>;
362
+ reference_station: Record<string, unknown>;
363
+ day_boundary: string;
364
+ solar_model: Record<string, unknown>;
365
+ moon_model: Record<string, unknown>;
366
+ local_sunrise: Record<string, unknown>;
367
+ sources: string[];
368
+ [key: string]: unknown;
369
+ }
370
+ export type CalendarProfileInfo = VakyaCivilProfileInfo | ThirukanithamProfileInfo;
371
+ export interface Ahargana {
372
+ days: number;
373
+ nadi: number;
374
+ vinadi: number;
375
+ weekday: string;
376
+ }
377
+ export interface SolarTransit {
378
+ rasi: string;
379
+ day_field: number;
380
+ weekday: string;
381
+ nadi: number;
382
+ vinadi: number;
383
+ }
384
+ export interface VakyaSolarYear {
385
+ definition_id: string;
386
+ saka_year_elapsed: number;
387
+ kali_year: number;
388
+ ahargana: Ahargana;
389
+ transits: SolarTransit[];
390
+ }
391
+ export interface DmsAngle {
392
+ degrees: number;
393
+ minutes: number;
394
+ seconds: number;
395
+ }
396
+ export interface VakyaTrueSun {
397
+ definition_id: string;
398
+ elapsed_from_mesha: {
399
+ days: number;
400
+ nadi: number;
401
+ vinadi: number;
402
+ };
403
+ approximate_sun: DmsAngle;
404
+ bhupadi_correction: DmsAngle;
405
+ true_sun: DmsAngle;
406
+ }
407
+ export interface RasiDmsAngle {
408
+ rasi: number;
409
+ degrees: number;
410
+ minutes: number;
411
+ seconds: number;
412
+ }
413
+ export interface VakyaTrueMoon {
414
+ definition_id: string;
415
+ kali_day: number;
416
+ quotients: {
417
+ period_12372: number;
418
+ period_3031: number;
419
+ period_248: number;
420
+ };
421
+ moon_vakya_number: number;
422
+ uncorrected_true_moon: RasiDmsAngle;
423
+ daily_motion: DmsAngle;
424
+ vinadi_adjustment: number;
425
+ correction_seconds: number;
426
+ true_moon: RasiDmsAngle;
427
+ }
428
+ export interface VakyaLocalSunriseReduction {
429
+ definition_id: string;
430
+ true_position: RasiDmsAngle;
431
+ daily_motion: DmsAngle;
432
+ adjustment_vinadi_tenths: {
433
+ cara_half: number;
434
+ desantara: number;
435
+ bhujaantara: number;
436
+ total: number;
437
+ };
438
+ correction_arcseconds: number;
439
+ local_true_position: RasiDmsAngle;
440
+ }
441
+ export interface VakyaCara {
442
+ definition_id: string;
443
+ sayana_sun: RasiDmsAngle;
444
+ bhuja: RasiDmsAngle;
445
+ equinoctial_shadow_tenths: number;
446
+ cara_vinadi_tenths: number;
447
+ }
448
+ export interface VakyaDesantara {
449
+ definition_id: string;
450
+ east_west_distance_tenths_yojana: number;
451
+ desantara_vinadi_tenths: number;
452
+ }
453
+ export interface VakyaBhujaantara {
454
+ definition_id: string;
455
+ sun_rasi: number;
456
+ sun_rasi_progress_arcseconds: number;
457
+ bracketing_endpoint_vinadi: [number, number];
458
+ bhujaantara_vinadi_tenths: number;
459
+ }
460
+ export interface SymbolInfo {
461
+ codepoint: number;
462
+ name: string;
463
+ kind: string;
464
+ rational: {
465
+ numerator: number;
466
+ denominator: number;
467
+ } | null;
468
+ canonical_alternative: number | null;
469
+ source_version: string;
470
+ }
14
471
  export interface Inspection {
15
472
  nfc: string;
16
473
  nfd: string;
@@ -61,4 +518,66 @@ export declare function createApi(nativeExecute: (request: string) => string): {
61
518
  fraction_to_words: (numerator: number, denominator: number, locale?: Locale) => string;
62
519
  fraction_symbol: (numerator: number, denominator: number) => string;
63
520
  format_date: (year: number, month: number, day: number, locale?: Locale, style?: DateStyle, digits?: DigitStyle) => string;
521
+ convert_digits: (text: string, to: DigitStyle) => string;
522
+ parse_decimal: (text: string, source_digits: DigitStyle, grouping?: Grouping, allow_mixed_digits?: boolean) => ExactDecimal;
523
+ format_decimal: (value: ExactDecimal, digits?: DigitStyle, grouping?: Grouping) => string;
524
+ decimal_to_words: (text: string, source_digits: DigitStyle, locale?: Locale, grouping?: Grouping, allow_mixed_digits?: boolean) => string;
525
+ ordinal_to_words: (value: number, locale?: Locale) => string;
526
+ digit_sequence_to_words: (text: string, source_digits: DigitStyle, locale?: Locale) => string;
527
+ format_currency_decimal: (amount: string, source_digits: DigitStyle, currency: Currency, locale?: Locale, grouping?: Grouping) => string;
528
+ currency_decimal_to_words: (amount: string, source_digits: DigitStyle, currency: Currency, locale?: Locale, grouping?: Grouping) => string;
529
+ parse_fraction_symbol: (text: string) => {
530
+ numerator: number;
531
+ denominator: number;
532
+ };
533
+ symbol_info: (text: string) => SymbolInfo;
534
+ format_mixed_fraction: (value: MixedFraction, digits?: DigitStyle) => string;
535
+ parse_mixed_fraction: (text: string, source_digits: DigitStyle) => MixedFraction;
536
+ format_traditional_integer: (value: number) => string;
537
+ parse_traditional_integer: (text: string) => number;
538
+ parse_percent: (text: string, source_digits: DigitStyle, grouping?: Grouping) => ExactDecimal;
539
+ format_percent: (value: ExactDecimal, digits?: DigitStyle, grouping?: Grouping) => string;
540
+ ratio_to_percent: (value: ExactDecimal) => ExactDecimal;
541
+ percent_to_ratio: (value: ExactDecimal) => ExactDecimal;
542
+ format_numeric_range: (start: NumericRangeEndpoint, end: NumericRangeEndpoint, start_inclusive: boolean, end_inclusive: boolean, separator?: string, digits?: DigitStyle) => string;
543
+ validate_gregorian_date: (year: number, month: number, day: number) => boolean;
544
+ parse_gregorian_date: (text: string) => GregorianDate;
545
+ weekday: (year: number, month: number, day: number) => string;
546
+ add_gregorian_date: (year: number, month: number, day: number, unit: "days" | "months" | "years", amount: number, overflow?: "reject" | "clamp") => GregorianDate;
547
+ date_difference: (start: GregorianDate, end: GregorianDate) => number;
548
+ date_interval: (start: string, end: string) => {
549
+ start: string;
550
+ end: string;
551
+ inclusive_days: number;
552
+ };
553
+ vakya_solar_transits: (saka_year_elapsed: number) => VakyaSolarYear;
554
+ vakya_true_sun_from_mesha_elapsed: (elapsed_days: number, nadi: number, vinadi: number) => VakyaTrueSun;
555
+ vakya_true_moon_from_kali_day: (kali_day: number) => VakyaTrueMoon;
556
+ vakya_reduce_to_local_true_sunrise: (true_position: RasiDmsAngle, daily_motion: DmsAngle, cara_half_vinadi_tenths: number, desantara_vinadi_tenths: number, bhujaantara_vinadi_tenths: number) => VakyaLocalSunriseReduction;
557
+ vakya_cara_from_sayana_sun: (sayana_sun: RasiDmsAngle, equinoctial_shadow_tenths: number) => VakyaCara;
558
+ vakya_desantara_from_yojana_distance: (east_west_distance_tenths_yojana: number) => VakyaDesantara;
559
+ vakya_bhujaantara_from_true_sun: (sun_rasi: number, sun_rasi_progress_arcseconds: number) => VakyaBhujaantara;
560
+ calendar_profile_info: (definition_id?: string) => CalendarProfileInfo;
561
+ gregorian_to_tamil_date: (date: GregorianDate, context: CalendarContextInput, definition_id?: string) => CalendarDateConversion;
562
+ tamil_to_gregorian_date: (date: TamilSolarDate, context: CalendarContextInput, definition_id?: string) => {
563
+ definition_id: string;
564
+ tamil_date: TamilSolarDate;
565
+ gregorian_date: GregorianDate;
566
+ reference_station?: string;
567
+ day_boundary?: string;
568
+ };
569
+ tamil_month_info: (solar_year: number, month: number, context: CalendarContextInput, definition_id?: string) => TamilMonthInfo;
570
+ tamil_year_info: (solar_year: number, context: CalendarContextInput, definition_id?: string) => TamilYearInfo;
571
+ tamil_year_cycle_info: (solar_year: number, context: CalendarContextInput, definition_id?: string) => TamilYearCycleInfo;
572
+ calendar_official_holidays: (jurisdiction: "TN" | "SL", year: number) => OfficialHolidayYearInfo;
573
+ calendar_observances: (gregorian_year: number, context: CalendarContextInput, rule_set?: string, definition_id?: string, month?: number) => CalendarObservances;
574
+ add_tamil_date: (date: TamilSolarDate, unit: "days" | "months" | "years", amount: number, context: CalendarContextInput, overflow?: "reject" | "clamp", definition_id?: string) => AddTamilDateResult;
575
+ panchangam_at: (instant_unix_seconds: number, context: CalendarContextInput, definition_id?: string) => PanchangamAt;
576
+ panchangam_day: (date: GregorianDate, context: CalendarContextInput, definition_id?: string) => PanchangamDay;
577
+ lunar_phase_events: (start_unix_seconds: number, end_unix_seconds: number, definition_id?: string) => LunarPhaseEvents;
578
+ calendar_daylight_periods: (date: GregorianDate, context: CalendarContextInput, definition_id?: string) => CalendarDaylightPeriods;
579
+ format_tamil_date: (date: GregorianDate, context: CalendarContextInput, script?: CalendarDisplayScript, digits?: CalendarDisplayDigits, style?: CalendarDisplayStyle, definition_id?: string) => string;
580
+ calendar_display_info: (date: GregorianDate, context: CalendarContextInput, script?: CalendarDisplayScript, digits?: CalendarDisplayDigits, definition_id?: string) => Record<string, unknown>;
581
+ compare_calendar_profiles: (input: CalendarProfileComparisonInput) => CalendarProfileComparisonResult;
582
+ thiruvalluvar_year_info: (date: GregorianDate, context: CalendarContext, convention_id?: ThiruvalluvarYearInfo["convention_id"]) => ThiruvalluvarYearInfo;
64
583
  };
package/dist/api.js CHANGED
@@ -1,6 +1,11 @@
1
+ export const calendarDefinitions = {
2
+ thirukanitham: "thirukanitham-astro-2.0.0-lahiri-p03-apparent-v2",
3
+ vakyaCivil: "vakyakarana-1962-laghuprakashika-civil-ujjain-mean-sunrise-v1",
4
+ };
1
5
  /** Serialization only. The Rust dispatcher owns every operation. */
2
6
  export function createApi(nativeExecute) {
3
7
  const execute = (request) => JSON.parse(nativeExecute(JSON.stringify(request)));
8
+ const thirukanithamDefinition = calendarDefinitions.thirukanitham;
4
9
  return {
5
10
  execute,
6
11
  get_letters: (text) => execute({ op: "get_letters", input: text }),
@@ -38,5 +43,54 @@ export function createApi(nativeExecute) {
38
43
  fraction_to_words: (numerator, denominator, locale = "TN") => execute({ op: "fraction_to_words", input: { numerator, denominator, locale } }),
39
44
  fraction_symbol: (numerator, denominator) => execute({ op: "fraction_symbol", input: { numerator, denominator } }),
40
45
  format_date: (year, month, day, locale = "TN", style = "long", digits = "latin") => execute({ op: "format_date", input: { year, month, day, locale, style, digits } }),
46
+ convert_digits: (text, to) => execute({ op: "convert_digits", input: { text, to } }),
47
+ parse_decimal: (text, source_digits, grouping = "none", allow_mixed_digits = false) => execute({ op: "parse_decimal", input: { text, source_digits, grouping, allow_mixed_digits } }),
48
+ format_decimal: (value, digits = "latin", grouping = "none") => execute({ op: "format_decimal", input: { value, digits, grouping } }),
49
+ decimal_to_words: (text, source_digits, locale = "TN", grouping = "none", allow_mixed_digits = false) => execute({ op: "decimal_to_words", input: { text, source_digits, locale, grouping, allow_mixed_digits } }),
50
+ ordinal_to_words: (value, locale = "TN") => execute({ op: "ordinal_to_words", input: { value, locale } }),
51
+ digit_sequence_to_words: (text, source_digits, locale = "TN") => execute({ op: "digit_sequence_to_words", input: { text, source_digits, locale } }),
52
+ format_currency_decimal: (amount, source_digits, currency, locale = "TN", grouping = "none") => execute({ op: "format_currency_decimal", input: { amount, source_digits, currency, locale, grouping } }),
53
+ currency_decimal_to_words: (amount, source_digits, currency, locale = "TN", grouping = "none") => execute({ op: "currency_decimal_to_words", input: { amount, source_digits, currency, locale, grouping } }),
54
+ parse_fraction_symbol: (text) => execute({ op: "parse_fraction_symbol", input: { text } }),
55
+ symbol_info: (text) => execute({ op: "symbol_info", input: { text } }),
56
+ format_mixed_fraction: (value, digits = "latin") => execute({ op: "format_mixed_fraction", input: { ...value, digits } }),
57
+ parse_mixed_fraction: (text, source_digits) => execute({ op: "parse_mixed_fraction", input: { text, source_digits } }),
58
+ format_traditional_integer: (value) => execute({ op: "format_traditional_integer", input: { value } }),
59
+ parse_traditional_integer: (text) => execute({ op: "parse_traditional_integer", input: { text } }),
60
+ parse_percent: (text, source_digits, grouping = "none") => execute({ op: "parse_percent", input: { text, source_digits, grouping } }),
61
+ format_percent: (value, digits = "latin", grouping = "none") => execute({ op: "format_percent", input: { value, digits, grouping } }),
62
+ ratio_to_percent: (value) => execute({ op: "ratio_to_percent", input: { value } }),
63
+ percent_to_ratio: (value) => execute({ op: "percent_to_ratio", input: { value } }),
64
+ format_numeric_range: (start, end, start_inclusive, end_inclusive, separator = "–", digits = "latin") => execute({ op: "format_numeric_range", input: { start, end, start_inclusive, end_inclusive, separator, digits } }),
65
+ validate_gregorian_date: (year, month, day) => execute({ op: "validate_gregorian_date", input: { year, month, day } }),
66
+ parse_gregorian_date: (text) => execute({ op: "parse_gregorian_date", input: { text } }),
67
+ weekday: (year, month, day) => execute({ op: "weekday", input: { year, month, day } }),
68
+ add_gregorian_date: (year, month, day, unit, amount, overflow = "reject") => execute({ op: "add_gregorian_date", input: { year, month, day, unit, amount, overflow } }),
69
+ date_difference: (start, end) => execute({ op: "date_difference", input: { start, end } }),
70
+ date_interval: (start, end) => execute({ op: "date_interval", input: { start, end } }),
71
+ vakya_solar_transits: (saka_year_elapsed) => execute({ op: "vakya_solar_transits", input: { definition_id: "vakyakarana-1962-laghuprakashika-solar-transits-v1", saka_year_elapsed } }),
72
+ vakya_true_sun_from_mesha_elapsed: (elapsed_days, nadi, vinadi) => execute({ op: "vakya_true_sun_from_mesha_elapsed", input: { definition_id: "vakyakarana-1962-laghuprakashika-solar-transits-v1", elapsed_days, nadi, vinadi } }),
73
+ vakya_true_moon_from_kali_day: (kali_day) => execute({ op: "vakya_true_moon_from_kali_day", input: { definition_id: "vakyakarana-1962-laghuprakashika-true-moon-v1", kali_day } }),
74
+ vakya_reduce_to_local_true_sunrise: (true_position, daily_motion, cara_half_vinadi_tenths, desantara_vinadi_tenths, bhujaantara_vinadi_tenths) => execute({ op: "vakya_reduce_to_local_true_sunrise", input: { definition_id: "vakyakarana-1962-laghuprakashika-local-sunrise-v1", true_position, daily_motion, cara_half_vinadi_tenths, desantara_vinadi_tenths, bhujaantara_vinadi_tenths } }),
75
+ vakya_cara_from_sayana_sun: (sayana_sun, equinoctial_shadow_tenths) => execute({ op: "vakya_cara_from_sayana_sun", input: { definition_id: "vakyakarana-1962-laghuprakashika-cara-v1", sayana_sun, equinoctial_shadow_tenths } }),
76
+ vakya_desantara_from_yojana_distance: (east_west_distance_tenths_yojana) => execute({ op: "vakya_desantara_from_yojana_distance", input: { definition_id: "vakyakarana-1962-laghuprakashika-desantara-v1", east_west_distance_tenths_yojana } }),
77
+ vakya_bhujaantara_from_true_sun: (sun_rasi, sun_rasi_progress_arcseconds) => execute({ op: "vakya_bhujaantara_from_true_sun", input: { definition_id: "vakyakarana-1962-laghuprakashika-bhujaantara-linear-experimental-v1", sun_rasi, sun_rasi_progress_arcseconds } }),
78
+ calendar_profile_info: (definition_id = thirukanithamDefinition) => execute({ op: "calendar_profile_info", input: { definition_id } }),
79
+ gregorian_to_tamil_date: (date, context, definition_id = thirukanithamDefinition) => execute({ op: "gregorian_to_tamil_date", input: { definition_id, date, context } }),
80
+ tamil_to_gregorian_date: (date, context, definition_id = thirukanithamDefinition) => execute({ op: "tamil_to_gregorian_date", input: { definition_id, date: { solar_year: date.solar_year, month: date.month, day: date.day }, context } }),
81
+ tamil_month_info: (solar_year, month, context, definition_id = thirukanithamDefinition) => execute({ op: "tamil_month_info", input: { definition_id, solar_year, month, context } }),
82
+ tamil_year_info: (solar_year, context, definition_id = thirukanithamDefinition) => execute({ op: "tamil_year_info", input: { definition_id, solar_year, context } }),
83
+ tamil_year_cycle_info: (solar_year, context, definition_id = thirukanithamDefinition) => execute({ op: "tamil_year_cycle_info", input: { definition_id, solar_year, context } }),
84
+ calendar_official_holidays: (jurisdiction, year) => execute({ op: "calendar_official_holidays", input: { jurisdiction, year } }),
85
+ calendar_observances: (gregorian_year, context, rule_set = "thirukanitham-tamil-named-observances-v1", definition_id = thirukanithamDefinition, month) => execute({ op: "calendar_observances", input: { definition_id, rule_set, gregorian_year, ...(month === undefined ? {} : { month }), context } }),
86
+ add_tamil_date: (date, unit, amount, context, overflow = "reject", definition_id = thirukanithamDefinition) => execute({ op: "add_tamil_date", input: { definition_id, date: { solar_year: date.solar_year, month: date.month, day: date.day }, unit, amount, overflow, context } }),
87
+ panchangam_at: (instant_unix_seconds, context, definition_id = thirukanithamDefinition) => execute({ op: "panchangam_at", input: { definition_id, instant_unix_seconds, context } }),
88
+ panchangam_day: (date, context, definition_id = thirukanithamDefinition) => execute({ op: "panchangam_day", input: { definition_id, date, context } }),
89
+ lunar_phase_events: (start_unix_seconds, end_unix_seconds, definition_id = thirukanithamDefinition) => execute({ op: "lunar_phase_events", input: { definition_id, start_unix_seconds, end_unix_seconds } }),
90
+ calendar_daylight_periods: (date, context, definition_id = thirukanithamDefinition) => execute({ op: "calendar_daylight_periods", input: { definition_id, date, context } }),
91
+ format_tamil_date: (date, context, script = "tamil", digits = "latin", style = "weekday_day_month_year", definition_id = thirukanithamDefinition) => execute({ op: "format_tamil_date", input: { definition_id, date, context, script, digits, style } }),
92
+ calendar_display_info: (date, context, script = "tamil", digits = "latin", definition_id = thirukanithamDefinition) => execute({ op: "calendar_display_info", input: { definition_id, date, context, script, digits } }),
93
+ compare_calendar_profiles: (input) => execute({ op: "compare_calendar_profiles", input }),
94
+ thiruvalluvar_year_info: (date, context, convention_id = "tn-thiruvalluvar-thai1-thirukanitham-v1") => execute({ op: "thiruvalluvar_year_info", input: { date, context, convention_id } }),
41
95
  };
42
96
  }
package/dist/index.d.ts CHANGED
@@ -1,2 +1,22 @@
1
- export type { Uyirmei, Request, Inspection, Locale, Currency, CodecErrorPolicy, DigitStyle, DateStyle } from "./api.js";
2
- export declare const execute: (request: import("./api.js").Request) => unknown, get_letters: (text: string) => string[], normalize_nfc: (text: string) => string, normalize_nfd: (text: string) => string, split_uyirmei: (text: string) => import("./api.js").Uyirmei, compose_uyirmei: (mei: string, uyir: string) => string, inspect_tamil_string: (text: string) => import("./api.js").Inspection, compare: (left: string, right: string) => -1 | 0 | 1, sort_words: (words: string[]) => string[], sort_key: (text: string) => number[], search_key: (text: string) => number[], to_words: (value: number, locale?: import("./api.js").Locale) => string, format_currency: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, currency_to_words: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, bamini_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_bamini: (text: string) => string, anjal_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_anjal_bytes: (text: string) => number[], tam_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tam_bytes: (text: string) => number[], tab_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tab_bytes: (text: string) => number[], tscii_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tscii_bytes: (text: string) => number[], lt_tm_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, lt_tm_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_lt_tm_codes: (text: string) => number[], unicode_to_lt_tm_text: (text: string) => string, vanavil_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, vanavil_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_vanavil_codes: (text: string) => number[], unicode_to_vanavil_text: (text: string) => string, format_fraction: (numerator: number, denominator: number, digits?: import("./api.js").DigitStyle) => string, fraction_to_words: (numerator: number, denominator: number, locale?: import("./api.js").Locale) => string, fraction_symbol: (numerator: number, denominator: number) => string, format_date: (year: number, month: number, day: number, locale?: import("./api.js").Locale, style?: import("./api.js").DateStyle, digits?: import("./api.js").DigitStyle) => string;
1
+ export type { Uyirmei, Request, Inspection, Locale, Currency, CodecErrorPolicy, DigitStyle, DateStyle, Grouping, ExactDecimal, MixedFraction, NumericRangeEndpoint, GregorianDate, CalendarDisplayScript, CalendarDisplayDigits, CalendarDisplayStyle, CalendarProfileComparisonMoment, CalendarProfileComparisonInput, CalendarProfileComparisonResult, ThiruvalluvarYearInfo, CalendarRegion, CalendarContext, VakyaCivilContext, CalendarContextInput, CalendarProfileInfo, ThirukanithamProfileInfo, VakyaCivilProfileInfo, TamilSolarDate, CalendarDateConversion, TamilMonthInfo, TamilYearInfo, TamilYearCycleInfo, TamilSolarYearCycle, OfficialHolidayYearInfo, CalendarObservanceId, CalendarObservanceSource, CalendarObservanceEvent, CalendarObservances, AddTamilDateResult, CalendarDaylightPeriod, CalendarDaylightPeriods, LunarPhase, LunarPhaseEvent, LunarPhaseEvents, CalendarLimb, CalendarLimbs, PanchangamAt, PanchangamTransition, PanchangamDay, Ahargana, SolarTransit, VakyaSolarYear, DmsAngle, VakyaTrueSun, SymbolInfo } from "./api.js";
2
+ export type { RasiDmsAngle, VakyaTrueMoon, VakyaLocalSunriseReduction, VakyaCara, VakyaDesantara, VakyaBhujaantara } from "./api.js";
3
+ export { calendarDefinitions } from "./api.js";
4
+ export declare const execute: (request: import("./api.js").Request) => unknown, get_letters: (text: string) => string[], normalize_nfc: (text: string) => string, normalize_nfd: (text: string) => string, split_uyirmei: (text: string) => import("./api.js").Uyirmei, compose_uyirmei: (mei: string, uyir: string) => string, inspect_tamil_string: (text: string) => import("./api.js").Inspection, compare: (left: string, right: string) => -1 | 0 | 1, sort_words: (words: string[]) => string[], sort_key: (text: string) => number[], search_key: (text: string) => number[], to_words: (value: number, locale?: import("./api.js").Locale) => string, format_currency: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, currency_to_words: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, bamini_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_bamini: (text: string) => string, anjal_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_anjal_bytes: (text: string) => number[], tam_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tam_bytes: (text: string) => number[], tab_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tab_bytes: (text: string) => number[], tscii_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tscii_bytes: (text: string) => number[], lt_tm_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, lt_tm_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_lt_tm_codes: (text: string) => number[], unicode_to_lt_tm_text: (text: string) => string, vanavil_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, vanavil_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_vanavil_codes: (text: string) => number[], unicode_to_vanavil_text: (text: string) => string, format_fraction: (numerator: number, denominator: number, digits?: import("./api.js").DigitStyle) => string, fraction_to_words: (numerator: number, denominator: number, locale?: import("./api.js").Locale) => string, fraction_symbol: (numerator: number, denominator: number) => string, format_date: (year: number, month: number, day: number, locale?: import("./api.js").Locale, style?: import("./api.js").DateStyle, digits?: import("./api.js").DigitStyle) => string, convert_digits: (text: string, to: import("./api.js").DigitStyle) => string, parse_decimal: (text: string, source_digits: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping, allow_mixed_digits?: boolean) => import("./api.js").ExactDecimal, format_decimal: (value: import("./api.js").ExactDecimal, digits?: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping) => string, decimal_to_words: (text: string, source_digits: import("./api.js").DigitStyle, locale?: import("./api.js").Locale, grouping?: import("./api.js").Grouping, allow_mixed_digits?: boolean) => string, ordinal_to_words: (value: number, locale?: import("./api.js").Locale) => string, digit_sequence_to_words: (text: string, source_digits: import("./api.js").DigitStyle, locale?: import("./api.js").Locale) => string, format_currency_decimal: (amount: string, source_digits: import("./api.js").DigitStyle, currency: import("./api.js").Currency, locale?: import("./api.js").Locale, grouping?: import("./api.js").Grouping) => string, currency_decimal_to_words: (amount: string, source_digits: import("./api.js").DigitStyle, currency: import("./api.js").Currency, locale?: import("./api.js").Locale, grouping?: import("./api.js").Grouping) => string, parse_fraction_symbol: (text: string) => {
5
+ numerator: number;
6
+ denominator: number;
7
+ }, symbol_info: (text: string) => import("./api.js").SymbolInfo, format_mixed_fraction: (value: import("./api.js").MixedFraction, digits?: import("./api.js").DigitStyle) => string, parse_mixed_fraction: (text: string, source_digits: import("./api.js").DigitStyle) => import("./api.js").MixedFraction, format_traditional_integer: (value: number) => string, parse_traditional_integer: (text: string) => number, parse_percent: (text: string, source_digits: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping) => import("./api.js").ExactDecimal, format_percent: (value: import("./api.js").ExactDecimal, digits?: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping) => string, ratio_to_percent: (value: import("./api.js").ExactDecimal) => import("./api.js").ExactDecimal, percent_to_ratio: (value: import("./api.js").ExactDecimal) => import("./api.js").ExactDecimal, format_numeric_range: (start: import("./api.js").NumericRangeEndpoint, end: import("./api.js").NumericRangeEndpoint, start_inclusive: boolean, end_inclusive: boolean, separator?: string, digits?: import("./api.js").DigitStyle) => string, validate_gregorian_date: (year: number, month: number, day: number) => boolean, parse_gregorian_date: (text: string) => import("./api.js").GregorianDate, weekday: (year: number, month: number, day: number) => string, add_gregorian_date: (year: number, month: number, day: number, unit: "days" | "months" | "years", amount: number, overflow?: "reject" | "clamp") => import("./api.js").GregorianDate, date_difference: (start: import("./api.js").GregorianDate, end: import("./api.js").GregorianDate) => number, date_interval: (start: string, end: string) => {
8
+ start: string;
9
+ end: string;
10
+ inclusive_days: number;
11
+ }, vakya_solar_transits: (saka_year_elapsed: number) => import("./api.js").VakyaSolarYear, vakya_true_sun_from_mesha_elapsed: (elapsed_days: number, nadi: number, vinadi: number) => import("./api.js").VakyaTrueSun, calendar_profile_info: (definition_id?: string) => import("./api.js").CalendarProfileInfo, gregorian_to_tamil_date: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").CalendarDateConversion, tamil_to_gregorian_date: (date: import("./api.js").TamilSolarDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => {
12
+ definition_id: string;
13
+ tamil_date: import("./api.js").TamilSolarDate;
14
+ gregorian_date: import("./api.js").GregorianDate;
15
+ reference_station?: string;
16
+ day_boundary?: string;
17
+ }, tamil_month_info: (solar_year: number, month: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").TamilMonthInfo, tamil_year_info: (solar_year: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").TamilYearInfo, tamil_year_cycle_info: (solar_year: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").TamilYearCycleInfo, calendar_official_holidays: (jurisdiction: "TN" | "SL", year: number) => import("./api.js").OfficialHolidayYearInfo, calendar_observances: (gregorian_year: number, context: import("./api.js").CalendarContextInput, rule_set?: string, definition_id?: string, month?: number) => import("./api.js").CalendarObservances, add_tamil_date: (date: import("./api.js").TamilSolarDate, unit: "days" | "months" | "years", amount: number, context: import("./api.js").CalendarContextInput, overflow?: "reject" | "clamp", definition_id?: string) => import("./api.js").AddTamilDateResult, panchangam_at: (instant_unix_seconds: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").PanchangamAt, panchangam_day: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").PanchangamDay, lunar_phase_events: (start_unix_seconds: number, end_unix_seconds: number, definition_id?: string) => import("./api.js").LunarPhaseEvents, calendar_daylight_periods: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").CalendarDaylightPeriods, format_tamil_date: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, script?: import("./api.js").CalendarDisplayScript, digits?: import("./api.js").CalendarDisplayDigits, style?: import("./api.js").CalendarDisplayStyle, definition_id?: string) => string, calendar_display_info: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, script?: import("./api.js").CalendarDisplayScript, digits?: import("./api.js").CalendarDisplayDigits, definition_id?: string) => Record<string, unknown>, compare_calendar_profiles: (input: import("./api.js").CalendarProfileComparisonInput) => import("./api.js").CalendarProfileComparisonResult, thiruvalluvar_year_info: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContext, convention_id?: import("./api.js").ThiruvalluvarYearInfo["convention_id"]) => import("./api.js").ThiruvalluvarYearInfo;
18
+ export declare const vakya_true_moon_from_kali_day: (kali_day: number) => import("./api.js").VakyaTrueMoon;
19
+ export declare const vakya_reduce_to_local_true_sunrise: (true_position: import("./api.js").RasiDmsAngle, daily_motion: import("./api.js").DmsAngle, cara_half_vinadi_tenths: number, desantara_vinadi_tenths: number, bhujaantara_vinadi_tenths: number) => import("./api.js").VakyaLocalSunriseReduction;
20
+ export declare const vakya_cara_from_sayana_sun: (sayana_sun: import("./api.js").RasiDmsAngle, equinoctial_shadow_tenths: number) => import("./api.js").VakyaCara;
21
+ export declare const vakya_desantara_from_yojana_distance: (east_west_distance_tenths_yojana: number) => import("./api.js").VakyaDesantara;
22
+ export declare const vakya_bhujaantara_from_true_sun: (sun_rasi: number, sun_rasi_progress_arcseconds: number) => import("./api.js").VakyaBhujaantara;
package/dist/index.js CHANGED
@@ -1,3 +1,10 @@
1
1
  import { execute as nativeExecute } from "../pkg-node/tamil_toolkit.js";
2
2
  import { createApi } from "./api.js";
3
- export const { execute, get_letters, normalize_nfc, normalize_nfd, split_uyirmei, compose_uyirmei, inspect_tamil_string, compare, sort_words, sort_key, search_key, to_words, format_currency, currency_to_words, bamini_to_unicode, unicode_to_bamini, anjal_bytes_to_unicode, unicode_to_anjal_bytes, tam_bytes_to_unicode, unicode_to_tam_bytes, tab_bytes_to_unicode, unicode_to_tab_bytes, tscii_bytes_to_unicode, unicode_to_tscii_bytes, lt_tm_codes_to_unicode, lt_tm_text_to_unicode, unicode_to_lt_tm_codes, unicode_to_lt_tm_text, vanavil_codes_to_unicode, vanavil_text_to_unicode, unicode_to_vanavil_codes, unicode_to_vanavil_text, format_fraction, fraction_to_words, fraction_symbol, format_date } = createApi(nativeExecute);
3
+ export { calendarDefinitions } from "./api.js";
4
+ export const { execute, get_letters, normalize_nfc, normalize_nfd, split_uyirmei, compose_uyirmei, inspect_tamil_string, compare, sort_words, sort_key, search_key, to_words, format_currency, currency_to_words, bamini_to_unicode, unicode_to_bamini, anjal_bytes_to_unicode, unicode_to_anjal_bytes, tam_bytes_to_unicode, unicode_to_tam_bytes, tab_bytes_to_unicode, unicode_to_tab_bytes, tscii_bytes_to_unicode, unicode_to_tscii_bytes, lt_tm_codes_to_unicode, lt_tm_text_to_unicode, unicode_to_lt_tm_codes, unicode_to_lt_tm_text, vanavil_codes_to_unicode, vanavil_text_to_unicode, unicode_to_vanavil_codes, unicode_to_vanavil_text, format_fraction, fraction_to_words, fraction_symbol, format_date, convert_digits, parse_decimal, format_decimal, decimal_to_words, ordinal_to_words, digit_sequence_to_words, format_currency_decimal, currency_decimal_to_words, parse_fraction_symbol, symbol_info, format_mixed_fraction, parse_mixed_fraction, format_traditional_integer, parse_traditional_integer, parse_percent, format_percent, ratio_to_percent, percent_to_ratio, format_numeric_range, validate_gregorian_date, parse_gregorian_date, weekday, add_gregorian_date, date_difference, date_interval, vakya_solar_transits, vakya_true_sun_from_mesha_elapsed, calendar_profile_info, gregorian_to_tamil_date, tamil_to_gregorian_date, tamil_month_info, tamil_year_info, tamil_year_cycle_info, calendar_official_holidays, calendar_observances, add_tamil_date, panchangam_at, panchangam_day, lunar_phase_events, calendar_daylight_periods, format_tamil_date, calendar_display_info, compare_calendar_profiles, thiruvalluvar_year_info } = createApi(nativeExecute);
5
+ const calendarApi = createApi(nativeExecute);
6
+ export const vakya_true_moon_from_kali_day = calendarApi.vakya_true_moon_from_kali_day;
7
+ export const vakya_reduce_to_local_true_sunrise = calendarApi.vakya_reduce_to_local_true_sunrise;
8
+ export const vakya_cara_from_sayana_sun = calendarApi.vakya_cara_from_sayana_sun;
9
+ export const vakya_desantara_from_yojana_distance = calendarApi.vakya_desantara_from_yojana_distance;
10
+ export const vakya_bhujaantara_from_true_sun = calendarApi.vakya_bhujaantara_from_true_sun;
package/dist/web.d.ts CHANGED
@@ -1,4 +1,24 @@
1
1
  import init from "../pkg-web/tamil_toolkit.js";
2
2
  export { init };
3
- export type { Uyirmei, Request, Inspection, Locale, Currency, CodecErrorPolicy, DigitStyle, DateStyle } from "./api.js";
4
- export declare const execute: (request: import("./api.js").Request) => unknown, get_letters: (text: string) => string[], normalize_nfc: (text: string) => string, normalize_nfd: (text: string) => string, split_uyirmei: (text: string) => import("./api.js").Uyirmei, compose_uyirmei: (mei: string, uyir: string) => string, inspect_tamil_string: (text: string) => import("./api.js").Inspection, compare: (left: string, right: string) => -1 | 0 | 1, sort_words: (words: string[]) => string[], sort_key: (text: string) => number[], search_key: (text: string) => number[], to_words: (value: number, locale?: import("./api.js").Locale) => string, format_currency: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, currency_to_words: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, bamini_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_bamini: (text: string) => string, anjal_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_anjal_bytes: (text: string) => number[], tam_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tam_bytes: (text: string) => number[], tab_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tab_bytes: (text: string) => number[], tscii_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tscii_bytes: (text: string) => number[], lt_tm_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, lt_tm_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_lt_tm_codes: (text: string) => number[], unicode_to_lt_tm_text: (text: string) => string, vanavil_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, vanavil_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_vanavil_codes: (text: string) => number[], unicode_to_vanavil_text: (text: string) => string, format_fraction: (numerator: number, denominator: number, digits?: import("./api.js").DigitStyle) => string, fraction_to_words: (numerator: number, denominator: number, locale?: import("./api.js").Locale) => string, fraction_symbol: (numerator: number, denominator: number) => string, format_date: (year: number, month: number, day: number, locale?: import("./api.js").Locale, style?: import("./api.js").DateStyle, digits?: import("./api.js").DigitStyle) => string;
3
+ export type { Uyirmei, Request, Inspection, Locale, Currency, CodecErrorPolicy, DigitStyle, DateStyle, Grouping, ExactDecimal, MixedFraction, NumericRangeEndpoint, GregorianDate, CalendarRegion, CalendarContext, VakyaCivilContext, CalendarContextInput, CalendarProfileInfo, ThirukanithamProfileInfo, VakyaCivilProfileInfo, TamilSolarDate, CalendarDateConversion, TamilMonthInfo, TamilYearInfo, TamilYearCycleInfo, TamilSolarYearCycle, OfficialHolidayYearInfo, CalendarObservanceId, CalendarObservanceSource, CalendarObservanceEvent, CalendarObservances, AddTamilDateResult, CalendarDaylightPeriod, CalendarDaylightPeriods, LunarPhase, LunarPhaseEvent, LunarPhaseEvents, CalendarLimb, CalendarLimbs, PanchangamAt, PanchangamTransition, PanchangamDay, Ahargana, SolarTransit, VakyaSolarYear, DmsAngle, VakyaTrueSun, SymbolInfo } from "./api.js";
4
+ export type { RasiDmsAngle, VakyaTrueMoon, VakyaLocalSunriseReduction, VakyaCara, VakyaDesantara, VakyaBhujaantara } from "./api.js";
5
+ export { calendarDefinitions } from "./api.js";
6
+ export declare const execute: (request: import("./api.js").Request) => unknown, get_letters: (text: string) => string[], normalize_nfc: (text: string) => string, normalize_nfd: (text: string) => string, split_uyirmei: (text: string) => import("./api.js").Uyirmei, compose_uyirmei: (mei: string, uyir: string) => string, inspect_tamil_string: (text: string) => import("./api.js").Inspection, compare: (left: string, right: string) => -1 | 0 | 1, sort_words: (words: string[]) => string[], sort_key: (text: string) => number[], search_key: (text: string) => number[], to_words: (value: number, locale?: import("./api.js").Locale) => string, format_currency: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, currency_to_words: (amount_minor: number, currency: import("./api.js").Currency, locale?: import("./api.js").Locale) => string, bamini_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_bamini: (text: string) => string, anjal_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_anjal_bytes: (text: string) => number[], tam_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tam_bytes: (text: string) => number[], tab_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tab_bytes: (text: string) => number[], tscii_bytes_to_unicode: (bytes: Uint8Array | number[]) => string, unicode_to_tscii_bytes: (text: string) => number[], lt_tm_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, lt_tm_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_lt_tm_codes: (text: string) => number[], unicode_to_lt_tm_text: (text: string) => string, vanavil_codes_to_unicode: (codes: Uint16Array | number[], errors?: import("./api.js").CodecErrorPolicy) => string, vanavil_text_to_unicode: (text: string, errors?: import("./api.js").CodecErrorPolicy) => string, unicode_to_vanavil_codes: (text: string) => number[], unicode_to_vanavil_text: (text: string) => string, format_fraction: (numerator: number, denominator: number, digits?: import("./api.js").DigitStyle) => string, fraction_to_words: (numerator: number, denominator: number, locale?: import("./api.js").Locale) => string, fraction_symbol: (numerator: number, denominator: number) => string, format_date: (year: number, month: number, day: number, locale?: import("./api.js").Locale, style?: import("./api.js").DateStyle, digits?: import("./api.js").DigitStyle) => string, convert_digits: (text: string, to: import("./api.js").DigitStyle) => string, parse_decimal: (text: string, source_digits: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping, allow_mixed_digits?: boolean) => import("./api.js").ExactDecimal, format_decimal: (value: import("./api.js").ExactDecimal, digits?: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping) => string, decimal_to_words: (text: string, source_digits: import("./api.js").DigitStyle, locale?: import("./api.js").Locale, grouping?: import("./api.js").Grouping, allow_mixed_digits?: boolean) => string, ordinal_to_words: (value: number, locale?: import("./api.js").Locale) => string, digit_sequence_to_words: (text: string, source_digits: import("./api.js").DigitStyle, locale?: import("./api.js").Locale) => string, format_currency_decimal: (amount: string, source_digits: import("./api.js").DigitStyle, currency: import("./api.js").Currency, locale?: import("./api.js").Locale, grouping?: import("./api.js").Grouping) => string, currency_decimal_to_words: (amount: string, source_digits: import("./api.js").DigitStyle, currency: import("./api.js").Currency, locale?: import("./api.js").Locale, grouping?: import("./api.js").Grouping) => string, parse_fraction_symbol: (text: string) => {
7
+ numerator: number;
8
+ denominator: number;
9
+ }, symbol_info: (text: string) => import("./api.js").SymbolInfo, format_mixed_fraction: (value: import("./api.js").MixedFraction, digits?: import("./api.js").DigitStyle) => string, parse_mixed_fraction: (text: string, source_digits: import("./api.js").DigitStyle) => import("./api.js").MixedFraction, format_traditional_integer: (value: number) => string, parse_traditional_integer: (text: string) => number, parse_percent: (text: string, source_digits: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping) => import("./api.js").ExactDecimal, format_percent: (value: import("./api.js").ExactDecimal, digits?: import("./api.js").DigitStyle, grouping?: import("./api.js").Grouping) => string, ratio_to_percent: (value: import("./api.js").ExactDecimal) => import("./api.js").ExactDecimal, percent_to_ratio: (value: import("./api.js").ExactDecimal) => import("./api.js").ExactDecimal, format_numeric_range: (start: import("./api.js").NumericRangeEndpoint, end: import("./api.js").NumericRangeEndpoint, start_inclusive: boolean, end_inclusive: boolean, separator?: string, digits?: import("./api.js").DigitStyle) => string, validate_gregorian_date: (year: number, month: number, day: number) => boolean, parse_gregorian_date: (text: string) => import("./api.js").GregorianDate, weekday: (year: number, month: number, day: number) => string, add_gregorian_date: (year: number, month: number, day: number, unit: "days" | "months" | "years", amount: number, overflow?: "reject" | "clamp") => import("./api.js").GregorianDate, date_difference: (start: import("./api.js").GregorianDate, end: import("./api.js").GregorianDate) => number, date_interval: (start: string, end: string) => {
10
+ start: string;
11
+ end: string;
12
+ inclusive_days: number;
13
+ }, vakya_solar_transits: (saka_year_elapsed: number) => import("./api.js").VakyaSolarYear, vakya_true_sun_from_mesha_elapsed: (elapsed_days: number, nadi: number, vinadi: number) => import("./api.js").VakyaTrueSun, calendar_profile_info: (definition_id?: string) => import("./api.js").CalendarProfileInfo, gregorian_to_tamil_date: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").CalendarDateConversion, tamil_to_gregorian_date: (date: import("./api.js").TamilSolarDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => {
14
+ definition_id: string;
15
+ tamil_date: import("./api.js").TamilSolarDate;
16
+ gregorian_date: import("./api.js").GregorianDate;
17
+ reference_station?: string;
18
+ day_boundary?: string;
19
+ }, tamil_month_info: (solar_year: number, month: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").TamilMonthInfo, tamil_year_info: (solar_year: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").TamilYearInfo, tamil_year_cycle_info: (solar_year: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").TamilYearCycleInfo, calendar_official_holidays: (jurisdiction: "TN" | "SL", year: number) => import("./api.js").OfficialHolidayYearInfo, calendar_observances: (gregorian_year: number, context: import("./api.js").CalendarContextInput, rule_set?: string, definition_id?: string, month?: number) => import("./api.js").CalendarObservances, add_tamil_date: (date: import("./api.js").TamilSolarDate, unit: "days" | "months" | "years", amount: number, context: import("./api.js").CalendarContextInput, overflow?: "reject" | "clamp", definition_id?: string) => import("./api.js").AddTamilDateResult, panchangam_at: (instant_unix_seconds: number, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").PanchangamAt, panchangam_day: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").PanchangamDay, lunar_phase_events: (start_unix_seconds: number, end_unix_seconds: number, definition_id?: string) => import("./api.js").LunarPhaseEvents, calendar_daylight_periods: (date: import("./api.js").GregorianDate, context: import("./api.js").CalendarContextInput, definition_id?: string) => import("./api.js").CalendarDaylightPeriods;
20
+ export declare const vakya_true_moon_from_kali_day: (kali_day: number) => import("./api.js").VakyaTrueMoon;
21
+ export declare const vakya_reduce_to_local_true_sunrise: (true_position: import("./api.js").RasiDmsAngle, daily_motion: import("./api.js").DmsAngle, cara_half_vinadi_tenths: number, desantara_vinadi_tenths: number, bhujaantara_vinadi_tenths: number) => import("./api.js").VakyaLocalSunriseReduction;
22
+ export declare const vakya_cara_from_sayana_sun: (sayana_sun: import("./api.js").RasiDmsAngle, equinoctial_shadow_tenths: number) => import("./api.js").VakyaCara;
23
+ export declare const vakya_desantara_from_yojana_distance: (east_west_distance_tenths_yojana: number) => import("./api.js").VakyaDesantara;
24
+ export declare const vakya_bhujaantara_from_true_sun: (sun_rasi: number, sun_rasi_progress_arcseconds: number) => import("./api.js").VakyaBhujaantara;
package/dist/web.js CHANGED
@@ -1,4 +1,11 @@
1
1
  import init, { execute as nativeExecute } from "../pkg-web/tamil_toolkit.js";
2
2
  import { createApi } from "./api.js";
3
3
  export { init };
4
- export const { execute, get_letters, normalize_nfc, normalize_nfd, split_uyirmei, compose_uyirmei, inspect_tamil_string, compare, sort_words, sort_key, search_key, to_words, format_currency, currency_to_words, bamini_to_unicode, unicode_to_bamini, anjal_bytes_to_unicode, unicode_to_anjal_bytes, tam_bytes_to_unicode, unicode_to_tam_bytes, tab_bytes_to_unicode, unicode_to_tab_bytes, tscii_bytes_to_unicode, unicode_to_tscii_bytes, lt_tm_codes_to_unicode, lt_tm_text_to_unicode, unicode_to_lt_tm_codes, unicode_to_lt_tm_text, vanavil_codes_to_unicode, vanavil_text_to_unicode, unicode_to_vanavil_codes, unicode_to_vanavil_text, format_fraction, fraction_to_words, fraction_symbol, format_date } = createApi(nativeExecute);
4
+ export { calendarDefinitions } from "./api.js";
5
+ export const { execute, get_letters, normalize_nfc, normalize_nfd, split_uyirmei, compose_uyirmei, inspect_tamil_string, compare, sort_words, sort_key, search_key, to_words, format_currency, currency_to_words, bamini_to_unicode, unicode_to_bamini, anjal_bytes_to_unicode, unicode_to_anjal_bytes, tam_bytes_to_unicode, unicode_to_tam_bytes, tab_bytes_to_unicode, unicode_to_tab_bytes, tscii_bytes_to_unicode, unicode_to_tscii_bytes, lt_tm_codes_to_unicode, lt_tm_text_to_unicode, unicode_to_lt_tm_codes, unicode_to_lt_tm_text, vanavil_codes_to_unicode, vanavil_text_to_unicode, unicode_to_vanavil_codes, unicode_to_vanavil_text, format_fraction, fraction_to_words, fraction_symbol, format_date, convert_digits, parse_decimal, format_decimal, decimal_to_words, ordinal_to_words, digit_sequence_to_words, format_currency_decimal, currency_decimal_to_words, parse_fraction_symbol, symbol_info, format_mixed_fraction, parse_mixed_fraction, format_traditional_integer, parse_traditional_integer, parse_percent, format_percent, ratio_to_percent, percent_to_ratio, format_numeric_range, validate_gregorian_date, parse_gregorian_date, weekday, add_gregorian_date, date_difference, date_interval, vakya_solar_transits, vakya_true_sun_from_mesha_elapsed, calendar_profile_info, gregorian_to_tamil_date, tamil_to_gregorian_date, tamil_month_info, tamil_year_info, tamil_year_cycle_info, calendar_official_holidays, calendar_observances, add_tamil_date, panchangam_at, panchangam_day, lunar_phase_events, calendar_daylight_periods } = createApi(nativeExecute);
6
+ const calendarApi = createApi(nativeExecute);
7
+ export const vakya_true_moon_from_kali_day = calendarApi.vakya_true_moon_from_kali_day;
8
+ export const vakya_reduce_to_local_true_sunrise = calendarApi.vakya_reduce_to_local_true_sunrise;
9
+ export const vakya_cara_from_sayana_sun = calendarApi.vakya_cara_from_sayana_sun;
10
+ export const vakya_desantara_from_yojana_distance = calendarApi.vakya_desantara_from_yojana_distance;
11
+ export const vakya_bhujaantara_from_true_sun = calendarApi.vakya_bhujaantara_from_true_sun;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamil-toolkit",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.5",
4
4
  "license": "MIT",
5
5
  "repository": {"type": "git", "url": "https://github.com/abishtakan/tamil-toolkit.git", "directory": "bindings/js-wasm"},
6
6
  "homepage": "https://github.com/abishtakan/tamil-toolkit#readme",
@@ -20,19 +20,20 @@
20
20
  | **Unicode and letters** | NFC/NFD normalization, tailored Tamil letter operations, and inspection. |
21
21
  | **Ordering** | Stable Mei-first Agara collation and versioned sort/search keys. |
22
22
  | **Numbers and dates** | Bounded TN/SL number words, exact INR/LKR amounts, fractions, and Gregorian dates. |
23
+ | **Tamil calendar** | Unreleased bounded Thirukanitham Gregorian/solar conversion and five-limb panchangam reports for declared TN/SL coordinates in 2024–2027. Its custom profile does not claim every publisher's Drik output; calendar fixtures remain planned. |
23
24
  | **Legacy conversion** | Bamini text conversion, bounded TSCII/TAB/TAM/Anjal byte profiles, and LT-TM / IndoWord 16-bit CID conversion. |
24
25
 
25
26
  TypeScript and WASM are thin bindings to the shared Rust implementation.
26
27
 
27
28
  ## Install
28
29
 
29
- Node.js 22+ is supported. Install alpha 4 from npm’s `alpha` dist-tag:
30
+ Node.js 22+ is supported. Install alpha 5 from npm’s `alpha` dist-tag:
30
31
 
31
32
  ```sh
32
33
  npm install tamil-toolkit@alpha
33
34
  ```
34
35
 
35
- The `alpha` tag points to `0.1.0-alpha.4`; npm’s `latest` tag still points to
36
+ The `alpha` tag points to `0.1.0-alpha.5`; npm’s `latest` tag still points to
36
37
  `0.1.0-alpha.1`. The version badge above tracks the `alpha` tag.
37
38
 
38
39
  ## Node quick start
@@ -60,9 +61,9 @@ console.log(get_letters("தமிழ்").join(" | "));
60
61
  The host page or bundler must serve the packaged WASM asset as an ES module
61
62
  asset. The Node entry point initializes its native WASM module automatically.
62
63
 
63
- ## Alpha 4 scope
64
+ ## Alpha 5 scope
64
65
 
65
- The npm `0.1.0-alpha.4` package includes the capabilities listed above. The
66
+ The npm `0.1.0-alpha.5` package includes the capabilities listed above. The
66
67
  shared `execute` API exposes `lt_tm_codes_to_unicode`, `lt_tm_text_to_unicode`,
67
68
  `unicode_to_lt_tm_codes`, and `unicode_to_lt_tm_text`. LT-TM conversion handles
68
69
  selected 16-bit code sequences; it does not parse PDFs, select font runs, or
@@ -86,7 +87,7 @@ const text = tamil.execute({ op: "lt_tm_codes_to_unicode", input: { codes } });
86
87
  - [Unicode/core contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/core-v0.1.md)
87
88
  - [Collation contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/collate-v0.1.md)
88
89
  - [Numerals, fractions, and dates](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/numerals-v0.2.md)
89
- - [Codec contract and alpha 3 limits](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/releases/alpha-4.md#compatibility-and-scope)
90
+ - [Codec contract and alpha 3 limits](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/releases/alpha-5.md#compatibility-and-scope)
90
91
  - [LT-TM CID profile contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/codec-lt-tm.md)
91
92
  - [Third-party notices](https://github.com/abishtakan/tamil-toolkit/blob/master/THIRD_PARTY_NOTICES.md)
92
93
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tamil-wasm",
3
3
  "description": "Thin WASM bindings for tamil-toolkit",
4
- "version": "0.1.0-alpha.4",
4
+ "version": "0.1.0-alpha.5",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
Binary file
package/pkg-web/README.md CHANGED
@@ -20,19 +20,20 @@
20
20
  | **Unicode and letters** | NFC/NFD normalization, tailored Tamil letter operations, and inspection. |
21
21
  | **Ordering** | Stable Mei-first Agara collation and versioned sort/search keys. |
22
22
  | **Numbers and dates** | Bounded TN/SL number words, exact INR/LKR amounts, fractions, and Gregorian dates. |
23
+ | **Tamil calendar** | Unreleased bounded Thirukanitham Gregorian/solar conversion and five-limb panchangam reports for declared TN/SL coordinates in 2024–2027. Its custom profile does not claim every publisher's Drik output; calendar fixtures remain planned. |
23
24
  | **Legacy conversion** | Bamini text conversion, bounded TSCII/TAB/TAM/Anjal byte profiles, and LT-TM / IndoWord 16-bit CID conversion. |
24
25
 
25
26
  TypeScript and WASM are thin bindings to the shared Rust implementation.
26
27
 
27
28
  ## Install
28
29
 
29
- Node.js 22+ is supported. Install alpha 4 from npm’s `alpha` dist-tag:
30
+ Node.js 22+ is supported. Install alpha 5 from npm’s `alpha` dist-tag:
30
31
 
31
32
  ```sh
32
33
  npm install tamil-toolkit@alpha
33
34
  ```
34
35
 
35
- The `alpha` tag points to `0.1.0-alpha.4`; npm’s `latest` tag still points to
36
+ The `alpha` tag points to `0.1.0-alpha.5`; npm’s `latest` tag still points to
36
37
  `0.1.0-alpha.1`. The version badge above tracks the `alpha` tag.
37
38
 
38
39
  ## Node quick start
@@ -60,9 +61,9 @@ console.log(get_letters("தமிழ்").join(" | "));
60
61
  The host page or bundler must serve the packaged WASM asset as an ES module
61
62
  asset. The Node entry point initializes its native WASM module automatically.
62
63
 
63
- ## Alpha 4 scope
64
+ ## Alpha 5 scope
64
65
 
65
- The npm `0.1.0-alpha.4` package includes the capabilities listed above. The
66
+ The npm `0.1.0-alpha.5` package includes the capabilities listed above. The
66
67
  shared `execute` API exposes `lt_tm_codes_to_unicode`, `lt_tm_text_to_unicode`,
67
68
  `unicode_to_lt_tm_codes`, and `unicode_to_lt_tm_text`. LT-TM conversion handles
68
69
  selected 16-bit code sequences; it does not parse PDFs, select font runs, or
@@ -86,7 +87,7 @@ const text = tamil.execute({ op: "lt_tm_codes_to_unicode", input: { codes } });
86
87
  - [Unicode/core contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/core-v0.1.md)
87
88
  - [Collation contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/collate-v0.1.md)
88
89
  - [Numerals, fractions, and dates](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/numerals-v0.2.md)
89
- - [Codec contract and alpha 3 limits](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/releases/alpha-4.md#compatibility-and-scope)
90
+ - [Codec contract and alpha 3 limits](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/releases/alpha-5.md#compatibility-and-scope)
90
91
  - [LT-TM CID profile contract](https://github.com/abishtakan/tamil-toolkit/blob/master/docs/specs/codec-lt-tm.md)
91
92
  - [Third-party notices](https://github.com/abishtakan/tamil-toolkit/blob/master/THIRD_PARTY_NOTICES.md)
92
93
 
@@ -2,7 +2,7 @@
2
2
  "name": "tamil-wasm",
3
3
  "type": "module",
4
4
  "description": "Thin WASM bindings for tamil-toolkit",
5
- "version": "0.1.0-alpha.4",
5
+ "version": "0.1.0-alpha.5",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
Binary file