Text lookup upgrade (#66)
* Added `TooltipIconButton` and integrated tooltips for tool icons in app bars * Added external translate and search support for EPUB and PDF readers * docs: refine project overview and update build instructions in readme
This commit is contained in:
parent
74e2cec415
commit
f2c5ae25d7
16 changed files with 1172 additions and 506 deletions
10
app/src/main/res/drawable-nodpi/search.xml
Normal file
10
app/src/main/res/drawable-nodpi/search.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M784,840L532,588Q502,612 463,626Q424,640 380,640Q271,640 195.5,564.5Q120,489 120,380Q120,271 195.5,195.5Q271,120 380,120Q489,120 564.5,195.5Q640,271 640,380Q640,424 626,463Q612,502 588,532L840,784L784,840ZM380,560Q455,560 507.5,507.5Q560,455 560,380Q560,305 507.5,252.5Q455,200 380,200Q305,200 252.5,252.5Q200,305 200,380Q200,455 252.5,507.5Q305,560 380,560Z"/>
|
||||
</vector>
|
||||
10
app/src/main/res/drawable-nodpi/translate.xml
Normal file
10
app/src/main/res/drawable-nodpi/translate.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M476,880L658,400L742,400L924,880L840,880L797,758L603,758L560,880L476,880ZM160,760L104,704L306,502Q271,467 242.5,422Q214,377 190,320L274,320Q294,359 314,388Q334,417 362,446Q395,413 430.5,353.5Q466,294 484,240L40,240L40,160L320,160L320,80L400,80L400,160L680,160L680,240L564,240Q543,312 501,388Q459,464 418,504L514,602L484,684L362,559L160,760ZM628,688L772,688L700,484L628,688Z"/>
|
||||
</vector>
|
||||
|
|
@ -1,3 +1,61 @@
|
|||
<resources>
|
||||
<string name="app_name">Episteme</string>
|
||||
</resources>
|
||||
|
||||
<!-- Tooltip titles -->
|
||||
<string name="tooltip_back">Back</string>
|
||||
<string name="tooltip_dictionary">Dictionary</string>
|
||||
<string name="tooltip_more_options">More Options</string>
|
||||
<string name="tooltip_slider">Page Slider</string>
|
||||
<string name="tooltip_toc">Table of Contents</string>
|
||||
<string name="tooltip_format">Text Format</string>
|
||||
<string name="tooltip_search">Search</string>
|
||||
<string name="tooltip_ai">AI Features</string>
|
||||
<string name="tooltip_tts_start">Start Text-to-Speech</string>
|
||||
<string name="tooltip_tts_stop">Stop Text-to-Speech</string>
|
||||
<string name="tooltip_tts_pause">Pause</string>
|
||||
<string name="tooltip_tts_resume">Resume</string>
|
||||
<string name="tooltip_dark_mode_on">Enable Dark Mode</string>
|
||||
<string name="tooltip_dark_mode_off">Disable Dark Mode</string>
|
||||
<string name="tooltip_lock_pan">Lock Panning</string>
|
||||
<string name="tooltip_unlock_pan">Unlock Panning</string>
|
||||
<string name="tooltip_fullscreen">Full Screen</string>
|
||||
<string name="tooltip_highlights">Show Highlights</string>
|
||||
<string name="tooltip_highlights_off">Hide Highlights</string>
|
||||
<string name="tooltip_edit_mode">Annotation Mode</string>
|
||||
<string name="tooltip_edit_mode_exit">Exit Annotation Mode</string>
|
||||
<string name="tooltip_close_search">Close Search</string>
|
||||
<string name="tooltip_clear_search">Clear Search</string>
|
||||
<string name="tooltip_show_results">Show Results</string>
|
||||
<string name="tooltip_hide_results">Hide Results</string>
|
||||
<string name="tooltip_prev_result">Previous Result</string>
|
||||
<string name="tooltip_next_result">Next Result</string>
|
||||
|
||||
<!-- Tooltip descriptions -->
|
||||
<string name="tooltip_back_desc">Exit the reader and return to the home screen</string>
|
||||
<string name="tooltip_dictionary_desc">Choose your preferred app for word lookups</string>
|
||||
<string name="tooltip_more_options_desc">Access reading mode, bookmarks, and advanced settings</string>
|
||||
<string name="tooltip_slider_desc">Drag to jump quickly to any page in the document</string>
|
||||
<string name="tooltip_toc_desc">Browse chapters and navigate to any section</string>
|
||||
<string name="tooltip_format_desc">Adjust font, size, line height, alignment, and custom fonts</string>
|
||||
<string name="tooltip_search_desc">Find any word or phrase in this book</string>
|
||||
<string name="tooltip_ai_desc">Summarize the current chapter or page using AI</string>
|
||||
<string name="tooltip_tts_start_desc">Read the book aloud using your device\'s voice engine</string>
|
||||
<string name="tooltip_tts_stop_desc">Stop the current read-aloud session</string>
|
||||
<string name="tooltip_tts_pause_desc">Pause the current read-aloud playback</string>
|
||||
<string name="tooltip_tts_resume_desc">Resume paused read-aloud playback</string>
|
||||
<string name="tooltip_dark_mode_on_desc">Invert PDF colors for dark mode</string>
|
||||
<string name="tooltip_dark_mode_off_desc">Disable dark mode and restore the original PDF colors</string>
|
||||
<string name="tooltip_lock_pan_desc">Lock horizontal panning on the page</string>
|
||||
<string name="tooltip_unlock_pan_desc">Unlock panning to re-enable pinch-to-zoom and drag gestures</string>
|
||||
<string name="tooltip_fullscreen_desc">Hide all UI controls for an immersive, distraction-free reading view</string>
|
||||
<string name="tooltip_highlights_desc">Visually mark selectable text regions across the current page</string>
|
||||
<string name="tooltip_highlights_off_desc">Remove the selectable text overlay from the page</string>
|
||||
<string name="tooltip_edit_mode_desc">Add ink or text annotations</string>
|
||||
<string name="tooltip_edit_mode_exit_desc">Finish editing and return to normal reading view</string>
|
||||
<string name="tooltip_close_search_desc">Exit search and go back to the reader</string>
|
||||
<string name="tooltip_clear_search_desc">Erase your current search query and start over</string>
|
||||
<string name="tooltip_show_results_desc">Expand the panel to see all search matches</string>
|
||||
<string name="tooltip_hide_results_desc">Collapse the search results panel</string>
|
||||
<string name="tooltip_prev_result_desc">Jump to the previous search match in the document</string>
|
||||
<string name="tooltip_next_result_desc">Jump to the next search match in the document</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue