Japanese text in vertical writing mode rendered with glyphs for horizontal writing
See original GitHub issueAttach (recommended) or Link to PDF file here:
https://www.mofa.go.jp/mofaj/gaiko/treaty/pdfs/treaty159_4a.pdf (via https://www.mofa.go.jp/mofaj/gaiko/treaty/treaty159_4.html)
Configuration:
- Web browser and its version: Firefox 80.0.1
- Operating system and its version: Windows 10 Home (Version 10.0.19041 build 19041)
- PDF.js version: 2.6.123
- Is a browser extension: yes (built-in)
Steps to reproduce the problem: open the PDF and jump to page 2.
What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
Glyphs ー
, ュ
and 、
are in horizontal form. (cf. Requirements for Japanese Text Layout 3.1.1 Differences in Vertical and Horizontal Composition in Use of Punctuation Marks )
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): n/a
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Styling vertical Chinese, Japanese, Korean and Mongolian text
This article explains how to use CSS to produce vertical text for languages such as Chinese, Japanese, Korean, and Mongolian.
Read more >Re: [Freetype] Font files and vertical text - The Mail Archive
When writing horizontally, the horizontal origin of a character is placed at the pen position passed into the renderer, and the glyph is...
Read more >text-orientation - CSS: Cascading Style Sheets - MDN Web Docs
The text-orientation CSS property sets the orientation of the text characters in a line. It only affects text in vertical mode (when writing- ......
Read more >5 Characters, Glyphs, and Writing ... - Text Encoding Initiative
⚓︎5.7.2 Vertical Text with Embedded Horizontal Text. When Japanese is written vertically, the glyph orientation remains the same as when it is ...
Read more >Text — SVG 2
SVG's 'text' elements are rendered like other graphics elements. ... For horizontal writing-modes, the glyphs' alignment points are vertically aligned while ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s also in page 1. The font is named “Ryumin-regular-Identity-H” and the encoding is “Identity-H”. I suspect that Adobe itself notices that this is vertical writing and then displays that glyph differently.
I have a similar problem. In my case I’m reading a study paper where mainly in horizontal format but sometimes vertical context with a graph. The problem is that when I search text in say Foxit it recognizes the text but in the pdf.js viewer view when I search text it doesn’t recognize the text but does recognize horizontal texts. So for instance I’m seeing the problem like when I search a word in Foxit it finds lets say 60 match results, but in pdf.js 55 match results, like that.
Simply, this is a crucial problem when I cannot miss a match when I query a search. Is this a same issue to OP’s?? let me know if it doesn’t I’ll open a new issue. Thanks.