Comments (8)
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.
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.
Please also describe exactly what the issue is and - if possible - how it would best be resolved. I cannot read Arabic.
from dtcoretext.
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.
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
from dtcoretext.
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.
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.
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.
Please suggest or provide a fix for this issue. I have no idea how to deal with this.
from dtcoretext.
Related Issues (20)
- Crash calculating the bounding rect on iOS 15 HOT 7
- DTAttributedTextContentView will cause Zombie layer object crash when Using DTTiledLayerWithoutFade HOT 11
- 图片content-type 不以 image开头 HOT 1
- Ask if it is collectionView how to use Thank you HOT 1
- Nested list render issue
- Picture position is invalid HOT 1
- Switch to Secure Object Archiving APIs
- Set spacing between lines.
- Disable bitcode HOT 1
- I have a improvement for support Image display, I think this change can be merged ? HOT 1
- Empty anchor element support HOT 5
- support for css rem HOT 2
- Found the crash of iOS, hope to get your help HOT 5
- XCode 14.3 warning when compiling DTCompatibility.h HOT 1
- DTCoreText support .xhtml file ? HOT 1
- issue crash when load html
- On iOS 16, enabling VoiceOver and rendering custom views using DTAttributedTextContentView causes crashes. HOT 7
- issue crash when load html
- "<" disappearing on iOS 16 HOT 1
- object tag can't display when it has child element
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtcoretext.