pdf.js/src/display
Calixte Denizet 117bbf7cd9 [api-minor] Don't normalize the text used in the text layer.
Some arabic chars like \ufe94 could be searched in a pdf, hence it must be normalized
when creating the search query. So to avoid to duplicate the normalization code,
everything is moved in the find controller.
The previous code to normalize text was using NFKC but with a hardcoded map, hence it
has been replaced by the use of normalize("NFKC") (it helps to reduce the bundle size
by 30kb).
In playing with this \ufe94 char, I noticed that the bidi algorithm wasn't taking into
account some RTL unicode ranges, the generated font wasn't embedding the mapping this
char and the unicode ranges in the OS/2 table weren't up-to-date.

When normalized some chars can be replaced by several ones and it induced to have
some extra chars in the text layer. To avoid any regression, when copying some text
from the text layer, a copied string is normalized (NFKC) before being put in the
clipboard (it works like this in either Acrobat or Chrome).
2023-04-17 14:31:23 +02:00
..
editor [Editor] Take into account the initial rotation (issue #16278) 2023-04-16 21:36:26 +02:00
annotation_layer.js Use appearance stream to render locked annotations (bug 1723568) 2023-03-07 15:01:31 +01:00
annotation_storage.js Reduce duplication for reference tests with an annotationStorage entry 2023-02-13 11:09:16 +01:00
api.js [api-minor] Don't normalize the text used in the text layer. 2023-04-17 14:31:23 +02:00
base_factory.js [api-minor] Use a SVG filter when rendering pages in HCM 2023-03-18 12:45:10 +01:00
canvas.js Merge pull request #16075 from calixteman/svg_filter_hcm 2023-03-20 10:18:25 +01:00
content_disposition.js Enable the unicorn/prefer-string-replace-all ESLint plugin rule 2023-03-23 12:57:10 +01:00
display_utils.js Add a helper, in DOMFilterFactory, to reduce duplication when creating <feFuncX>s 2023-03-20 11:27:47 +01:00
fetch_stream.js [api-minor] Enabling transferring of data fetched with the PDFFetchStream implementation 2023-01-12 13:59:21 +01:00
font_loader.js Slightly reduce the size of the FontInspector-integration in the API 2023-03-23 14:07:10 +01:00
metadata.js Convert Metadata to use private class fields 2021-10-22 22:01:19 +02:00
network_utils.js Slightly improve validation of (some) parameters in getDocument 2022-03-21 13:32:17 +01:00
network.js [api-minor] Enabling transferring of data fetched with the PDFFetchStream implementation 2023-01-12 13:59:21 +01:00
node_stream.js Enable the no-typeof-undefined ESLint plugin rule 2022-12-01 18:20:39 +01:00
node_utils.js [api-minor] Extend general transfer function support to browsers without OffscreenCanvas 2023-03-14 13:09:08 +01:00
optional_content_config.js [api-minor] Add basic support for the SetOCGState action (issue 15372) 2022-09-01 17:34:24 +02:00
pattern_helper.js Polyfill Path2D in Node.js environments 2023-01-28 18:28:22 +01:00
svg.js [api-minor] Make isOffscreenCanvasSupported configurable via the API (issue 14952) 2022-10-07 00:10:46 +02:00
text_layer.js Tweak the --scale-factor CSS-variable warning threshold (issue 16254) 2023-04-06 13:11:12 +02:00
transport_stream.js [api-minor] Enable transferring of TypedArray PDF data by default (PR 15908 follow-up) 2023-01-14 10:39:36 +01:00
worker_options.js Simplify setting the GlobalWorkerOptions default values (PR 9480 follow-up) 2023-01-26 14:16:01 +01:00
xfa_layer.js Replace element ids with custom attributes in the xfaLayer 2022-07-10 15:44:54 +02:00
xfa_text.js XFA - Support text search in XFA documents. 2021-08-23 08:44:20 -07:00