Skip to content

Conversation

@rvdb
Copy link
Contributor

@rvdb rvdb commented Oct 22, 2025

added zero-width space before & in URLs that are displayed in the running text, in order to create break-points for the XSL-FO formatter

@martindholmes
Copy link
Contributor

Might be worth doing it before or after forward-slashes too. Lots of long urls don't have any ampersands.

@rvdb
Copy link
Contributor Author

rvdb commented Oct 24, 2025

Great suggestion, Martin. I've checked, and following characters seem to be treated as splitting points already by FOP:

  • forward slash: /
  • hyphen: -
  • question mark: ?

...that's probably why I hadn't felt the need until I'd encountered this really long URL with only request parameters in a jTEI article. Do you think it would be wiser to add zero-width spaces before them as well?

@martindholmes
Copy link
Contributor

Ah, I didn't realize that slashes worked as breakpoints. I've been working with a very old version of Xep, so I'm in the habit of adding those spaces around any path-delimiter because it needs them.

@martindholmes martindholmes merged commit 70ee4f2 into TEIC:dev Oct 24, 2025
2 checks passed
@rvdb rvdb deleted the jTEI-splitLongURLSinPDF branch October 24, 2025 14:50
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