Skip to content
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

Converting TEI to PDF fails #1

Open
djbpitt opened this issue Aug 1, 2016 · 17 comments
Open

Converting TEI to PDF fails #1

djbpitt opened this issue Aug 1, 2016 · 17 comments

Comments

@djbpitt
Copy link
Collaborator

djbpitt commented Aug 1, 2016

@lb42 I've installed the TEI stylesheets and mactex, and when I try to convert by following the instructions on the README page, the process fails:

koala:Source djb$ ~/Stylesheets/bin/teitoslides --profile=tei intro-tei-djb.xml
WARNING: No localsource set. Will get a copy from http://www.tei-c.org/Vault/P5/.
Convert intro-tei-djb.xml to /Users/djb/2016-08-vilnius/Source/intro-tei-djb.xml.slides (tei to slides) using profile tei
Warning: XML resolver not found; external catalogs will be ignored
[echo] Running XeLaTeX on /Users/djb/2016-08-vilnius/Source/intro-tei-djb.xml.tex in /Users/djb/2016-08-vilnius/Source

BUILD FAILED
/Users/djb/Stylesheets/slides/build-to.xml:45: The following error occurred while executing this line:
/Users/djb/Stylesheets/common/teianttasks.xml:211: exec returned: 1

Total time: 2 seconds

I have no idea what this means. Advice welcome!

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

Usually this means Latex has failed to find a graphic file. There should be more diagnostic s in the .log file if you can bear to wad through them. I will put up a test file later today (currently on grandfather duty)

@djbpitt
Copy link
Collaborator Author

djbpitt commented Aug 1, 2016

Dear Grandfather,

I waded, but with 5200 lines and my general lack of experience with TeX,
none of it made any sense. Not urgent, but it looks as if I'll need help if
I'm to be able to run this. Sorry! I can forward the log, if that will
help, but I'm guessing that you aren't any more eager to wade than I am, so
I'll wait for an OK before doing that. Thanks.

Best,

David

On Mon, Aug 1, 2016 at 12:36 PM, Lou notifications@github.com wrote:

Usually this means Latex has failed to find a graphic file. There should
be more diagnostic s in the .log file if you can bear to wad through them.
I will put up a test file later today (currently on grandfather duty)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8b3GYruhopDnjd68bu2zUaAYl_UHhgks5qbiCSgaJpZM4JZws4
.

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

What does "grep ERROR intro-tei-djb.xml.log" divulge?

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

(In another part of the forest I am investigating a different strategy for producing slides which may be easier if we don't sort this one out)

@djbpitt
Copy link
Collaborator Author

djbpitt commented Aug 1, 2016

Dear Lou,

The "grep" command you suggested yields nothing, but if when I search in a
case-insensitive way, I see:

koala:Source djb$ grep -i ERROR intro-tei-djb.xml.log
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages
(HO)
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"
! fontspec error: "font-not-found"

Does this help?

Best,

David

On Mon, Aug 1, 2016 at 12:53 PM, Lou notifications@github.com wrote:

(In another part of the forest I am investigating a different strategy for
producing slides which may be easier if we don't sort this one out)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8b3L6_XIONhiGayj3vtPG35jb0Bue0ks5qbiSagaJpZM4JZws4
.

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

You need to have Minion Pro and Myriad, usually supplied with Acrobat.
Failing that, you have to edit file Stylesheets/profiles/tei/slides/to.xsl so that the lines near the top
which say \setromanfont{Minion Pro} and \setsansfont{Myriad Pro} specify fonts you do have installed.

@djbpitt
Copy link
Collaborator Author

djbpitt commented Aug 1, 2016

Dear Lou,

I have Acrobat, but the version I have apparently comes without those
fonts, and the dependency on commercial products seems to contradict libre
sentiments. Requiring people to specify alternative fonts by editing the
stylesheets is likely to be beyond the technological ability of at least
some potential users, although now that you've identified the location of
the problem for me, I can do it if that turns out to be the strategy we'd
like to pursue.

For what it's worth, my usual methods for preparing slides aren't much
better in this respect. I often use PowerPoint, which is a dependency on a
commercial product that I don't like, although I could get around it by
using the Libre Office presentation software instead (not as capable, but
also not Evil). PowerPoint, at least, doesn't fail if the user doesn't have
a particular font installed; it falls back on a default system font. I also
often use HTML for presentation, which falls back on system fonts if
specified ones aren't present. The cost with HTML is that because it isn't
presentationally oriented the way TeX and PowerPoint (or its clones) are,
the formatting doesn't adapt to the presentation space. For example, if I
create a list in PowerPoint that won't fit on the slide, PowerPoint will
automatically reduce the font size to make it fit, while HTML will make me
scroll. I'm not advocating using either of these frameworks in place of the
TeX one that you prefer because they have their own annoying limitations,
but if there's an alternative that doesn't require users to purchase and
install commercial fonts or manually modify stylesheets to adjust to their
personal font inventories, that might be preferable. You mentioned earlier
that you were investigating alternative methods; is there one that you
might recommend?

Best,

David

On Mon, Aug 1, 2016 at 1:43 PM, Lou notifications@github.com wrote:

You need to have Minion Pro and Myriad, usually supplied with Acrobat.
Failing that, you have to edit file Stylesheets/profiles/tei/slides/to.xsl
so that the lines near the top
which say \setromanfont{Minion Pro} and \setsansfont{Myriad Pro} specify
fonts you do have installed.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8b3DwGjs9XYlnLk-KgLEQH7GEzr-U3ks5qbjAkgaJpZM4JZws4
.

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

Minion and myriad are free to download from many places on the internet and look much nicer than many others. That's why we use them in the guidelines .

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

I forgot to ask : are you operating with Ubuntu or on a mac? The object here isn't to propose a generally applicable solution, just one that we can both be happy and productive with!

@djbpitt
Copy link
Collaborator Author

djbpitt commented Aug 1, 2016

Dear Lou,

I followed the procedure at https://github.com/sebschub/FontPro and the
installation all completed satisfactorily (I found the Minion Pro and
Myriad Pro files in my Adobe file hierarchy, although they don't show up as
system fonts), but I'm continuing to get the same error messages. I'm okay
with a solution that works just for the two of us, too, but I'm not making
much headway on this one. Sorry!

Best,

David

On Mon, Aug 1, 2016 at 4:10 PM, Lou notifications@github.com wrote:

I forgot to ask : are you operating with Ubuntu or on a mac? The object
here isn't to propose a generally applicable solution, just one that we can
both be happy and productive with!


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8b3PaEFhaUpYUXi9BLYuWo6gsymwDXks5qblK6gaJpZM4JZws4
.

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

I know not this FontPro tool, and it looks a bit unnecessary. More to the point, I'm not sure what you mean by "adobe file hierarchy" ; also the phrase "dont show up as system fonts" doesn't inspire optimism. Do you have a directory called /usr/share/fonts/opentype/adobe like mine:

lou@foxglove:~/Public/2016-08-vilnius$ ls /usr/share/fonts/opentype/adobe
AdobePiStd.otf              MinionPro-BoldIt.otf   MyriadPro-Bold.otf
CourierStd-BoldOblique.otf  MinionPro-Bold.otf     MyriadPro-It.otf
CourierStd-Bold.otf         MinionPro-It.otf       MyriadPro-Regular.otf
CourierStd-Oblique.otf      MinionPro-Regular.otf
CourierStd.otf              MyriadPro-BoldIt.otf

If so, and you are running xelatex, then it should all Just Work, and finding out why it doesn't may be beyond my skills, though I am willing to try. By all means send me a copy of the log, preferably zipped.

@djbpitt
Copy link
Collaborator Author

djbpitt commented Aug 1, 2016

Dear Lou,

No such directory. I do have a directory called /Applications/Adobe Acrobat
Reader DC.app/Contents/Resources/Resource/Font, the contents of which are:

AdobePiStd.otf MinionPro-It.otf SY______.PFM
CourierStd-Bold.otf MinionPro-Regular.otf ZX______.MMM
CourierStd-BoldOblique.otf MyriadPro-Bold.otf ZX______.PFB
CourierStd-Oblique.otf MyriadPro-BoldIt.otf ZX______.PFM
CourierStd.otf MyriadPro-It.otf ZY______.MMM
MinionPro-Bold.otf MyriadPro-Regular.otf ZY______.PFB
MinionPro-BoldIt.otf SY______.PFB ZY______.PFM

We're running different operating systems, so the difference in file
structures makes a certain (inconvenient sense). I wouldn't expect my
installation of MacTeX to look in the directory path you suggest, though,
since that's not part of my installation of either Adobe Acrobat Reader or
MacTeX. I've attached a zip of the log.

Best,

David

On Mon, Aug 1, 2016 at 5:34 PM, Lou notifications@github.com wrote:

I know not this FontPro tool, and it looks a bit unnecessary. More to the
point, I'm not sure what you mean by "adobe file hierarchy" ; also the
phrase "dont show up as system fonts" doesn't inspire optimism. Do you have
a directory called /usr/share/fonts/opentype/adobe like mine:

lou@foxglove:~/Public/2016-08-vilnius$ ls /usr/share/fonts/opentype/adobe
AdobePiStd.otf MinionPro-BoldIt.otf MyriadPro-Bold.otf
CourierStd-BoldOblique.otf MinionPro-Bold.otf MyriadPro-It.otf
CourierStd-Bold.otf MinionPro-It.otf MyriadPro-Regular.otf
CourierStd-Oblique.otf MinionPro-Regular.otf
CourierStd.otf MyriadPro-BoldIt.otf

If so, and you are running xelatex, then it should all Just Work, and
finding out why it doesn't may be beyond my skills, though I am willing to
try. By all means send me a copy of the log, preferably zipped.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8b3EdKhoyX_NoZ4uIiuH0iDgUvlxgvks5qbmZ7gaJpZM4JZws4
.

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

Ah. You're on a Mac. I was confused because you say "MacTex" but your log says you are running "XeLaTex". I will ask around. BTW, the log zip has not arrived here: probably best to send it as an email attachment to my gmail account rather than clutter up the repo.

My alternative solution is to use a cunning stylesheet developed by a French colleague which turns TEI XML into Markdown, and then displays it using a javascript library called "Remark". Try cloning https://github.com/lb42/TEIslides

@djbpitt
Copy link
Collaborator Author

djbpitt commented Aug 1, 2016

Dear Lou,

Sorry for the confusion! Yes, on a Mac, running Mac OS. I'm not sure what
happened to log.zip, which I had attached to my last email, and I just
double-checked and I really did attach it (I'm capable of forgetting, but I
didn't this time). I've attached a non-zipped version to this one.

Should I try the "Remark" strategy now, or should we continue to try to
troubleshoot Plan A?

Best,

David

On Mon, Aug 1, 2016 at 5:55 PM, Lou notifications@github.com wrote:

Ah. You're on a Mac. I was confused because you say "MacTex" but your log
says you are running "XeLaTex". I will ask around. BTW, the log zip has not
arrived here: probably best to send it as an email attachment to my gmail
account rather than clutter up the repo.

My alternative solution is to use a cunning stylesheet developed by a
French colleague which turns TEI XML into Markdown, and then displays it
using a javascript library called "Remark". Try cloning
https://github.com/lb42/TEIslides


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8b3JS_IogWkVOx5hS4pKPigqxcUzxIks5qbms2gaJpZM4JZws4
.

@lb42
Copy link
Owner

lb42 commented Aug 1, 2016

You need to send the log in a regular email, not one replying to this message (which is coming via github, which doesn't like attachments). Open your gmail. Send it to my gmail.

I'm going to have to ask some smarter fellows than me about the tex problem, so feel free to have a look at the Remark stuff if you're at a loose end, if only to see whether you hate it. Are you going to Balisage?

@lb42
Copy link
Owner

lb42 commented Aug 2, 2016

Could you try an example using some slavonic material and see what the unicode support is like? my recollection is that it's not brilliant, but mostly works.

@djbpitt
Copy link
Collaborator Author

djbpitt commented Aug 2, 2016

Dear Lou,

I'll try that when I'm on a real computer, but a lot of Unicode early
Cyrillic characters used in medieval manuscript transcriptions are not in
most fonts. We may want to look into adding a font--if it's possible to do
that with an arbitrary font that isn't anticipated by the toolkit. More
later.

Best,

David

On Aug 2, 2016, at 6:27 AM, Lou notifications@github.com wrote:

Could you try an example using some slavonic material and see what the
unicode support is like? my recollection is that it's not brilliant, but
mostly works.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF8b3LdIzVNHGXI9iZ_BNOvOxkw6lMn-ks5qbxukgaJpZM4JZws4
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants