Line breaking for „ and “
MartinZikmund opened this issue · 8 comments
Do you know about CShrapMath word-wrap algorithm ?
What do you think about this line-breaking?
Need to think of a way to differentiate between punctuation that go to end of lines and start of lines.
Useful Info : http://www.unicode.org/versions/Unicode13.0.0/ch06.pdf
Figure 6-3. European Quotation Marks
Single right quote = apostrophe
‘quote’ don’t
Usage depends on language
“English” | « French » |
---|---|
„German“ | »Slovenian« |
”Swedish” | »Swedish books» |
We can probably just group punctuation with normal text as a single word-wrap group as spaces seem to be inserted before start-of-line punctuation and after end-of-line punctuation.
@MartinZikmund Typography.TextBreak only chops text into pieces depending on the text type, e.g. punctuation, space, newline and normal text. Any line breaking and special handling of punctuation is on CSharpMath's side.
Oh I see! Sorry for the confusion 🙂
see also
"UnicodeCategory Enum" https://docs.microsoft.com/en-us/dotnet/api/system.globalization.unicodecategory?view=netcore-3.1