Delphi XE5 right to left languages don't appear as they should in android

前端 未结 3 1768
情歌与酒
情歌与酒 2020-12-06 04:50

as the title says , a text from a RTL language like persian or arabic doesnt show well in android for example the word \"سلام\" shows as \"م ا ل س\". this problem happens e

相关标签:
3条回答
  • 2020-12-06 05:36

    Lack of Bidirectional and Glyph Shaping support is a known restriction of the FireMonkey platform, on all targets (including Windows and Mac OSX).

    We will have to wait for "native controls" for Android as third party components for FireMonkey, as it does exists for iOS - see http://www.tmssoftware.com/site/tmsicl.asp for instance.

    I've found this great blog article with source code about Android Native controls for Lazarus/FreePascal which is quite interesting. But this won't work with the "NextGen" Delphi compiler, which is currently going in a diverse direction in respect to FPC (e.g. with the ObjectivePascal mode).

    enter image description here

    Since it uses native Android controls, it should not suffer from the same restrictions as FireMonkey do.

    0 讨论(0)
  • 2020-12-06 05:37

    the best solution is fmxrtl you can find at

    http://www.fmxrtl.com/

    0 讨论(0)
  • 2020-12-06 05:41

    As per LURD's suggestions.
    Download and use D.P.F Delphi Android Native Components and/or D.P.F Delphi iOS Native Components.
    That will fix the problem in XE7 and prior.
    According to the documentation with the Delphi XE8 beta the problem is fixed there as well.

    As a last resort (if you feel up to it), someone has taken the effort to patch the XE5 source code to enable BiDi support. See: https://docs.google.com/file/d/0BwumWe43CaijVDRQZzNQbXNSLWc/edit?usp=sharing

    0 讨论(0)
提交回复
热议问题