-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump crengine: better linebreaks at em-dash, fb2 fixes
Includes: - (Upstream) LVBase64NodeStream: fix possible segfault - (Upstream) Fix getting encoding from HTML META tags - FB2: also look for cover in <src-title-info> - FB2: fix cover image colors - FB2: don't draw cover in scroll mode - TextLang: better linebreaks at em-dash (EN/ES/FR) - TextLang: increase _lb_props static array size libunibreak: add patch to export internal function get_char_lb_class_lang() as lb_get_char_class().
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
Submodule crengine
updated
7 files
+4 −2 | crengine/include/textlang.h | |
+24 −14 | crengine/src/lvdocview.cpp | |
+1 −1 | crengine/src/lvrend.cpp | |
+1 −1 | crengine/src/lvtextfm.cpp | |
+2 −2 | crengine/src/lvtinydom.cpp | |
+71 −22 | crengine/src/lvxml.cpp | |
+102 −5 | crengine/src/textlang.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/src/linebreak.c b/src/linebreak.c | ||
index c2ccdda..45afba2 100644 | ||
--- a/src/linebreak.c | ||
+++ b/src/linebreak.c | ||
@@ -751,6 +751,12 @@ int lb_process_next_char( | ||
|
||
return brk; | ||
} | ||
+enum LineBreakClass lb_get_char_class( | ||
+ struct LineBreakContext *lbpCtx, | ||
+ utf32_t ch) | ||
+{ | ||
+ return get_char_lb_class_lang(ch, lbpCtx->lbpLang); | ||
+} | ||
|
||
/** | ||
* Sets the line breaking information for a generic input string. | ||
diff --git a/src/linebreakdef.h b/src/linebreakdef.h | ||
index 5bb8838..8db80a6 100644 | ||
--- a/src/linebreakdef.h | ||
+++ b/src/linebreakdef.h | ||
@@ -169,3 +169,6 @@ void set_linebreaks( | ||
const char *lang, | ||
char *brks, | ||
get_next_char_t get_next_char); | ||
+enum LineBreakClass lb_get_char_class( | ||
+ struct LineBreakContext *lbpCtx, | ||
+ utf32_t ch); |