Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line breaking for „ and “ #212

Open
MartinZikmund opened this issue Jun 23, 2020 · 8 comments
Open

Line breaking for „ and “ #212

MartinZikmund opened this issue Jun 23, 2020 · 8 comments

Comments

@MartinZikmund
Copy link

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?

@prepare
Copy link
Member

prepare commented Jun 23, 2020

@Happypig375 ,

Do you know about CShrapMath word-wrap algorithm ?

What do you think about this line-breaking?

@Happypig375
Copy link
Contributor

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

@prepare
Copy link
Member

prepare commented Jun 23, 2020

@Happypig375
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

@MartinZikmund
Copy link
Author

Oh I see! Sorry for the confusion 🙂

@prepare
Copy link
Member

prepare commented Jul 11, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants