mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add initial support for "Whole words" searching in the viewer
As outlined in https://bugzilla.mozilla.org/show_bug.cgi?id=1282759 the internal Firefox name for the feature is `entireWord`, hence that name is used here as well for consistency (with "Whole words" being limited to the UI). Given existing limitations of the PDF.js search functionality, e.g. the existing problems of searching across "new lines", there's some edge-cases where "Whole words" searching will ignore (valid) results. However, considering that this is a pre-existing issue related to the way that the find controller joins text-content together, that shouldn't have to block this new feature in my opionion. *Please note:* In order to enable this feature in the `MOZCENTRAL` version, a small follow-up patch for [PdfjsChromeUtils.jsm](https://hg.mozilla.org/mozilla-central/file/tip/browser/extensions/pdfjs/content/PdfjsChromeUtils.jsm) will be required once this has landed in `mozilla-central`.
This commit is contained in:
parent
53c37d3b45
commit
6d804d657f
13 changed files with 226 additions and 10 deletions
|
@ -165,6 +165,7 @@ find_next.title=Find the next occurrence of the phrase
|
|||
find_next_label=Next
|
||||
find_highlight=Highlight all
|
||||
find_match_case_label=Match case
|
||||
find_entire_word_label=Whole words
|
||||
find_reached_top=Reached top of document, continued from bottom
|
||||
find_reached_bottom=Reached end of document, continued from top
|
||||
# LOCALIZATION NOTE (find_matches_count): "{{current}}" and "{{total}}" will be
|
||||
|
|
|
@ -165,6 +165,7 @@ find_next.title=De volgende overeenkomst van de tekst zoeken
|
|||
find_next_label=Volgende
|
||||
find_highlight=Alles markeren
|
||||
find_match_case_label=Hoofdlettergevoelig
|
||||
find_entire_word_label=Hele woorden
|
||||
find_reached_top=Bovenkant van document bereikt, doorgegaan vanaf onderkant
|
||||
find_reached_bottom=Onderkant van document bereikt, doorgegaan vanaf bovenkant
|
||||
# LOCALIZATION NOTE (find_matches_count): "{{current}}" and "{{total}}" will be
|
||||
|
|
|
@ -165,6 +165,7 @@ find_next.title=Hitta nästa förekomst av frasen
|
|||
find_next_label=Nästa
|
||||
find_highlight=Markera alla
|
||||
find_match_case_label=Matcha versal/gemen
|
||||
find_entire_word_label=Hela ord
|
||||
find_reached_top=Nådde början av dokumentet, började från slutet
|
||||
find_reached_bottom=Nådde slutet på dokumentet, började från början
|
||||
# LOCALIZATION NOTE (find_matches_count): "{{current}}" and "{{total}}" will be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue