Repository navigation
[Qt] Do not install/link with ICU if WITH_QT_I18N is set - #7386
Conversation
|
@brunoabinader, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh, @tmpsantos and @1ec5 to be potential reviewers. |
| } | ||
|
|
||
| void ProcessedBiDiText::mergeParagraphLineBreaks(std::set<int32_t>& lineBreakPoints) { | ||
| QTextBoundaryFinder finder(QTextBoundaryFinder::Line, bidi.impl->string); |
There was a problem hiding this comment.
Looking at the documentation for QTextBoundaryFinder::Line ("Finds possible positions for breaking the text into multiple lines."), it seems like this will insert a line break everywhere a line break is possible? Although maybe I'm misreading, because I expect that would have broken some tests...
The intention of this method is only to insert line breaks where the ICU BiDi algorithm absolutely requires them (for "block separators"), in case the calling code for whatever reason decided not to explicitly break at one of them. The common block separator is "\n", but there are more exotic ones like U+001C "INFORMATION SEPARATOR FOUR". For stubbing this code out on Qt, I don't think we need to implement any of this behavior (beyond maybe what's necessary to pass tests).
There was a problem hiding this comment.
Thanks - we can maybe revisit it once we get unit tests to verify.
fff33c0 to
f43a36e
Compare
As part of the arrangements for getting Mapbox GL native as a 3rd party submodule in Qt framework, we are optionally removing ICU support via
WITH_QT_I18Ncompile flag.This PR:
platform/default/bidi.cpp- all platforms explicitly compiles it by default as part ofmbgl-coretarget.BiDiImplto hide ICU data types from BiDi interface.platform/qt/src/bidi.cpp- arabic shaping is not supported atm.