microsoft / microsoft/DWriteShapePy

Analysis is incorrect - RTL text is backwards

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18
Forks
6
Avg merge
1d 28m
Merged PRs (30d)
3

Description

DWriteShapePy doesn't seem to analyse RTL texts correctly:

PS C:\Users\simon\Desktop> python3 -m dwriteshapepy --language ar .\NNUTest.ttf -u 06cc,0679,06d2
[alefMaksura-ar.fina.alt=0+504.0|tahabove-ar=1@348.0,-389.0+0.0|behDotless-ar.init.yeh=4@0.0,375.0+204.0|nobari=0+0.0|yehbarree-ar.isol=0+1409.0]

The text should be the other way around. (06cc FARSI YEH should be in initial position, 0x6d2 YEH BARREE should be in final position)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported command with the Arabic glyph sequence and compare the shaped output with the expected initial and final positions. Trace the RTL analysis and shaping entry point used by DWriteShapePy; done means the sequence is returned in the correct order with 06cc in initial position and 06d2 in final position.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
internationalization, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.