General questions

Answered

Line Segmentation Problem

 Hello Dears

i have posted before week a problem of concating 2 lines if first one ends with "dash"

now i have the same problem but without ending with dash


so can i know how you concat that lines ?

please look at this sample

you understand how the lines colored


image



Best Answer

Dear Safwan,


If I understand you are questioning about the way we determine if lines shall be concatenated or no?


Basically, our paragraph detection algorithm works as follows: Let's  consider line n ; line n+1 will be added to the paraph if the first word  of line n+1 cannot be added at the end of line n ; if the word can be  added, we consider a new paragraph, and lines n and n+1 will not be  merged. This is not configurable.


You can also refer to the following topic: https://developer-support.myscript.com/support/discussions/topics/16000024721


Best regards,


Olivier


still didn't get it how do you determine if the first word of line n+1 can be added to line n or not ?


Answer

Dear Safwan,


If I understand you are questioning about the way we determine if lines shall be concatenated or no?


Basically, our paragraph detection algorithm works as follows: Let's  consider line n ; line n+1 will be added to the paraph if the first word  of line n+1 cannot be added at the end of line n ; if the word can be  added, we consider a new paragraph, and lines n and n+1 will not be  merged. This is not configurable.


You can also refer to the following topic: https://developer-support.myscript.com/support/discussions/topics/16000024721


Best regards,


Olivier