Repository navigation
Commit 80a335b
committed
table: a blank drawn under a glyph does not split the word (#5327)
Word processors pad table cells with runs of spaces, and such a run can
reach under the text of the cell. Since 2.1 the line-based finder builds
its chars without TEXT_ACCURATE_BBOXES when layout is off, so these blanks
are in the char list. WordExtractor orders the chars of a line by where
they start and ends a word at every blank, so a blank lying under the
first digit of "600.000" ended the word after that digit and
Table.extract() returned "6 00.000". With the run under the whole number
it returned "6 0 0 . 0 0 0".
WordExtractor now skips a blank when the glyphs next to it cover more
than half of its extent along the line. The gap between the glyphs then
decides about the word break, as it did when blanks were not in the list.
An ordinary word space lies between its neighbours and is not affected.1 parent 8000aab commit 80a335b
2 files changed
Lines changed: 91 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
897 | 941 | | |
898 | 942 | | |
899 | 943 | | |
| |||
905 | 949 | | |
906 | 950 | | |
907 | 951 | | |
908 | | - | |
| 952 | + | |
| 953 | + | |
909 | 954 | | |
910 | 955 | | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
911 | 959 | | |
912 | 960 | | |
913 | 961 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2029 | 2029 | | |
2030 | 2030 | | |
2031 | 2031 | | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
0 commit comments