Typography icon indicating copy to clipboard operation
Typography copied to clipboard

Line breaking for „ and “

Open MartinZikmund opened this issue 5 years ago • 8 comments

I have noticed line breaks for a word wrapped in „ and “, for example:

image

Moving the „ character to the next line as well would be better. Can this be adjusted, please?

MartinZikmund avatar Jun 23 '20 11:06 MartinZikmund

@Happypig375 ,

Do you know about CShrapMath word-wrap algorithm ?

What do you think about this line-breaking?

prepare avatar Jun 23 '20 11:06 prepare

Need to think of a way to differentiate between punctuation that go to end of lines and start of lines.

Happypig375 avatar Jun 23 '20 11:06 Happypig375

Useful Info : http://www.unicode.org/versions/Unicode13.0.0/ch06.pdf

prepare avatar Jun 23 '20 11:06 prepare

Figure 6-3. European Quotation Marks

Single right quote = apostrophe

‘quote’ don’t

Usage depends on language

“English” « French »
„German“ »Slovenian«
”Swedish” »Swedish books»

Happypig375 avatar Jun 23 '20 13:06 Happypig375

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.

Happypig375 avatar Jun 23 '20 13:06 Happypig375

@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.

Happypig375 avatar Jun 23 '20 15:06 Happypig375

Oh I see! Sorry for the confusion 🙂

MartinZikmund avatar Jun 23 '20 15:06 MartinZikmund

see also "UnicodeCategory Enum" https://docs.microsoft.com/en-us/dotnet/api/system.globalization.unicodecategory?view=netcore-3.1

prepare avatar Jul 11 '20 04:07 prepare