Swift package·0.1.0·iOS · macOS · Linux·Apache-2.0
ᲥᲐᲠᲗᲣᲚᲘ
"ქართული"
.kartuliUppercased()ᲥᲐᲠᲗᲣᲚᲘ
.romanized()kartuli
.convertingKeyboardLayout(.georgianToLatin)qarTuli
Georgian language support for Swift. Scripts, Mtavruli, romanization, keyboard layouts, numbers in words. Zero dependencies.
ქართული ენის მხარდაჭერა Swift-ისთვის. დამწერლობები, მთავრული, რომანიზაცია, კლავიატურის განლაგება, რიცხვები სიტყვებით. გარე dependency-ის გარეშე.
View on GitHubGitHub-ზე ნახვა
https://github.com/lasha3901/KartuliKit.git
Four modules, one flagოთხი მოდული, ერთი დროშა
Live: a JavaScript port of the v0.1 rules, same tables as the Swift code.ცოცხალი დემო: v0.1-ის წესების JavaScript ვერსია, Swift კოდის იგივე ცხრილებით.
KartuliCasingMtavruli when you want itმთავრული, როცა გინდა
.kartuliUppercased().kartuliUppercased(georgian: .preserve)KartuliTranslitNational romanization, 2002ეროვნული რომანიზაცია, 2002
.romanized().romanized(.nationalWithApostrophes)KartuliTranslitTyped on the wrong layoutსხვა განლაგებაზე აკრეფილი
.convertingKeyboardLayout(.latinToGeorgian)KartuliNumbersCounting in twentiesოცობითი თვლა
.kartuliWords33 letters, three answers each33 ასო, თითოეულზე სამი პასუხი
Key on the Georgian QWERTY layout · Mtavruli · romanizationკლავიში ქართულ QWERTY-ზე · მთავრული · რომანიზაცია
Shift letter: only these 7 change with Shift, on macOS and iOSShift-ასო: Shift მხოლოდ ამ 7-ს ცვლის, macOS-ზეც და iOS-ზეც
Red mark = ejective, written with an apostrophe in წითელი ნიშანი = მკვეთრი, აპოსტროფით იწერება
.nationalWithApostrophes
Import only what you needდაამატე მხოლოდ საჭირო მოდული
Package.swiftSwift 6 · SwiftPM
dependencies: [ .package(url: "https://github.com/lasha3901/KartuliKit.git", from: "0.1.0"), ], targets: [ .target(name: "MyApp", dependencies: [ .product(name: "KartuliCasing", package: "KartuliKit"), .product(name: "KartuliNumbers", package: "KartuliKit"), ]), ]
v0.2 · mainKartuliTypography · KartuliSearch
import KartuliTypography import KartuliSearch "ფილმი \"ჯარისკაცის მამა\"".kartuliTypographyFixed() // "ფილმი „ჯარისკაცის მამა“" "საქართველო".kartuliMatches("saqarTvelo") // true "ხაჭაპური".kartuliMatches("xachapuri") // true "თბილისი".kartuliMatches("tbil") // true
KartuliCoreScript detection, mixed-script words, normalizationდამწერლობის ამოცნობა, შერეული სიტყვები, ნორმალიზაცია0.1.0KartuliCasingMtavruli by default,.preserve, SwiftUIKartuliTextმთავრული ნაგულისხმევად,.preserve, SwiftUIKartuliText0.1.0KartuliTranslitNational romanization (2002), keyboard layout fixეროვნული რომანიზაცია (2002), განლაგების გასწორება0.1.0KartuliNumbersWords, ordinals, money in lari, alphabetic numeralsსიტყვები, რიგობითი, ფული ლარში, ანბანური რიცხვები0.1.0KartuliSearchLayout-aware, prefix and typo-tolerant searchძებნა განლაგებით, პრეფიქსით, შეცდომების ტოლერანტობითv0.2KartuliTypography„Quotes“, word count, issues for the linter„ბრჭყალები“, სიტყვების თვლა, შენიშვნები linter-ისთვისv0.2kartuli-lintCLI for.xcstrings,.strings,.jsonCLI.xcstrings,.strings,.jsonფაილებისთვისv0.2KartuliDatesMonths, weekdays, relative timeთვეები, კვირის დღეები, ფარდობითი დროv0.3KartuliFormatPhone numbers (+995), prices in lari (₾)ტელეფონის ნომრები (+995), ფასები ლარში (₾)v0.3KartuliGrammarNumber + noun, basic cases, postpositionsრიცხვი + არსებითი, ბრუნვები, თანდებულებიv0.4
Rules are checked, never inventedწესები მოწმდება და არ „იგონება“
- A native speaker reviews every language ruleყველა ენობრივ წესს ქართულენოვანი ამოწმებსPull requests with a new rule need real examples and, if possible, a source.ახალ წესს სჭირდება რეალური მაგალითები და, თუ შესაძლებელია, წყარო.
- Every rule has a test with real Georgianყველა წესს აქვს ტესტი რეალური ქართულითSwift Testing, parameterized with the confirmed examples.Swift Testing, დადასტურებული მაგალითებით.
- Zero dependencies, no Foundation in the coreარცერთი გარე dependency, Foundation-ის გარეშეSwift 6 on iOS 15+, macOS 12+ and Linux. Every type is Sendable.Swift 6, iOS 15+, macOS 12+ და Linux. ყველა ტიპი Sendable-ია.
- Documented in two languagesდოკუმენტაცია ორ ენაზეEvery code comment and DocC page: an English line, then a Georgian line.ყველა კომენტარი და DocC: ჯერ ინგლისური ხაზი, მერე ქართული.
Tests/KartuliNumbersTests/NumbersTests.swiftSwift Testing
// Every example was confirmed by a native speaker. // ყველა მაგალითი დაადასტურა ქართულენოვანმა. @Test("Vigesimal 20-99 / ოცობითი 20-99", arguments: [ (20, "ოცი"), (21, "ოცდაერთი"), (35, "ოცდათხუთმეტი"), (40, "ორმოცი"), (77, "სამოცდაჩვიდმეტი"), (99, "ოთხმოცდაცხრამეტი"), ]) func vigesimal(n: Int, words: String) { #expect(n.kartuliWords == words) }