mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
Word replacements: a new list (heard -> write, up to 1,000, the words file's limits, no empty or blank outputs yet) under Settings > Dictation > Custom vocabulary, shown and applied only while that switch is on. They apply in DictationPipeline, so in the app and in-keyboard dictation alike, right before the learned fixes with DictationCorrections.apply's matching (now taking up to 8 words for them), and win over a learned fix with the same heard words. Learned fixes are never changed. A dictation Translate what I say translates gets none; one that goes in as spoken does. Opening: Info.plist (project.yml) exports anomaly.hex.words (public.json, .hexwords, application/vnd.anomaly.hex-words+json) and owns it as a document type copied in (LSSupportsOpeningDocumentsInPlace NO). HexInbox, a small inbox shaped for another file kind later (#2529), copies the file privately, reads it, shows HexWordsReviewSheet over whatever is on screen and deletes both copies when the sheet closes; it logs counts and reasons only. The sheet shows what is added, already there, clashes (Keep mine by default), what this iPhone can't use, what the file skipped, a switch per part, and offers to turn Custom vocabulary on. Strings from the file are Text(verbatim:), direction-isolated and shortened. Add shows a one-line confirmation with Undo; "Undo last import" stays in settings until either list changes or another file is imported. Export: Export words opens a sheet with "Include fixes Hex learned" (off), what is left out and why, then the share sheet with hex-words.hexwords, deleted after sharing. ShareSheet.present gains an optional completion. Every new string has English and Simplified Chinese. Docs: dictation.md and settings-and-home.md. Checked on anomastudio (iOS 27.2 simulator): HexWordsSharedCasesTests (read 59/59, merge 11/11 phone, write 2/2 phone), WordReplacementsTests, CustomVocabulary, DictationLearning, DictationSSOT, DictationController, Greeklish and TranscriptCleanup tests all pass.
192 lines
No EOL
7.1 KiB
YAML
192 lines
No EOL
7.1 KiB
YAML
name: HEXMobile
|
||
options:
|
||
minimumXcodeGenVersion: 2.46.0
|
||
bundleIdPrefix: anomaly.hex
|
||
deploymentTarget:
|
||
iOS: "18.0"
|
||
xcodeVersion: "2660"
|
||
packages:
|
||
FluidAudio:
|
||
url: https://github.com/FluidInference/FluidAudio.git
|
||
exactVersion: 0.15.5
|
||
settings:
|
||
base:
|
||
DEVELOPMENT_TEAM: 5NZ4Q7NXJ4
|
||
SWIFT_VERSION: 6.0
|
||
# The compiler finds the interface's strings for the String Catalogs (Localizable.xcstrings).
|
||
SWIFT_EMIT_LOC_STRINGS: YES
|
||
LOCALIZATION_PREFERS_STRING_CATALOGS: YES
|
||
targets:
|
||
HEXMobile:
|
||
type: application
|
||
platform: iOS
|
||
sources:
|
||
- HEXMobile
|
||
- HEXShared
|
||
- HEXActivity
|
||
- path: ../app/AppIcon.icon
|
||
buildPhase: resources
|
||
dependencies:
|
||
- package: FluidAudio
|
||
- target: HEXKeyboard
|
||
embed: true
|
||
- target: HEXWidgets
|
||
embed: true
|
||
configFiles:
|
||
Debug: HEXMobile/Feedback.xcconfig
|
||
Release: HEXMobile/Feedback.xcconfig
|
||
info:
|
||
path: HEXMobile/Info.plist
|
||
properties:
|
||
CFBundleDisplayName: Hex
|
||
# Send feedback's report key, from the build setting (HEXMobile/Feedback.xcconfig).
|
||
BellhopReportKey: $(BELLHOP_REPORT_KEY)
|
||
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||
CADisableMinimumFrameDurationOnPhone: true
|
||
CFBundleURLTypes:
|
||
- CFBundleTypeRole: Editor
|
||
CFBundleURLName: anomaly.hex.mobile.keyboard-session
|
||
CFBundleURLSchemes:
|
||
- hex-dictation
|
||
# Hex words files (docs/specs/hex-words.md): AirDrop, Files and Open in Hex copy them
|
||
# into Documents/Inbox, and the review sheet reads them (HexInbox).
|
||
CFBundleDocumentTypes:
|
||
- CFBundleTypeName: Hex words file
|
||
CFBundleTypeRole: Viewer
|
||
LSHandlerRank: Owner
|
||
LSItemContentTypes:
|
||
- anomaly.hex.words
|
||
LSSupportsOpeningDocumentsInPlace: false
|
||
UTExportedTypeDeclarations:
|
||
- UTTypeIdentifier: anomaly.hex.words
|
||
UTTypeDescription: Hex words file
|
||
UTTypeConformsTo:
|
||
- public.json
|
||
UTTypeTagSpecification:
|
||
public.filename-extension:
|
||
- hexwords
|
||
public.mime-type:
|
||
- application/vnd.anomaly.hex-words+json
|
||
NSMicrophoneUsageDescription: Hex turns what you say into text on this iPhone. Audio never leaves it and is deleted once it's transcribed.
|
||
NSSpeechRecognitionUsageDescription: Hex uses Apple's on-device speech recognition to turn what you say into text. Nothing you say is sent to a server.
|
||
NSSupportsLiveActivities: true
|
||
ITSAppUsesNonExemptEncryption: false
|
||
UIBackgroundModes:
|
||
- audio
|
||
UILaunchScreen:
|
||
UIColorName: LaunchBackground
|
||
UISupportedInterfaceOrientations:
|
||
- UIInterfaceOrientationPortrait
|
||
- UIInterfaceOrientationLandscapeLeft
|
||
- UIInterfaceOrientationLandscapeRight
|
||
UISupportedInterfaceOrientations~ipad:
|
||
- UIInterfaceOrientationPortrait
|
||
- UIInterfaceOrientationPortraitUpsideDown
|
||
- UIInterfaceOrientationLandscapeLeft
|
||
- UIInterfaceOrientationLandscapeRight
|
||
settings:
|
||
base:
|
||
ASSETCATALOG_COMPILER_ACCENT_COLOR_NAME: AccentColor
|
||
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
||
CODE_SIGN_STYLE: Automatic
|
||
CODE_SIGN_ENTITLEMENTS: HEXMobile/HEXMobile.entitlements
|
||
CURRENT_PROJECT_VERSION: 1
|
||
GENERATE_INFOPLIST_FILE: NO
|
||
MARKETING_VERSION: 9.0.0
|
||
TARGETED_DEVICE_FAMILY: "1"
|
||
OTHER_LDFLAGS: $(inherited) -weak_framework FoundationModels
|
||
OTHER_SWIFT_FLAGS: $(inherited) -Xfrontend -disable-autolink-framework -Xfrontend FoundationModels
|
||
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile
|
||
PRODUCT_NAME: HEX
|
||
scheme:
|
||
gatherCoverageData: false
|
||
testTargets:
|
||
- HEXMobileTests
|
||
HEXKeyboard:
|
||
type: app-extension
|
||
platform: iOS
|
||
sources:
|
||
- HEXKeyboard
|
||
- HEXShared
|
||
# The app's String Catalog, so the keyboard's words (the Hex key menu first) follow
|
||
# the iPhone's language where Hex is translated.
|
||
- HEXMobile/Localizable.xcstrings
|
||
dependencies:
|
||
# Experiments › Speech model in keyboard: Parakeet in the keyboard (KeyboardParakeet).
|
||
- package: FluidAudio
|
||
info:
|
||
path: HEXKeyboard/Info.plist
|
||
properties:
|
||
CFBundleDisplayName: Hex Keyboard
|
||
NSMicrophoneUsageDescription: Hex turns what you say into text on this iPhone. Audio never leaves it and is deleted once it's transcribed.
|
||
NSSpeechRecognitionUsageDescription: Hex uses Apple's on-device speech recognition to turn what you say into text. Nothing you say is sent to a server.
|
||
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||
NSExtension:
|
||
NSExtensionAttributes:
|
||
IsASCIICapable: true
|
||
PrefersRightToLeft: false
|
||
PrimaryLanguage: mul
|
||
RequestsOpenAccess: true
|
||
NSExtensionPointIdentifier: com.apple.keyboard-service
|
||
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).KeyboardViewController
|
||
settings:
|
||
base:
|
||
APPLICATION_EXTENSION_API_ONLY: YES
|
||
CODE_SIGN_ENTITLEMENTS: HEXKeyboard/HEXKeyboard.entitlements
|
||
COREML_CODEGEN_LANGUAGE: None
|
||
CODE_SIGN_STYLE: Automatic
|
||
CURRENT_PROJECT_VERSION: 1
|
||
GENERATE_INFOPLIST_FILE: NO
|
||
MARKETING_VERSION: 9.0.0
|
||
TARGETED_DEVICE_FAMILY: "1"
|
||
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.keyboard
|
||
PRODUCT_NAME: HEXKeyboard
|
||
SKIP_INSTALL: YES
|
||
HEXWidgets:
|
||
type: app-extension
|
||
platform: iOS
|
||
sources:
|
||
- HEXWidgets
|
||
- HEXActivity
|
||
- HEXShared/HexTheme.swift
|
||
info:
|
||
path: HEXWidgets/Info.plist
|
||
properties:
|
||
CFBundleDisplayName: Hex
|
||
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||
NSExtension:
|
||
NSExtensionPointIdentifier: com.apple.widgetkit-extension
|
||
settings:
|
||
base:
|
||
APPLICATION_EXTENSION_API_ONLY: YES
|
||
CODE_SIGN_STYLE: Automatic
|
||
CURRENT_PROJECT_VERSION: 1
|
||
GENERATE_INFOPLIST_FILE: NO
|
||
MARKETING_VERSION: 9.0.0
|
||
TARGETED_DEVICE_FAMILY: "1"
|
||
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.widgets
|
||
PRODUCT_NAME: HEXWidgets
|
||
SKIP_INSTALL: YES
|
||
HEXMobileTests:
|
||
type: bundle.unit-test
|
||
platform: iOS
|
||
sources:
|
||
- HEXMobileTests
|
||
- path: ../tests/fixtures/vocabulary/audio/term-hex-1.wav
|
||
buildPhase: resources
|
||
# The Hex words file's shared cases, read in place (HexWordsSharedCasesTests).
|
||
- path: ../tests/fixtures/hex-words
|
||
type: folder
|
||
buildPhase: resources
|
||
dependencies:
|
||
- target: HEXMobile
|
||
settings:
|
||
base:
|
||
BUNDLE_LOADER: $(TEST_HOST)
|
||
CODE_SIGN_STYLE: Automatic
|
||
GENERATE_INFOPLIST_FILE: YES
|
||
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.tests
|
||
TEST_HOST: $(BUILT_PRODUCTS_DIR)/HEX.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/HEX |