-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pango errors when generating PostScript (but not SVG) #14
Comments
I installed pango in my machine (ARM VoidLinux) and I got the same problem. |
I wonder if that's actually the cause. I know that Lilypond on the same machine has no trouble with these characters (and AFAIK it uses Pango and, I think, Freetype to render them).
FWIW, I'm using Pango 1.40.14 and Freetype 2.8.1, both installed with Homebrew.
I don't see how this is practical. I want to simply type arbitrary non-ASCII characters into ABC files and have them show up correctly in PDF output as they do in SVG. Why should it be the user's responsibility to mess around with a |
There are 2 ways of using pango + freetype for PostScript output:
Changing the abcm2ps mechanism to Lilypond's asks for a full rewrite of the whole program, and I stopped any new developments on it.
As I said, there is a generation option in freetype. The distribution people (Debian, VoidLinux, Mint.. for GNU/Linux) are free to set or not this option. The source is the same, only the binary is different.
This is the main problem with PostScript: this old language does not know Unicode. Anyway, if you want to display random unicode characters in PostScript, you may easily create a ABC file containing a %%glyph line for each character found in the GhostScript resource... |
@leesavide Has this issue been fixed? If not, why close it? |
Anyway, there is no solution for this problem. |
After more investigations, I found that pango in abcm2ps works fine with TrueType fonts, as FreeFont and Liberation, but not with PostScript Type1 or X11 fonts. In your first message, you were writing:
What were these messages? |
If you expand the disclosure triangle next to "Details", you'll see them. |
The tag <details> was not handled by my old palemoon browser so I did not see the messages. Well, there were problems with pango. I made some changes for that in the commit 4f352f6 (version 8.14.0). May you check if the program works better for you now? |
Hmm, strange. I thought that browsers that didn’t understand a container tag would just show the contents.
Sure, I’ll try it when I have a chance. Thanks! |
@moinejf This is better, at least. I get boxes instead of the right characters (even though I think they're present in the font), but at least the program no longer crashes. Thanks. |
Presumably related to the above: |
@catellie I am using a ARM board and I generate the abcm2ps static binaries with PIE and the musl library (no pango support). It must run in Android. |
@moinejf I've just tried your binary and strangely it appears to produce identical results under my TermUX system. Here is the ABC tune I'm using: X:1 Examining the result closer, I think the problem is the guitar chords rendering: Here is a snippet from the title to the first chord: % --- title Vollkadenz So perhaps this is a more basic problem? |
Excellent! I just rebuilt on TermUX with the latest source and it works as expected. 🙇 |
A bit of an edge case now that I think about it - I just grabbed the first abc file I had around... 🤷 |
I'm using abcm2ps 8.13.17 and pango 1.40.14, both installed through Homebrew on Mac OS X 10.12 (Sierra). When I attempt to use abcm2ps to process ABC files containing certain non-ASCII characters (see below for more on which ones), it works perfectly for SVG output, but for PostScript output, abcm2ps crashes with the following error messages:
The characters that can trigger this error include
’
U+2019 RIGHT SINGLE QUOTATION MARK and—
U+2014 EM DASH, as well as letters from non-Roman scripts such as Cyrillic, but not×
U+00D7 MULTIPLICATION SIGN. I've tried turning off Pango with the--pango 0
option, but while that prevents the crash, it also means that these characters don't show up in the output. Help?The text was updated successfully, but these errors were encountered: