From b844c451399173c18a1a150397569270483dd7de Mon Sep 17 00:00:00 2001 From: Amer Harb Date: Sat, 20 Jan 2024 21:36:49 +0100 Subject: [PATCH] =?UTF-8?q?-=20letter=20=F0=90=A1=88=20in=20Aramaic=20to?= =?UTF-8?q?=20Arabic=20=D8=B7=20(#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [0.3.3] 2024-01-20 ### Fixed - letter 𐡈 in Aramaic to Arabic ط - add unit test to the above --- packages/abjad-convert/CHANGELOG.md | 5 +++++ packages/abjad-convert/package.json | 2 +- .../src/scripts/imperialAramaic/toArabic.ts | 2 +- .../test/imperialAramaic/toArabic.test.ts | 22 +++++++++++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 packages/abjad-convert/test/imperialAramaic/toArabic.test.ts diff --git a/packages/abjad-convert/CHANGELOG.md b/packages/abjad-convert/CHANGELOG.md index bd632a9..1875947 100644 --- a/packages/abjad-convert/CHANGELOG.md +++ b/packages/abjad-convert/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog +## [0.3.3] 2024-01-20 +### Fixed +- letter 𐡈 in Aramaic to Arabic ط +- add unit test to the above + ## [0.3.2] 2024-01-20 ### Fixed - letter 𐡇 in Aramaic to Arabic ح diff --git a/packages/abjad-convert/package.json b/packages/abjad-convert/package.json index 5f4da2e..111a585 100644 --- a/packages/abjad-convert/package.json +++ b/packages/abjad-convert/package.json @@ -1,6 +1,6 @@ { "name": "abjad-convert", - "version": "0.3.2", + "version": "0.3.3", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "files": [ diff --git a/packages/abjad-convert/src/scripts/imperialAramaic/toArabic.ts b/packages/abjad-convert/src/scripts/imperialAramaic/toArabic.ts index cfbdc19..2d88304 100644 --- a/packages/abjad-convert/src/scripts/imperialAramaic/toArabic.ts +++ b/packages/abjad-convert/src/scripts/imperialAramaic/toArabic.ts @@ -18,7 +18,7 @@ export class ImperialAramaicToArabicConverter implements IConverter { [Ia.Waw, Ar.Waw], // 𐡅 -> و [Ia.Zayin, Ar.Zay], // 𐡆 -> ز [Ia.Heth, Ar.H7aa], // 𐡇 -> ح - [Ia.Teth, Ar.Ta], // 𐡈 -> ط + [Ia.Teth, Ar.TTa], // 𐡈 -> ط [Ia.Yod, Ar.Yaa], // 𐡉 -> ي [Ia.Kaph, Ar.Kaf], // 𐡊 -> ك [Ia.Lamedh, Ar.Lam], // 𐡋 -> ل diff --git a/packages/abjad-convert/test/imperialAramaic/toArabic.test.ts b/packages/abjad-convert/test/imperialAramaic/toArabic.test.ts new file mode 100644 index 0000000..2e4b778 --- /dev/null +++ b/packages/abjad-convert/test/imperialAramaic/toArabic.test.ts @@ -0,0 +1,22 @@ +import { describe, expect, it } from '@jest/globals' +import { ImperialAramaicToArabicConverter } from '../../src/scripts/imperialAramaic/toArabic' + +describe('ImperialAramaicToArabicConverter', () => { + describe('convert()', () => { + it('convert 𐡀𐡁𐡂𐡃𐡄𐡅𐡆 to ابجدهوز', () => { + const converter = new ImperialAramaicToArabicConverter() + const actual = converter.convert('𐡀𐡁𐡂𐡃𐡄𐡅𐡆') + expect(actual).toEqual('ابجدهوز') + }) + it('convert 𐡇𐡈𐡉𐡊𐡋𐡌𐡍 to حطيكلمن', () => { + const converter = new ImperialAramaicToArabicConverter() + const actual = converter.convert('𐡇𐡈𐡉𐡊𐡋𐡌𐡍') + expect(actual).toEqual('حطيكلمن') + }) + it('convert 𐡎𐡏𐡐𐡑𐡒𐡓𐡔𐡕 to سعفصقرشت', () => { + const converter = new ImperialAramaicToArabicConverter() + const actual = converter.convert('𐡎𐡏𐡐𐡑𐡒𐡓𐡔𐡕') + expect(actual).toEqual('سعفصقرشت') + }) + }) +})