Open StefanSchroeder opened 7 years ago
Interesting - I would like to see this included but the font isn't embedding for me:
I'll have a look at your repository and see what's going on.
I did install all the fonts from the referenced package and thus they are of course available when I display it. I wasn't aware that extra tweaks were are required to embed the fonts. I think it's a good idea to make embedding the fonts the default... I guess what you were saying was in fact this also was your expectation, right?
Yes - so now SILE tries a bit harder to embed fonts.
Going back to the original question, I'd be very happy to have some examples of Anglo-Saxon scripture, and since the Beowulf font appears to be freely redistributable we can put it into the repository so that the examples can be easily rebuilt. Are you happy with the way SILE is handling Anglo-Saxon text? (I don't know, for example, how it should deal with hyphenation / line continuations. I don't think AS has a hyphen, but I don't know if words should be wrapped or kept on the same line.) When we have something looking good it would be great to add it in.
When using gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf to enforce embedding of fonts, I get the following message:
stefan@debian:~/sile-stuff$ gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -sOutputFile=output.pdf anglo.pdf Can't find CMap Identity-UTF16-H building a CIDDecoding resource. Warning: falling back to Identity ordering Warning: can't process font stream, loading font by the name. Can't find CMap Identity-UTF16-H building a CIDDecoding resource. Can't find CMap Identity-UTF16-H building a CIDDecoding resou Error reading a content stream. The page may be incomplete. File did not complete the page properly and may be damaged. Warning: File has unbalanced q/Q operators (too many q's)
This file had errors that were repaired or ignored. The file was produced by: >>>> SILE <<<< Please notify the author of the software that produced this file that it does not conform to Adobe's published PDF specification.
Should I open an issue for this?
Regarding the question of line breaking and hyphenation; the existing body of text from the Anglo-Saxon era is probably too small and the concept of having any rules regarding this matter in the first place to allow any final answer probably didn't arise yet. I will have a look if I can make out anything...
I have now recreated the PDF and the 'pdffonts' command indeed tells me that the Beowulf1 font is now embedded. Please have another look.
IMHO, this ticket, regarding the proposed example ought to be moved to https://github.com/sile-typesetter/sile-typesetter.github.io (the SILE website, where examples are now handled) - and if approved there, a PR should be made.
FWIW, the referred commit for the font embedding issue also raised here was fixed in 0.9.5 --> Closed.
I am in the process of compiling a few sample pages for typesetting Anglo-Saxon scripture. I would like to donate some of these to the examples if appreciated.
Draft here:
https://github.com/StefanSchroeder/sile-stuff/blob/master/anglo.pdf