Yoshiwara's MFG and WeBWorK

11 views
Skip to first unread message

Rob Beezer

unread,
Nov 10, 2022, 7:32:06 PM11/10/22
to pretext...@googlegroups.com
I'm trying to see how close Yoshiwara's "Modeling, Functions, and Graphs" is to
being converted to braille. Perhaps an appeal here, rather than off-list, will
yield some insights.


1. With the only publication file that is apparent, I get

failed to load external entity
"/home/rob/books/mfg-yoshiwara/ptx/images/webwork/webwork-representations.xml"


2. Note that the publication file has

<source webwork-problems="../wwscratch/webwork-representations.ptx"/>

Note the suffix *.ptx v. *.xml.

Unclear to me why the failure is looking for *that* file. Note that the managed
directories scheme is not in play.


3. So I copy all of "../wwscratch/" into
/home/rob/books/mfg-yoshiwara/ptx/images/webwork/ and rename the representations
file to get the suffix right. That would seem to get me an HTML build which
proceeds without immediate errors (using pretext/pretext).


Any suggestions on what should change in the organization of this project so
that the WW problems behave?

https://github.com/byoshiwara

Rob

BRUCE YOSHIWARA

unread,
Nov 10, 2022, 7:43:53 PM11/10/22
to pretext...@googlegroups.com
Hi Rob,

We hadn't tried to build MFG for quite some time, and for the past few days I've made some corrections Kathy wanted. I cleaned up some but not all of the warnings regarding deprecated stuff, and I think I succeeded in getting a new html version (including re-generated WeBWorK exercises) via CLI.

So https://github.com/byoshiwara/mfg should now have a working publication.ptx file in the publication folder.

Bruce

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/69aa53a8-7411-53eb-d095-e61de7101193%40ups.edu.


--
---------------------------------------------------------------------- 
byosh...@hotmail.com 
Twitter: @byoshiwara 
Blog: http://byoshiwara.blogspot.com/ 
Webpage: https://byoshiwara.github.io   

"I'm supposed to respect my elders, but now it’s getting harder and harder for me to find one." --Winston Churchill

----------------------------------------------------------------------

Rob Beezer

unread,
Nov 10, 2022, 8:04:45 PM11/10/22
to pretext...@googlegroups.com
Thanks, Bruce.

<sheepish>
I pulled last week or so, but not today.
</sheepish>

I'll give it a go soon, a braille build is in-progress right now.

Alex Jordan

unread,
Nov 10, 2022, 8:05:01 PM11/10/22
to pretext...@googlegroups.com
source with @webwork-problems is deprecated. Maybe not in a clear
enough and official way.

Managed directories should handle this.
> Note that the managed
directories scheme is not in play.

Are you sure? I see it here:
https://github.com/byoshiwara/mfg/blob/6aedc1c242a8cbab66764d85b0c517d0363d4f96/publication/publication.ptx#L15
Are you working with a different publication file?

There is a commit to that repo from a few hours ago. It is not clear
to me what was the status of the publication file before that.

Remove that @webwork-problems attribute, and managed directories
should do what needs to be done.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/CAMxbPO4%3Df233J1EsyE-j7CdVNLkDsW3Myo9KfEQfjFrSjgGCQw%40mail.gmail.com.

Rob Beezer

unread,
Nov 10, 2022, 8:11:55 PM11/10/22
to pretext...@googlegroups.com
Thanks, Alex. Maybe I missed an error message before the flood of file not found messages. I'll check.

I was coming to the conclusion that managed directories we're necessary. Yes, a different publication file, but if iirc it was the only one I could find a week or two ago. Sounds like Bruce has that unber control once I pull.

Rob

Rob Beezer

unread,
Nov 10, 2022, 10:02:11 PM11/10/22
to pretext...@googlegroups.com
On 11/10/22 17:04, Alex Jordan wrote:
> source with @webwork-problems is deprecated. Maybe not in a clear
> enough and official way.

No warning for an absent file. We test if the *filename* is empty, but I can't
see that we test for the file itself being AWOL.

We could do a preparatory test by making

<xsl:variable name="just-testing"
select="document($webwork-representations-file, $original)"/>

If the file is missing, we'll get one error message, and I think the variable is
empty/false, andwe can warn once more, more carefully. Then from there on we
could just fill WW exercises with "A WW exercise goes here".

Rob Beezer

unread,
Nov 10, 2022, 10:57:31 PM11/10/22
to pretext...@googlegroups.com
OK, a pull and a new publication file and everything is good. Just got a good
HTML build.

I built braille a couple hours ago by moving around the WW stuff and it looked
pretty good (with a cursory glance). Building braille again now...

Thanks for the help.

Rob
Reply all
Reply to author
Forward
0 new messages