1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-02 16:25:41 +00:00

mark U+200B as illegal

This commit is contained in:
Lu Wang 2015-03-18 18:07:50 +08:00
parent 65c5c340fc
commit 5a66ac5a55
2 changed files with 8 additions and 10 deletions

View File

@ -9,7 +9,7 @@ option(ENABLE_SVG "Enable SVG support, for generating SVG background images and
include_directories(${CMAKE_SOURCE_DIR}/src)
set(PDF2HTMLEX_VERSION "0.13.4")
set(PDF2HTMLEX_VERSION "0.13.5")
set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION})
add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD

View File

@ -77,16 +77,14 @@ bool isLegalUnicode(Unicode u)
if(u < max_small_unicode)
return valid_small_unicode[u];
/*
* U+2029: Paragraph Separator
* TODO: check U+2028 etc
*/
if(u == 0x2029)
return false;
/*
* Reserved code for utf-16
*/
// * U+200B: zero width space
if(u == 0x200b) return false;
// * U+2029: paragraph separator
if(u == 0x2029) return false;
// Reserved code for utf-16
if((u >= 0xd800) && (u <= 0xdfff))
return false;