Skip to content

New text-line-wrap visual tests - #2539

Open
Andrey-VI wants to merge 1 commit into
mapnik:masterfrom
Andrey-VI:text-line-wrap
Open

Andrey-VI wants to merge 1 commit into
mapnik:masterfrom
Andrey-VI:text-line-wrap

Conversation

@Andrey-VI

Copy link
Copy Markdown

Requested by @springmeyer @ #2427

I noticed that dy setting works different for Latin and Cyrillic scripts. For Cyrillic script it looks like dy*2. Wondering why…

P. S.: This is my first pull ever, so sorry about things like text-line-wrap-512-512-1.0-grid-reference.json → text-line-wrap-800-450-1.0-grid-reference.json. I don't know how to fix this.

@Andrey-VI

Copy link
Copy Markdown
Author

After this new visual tests I realized that I need a different behaviour from wrap-character and repeat-wrap-character="true":
if we use, for example, wrap-character="-" and repeat-wrap-character="true" all default ICU line breaking are ignored. How to avoid this?

For now I have two ideas, both of them doesn't break wrap-character behaviour:

  1. Use repeat-wrap-character="[symbol]", so if ICU breaks line at this [symbol] it's repeated on the new line.
  2. Use repeat-wrap-character="true/false" and repeat any ICU line break characters except whitespace characters (RegEx \s class) on the new line.

I prefer the first one.

@artemp , @springmeyer , what do you think?

@artemp

artemp commented Apr 20, 2022

Copy link
Copy Markdown
Member

@Andrey-VI - could you check and resolve conflicts (rebase on latest master?), pls?

@Andrey-VI

Copy link
Copy Markdown
Author

@artemp, done: mapnik/test-data-visual#85

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

Successfully merging this pull request may close these issues.

2 participants