[ https://issues.apache.org/jira/browse/PDFBOX-5918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903548#comment-17903548 ]
Amar Dura edited comment on PDFBOX-5918 at 12/6/24 5:35 AM: ------------------------------------------------------------ I tried the same text with 3.0.3. Input text in editor: {code:java} String text = "र्क र्का र्कि र्की र्के र्कै र्को र्कौ र्कं र्कः"; contentStream.showText(text);{code} Result is pdf: !image-2024-12-06-11-16-20-008.png! Result in Notepad: !image-2024-12-06-10-32-14-500.png! Looks like fixes in PDFBOX-5810 might be different from this. This might be the issue with reordering of reph glyph. I added more vowels there and able to get some improvement: but still needs more work with the reordering to get the complete result I will look into that {code:java} private static final char[] BEFORE_REPH_CHARS={'ा','ी','े','ै','ो','ौ'};{code} !image-2024-12-06-11-18-00-468.png! was (Author: JIRAUSER307854): I tried the same text with 3.0.3. Input text in editor: {code:java} String text = "र्क र्का र्कि र्की र्के र्कै र्को र्कौ र्कं र्कः"; contentStream.showText(text);{code} Result is pdf: !image-2024-12-06-10-30-40-459.png! Result in Notepad: !image-2024-12-06-10-32-14-500.png! Looks like fixes in PDFBOX-5810 might be different from this. This might be the issue with reordering of reph glyph. > Improve Support for Devanagari Nepali fonts > ------------------------------------------- > > Key: PDFBOX-5918 > URL: https://issues.apache.org/jira/browse/PDFBOX-5918 > Project: PDFBox > Issue Type: Improvement > Components: FontBox > Affects Versions: 3.0.2 PDFBox > Reporter: Amar Dura > Priority: Major > Labels: assign-me, feature-request, nepali, suggestion > Attachments: image-2024-12-06-10-30-40-459.png, > image-2024-12-06-10-32-14-500.png, image-2024-12-06-11-16-20-008.png, > image-2024-12-06-11-18-00-468.png, testing-with-barahkhari.png > > Original Estimate: 2,016h > Remaining Estimate: 2,016h > > Devanagari support was in PDFBOX-5729 with GsubWorkerForDevanagari. But i > *But it doesn't cover all the features of the script.* > Also the results for differnt Unicode based Devanagari fonts have different > outputs. > It can be improved with some changes to glyph reordering. > I have been working on the issue. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org