speechmarkdown 0.1.15 → 0.1.17

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
@@ -10,7 +10,7 @@ High-performance SpeechMarkdown parser written in Rust. Converts [SpeechMarkdown
10
10
  | Python | [speechmarkdown-rust](https://pypi.org/project/speechmarkdown-rust/) | `pip install speechmarkdown-rust` |
11
11
  | Node.js | [speechmarkdown](https://www.npmjs.com/package/speechmarkdown) | `npm install speechmarkdown` |
12
12
  | .NET | [SpeechMarkdown](https://www.nuget.org/packages/SpeechMarkdown) | `dotnet add package SpeechMarkdown` |
13
- | Swift | [Release asset](https://github.com/AACTools/speechmarkdown-rust/releases) | Download `speechmarkdown-swift-package.zip` |
13
+ | Swift | [Release asset](https://github.com/AACTools/speechmarkdown-rust/releases) | See Swift section below |
14
14
 
15
15
  ## Supported Platforms
16
16
 
@@ -129,12 +129,20 @@ string smd = parser.ToSmd("<speak><emphasis level=\"strong\">word</emphasis></sp
129
129
 
130
130
  ### Swift
131
131
 
132
- Download `speechmarkdown-swift-package.zip` from the [latest release](https://github.com/AACTools/speechmarkdown-rust/releases), unzip it, and add it as a local package in Xcode. Includes macOS (arm64 + x86_64), iOS device (arm64), and iOS simulator (arm64) slices.
132
+ The repo root contains a `Package.swift` with a binary target pointing to a pre-built XCFramework. This enables both local development and [Swift Package Index](https://swiftpackageindex.com/) integration.
133
133
 
134
- 1. **Xcode**: File > Add Packages > Add Local > select the unzipped directory
135
- 2. **Or in Package.swift**: `.package(path: "./path/to/speechmarkdown-swift-package")`
134
+ **Option 1 SPM (recommended):**
135
+ ```swift
136
+ // In your Package.swift:
137
+ .package(url: "https://github.com/AACTools/speechmarkdown-rust", branch: "spm")
138
+ ```
139
+
140
+ **Option 2 — Local package:**
141
+ Download `speechmarkdown-swift-package.zip` from the [latest release](https://github.com/AACTools/speechmarkdown-rust/releases), unzip, and add as a local package in Xcode (File > Add Packages > Add Local).
142
+
143
+ Includes macOS (arm64 + x86_64), iOS device (arm64), and iOS simulator (arm64) slices.
136
144
 
137
- To build from source instead: `./build-swift-package.sh` (requires Rust toolchain with `aarch64-apple-darwin` and `x86_64-apple-darwin` targets)
145
+ To build from source: `./build-swift-package.sh`
138
146
 
139
147
  ```swift
140
148
  import SpeechMarkdown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speechmarkdown",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "SpeechMarkdown parser - convert SpeechMarkdown to SSML",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "build:debug": "napi build --platform",
11
11
  "prepublishOnly": "napi prepublish -t npm",
12
12
  "test": "node test.js",
13
- "version": "0.1.15"
13
+ "version": "0.1.17"
14
14
  },
15
15
  "keywords": [
16
16
  "speech",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file