0
$\begingroup$

I am currently working with a list containing around 20 strings which contain around 30,000 characters each. The strings are imported from PDFs and the list containing all the strings is assigned to a variable. So far so good. However, when I evaluate the list (e.g., evaluate variable, then evaluate subsequent output) I get the following error message:

Syntax::tsntxi: "<<1>>" is incomplete; more input is needed.
Syntax::sntxi: Incomplete expression; more input is needed .

I have tried the same procedure on other computers running Mathematica, but I get the same result. Unfortunately, I am unable to provide a minimum working example, so I'll be happy to provide any additional information that might help.

$\endgroup$
10
  • 1
    $\begingroup$ Take one of the strings and see if you get the same error. If so, take half the string and see if you get the error. If so, cut it in half again, until you either get something that works or something that fails and is small enough to ask about. $\endgroup$
    – bill s
    Commented Dec 7, 2013 at 3:03
  • $\begingroup$ Is VectorQ[theVariable, StringQ] true? If so and the same error happen with newVariable = StringTake[theVariable, 1] you can provide that as an example. $\endgroup$
    – ssch
    Commented Dec 7, 2013 at 3:04
  • $\begingroup$ @bills I went through the string and got: "V\.00" This still gives an error. $\endgroup$
    – E.O.
    Commented Dec 7, 2013 at 3:26
  • 1
    $\begingroup$ What command do you use to import the pdf? Perhaps there is a way to sanitize the strings before Mathematica has time to go crazy $\endgroup$
    – ssch
    Commented Dec 7, 2013 at 4:06
  • 1
    $\begingroup$ Also if there are characters not belonging to the plane 0 of Unicode, Mathematica may fail to interpret them. $\endgroup$
    – Silvia
    Commented Dec 7, 2013 at 4:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.