mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 01:28:39 +00:00
mark U+200B as illegal
This commit is contained in:
parent
65c5c340fc
commit
5a66ac5a55
|
@ -9,7 +9,7 @@ option(ENABLE_SVG "Enable SVG support, for generating SVG background images and
|
||||||
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/src)
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
||||||
|
|
||||||
set(PDF2HTMLEX_VERSION "0.13.4")
|
set(PDF2HTMLEX_VERSION "0.13.5")
|
||||||
set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION})
|
set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION})
|
||||||
add_custom_target(dist
|
add_custom_target(dist
|
||||||
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
|
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
|
||||||
|
|
|
@ -77,16 +77,14 @@ bool isLegalUnicode(Unicode u)
|
||||||
if(u < max_small_unicode)
|
if(u < max_small_unicode)
|
||||||
return valid_small_unicode[u];
|
return valid_small_unicode[u];
|
||||||
|
|
||||||
/*
|
|
||||||
* U+2029: Paragraph Separator
|
|
||||||
* TODO: check U+2028 etc
|
|
||||||
*/
|
|
||||||
if(u == 0x2029)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/*
|
// * U+200B: zero width space
|
||||||
* Reserved code for utf-16
|
if(u == 0x200b) return false;
|
||||||
*/
|
|
||||||
|
// * U+2029: paragraph separator
|
||||||
|
if(u == 0x2029) return false;
|
||||||
|
|
||||||
|
// Reserved code for utf-16
|
||||||
if((u >= 0xd800) && (u <= 0xdfff))
|
if((u >= 0xd800) && (u <= 0xdfff))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user