Skip to content

Commit

Permalink
- letter 𐑈 in Aramaic to Arabic ط (#22)
Browse files Browse the repository at this point in the history
## [0.3.3]  2024-01-20
### Fixed
- letter 𐑈 in Aramaic to Arabic ط
- add unit test to the above
  • Loading branch information
amerharb authored Jan 20, 2024
1 parent 4a265ae commit b844c45
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/abjad-convert/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
<!-- https://keepachangelog.com/en/1.0.0/ -->

## [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 Ψ­
Expand Down
2 changes: 1 addition & 1 deletion packages/abjad-convert/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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], // 𐑋 -> Ω„
Expand Down
22 changes: 22 additions & 0 deletions packages/abjad-convert/test/imperialAramaic/toArabic.test.ts
Original file line number Diff line number Diff line change
@@ -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('سعفءقرشΨͺ')
})
})
})

0 comments on commit b844c45

Please sign in to comment.