]> git.parisson.com Git - pdf.js.git/commitdiff
Fix missing bidi for extension.
authorBrendan Dahl <brendan.dahl@gmail.com>
Thu, 23 Feb 2012 17:21:35 +0000 (09:21 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Thu, 23 Feb 2012 17:21:35 +0000 (09:21 -0800)
src/bidi.js
web/viewer.js

index a3308fa2c84654aee1fc36194ff1813cc9993fd9..a6e3e429f0fefcd34a31584a1fc5b15998475a11 100644 (file)
@@ -3,7 +3,7 @@
 \r
 'use strict';\r
 \r
-var bidi = (function bidiClosure() {\r
+var bidi = PDFJS.bidi = (function bidiClosure() {\r
   // Character types for symbols from 0000 to 00FF.\r
   var baseTypes = [\r
     'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',\r
index 0a1ad750801b22dc18568659e8607a7d1ccdfd93..9f477f3a70d529a2715e654de883ff57fd0da348 100644 (file)
@@ -1097,7 +1097,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
     textDiv.style.fontSize = fontHeight + 'px';
     textDiv.style.left = text.geom.x + 'px';
     textDiv.style.top = (text.geom.y - fontHeight) + 'px';
-    textDiv.textContent = bidi(text, -1);
+    textDiv.textContent = PDFJS.bidi(text, -1);
     textDiv.dir = text.direction;
     textDiv.dataset.textLength = text.length;
     this.textDivs.push(textDiv);