mirror of
https://github.com/abue-ammar/tinycast.git
synced 2026-10-02 00:04:44 +08:00
* Add native dictionary define fallback * Make dictionary lookup a core launcher command * feat(dictionary): add dictionary functionality with lookup and display - Introduced DictionaryEntry model to parse and store dictionary entries. - Implemented DictionaryProvider to fetch definitions from Dictionary Services. - Created DictionaryCoordinator to manage dictionary-related actions. - Developed DictionaryScreen to display definitions in the palette. - Added fallback command for "define" to trigger dictionary lookups. - Updated UI components to integrate dictionary features, including copy and open actions. - Enhanced documentation to cover new dictionary functionality and usage. * feat(dictionary): enhance dictionary command and fallback functionality * Render Define Word entries as a structured dictionary page Read the record's XHTML through Dictionary Services' record calls, resolved with dlsym so a macOS without them falls back to the public plain text. DictionaryMarkup turns the span classes into headword, part of speech, numbered senses, notes and sections, and DictionarySession looks terms up off the main actor. --------- Co-authored-by: abue-ammar <iabueammar@gmail.com>