Giter Site home page Giter Site logo

Arabic text rendering about dtcoretext HOT 8 CLOSED

salzhrani avatar salzhrani commented on June 12, 2024
Arabic text rendering

from dtcoretext.

Comments (8)

odrobnik avatar odrobnik commented on June 12, 2024

Please provide a HTML snippet that demonstrates your issues via pull request.

On Aug 9, 2011, at 1:58 PM, salzhrani wrote:

Amazing work ...

I have noticed a minor issue when rendering Arabic text and it might be a core text issue. when rendering Arabic text it renders perfectly when not accented. if there are accents (َ  ً  ٌ ) it renders OK but some accents break the ligation, specifically this one ( ْ ).

That said you done amazing work and looking forward to the RT component.

Reply to this email directly or view it on GitHub:
https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML/issues/57

Oliver Drobnik
[email protected]

from dtcoretext.

salzhrani avatar salzhrani commented on June 12, 2024

snippet ready, while creating the snippet I found that the problematic accent character is ( ۡ ) (unicode 06E1, UTF8 DBA1) not the one I mentioned earlier

from dtcoretext.

odrobnik avatar odrobnik commented on June 12, 2024

Please also describe exactly what the issue is and - if possible - how it would best be resolved. I cannot read Arabic.

from dtcoretext.

salzhrani avatar salzhrani commented on June 12, 2024

the issue is that the mentioned character is (I think) treated as a spacing character thus preventing the characters before and after it from being properly ligated. it should be treated as a non-spacing character, thus it would be ignored in terms of ligation.
diagram 1

As you can see the top line, the first word (right most)is broken into 2 pieces (بس م) while in the bottom line it is written as one continuos stroke ( بسم )

to reiterate, the mentioned character ( ۡ ) (unicode 06E1, UTF8 DBA1) is preventing the ligation could be due being treated as a spacing character.

in the html view it is rendered correctly, refer to the following pic
diagram 1

from dtcoretext.

salzhrani avatar salzhrani commented on June 12, 2024

Just messed around and changed the font to the system bundled Arabic font "Geeza Pro" and it rendered flawlessly, Could it be font related ?

from dtcoretext.

odrobnik avatar odrobnik commented on June 12, 2024

Ligatures are definitely font related because not all fonts support ligatures. Are you saying that this character should simply be omitted on layouting? Or does it have a function? I read something about turning on or of accents...

Sent from my iPad2

Am 10.08.2011 um 03:04 schrieb salzhrani [email protected]:

Just messed around and changed the font to the system bundled Arabic font "Geeza Pro" and it rendered flawlessly, Could it be font related ?

Reply to this email directly or view it on GitHub:
https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML/issues/57#issuecomment-1768949

from dtcoretext.

salzhrani avatar salzhrani commented on June 12, 2024

In Arabic, accents are reading aids that help the reader distinguish heteronyms. Accents should not affect the way the text is rendered and if it is possible to turn it off it might help, especially in some fonts that I tried where all accents break the ligation of the Arabic text.

from dtcoretext.

odrobnik avatar odrobnik commented on June 12, 2024

Please suggest or provide a fix for this issue. I have no idea how to deal with this.

from dtcoretext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.