"Jimmy O'Regan" <[email protected]> writes: > On 26 January 2011 09:34, Kevin Brubeck Unhammer <[email protected]> wrote: >> Hi, >> >> The -z option makes lt-proc flush whenever it sees the null character, >> which is nice. But if you don't give it -z, it exits on the null >> character -- I'm guessing it shouldn't... >> > > Yeah, though I think it's one of those things that falls into the > category of "if this has happened, you have bigger problems than the > translator not working". > > It would probably be enough to either escape or discard nulls in the > deformatter. Is there any compelling reason to not simply discard > them?
Only if you want to use lt-proc -z. That is, removing nulls in the deformatter would have to be optional, so it can still work with lt-proc -z. Of course you can just run everything with lt-proc -z anyway... but maybe that gives other side effects? >> Added a bug here: >> http://bugs.apertium.org/cgi-bin/bugzilla/show_bug.cgi?id=108 >> >> (I got a null character out when converting a pdf to text, so they do >> occur in the wild.) >> > > Seems to me to be a double bug -- whatever your were using almost > certainly should not have given you a null in its output. Of course; notified pdfminer of the bug too. -Kevin ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
